@everymatrix/player-account-timeout 1.88.10 → 1.88.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,51 +1,51 @@
1
- "use strict";var Al=Object.defineProperty,Sl=Object.defineProperties;var Pl=Object.getOwnPropertyDescriptors;var ko=Object.getOwnPropertySymbols;var Dl=Object.prototype.hasOwnProperty,Ol=Object.prototype.propertyIsEnumerable;var zi=(e,i,t)=>i in e?Al(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Zt=(e,i)=>{for(var t in i||(i={}))Dl.call(i,t)&&zi(e,t,i[t]);if(ko)for(var t of ko(i))Ol.call(i,t)&&zi(e,t,i[t]);return e},Qt=(e,i)=>Sl(e,Pl(i));var de=(e,i,t)=>(zi(e,typeof i!="symbol"?i+"":i,t),t);var Et=(e,i,t)=>new Promise((r,o)=>{var n=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(e,i)).next())});require("../stencil/ui-skeleton-BreIU6e5.cjs");function re(){}const ns=e=>e;function kl(e,i){for(const t in i)e[t]=i[t];return e}function ss(e){return e()}function Mo(){return Object.create(null)}function Se(e){e.forEach(ss)}function Si(e){return typeof e=="function"}function eo(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function Ml(e){return Object.keys(e).length===0}function as(e,...i){if(e==null){for(const r of i)r(void 0);return re}const t=e.subscribe(...i);return t.unsubscribe?()=>t.unsubscribe():t}function ls(e,i,t){e.$$.on_destroy.push(as(i,t))}function Il(e,i,t,r){if(e){const o=us(e,i,t,r);return e[0](o)}}function us(e,i,t,r){return e[1]&&r?kl(t.ctx.slice(),e[1](r(i))):t.ctx}function Nl(e,i,t,r){if(e[2]&&r){const o=e[2](r(t));if(i.dirty===void 0)return o;if(typeof o=="object"){const n=[],s=Math.max(i.dirty.length,o.length);for(let a=0;a<s;a+=1)n[a]=i.dirty[a]|o[a];return n}return i.dirty|o}return i.dirty}function Hl(e,i,t,r,o,n){if(o){const s=us(i,t,r,n);e.p(s,o)}}function Ll(e){if(e.ctx.length>32){const i=[],t=e.ctx.length/32;for(let r=0;r<t;r++)i[r]=-1;return i}return-1}const cs=typeof window!="undefined";let Fl=cs?()=>window.performance.now():()=>Date.now(),to=cs?e=>requestAnimationFrame(e):re;const it=new Set;function hs(e){it.forEach(i=>{i.c(e)||(it.delete(i),i.f())}),it.size!==0&&to(hs)}function $l(e){let i;return it.size===0&&to(hs),{promise:new Promise(t=>{it.add(i={c:e,f:t})}),abort(){it.delete(i)}}}function E(e,i){e.appendChild(i)}function ds(e,i,t){const r=io(e);if(!r.getElementById(i)){const o=M("style");o.id=i,o.textContent=t,fs(r,o)}}function io(e){if(!e)return document;const i=e.getRootNode?e.getRootNode():e.ownerDocument;return i&&i.host?i:e.ownerDocument}function Bl(e){const i=M("style");return i.textContent="/* empty */",fs(io(e),i),i.sheet}function fs(e,i){return E(e.head||e,i),i.sheet}function fe(e,i,t){e.insertBefore(i,t||null)}function ae(e){e.parentNode&&e.parentNode.removeChild(e)}function Rl(e,i){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(i)}function M(e){return document.createElement(e)}function $e(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ge(e){return document.createTextNode(e)}function J(){return ge(" ")}function zl(){return ge("")}function It(e,i,t,r){return e.addEventListener(i,t,r),()=>e.removeEventListener(i,t,r)}function $(e,i,t){t==null?e.removeAttribute(i):e.getAttribute(i)!==t&&e.setAttribute(i,t)}function S(e,i,t){const r=i.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:i in e?e[i]=typeof e[i]=="boolean"&&t===""?!0:t:$(e,i,t)}function Ul(e){return Array.from(e.childNodes)}function Ve(e,i){i=""+i,e.data!==i&&(e.data=i)}function Io(e,i){e.value=i==null?"":i}function No(e,i,t,r){t==null?e.style.removeProperty(i):e.style.setProperty(i,t,"")}function Ho(e,i,t){for(let r=0;r<e.options.length;r+=1){const o=e.options[r];if(o.__value===i){o.selected=!0;return}}(!t||i!==void 0)&&(e.selectedIndex=-1)}function jl(e){const i=e.querySelector(":checked");return i&&i.__value}function Vl(e,i,{bubbles:t=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:i,bubbles:t,cancelable:r})}function Gl(e){const i={};return e.childNodes.forEach(t=>{i[t.slot||"default"]=!0}),i}const pi=new Map;let mi=0;function Wl(e){let i=5381,t=e.length;for(;t--;)i=(i<<5)-i^e.charCodeAt(t);return i>>>0}function Yl(e,i){const t={stylesheet:Bl(i),rules:{}};return pi.set(e,t),t}function Lo(e,i,t,r,o,n,s,a=0){const l=16.666/r;let u=`{
2
- `;for(let x=0;x<=1;x+=l){const P=i+(t-i)*n(x);u+=x*100+`%{${s(P,1-P)}}
1
+ "use strict";var kl=Object.defineProperty,Ml=Object.defineProperties;var Il=Object.getOwnPropertyDescriptors;var Lo=Object.getOwnPropertySymbols;var Nl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable;var Gi=(e,i,t)=>i in e?kl(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,ii=(e,i)=>{for(var t in i||(i={}))Nl.call(i,t)&&Gi(e,t,i[t]);if(Lo)for(var t of Lo(i))Hl.call(i,t)&&Gi(e,t,i[t]);return e},ri=(e,i)=>Ml(e,Il(i));var me=(e,i,t)=>(Gi(e,typeof i!="symbol"?i+"":i,t),t);var St=(e,i,t)=>new Promise((r,o)=>{var n=l=>{try{a(t.next(l))}catch(u){o(u)}},s=l=>{try{a(t.throw(l))}catch(u){o(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,s);a((t=t.apply(e,i)).next())});require("../stencil/ui-skeleton-BreIU6e5.cjs");function ae(){}const ls=e=>e;function Ll(e,i){for(const t in i)e[t]=i[t];return e}function us(e){return e()}function $o(){return Object.create(null)}function ve(e){e.forEach(us)}function ki(e){return typeof e=="function"}function oo(e,i){return e!=e?i==i:e!==i||e&&typeof e=="object"||typeof e=="function"}function $l(e){return Object.keys(e).length===0}function cs(e,...i){if(e==null){for(const r of i)r(void 0);return ae}const t=e.subscribe(...i);return t.unsubscribe?()=>t.unsubscribe():t}function hs(e,i,t){e.$$.on_destroy.push(cs(i,t))}function Fl(e,i,t,r){if(e){const o=ds(e,i,t,r);return e[0](o)}}function ds(e,i,t,r){return e[1]&&r?Ll(t.ctx.slice(),e[1](r(i))):t.ctx}function Bl(e,i,t,r){if(e[2]&&r){const o=e[2](r(t));if(i.dirty===void 0)return o;if(typeof o=="object"){const n=[],s=Math.max(i.dirty.length,o.length);for(let a=0;a<s;a+=1)n[a]=i.dirty[a]|o[a];return n}return i.dirty|o}return i.dirty}function Rl(e,i,t,r,o,n){if(o){const s=ds(i,t,r,n);e.p(s,o)}}function zl(e){if(e.ctx.length>32){const i=[],t=e.ctx.length/32;for(let r=0;r<t;r++)i[r]=-1;return i}return-1}const fs=typeof window!="undefined";let Ul=fs?()=>window.performance.now():()=>Date.now(),no=fs?e=>requestAnimationFrame(e):ae;const at=new Set;function ps(e){at.forEach(i=>{i.c(e)||(at.delete(i),i.f())}),at.size!==0&&no(ps)}function jl(e){let i;return at.size===0&&no(ps),{promise:new Promise(t=>{at.add(i={c:e,f:t})}),abort(){at.delete(i)}}}function w(e,i){e.appendChild(i)}function ms(e,i,t){const r=so(e);if(!r.getElementById(i)){const o=H("style");o.id=i,o.textContent=t,_s(r,o)}}function so(e){if(!e)return document;const i=e.getRootNode?e.getRootNode():e.ownerDocument;return i&&i.host?i:e.ownerDocument}function Vl(e){const i=H("style");return i.textContent="/* empty */",_s(so(e),i),i.sheet}function _s(e,i){return w(e.head||e,i),i.sheet}function _e(e,i,t){e.insertBefore(i,t||null)}function ce(e){e.parentNode&&e.parentNode.removeChild(e)}function Gl(e,i){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(i)}function H(e){return document.createElement(e)}function Ce(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ye(e){return document.createTextNode(e)}function J(){return ye(" ")}function Wl(){return ye("")}function He(e,i,t,r){return e.addEventListener(i,t,r),()=>e.removeEventListener(i,t,r)}function S(e,i,t){t==null?e.removeAttribute(i):e.getAttribute(i)!==t&&e.setAttribute(i,t)}function P(e,i,t){const r=i.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:i in e?e[i]=typeof e[i]=="boolean"&&t===""?!0:t:S(e,i,t)}function Yl(e){return Array.from(e.childNodes)}function Le(e,i){i=""+i,e.data!==i&&(e.data=i)}function Fo(e,i,t,r){t==null?e.style.removeProperty(i):e.style.setProperty(i,t,"")}function et(e,i,t){e.classList.toggle(i,!!t)}function ql(e,i,{bubbles:t=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:i,bubbles:t,cancelable:r})}function Xl(e){const i={};return e.childNodes.forEach(t=>{i[t.slot||"default"]=!0}),i}const bi=new Map;let yi=0;function Kl(e){let i=5381,t=e.length;for(;t--;)i=(i<<5)-i^e.charCodeAt(t);return i>>>0}function Jl(e,i){const t={stylesheet:Vl(i),rules:{}};return bi.set(e,t),t}function Bo(e,i,t,r,o,n,s,a=0){const l=16.666/r;let u=`{
2
+ `;for(let E=0;E<=1;E+=l){const D=i+(t-i)*n(E);u+=E*100+`%{${s(D,1-D)}}
3
3
  `}const c=u+`100% {${s(t,1-t)}}
4
- }`,h=`__svelte_${Wl(c)}_${a}`,d=io(e),{stylesheet:f,rules:p}=pi.get(d)||Yl(d,e);p[h]||(p[h]=!0,f.insertRule(`@keyframes ${h} ${c}`,f.cssRules.length));const y=e.style.animation||"";return e.style.animation=`${y?`${y}, `:""}${h} ${r}ms linear ${o}ms 1 both`,mi+=1,h}function ql(e,i){const t=(e.style.animation||"").split(", "),r=t.filter(i?n=>n.indexOf(i)<0:n=>n.indexOf("__svelte")===-1),o=t.length-r.length;o&&(e.style.animation=r.join(", "),mi-=o,mi||Xl())}function Xl(){to(()=>{mi||(pi.forEach(e=>{const{ownerNode:i}=e.stylesheet;i&&ae(i)}),pi.clear())})}let $t;function Nt(e){$t=e}function ps(){if(!$t)throw new Error("Function called outside component initialization");return $t}function Kl(e){ps().$$.on_mount.push(e)}function Jl(e){ps().$$.on_destroy.push(e)}const Qe=[],rt=[];let ot=[];const Fo=[],Zl=Promise.resolve();let mr=!1;function Ql(){mr||(mr=!0,Zl.then(ce))}function ut(e){ot.push(e)}const Ui=new Set;let Ke=0;function ce(){if(Ke!==0)return;const e=$t;do{try{for(;Ke<Qe.length;){const i=Qe[Ke];Ke++,Nt(i),eu(i.$$)}}catch(i){throw Qe.length=0,Ke=0,i}for(Nt(null),Qe.length=0,Ke=0;rt.length;)rt.pop()();for(let i=0;i<ot.length;i+=1){const t=ot[i];Ui.has(t)||(Ui.add(t),t())}ot.length=0}while(Qe.length);for(;Fo.length;)Fo.pop()();mr=!1,Ui.clear(),Nt(e)}function eu(e){if(e.fragment!==null){e.update(),Se(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(ut)}}function tu(e){const i=[],t=[];ot.forEach(r=>e.indexOf(r)===-1?i.push(r):t.push(r)),t.forEach(r=>r()),ot=i}let Tt;function iu(){return Tt||(Tt=Promise.resolve(),Tt.then(()=>{Tt=null})),Tt}function ji(e,i,t){e.dispatchEvent(Vl(`${i?"intro":"outro"}${t}`))}const ai=new Set;let Ee;function ru(){Ee={r:0,c:[],p:Ee}}function ou(){Ee.r||Se(Ee.c),Ee=Ee.p}function ms(e,i){e&&e.i&&(ai.delete(e),e.i(i))}function nu(e,i,t,r){if(e&&e.o){if(ai.has(e))return;ai.add(e),Ee.c.push(()=>{ai.delete(e),r&&(t&&e.d(1),r())}),e.o(i)}else r&&r()}const su={duration:0};function au(e,i,t,r){let n=i(e,t,{direction:"both"}),s=r?0:1,a=null,l=null,u=null,c;function h(){u&&ql(e,u)}function d(p,y){const x=p.b-s;return y*=Math.abs(x),{a:s,b:p.b,d:x,duration:y,start:p.start,end:p.start+y,group:p.group}}function f(p){const{delay:y=0,duration:x=300,easing:P=ns,tick:D=re,css:A}=n||su,k={start:Fl()+y,b:p};p||(k.group=Ee,Ee.r+=1),"inert"in e&&(p?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||l?l=k:(A&&(h(),u=Lo(e,s,p,x,y,P,A)),p&&D(0,1),a=d(k,x),ut(()=>ji(e,p,"start")),$l(O=>{if(l&&O>l.start&&(a=d(l,x),l=null,ji(e,a.b,"start"),A&&(h(),u=Lo(e,s,a.b,a.duration,0,P,n.css))),a){if(O>=a.end)D(s=a.b,1-s),ji(e,a.b,"end"),l||(a.b?h():--a.group.r||Se(a.group.c)),a=null;else if(O>=a.start){const z=O-a.start;s=a.a+a.d*P(z/a.duration),D(s,1-s)}}return!!(a||l)}))}return{run(p){Si(n)?iu().then(()=>{n=n({direction:p?"in":"out"}),f(p)}):f(p)},end(){h(),a=l=null}}}function $o(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function lu(e,i,t){const{fragment:r,after_update:o}=e.$$;r&&r.m(i,t),ut(()=>{const n=e.$$.on_mount.map(ss).filter(Si);e.$$.on_destroy?e.$$.on_destroy.push(...n):Se(n),e.$$.on_mount=[]}),o.forEach(ut)}function uu(e,i){const t=e.$$;t.fragment!==null&&(tu(t.after_update),Se(t.on_destroy),t.fragment&&t.fragment.d(i),t.on_destroy=t.fragment=null,t.ctx=[])}function cu(e,i){e.$$.dirty[0]===-1&&(Qe.push(e),Ql(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function _s(e,i,t,r,o,n,s=null,a=[-1]){const l=$t;Nt(e);const u=e.$$={fragment:null,ctx:[],props:n,update:re,not_equal:o,bound:Mo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:Mo(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(e,i.props||{},(h,d,...f)=>{const p=f.length?f[0]:d;return u.ctx&&o(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),c&&cu(e,h)),d}):[],u.update(),c=!0,Se(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const h=Ul(i.target);u.fragment&&u.fragment.l(h),h.forEach(ae)}else u.fragment&&u.fragment.c();i.intro&&ms(e.$$.fragment),lu(e,i.target,i.anchor),ce()}Nt(l)}let gs;typeof HTMLElement=="function"&&(gs=class extends HTMLElement{constructor(i,t,r){super();de(this,"$$ctor");de(this,"$$s");de(this,"$$c");de(this,"$$cn",!1);de(this,"$$d",{});de(this,"$$r",!1);de(this,"$$p_d",{});de(this,"$$l",{});de(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(i,t,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(t),this.$$c){const o=this.$$c.$on(i,t);this.$$l_u.set(t,o)}super.addEventListener(i,t,r)}removeEventListener(i,t,r){if(super.removeEventListener(i,t,r),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return Et(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(n){return()=>{let s;return{c:function(){s=M("slot"),n!=="default"&&$(s,"name",n)},m:function(u,c){fe(u,s,c)},d:function(u){u&&ae(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Gl(this);for(const n of this.$$s)n in r&&(t[n]=[i(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=li(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Qt(Zt({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=li(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,t,r){var o;this.$$r||(i=this.$$g_p(i),this.$$d[i]=li(i,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===i||!this.$$p_d[t].attribute&&t.toLowerCase()===i)||i}});function li(e,i,t,r){var n;const o=(n=t[e])==null?void 0:n.type;if(i=o==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!t[e])return i;if(r==="toAttribute")switch(o){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i==null?null:i;default:return i}else switch(o){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function ys(e,i,t,r,o,n){let s=class extends gs{constructor(){super(e,t,o),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map(a=>(i[a].attribute||a).toLowerCase())}};return Object.keys(i).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=li(a,l,i),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}class bs{constructor(){de(this,"$$");de(this,"$$set")}$destroy(){uu(this,1),this.$destroy=re}$on(i,t){if(!Si(t))return re;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(i){this.$$set&&!Ml(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const hu="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(hu);/**
4
+ }`,h=`__svelte_${Kl(c)}_${a}`,d=so(e),{stylesheet:p,rules:f}=bi.get(d)||Jl(d,e);f[h]||(f[h]=!0,p.insertRule(`@keyframes ${h} ${c}`,p.cssRules.length));const m=e.style.animation||"";return e.style.animation=`${m?`${m}, `:""}${h} ${r}ms linear ${o}ms 1 both`,yi+=1,h}function Zl(e,i){const t=(e.style.animation||"").split(", "),r=t.filter(i?n=>n.indexOf(i)<0:n=>n.indexOf("__svelte")===-1),o=t.length-r.length;o&&(e.style.animation=r.join(", "),yi-=o,yi||Ql())}function Ql(){no(()=>{yi||(bi.forEach(e=>{const{ownerNode:i}=e.stylesheet;i&&ce(i)}),bi.clear())})}let zt;function $t(e){zt=e}function gs(){if(!zt)throw new Error("Function called outside component initialization");return zt}function eu(e){gs().$$.on_mount.push(e)}function tu(e){gs().$$.on_destroy.push(e)}const ot=[],lt=[];let ut=[];const Ro=[],iu=Promise.resolve();let yr=!1;function ru(){yr||(yr=!0,iu.then(fe))}function Ut(e){ut.push(e)}const Wi=new Set;let tt=0;function fe(){if(tt!==0)return;const e=zt;do{try{for(;tt<ot.length;){const i=ot[tt];tt++,$t(i),ou(i.$$)}}catch(i){throw ot.length=0,tt=0,i}for($t(null),ot.length=0,tt=0;lt.length;)lt.pop()();for(let i=0;i<ut.length;i+=1){const t=ut[i];Wi.has(t)||(Wi.add(t),t())}ut.length=0}while(ot.length);for(;Ro.length;)Ro.pop()();yr=!1,Wi.clear(),$t(e)}function ou(e){if(e.fragment!==null){e.update(),ve(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(Ut)}}function nu(e){const i=[],t=[];ut.forEach(r=>e.indexOf(r)===-1?i.push(r):t.push(r)),t.forEach(r=>r()),ut=i}let Pt;function su(){return Pt||(Pt=Promise.resolve(),Pt.then(()=>{Pt=null})),Pt}function Yi(e,i,t){e.dispatchEvent(ql(`${i?"intro":"outro"}${t}`))}const hi=new Set;let De;function au(){De={r:0,c:[],p:De}}function lu(){De.r||ve(De.c),De=De.p}function bs(e,i){e&&e.i&&(hi.delete(e),e.i(i))}function uu(e,i,t,r){if(e&&e.o){if(hi.has(e))return;hi.add(e),De.c.push(()=>{hi.delete(e),r&&(t&&e.d(1),r())}),e.o(i)}else r&&r()}const cu={duration:0};function hu(e,i,t,r){let n=i(e,t,{direction:"both"}),s=r?0:1,a=null,l=null,u=null,c;function h(){u&&Zl(e,u)}function d(f,m){const E=f.b-s;return m*=Math.abs(E),{a:s,b:f.b,d:E,duration:m,start:f.start,end:f.start+m,group:f.group}}function p(f){const{delay:m=0,duration:E=300,easing:D=ls,tick:k=ae,css:M}=n||cu,O={start:Ul()+m,b:f};f||(O.group=De,De.r+=1),"inert"in e&&(f?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||l?l=O:(M&&(h(),u=Bo(e,s,f,E,m,D,M)),f&&k(0,1),a=d(O,E),Ut(()=>Yi(e,f,"start")),jl(I=>{if(l&&I>l.start&&(a=d(l,E),l=null,Yi(e,a.b,"start"),M&&(h(),u=Bo(e,s,a.b,a.duration,0,D,n.css))),a){if(I>=a.end)k(s=a.b,1-s),Yi(e,a.b,"end"),l||(a.b?h():--a.group.r||ve(a.group.c)),a=null;else if(I>=a.start){const q=I-a.start;s=a.a+a.d*D(q/a.duration),k(s,1-s)}}return!!(a||l)}))}return{run(f){ki(n)?su().then(()=>{n=n({direction:f?"in":"out"}),p(f)}):p(f)},end(){h(),a=l=null}}}function zo(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function du(e,i,t){const{fragment:r,after_update:o}=e.$$;r&&r.m(i,t),Ut(()=>{const n=e.$$.on_mount.map(us).filter(ki);e.$$.on_destroy?e.$$.on_destroy.push(...n):ve(n),e.$$.on_mount=[]}),o.forEach(Ut)}function fu(e,i){const t=e.$$;t.fragment!==null&&(nu(t.after_update),ve(t.on_destroy),t.fragment&&t.fragment.d(i),t.on_destroy=t.fragment=null,t.ctx=[])}function pu(e,i){e.$$.dirty[0]===-1&&(ot.push(e),ru(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}function ys(e,i,t,r,o,n,s=null,a=[-1]){const l=zt;$t(e);const u=e.$$={fragment:null,ctx:[],props:n,update:ae,not_equal:o,bound:$o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:$o(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(e,i.props||{},(h,d,...p)=>{const f=p.length?p[0]:d;return u.ctx&&o(u.ctx[h],u.ctx[h]=f)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](f),c&&pu(e,h)),d}):[],u.update(),c=!0,ve(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const h=Yl(i.target);u.fragment&&u.fragment.l(h),h.forEach(ce)}else u.fragment&&u.fragment.c();i.intro&&bs(e.$$.fragment),du(e,i.target,i.anchor),fe()}$t(l)}let vs;typeof HTMLElement=="function"&&(vs=class extends HTMLElement{constructor(i,t,r){super();me(this,"$$ctor");me(this,"$$s");me(this,"$$c");me(this,"$$cn",!1);me(this,"$$d",{});me(this,"$$r",!1);me(this,"$$p_d",{});me(this,"$$l",{});me(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(i,t,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(t),this.$$c){const o=this.$$c.$on(i,t);this.$$l_u.set(t,o)}super.addEventListener(i,t,r)}removeEventListener(i,t,r){if(super.removeEventListener(i,t,r),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(n){return()=>{let s;return{c:function(){s=H("slot"),n!=="default"&&S(s,"name",n)},m:function(u,c){_e(u,s,c)},d:function(u){u&&ce(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Xl(this);for(const n of this.$$s)n in r&&(t[n]=[i(n)]);for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=di(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ri(ii({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const s=di(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,t,r){var o;this.$$r||(i=this.$$g_p(i),this.$$d[i]=di(i,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===i||!this.$$p_d[t].attribute&&t.toLowerCase()===i)||i}});function di(e,i,t,r){var n;const o=(n=t[e])==null?void 0:n.type;if(i=o==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!t[e])return i;if(r==="toAttribute")switch(o){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i==null?null:i;default:return i}else switch(o){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function ws(e,i,t,r,o,n){let s=class extends vs{constructor(){super(e,t,o),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map(a=>(i[a].attribute||a).toLowerCase())}};return Object.keys(i).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=di(a,l,i),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}class xs{constructor(){me(this,"$$");me(this,"$$set")}$destroy(){fu(this,1),this.$destroy=ae}$on(i,t){if(!ki(t))return ae;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(i){this.$$set&&!$l(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const mu="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mu);/**
5
5
  * @license
6
6
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7
7
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8
- */function ye(e,i="24.5.10"){Object.defineProperty(e,"version",{get(){return i}});const t=customElements.get(e.is);if(!t)customElements.define(e.is,e);else{const r=t.version;r&&e.version&&r===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
8
+ */function Ae(e,i="24.5.10"){Object.defineProperty(e,"version",{get(){return i}});const t=customElements.get(e.is);if(!t)customElements.define(e.is,e);else{const r=t.version;r&&e.version&&r===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
9
9
  * @license
10
10
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11
11
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12
- */class du extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ye(du);/**
12
+ */class _u extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Ae(_u);/**
13
13
  * @license
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
- */const ui=globalThis,ro=ui.ShadowRoot&&(ui.ShadyCSS===void 0||ui.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oo=Symbol(),Bo=new WeakMap;let no=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==oo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o;const t=this.t;if(ro&&i===void 0){const r=t!==void 0&&t.length===1;r&&(i=Bo.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Bo.set(t,i))}return i}toString(){return this.cssText}};const fu=e=>new no(typeof e=="string"?e:e+"",void 0,oo),L=(e,...i)=>{const t=e.length===1?e[0]:i.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]);return new no(t,e,oo)},vs=(e,i)=>{if(ro)e.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of i){const r=document.createElement("style"),o=ui.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,e.appendChild(r)}},Ro=ro?e=>e:e=>e instanceof CSSStyleSheet?(i=>{let t="";for(const r of i.cssRules)t+=r.cssText;return fu(t)})(e):e;/**
16
+ */const fi=globalThis,ao=fi.ShadowRoot&&(fi.ShadyCSS===void 0||fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lo=Symbol(),Uo=new WeakMap;let uo=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==lo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o;const t=this.t;if(ao&&i===void 0){const r=t!==void 0&&t.length===1;r&&(i=Uo.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Uo.set(t,i))}return i}toString(){return this.cssText}};const gu=e=>new uo(typeof e=="string"?e:e+"",void 0,lo),z=(e,...i)=>{const t=e.length===1?e[0]:i.reduce((r,o,n)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[n+1],e[0]);return new uo(t,e,lo)},Es=(e,i)=>{if(ao)e.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of i){const r=document.createElement("style"),o=fi.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,e.appendChild(r)}},jo=ao?e=>e:e=>e instanceof CSSStyleSheet?(i=>{let t="";for(const r of i.cssRules)t+=r.cssText;return gu(t)})(e):e;/**
17
17
  * @license
18
18
  * Copyright 2017 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const{is:pu,defineProperty:mu,getOwnPropertyDescriptor:_u,getOwnPropertyNames:gu,getOwnPropertySymbols:yu,getPrototypeOf:bu}=Object,ke=globalThis,zo=ke.trustedTypes,vu=zo?zo.emptyScript:"",Vi=ke.reactiveElementPolyfillSupport,Ht=(e,i)=>e,_r={toAttribute(e,i){switch(i){case Boolean:e=e?vu:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,i){let t=e;switch(i){case Boolean:t=e!==null;break;case Number:t=e===null?null:Number(e);break;case Object:case Array:try{t=JSON.parse(e)}catch(r){t=null}}return t}},ws=(e,i)=>!pu(e,i),Uo={attribute:!0,type:String,converter:_r,reflect:!1,useDefault:!1,hasChanged:ws};var Qn,es;(Qn=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(es=ke.litPropertyMetadata)!=null||(ke.litPropertyMetadata=new WeakMap);let et=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Uo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(i,r,t);o!==void 0&&mu(this.prototype,i,o)}}static getPropertyDescriptor(i,t,r){var s;const{get:o,set:n}=(s=_u(this.prototype,i))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const l=o==null?void 0:o.call(this);n==null||n.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Uo}static _$Ei(){if(this.hasOwnProperty(Ht("elementProperties")))return;const i=bu(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ht("properties"))){const t=this.properties,r=[...gu(t),...yu(t)];for(const o of r)this.createProperty(o,t[o])}const i=this[Symbol.metadata];if(i!==null){const t=litPropertyMetadata.get(i);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const t=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const o of r)t.unshift(Ro(o))}else i!==void 0&&t.push(Ro(i));return t}static _$Eu(i,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){const i=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;const i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return vs(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){var n;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:_r).toAttribute(t,r.type);this._$Em=i,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(i,t){var n,s,a;const r=this.constructor,o=r._$Eh.get(i);if(o!==void 0&&this._$Em!==o){const l=r.getPropertyOptions(o),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:_r;this._$Em=o;const c=u.fromAttribute(t,l.type);this[o]=(a=c!=null?c:(s=this._$Ej)==null?void 0:s.get(o))!=null?a:c,this._$Em=null}}requestUpdate(i,t,r,o=!1,n){var s,a;if(i!==void 0){const l=this.constructor;if(o===!1&&(n=this[i]),r!=null||(r=l.getPropertyOptions(i)),!(((s=r.hasChanged)!=null?s:ws)(n,t)||r.useDefault&&r.reflect&&n===((a=this._$Ej)==null?void 0:a.get(i))&&!this.hasAttribute(l._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:o,wrapped:n},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(l=s!=null?s:t)!=null?l:this[i]),n!==!0||s!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),o===!0&&this._$Em!==i&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(i))}_$EP(){return Et(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,a]of n){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let i=!1;const t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(t)):this._$EM()}catch(n){throw i=!1,this._$EM(),n}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(i){}firstUpdated(i){}};var ts;et.elementStyles=[],et.shadowRootOptions={mode:"open"},et[Ht("elementProperties")]=new Map,et[Ht("finalized")]=new Map,Vi==null||Vi({ReactiveElement:et}),((ts=ke.reactiveElementVersions)!=null?ts:ke.reactiveElementVersions=[]).push("2.1.2");/**
20
+ */const{is:bu,defineProperty:yu,getOwnPropertyDescriptor:vu,getOwnPropertyNames:wu,getOwnPropertySymbols:xu,getPrototypeOf:Eu}=Object,$e=globalThis,Vo=$e.trustedTypes,Cu=Vo?Vo.emptyScript:"",qi=$e.reactiveElementPolyfillSupport,Ft=(e,i)=>e,vr={toAttribute(e,i){switch(i){case Boolean:e=e?Cu:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,i){let t=e;switch(i){case Boolean:t=e!==null;break;case Number:t=e===null?null:Number(e);break;case Object:case Array:try{t=JSON.parse(e)}catch(r){t=null}}return t}},Cs=(e,i)=>!bu(e,i),Go={attribute:!0,type:String,converter:vr,reflect:!1,useDefault:!1,hasChanged:Cs};var is,rs;(is=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(rs=$e.litPropertyMetadata)!=null||($e.litPropertyMetadata=new WeakMap);let nt=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Go){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(i,r,t);o!==void 0&&yu(this.prototype,i,o)}}static getPropertyDescriptor(i,t,r){var s;const{get:o,set:n}=(s=vu(this.prototype,i))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const l=o==null?void 0:o.call(this);n==null||n.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Go}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const i=Eu(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,r=[...wu(t),...xu(t)];for(const o of r)this.createProperty(o,t[o])}const i=this[Symbol.metadata];if(i!==null){const t=litPropertyMetadata.get(i);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const t=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const o of r)t.unshift(jo(o))}else i!==void 0&&t.push(jo(i));return t}static _$Eu(i,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){const i=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;const i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Es(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){var n;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:vr).toAttribute(t,r.type);this._$Em=i,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(i,t){var n,s,a;const r=this.constructor,o=r._$Eh.get(i);if(o!==void 0&&this._$Em!==o){const l=r.getPropertyOptions(o),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:vr;this._$Em=o;const c=u.fromAttribute(t,l.type);this[o]=(a=c!=null?c:(s=this._$Ej)==null?void 0:s.get(o))!=null?a:c,this._$Em=null}}requestUpdate(i,t,r,o=!1,n){var s,a;if(i!==void 0){const l=this.constructor;if(o===!1&&(n=this[i]),r!=null||(r=l.getPropertyOptions(i)),!(((s=r.hasChanged)!=null?s:Cs)(n,t)||r.useDefault&&r.reflect&&n===((a=this._$Ej)==null?void 0:a.get(i))&&!this.hasAttribute(l._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:o,wrapped:n},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(l=s!=null?s:t)!=null?l:this[i]),n!==!0||s!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),o===!0&&this._$Em!==i&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(i))}_$EP(){return St(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,a]of n){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let i=!1;const t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(t)):this._$EM()}catch(n){throw i=!1,this._$EM(),n}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(i){}firstUpdated(i){}};var os;nt.elementStyles=[],nt.shadowRootOptions={mode:"open"},nt[Ft("elementProperties")]=new Map,nt[Ft("finalized")]=new Map,qi==null||qi({ReactiveElement:nt}),((os=$e.reactiveElementVersions)!=null?os:$e.reactiveElementVersions=[]).push("2.1.2");/**
21
21
  * @license
22
22
  * Copyright 2017 Google LLC
23
23
  * SPDX-License-Identifier: BSD-3-Clause
24
- */const Lt=globalThis,jo=e=>e,_i=Lt.trustedTypes,Vo=_i?_i.createPolicy("lit-html",{createHTML:e=>e}):void 0,xs="$lit$",De=`lit$${Math.random().toFixed(9).slice(2)}$`,Es="?"+De,wu=`<${Es}>`,Ge=document,Bt=()=>Ge.createComment(""),Rt=e=>e===null||typeof e!="object"&&typeof e!="function",so=Array.isArray,xu=e=>so(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Gi=`[
25
- \f\r]`,Ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Go=/-->/g,Wo=/>/g,Fe=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
26
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Yo=/'/g,qo=/"/g,Ts=/^(?:script|style|textarea|title)$/i,ct=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Xo=new WeakMap,Be=Ge.createTreeWalker(Ge,129);function Cs(e,i){if(!so(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vo!==void 0?Vo.createHTML(i):i}const Eu=(e,i)=>{const t=e.length-1,r=[];let o,n=i===2?"<svg>":i===3?"<math>":"",s=Ct;for(let a=0;a<t;a++){const l=e[a];let u,c,h=-1,d=0;for(;d<l.length&&(s.lastIndex=d,c=s.exec(l),c!==null);)d=s.lastIndex,s===Ct?c[1]==="!--"?s=Go:c[1]!==void 0?s=Wo:c[2]!==void 0?(Ts.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Fe):c[3]!==void 0&&(s=Fe):s===Fe?c[0]===">"?(s=o!=null?o:Ct,h=-1):c[1]===void 0?h=-2:(h=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Fe:c[3]==='"'?qo:Yo):s===qo||s===Yo?s=Fe:s===Go||s===Wo?s=Ct:(s=Fe,o=void 0);const f=s===Fe&&e[a+1].startsWith("/>")?" ":"";n+=s===Ct?l+wu:h>=0?(r.push(u),l.slice(0,h)+xs+l.slice(h)+De+f):l+De+(h===-2?a:f)}return[Cs(e,n+(e[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class zt{constructor({strings:i,_$litType$:t},r){let o;this.parts=[];let n=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Eu(i,t);if(this.el=zt.createElement(u,r),Be.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Be.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(xs)){const d=c[s++],f=o.getAttribute(h).split(De),p=/([.?@])?(.*)/.exec(d);l.push({type:1,index:n,name:p[2],strings:f,ctor:p[1]==="."?Cu:p[1]==="?"?Au:p[1]==="@"?Su:Pi}),o.removeAttribute(h)}else h.startsWith(De)&&(l.push({type:6,index:n}),o.removeAttribute(h));if(Ts.test(o.tagName)){const h=o.textContent.split(De),d=h.length-1;if(d>0){o.textContent=_i?_i.emptyScript:"";for(let f=0;f<d;f++)o.append(h[f],Bt()),Be.nextNode(),l.push({type:2,index:++n});o.append(h[d],Bt())}}}else if(o.nodeType===8)if(o.data===Es)l.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(De,h+1))!==-1;)l.push({type:7,index:n}),h+=De.length-1}n++}}static createElement(i,t){const r=Ge.createElement("template");return r.innerHTML=i,r}}function ht(e,i,t=e,r){var s,a,l;if(i===ct)return i;let o=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const n=Rt(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),n===void 0?o=void 0:(o=new n(e),o._$AT(e,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(i=ht(e,o._$AS(e,i.values),o,r)),i}class Tu{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:t},parts:r}=this._$AD,o=((u=i==null?void 0:i.creationScope)!=null?u:Ge).importNode(t,!0);Be.currentNode=o;let n=Be.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Kt(n,n.nextSibling,this,i):l.type===1?c=new l.ctor(n,l.name,l.strings,this,i):l.type===6&&(c=new Pu(n,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=Be.nextNode(),s++)}return Be.currentNode=Ge,o}p(i){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}}class Kt{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this._$Cv}constructor(i,t,r,o){var n;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let i=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ht(this,i,t),Rt(i)?i===Z||i==null||i===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):i!==this._$AH&&i!==ct&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):xu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==Z&&Rt(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ge.createTextNode(i)),this._$AH=i}$(i){var n;const{values:t,_$litType$:r}=i,o=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=zt.createElement(Cs(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(t);else{const s=new Tu(o,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(i){let t=Xo.get(i.strings);return t===void 0&&Xo.set(i.strings,t=new zt(i)),t}k(i){so(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of i)o===t.length?t.push(r=new Kt(this.O(Bt()),this.O(Bt()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);i!==this._$AB;){const o=jo(i).nextSibling;jo(i).remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this._$Cv=i,(t=this._$AP)==null||t.call(this,i))}}class Pi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,o,n){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Z}_$AI(i,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)i=ht(this,i,t,0),s=!Rt(i)||i!==this._$AH&&i!==ct,s&&(this._$AH=i);else{const a=i;let l,u;for(i=n[0],l=0;l<n.length-1;l++)u=ht(this,a[r+l],t,l),u===ct&&(u=this._$AH[l]),s||(s=!Rt(u)||u!==this._$AH[l]),u===Z?i=Z:i!==Z&&(i+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}s&&!o&&this.j(i)}j(i){i===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Cu extends Pi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===Z?void 0:i}}class Au extends Pi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==Z)}}class Su extends Pi{constructor(i,t,r,o,n){super(i,t,r,o,n),this.type=5}_$AI(i,t=this){var s;if((i=(s=ht(this,i,t,0))!=null?s:Z)===ct)return;const r=this._$AH,o=i===Z&&r!==Z||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,n=i!==Z&&(r===Z||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class Pu{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){ht(this,i)}}const Wi=Lt.litHtmlPolyfillSupport;var is;Wi==null||Wi(zt,Kt),((is=Lt.litHtmlVersions)!=null?is:Lt.litHtmlVersions=[]).push("3.3.2");const Du=(e,i,t)=>{var n,s;const r=(n=t==null?void 0:t.renderBefore)!=null?n:i;let o=r._$litPart$;if(o===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=o=new Kt(i.insertBefore(Bt(),a),a,void 0,t!=null?t:{})}return o._$AI(e),o};/**
24
+ */const Bt=globalThis,Wo=e=>e,vi=Bt.trustedTypes,Yo=vi?vi.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ts="$lit$",Ie=`lit$${Math.random().toFixed(9).slice(2)}$`,As="?"+Ie,Tu=`<${As}>`,qe=document,jt=()=>qe.createComment(""),Vt=e=>e===null||typeof e!="object"&&typeof e!="function",co=Array.isArray,Au=e=>co(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xi=`[
25
+ \f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qo=/-->/g,Xo=/>/g,Ue=RegExp(`>|${Xi}(?:([^\\s"'>=/]+)(${Xi}*=${Xi}*(?:[^
26
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ko=/'/g,Jo=/"/g,Ss=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),Zo=new WeakMap,je=qe.createTreeWalker(qe,129);function Ps(e,i){if(!co(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yo!==void 0?Yo.createHTML(i):i}const Su=(e,i)=>{const t=e.length-1,r=[];let o,n=i===2?"<svg>":i===3?"<math>":"",s=Dt;for(let a=0;a<t;a++){const l=e[a];let u,c,h=-1,d=0;for(;d<l.length&&(s.lastIndex=d,c=s.exec(l),c!==null);)d=s.lastIndex,s===Dt?c[1]==="!--"?s=qo:c[1]!==void 0?s=Xo:c[2]!==void 0?(Ss.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Ue):c[3]!==void 0&&(s=Ue):s===Ue?c[0]===">"?(s=o!=null?o:Dt,h=-1):c[1]===void 0?h=-2:(h=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ue:c[3]==='"'?Jo:Ko):s===Jo||s===Ko?s=Ue:s===qo||s===Xo?s=Dt:(s=Ue,o=void 0);const p=s===Ue&&e[a+1].startsWith("/>")?" ":"";n+=s===Dt?l+Tu:h>=0?(r.push(u),l.slice(0,h)+Ts+l.slice(h)+Ie+p):l+Ie+(h===-2?a:p)}return[Ps(e,n+(e[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class Gt{constructor({strings:i,_$litType$:t},r){let o;this.parts=[];let n=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Su(i,t);if(this.el=Gt.createElement(u,r),je.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=je.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(Ts)){const d=c[s++],p=o.getAttribute(h).split(Ie),f=/([.?@])?(.*)/.exec(d);l.push({type:1,index:n,name:f[2],strings:p,ctor:f[1]==="."?Du:f[1]==="?"?Ou:f[1]==="@"?ku:Mi}),o.removeAttribute(h)}else h.startsWith(Ie)&&(l.push({type:6,index:n}),o.removeAttribute(h));if(Ss.test(o.tagName)){const h=o.textContent.split(Ie),d=h.length-1;if(d>0){o.textContent=vi?vi.emptyScript:"";for(let p=0;p<d;p++)o.append(h[p],jt()),je.nextNode(),l.push({type:2,index:++n});o.append(h[d],jt())}}}else if(o.nodeType===8)if(o.data===As)l.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Ie,h+1))!==-1;)l.push({type:7,index:n}),h+=Ie.length-1}n++}}static createElement(i,t){const r=qe.createElement("template");return r.innerHTML=i,r}}function mt(e,i,t=e,r){var s,a,l;if(i===pt)return i;let o=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const n=Vt(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),n===void 0?o=void 0:(o=new n(e),o._$AT(e,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(i=mt(e,o._$AS(e,i.values),o,r)),i}class Pu{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:t},parts:r}=this._$AD,o=((u=i==null?void 0:i.creationScope)!=null?u:qe).importNode(t,!0);je.currentNode=o;let n=je.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new ei(n,n.nextSibling,this,i):l.type===1?c=new l.ctor(n,l.name,l.strings,this,i):l.type===6&&(c=new Mu(n,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(n=je.nextNode(),s++)}return je.currentNode=qe,o}p(i){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}}class ei{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this._$Cv}constructor(i,t,r,o){var n;this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let i=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=mt(this,i,t),Vt(i)?i===ee||i==null||i===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):i!==this._$AH&&i!==pt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Au(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==ee&&Vt(this._$AH)?this._$AA.nextSibling.data=i:this.T(qe.createTextNode(i)),this._$AH=i}$(i){var n;const{values:t,_$litType$:r}=i,o=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=Gt.createElement(Ps(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(t);else{const s=new Pu(o,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(i){let t=Zo.get(i.strings);return t===void 0&&Zo.set(i.strings,t=new Gt(i)),t}k(i){co(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of i)o===t.length?t.push(r=new ei(this.O(jt()),this.O(jt()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);i!==this._$AB;){const o=Wo(i).nextSibling;Wo(i).remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this._$Cv=i,(t=this._$AP)==null||t.call(this,i))}}class Mi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,o,n){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ee}_$AI(i,t=this,r,o){const n=this.strings;let s=!1;if(n===void 0)i=mt(this,i,t,0),s=!Vt(i)||i!==this._$AH&&i!==pt,s&&(this._$AH=i);else{const a=i;let l,u;for(i=n[0],l=0;l<n.length-1;l++)u=mt(this,a[r+l],t,l),u===pt&&(u=this._$AH[l]),s||(s=!Vt(u)||u!==this._$AH[l]),u===ee?i=ee:i!==ee&&(i+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}s&&!o&&this.j(i)}j(i){i===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Du extends Mi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===ee?void 0:i}}class Ou extends Mi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==ee)}}class ku extends Mi{constructor(i,t,r,o,n){super(i,t,r,o,n),this.type=5}_$AI(i,t=this){var s;if((i=(s=mt(this,i,t,0))!=null?s:ee)===pt)return;const r=this._$AH,o=i===ee&&r!==ee||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,n=i!==ee&&(r===ee||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class Mu{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){mt(this,i)}}const Ki=Bt.litHtmlPolyfillSupport;var ns;Ki==null||Ki(Gt,ei),((ns=Bt.litHtmlVersions)!=null?ns:Bt.litHtmlVersions=[]).push("3.3.2");const Iu=(e,i,t)=>{var n,s;const r=(n=t==null?void 0:t.renderBefore)!=null?n:i;let o=r._$litPart$;if(o===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=o=new ei(i.insertBefore(jt(),a),a,void 0,t!=null?t:{})}return o._$AI(e),o};/**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const Ue=globalThis;class nt extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const i=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Du(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return ct}}var rs;nt._$litElement$=!0,nt.finalized=!0,(rs=Ue.litElementHydrateSupport)==null||rs.call(Ue,{LitElement:nt});const Yi=Ue.litElementPolyfillSupport;Yi==null||Yi({LitElement:nt});var os;((os=Ue.litElementVersions)!=null?os:Ue.litElementVersions=[]).push("4.2.2");/**
30
+ */const We=globalThis;class ct extends nt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const i=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Iu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return pt}}var ss;ct._$litElement$=!0,ct.finalized=!0,(ss=We.litElementHydrateSupport)==null||ss.call(We,{LitElement:ct});const Ji=We.litElementPolyfillSupport;Ji==null||Ji({LitElement:ct});var as;((as=We.litElementVersions)!=null?as:We.litElementVersions=[]).push("4.2.2");/**
31
31
  * @license
32
32
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
33
33
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
34
- */const Ou=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,o){super.attributeChangedCallback(t,r,o),t==="theme"&&this._set_theme(o)}};/**
34
+ */const Nu=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,o){super.attributeChangedCallback(t,r,o),t==="theme"&&this._set_theme(o)}};/**
35
35
  * @license
36
36
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
37
37
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
38
- */const As=[],gr=new Set,ao=new Set;function Ss(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function ku(e){return Ss(customElements.get(e))}function Mu(e=[]){return[e].flat(1/0).filter(i=>i instanceof no?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ps(e,i){return(e||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(i))}function Ds(e){return e.map(i=>i.cssText).join(`
39
- `)}const gi="vaadin-themable-mixin-style";function Iu(e,i){const t=document.createElement("style");t.id=gi,t.textContent=Ds(e),i.content.appendChild(t)}function Nu(e){if(!e.shadowRoot)return;const i=e.constructor;if(e instanceof nt)[...e.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),vs(e.shadowRoot,i.elementStyles);else{const t=e.shadowRoot.getElementById(gi),r=i.prototype._template;t.textContent=r.content.getElementById(gi).textContent}}function Hu(e){gr.forEach(i=>{const t=i.deref();t instanceof e?Nu(t):t||gr.delete(i)})}function Os(e){if(e.prototype instanceof nt)e.elementStyles=e.finalizeStyles(e.styles);else{const i=e.prototype._template;i.content.getElementById(gi).textContent=Ds(e.getStylesForThis())}ao.forEach(i=>{const t=customElements.get(i);t!==e&&t.prototype instanceof e&&Os(t)})}function Lu(e,i){const t=e.__themes;return!t||!i?!1:t.some(r=>r.styles.some(o=>i.some(n=>n.cssText===o.cssText)))}function Y(e,i,t={}){i=Mu(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,i,t):As.push({themeFor:e,styles:i,include:t.include,moduleId:t.moduleId}),e&&ao.forEach(r=>{if(Ps(e,r)&&ku(r)){const o=customElements.get(r);Lu(o,i)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Os(o),Hu(o)}})}function yr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():As}function Fu(e=""){let i=0;return e.startsWith("lumo-")||e.startsWith("material-")?i=1:e.startsWith("vaadin-")&&(i=2),i}function ks(e){const i=[];return e.include&&[].concat(e.include).forEach(t=>{const r=yr().find(o=>o.moduleId===t);r?i.push(...ks(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),i}function $u(e){const i=`${e}-default-theme`,t=yr().filter(r=>r.moduleId!==i&&Ps(r.themeFor,e)).map(r=>Qt(Zt({},r),{styles:[...ks(r),...r.styles],includePriority:Fu(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:yr().filter(r=>r.moduleId===i)}const We=e=>class extends Ou(e){constructor(){super(),gr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ao.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Ss(this)||Iu(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=e.__themes||[],r=Object.getPrototypeOf(this.prototype),o=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...o,...$u(this.is)];const n=this.__themes.flatMap(s=>s.styles);return n.filter((s,a)=>a===n.lastIndexOf(s))}};/**
38
+ */const Ds=[],wr=new Set,ho=new Set;function Os(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function Hu(e){return Os(customElements.get(e))}function Lu(e=[]){return[e].flat(1/0).filter(i=>i instanceof uo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ks(e,i){return(e||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(i))}function Ms(e){return e.map(i=>i.cssText).join(`
39
+ `)}const wi="vaadin-themable-mixin-style";function $u(e,i){const t=document.createElement("style");t.id=wi,t.textContent=Ms(e),i.content.appendChild(t)}function Fu(e){if(!e.shadowRoot)return;const i=e.constructor;if(e instanceof ct)[...e.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Es(e.shadowRoot,i.elementStyles);else{const t=e.shadowRoot.getElementById(wi),r=i.prototype._template;t.textContent=r.content.getElementById(wi).textContent}}function Bu(e){wr.forEach(i=>{const t=i.deref();t instanceof e?Fu(t):t||wr.delete(i)})}function Is(e){if(e.prototype instanceof ct)e.elementStyles=e.finalizeStyles(e.styles);else{const i=e.prototype._template;i.content.getElementById(wi).textContent=Ms(e.getStylesForThis())}ho.forEach(i=>{const t=customElements.get(i);t!==e&&t.prototype instanceof e&&Is(t)})}function Ru(e,i){const t=e.__themes;return!t||!i?!1:t.some(r=>r.styles.some(o=>i.some(n=>n.cssText===o.cssText)))}function Z(e,i,t={}){i=Lu(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,i,t):Ds.push({themeFor:e,styles:i,include:t.include,moduleId:t.moduleId}),e&&ho.forEach(r=>{if(ks(e,r)&&Hu(r)){const o=customElements.get(r);Ru(o,i)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Is(o),Bu(o)}})}function xr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ds}function zu(e=""){let i=0;return e.startsWith("lumo-")||e.startsWith("material-")?i=1:e.startsWith("vaadin-")&&(i=2),i}function Ns(e){const i=[];return e.include&&[].concat(e.include).forEach(t=>{const r=xr().find(o=>o.moduleId===t);r?i.push(...Ns(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),i}function Uu(e){const i=`${e}-default-theme`,t=xr().filter(r=>r.moduleId!==i&&ks(r.themeFor,e)).map(r=>ri(ii({},r),{styles:[...Ns(r),...r.styles],includePriority:zu(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:xr().filter(r=>r.moduleId===i)}const Xe=e=>class extends Nu(e){constructor(){super(),wr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ho.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Os(this)||$u(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=e.__themes||[],r=Object.getPrototypeOf(this.prototype),o=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...o,...Uu(this.is)];const n=this.__themes.flatMap(s=>s.styles);return n.filter((s,a)=>a===n.lastIndexOf(s))}};/**
40
40
  * @license
41
41
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
42
42
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
43
- */const Bu=(e,...i)=>{const t=document.createElement("style");t.id=e,t.textContent=i.map(r=>r.toString()).join(`
44
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},yt=(e,...i)=>{Bu(`lumo-${e}`,i)};/**
43
+ */const ju=(e,...i)=>{const t=document.createElement("style");t.id=e,t.textContent=i.map(r=>r.toString()).join(`
44
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},xt=(e,...i)=>{ju(`lumo-${e}`,i)};/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const Ru=L`
48
+ */const Vu=z`
49
49
  :host {
50
50
  --lumo-size-xs: 1.625rem;
51
51
  --lumo-size-s: 1.875rem;
@@ -60,11 +60,11 @@
60
60
  /* For backwards compatibility */
61
61
  --lumo-icon-size: var(--lumo-icon-size-m);
62
62
  }
63
- `;yt("sizing-props",Ru);/**
63
+ `;xt("sizing-props",Vu);/**
64
64
  * @license
65
65
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
66
66
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
67
- */const zu=L`
67
+ */const Gu=z`
68
68
  :host {
69
69
  /* Square */
70
70
  --lumo-space-xs: 0.25rem;
@@ -87,11 +87,11 @@
87
87
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
88
88
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
89
89
  }
90
- `;yt("spacing-props",zu);/**
90
+ `;xt("spacing-props",Gu);/**
91
91
  * @license
92
92
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
93
93
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
94
- */const Uu=L`
94
+ */const Wu=z`
95
95
  :host {
96
96
  /* Border radius */
97
97
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -108,7 +108,7 @@
108
108
  /* Clickable element cursor */
109
109
  --lumo-clickable-cursor: default;
110
110
  }
111
- `;L`
111
+ `;z`
112
112
  html {
113
113
  /* Button */
114
114
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -191,11 +191,11 @@
191
191
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
192
192
  --vaadin-input-field-value-font-weight: 500;
193
193
  }
194
- `;yt("style-props",Uu);/**
194
+ `;xt("style-props",Wu);/**
195
195
  * @license
196
196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
197
197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
198
- */const ju=L`
198
+ */const Yu=z`
199
199
  :host {
200
200
  /* Base (background) */
201
201
  --lumo-base-color: #fff;
@@ -280,7 +280,7 @@
280
280
  --lumo-disabled-text-color: GrayText;
281
281
  }
282
282
  }
283
- `;yt("color-props",ju);const Vu=L`
283
+ `;xt("color-props",Yu);const qu=z`
284
284
  [theme~='dark'] {
285
285
  /* Base (background) */
286
286
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -398,11 +398,11 @@
398
398
  pre code {
399
399
  background: transparent;
400
400
  }
401
- `;Y("",Vu,{moduleId:"lumo-color"});/**
401
+ `;Z("",qu,{moduleId:"lumo-color"});/**
402
402
  * @license
403
403
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
404
404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
405
- */const Gu=L`
405
+ */const Xu=z`
406
406
  :host {
407
407
  /* prettier-ignore */
408
408
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -422,7 +422,7 @@
422
422
  --lumo-line-height-s: 1.375;
423
423
  --lumo-line-height-m: 1.625;
424
424
  }
425
- `,Wu=L`
425
+ `,Ku=z`
426
426
  body,
427
427
  :host {
428
428
  font-family: var(--lumo-font-family);
@@ -514,11 +514,11 @@
514
514
  border-left: none;
515
515
  border-right: 2px solid var(--lumo-contrast-30pct);
516
516
  }
517
- `;Y("",Wu,{moduleId:"lumo-typography"});yt("typography-props",Gu);/**
517
+ `;Z("",Ku,{moduleId:"lumo-typography"});xt("typography-props",Xu);/**
518
518
  * @license
519
519
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
520
520
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
521
- */const Ms=L`
521
+ */const Hs=z`
522
522
  :host {
523
523
  top: var(--lumo-space-m);
524
524
  right: var(--lumo-space-m);
@@ -583,11 +583,11 @@
583
583
  opacity: 1;
584
584
  }
585
585
  }
586
- `;Y("",Ms,{moduleId:"lumo-overlay"});/**
586
+ `;Z("",Hs,{moduleId:"lumo-overlay"});/**
587
587
  * @license
588
588
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
589
589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
590
- */const Is=L`
590
+ */const Ls=z`
591
591
  :host([opening]),
592
592
  :host([closing]) {
593
593
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -617,7 +617,7 @@
617
617
  opacity: 0;
618
618
  }
619
619
  }
620
- `;Y("",Is,{moduleId:"lumo-menu-overlay-core"});const Yu=L`
620
+ `;Z("",Ls,{moduleId:"lumo-menu-overlay-core"});const Ju=z`
621
621
  /* Small viewport (bottom sheet) styles */
622
622
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
623
623
  @media (max-width: 450px), (max-height: 450px) {
@@ -679,7 +679,7 @@
679
679
  transform: translateY(150%);
680
680
  }
681
681
  }
682
- `,Ns=[Ms,Is,Yu];Y("",Ns,{moduleId:"lumo-menu-overlay"});const qu=L`
682
+ `,$s=[Hs,Ls,Ju];Z("",$s,{moduleId:"lumo-menu-overlay"});const Zu=z`
683
683
  [part='overlay'] {
684
684
  /*
685
685
  Width:
@@ -724,7 +724,7 @@
724
724
  max-height: 70vh;
725
725
  }
726
726
  }
727
- `;Y("vaadin-date-picker-overlay",[Ns,qu],{moduleId:"lumo-date-picker-overlay"});const Xu=L`
727
+ `;Z("vaadin-date-picker-overlay",[$s,Zu],{moduleId:"lumo-date-picker-overlay"});const Qu=z`
728
728
  :host {
729
729
  /* Sizing */
730
730
  --lumo-button-size: var(--lumo-size-m);
@@ -1000,7 +1000,7 @@
1000
1000
  margin-left: 0;
1001
1001
  margin-right: 0;
1002
1002
  }
1003
- `;Y("vaadin-button",Xu,{moduleId:"lumo-button"});Y("vaadin-date-picker-year",L`
1003
+ `;Z("vaadin-button",Qu,{moduleId:"lumo-button"});Z("vaadin-date-picker-year",z`
1004
1004
  :host([current]) [part='year-number'] {
1005
1005
  color: var(--lumo-primary-text-color);
1006
1006
  }
@@ -1024,7 +1024,7 @@
1024
1024
  color: var(--lumo-disabled-text-color);
1025
1025
  content: '\\2022';
1026
1026
  }
1027
- `,{moduleId:"lumo-date-picker-year"});Y("vaadin-date-picker-overlay-content",L`
1027
+ `,{moduleId:"lumo-date-picker-year"});Z("vaadin-date-picker-overlay-content",z`
1028
1028
  :host {
1029
1029
  position: relative;
1030
1030
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1174,7 +1174,7 @@
1174
1174
  padding-left: 50px;
1175
1175
  }
1176
1176
  }
1177
- `,{moduleId:"lumo-date-picker-overlay-content"});Y("vaadin-month-calendar",L`
1177
+ `,{moduleId:"lumo-date-picker-overlay-content"});Z("vaadin-month-calendar",z`
1178
1178
  :host {
1179
1179
  -moz-user-select: none;
1180
1180
  -webkit-user-select: none;
@@ -1321,7 +1321,7 @@
1321
1321
  :host([disabled]) * {
1322
1322
  color: var(--lumo-disabled-text-color) !important;
1323
1323
  }
1324
- `,{moduleId:"lumo-month-calendar"});Y("vaadin-input-container",L`
1324
+ `,{moduleId:"lumo-month-calendar"});Z("vaadin-input-container",z`
1325
1325
  :host {
1326
1326
  background: var(--_background);
1327
1327
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1503,7 +1503,7 @@
1503
1503
  * @license
1504
1504
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1505
1505
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1506
- */const Ku=L`
1506
+ */const ec=z`
1507
1507
  @font-face {
1508
1508
  font-family: 'lumo-icons';
1509
1509
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -1556,11 +1556,11 @@
1556
1556
  --lumo-icons-upload: '\\ea29';
1557
1557
  --lumo-icons-user: '\\ea2a';
1558
1558
  }
1559
- `;yt("font-icons",Ku);/**
1559
+ `;xt("font-icons",ec);/**
1560
1560
  * @license
1561
1561
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1562
1562
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1563
- */const Hs=L`
1563
+ */const Fs=z`
1564
1564
  [part$='button'] {
1565
1565
  flex: none;
1566
1566
  width: 1em;
@@ -1587,11 +1587,11 @@
1587
1587
  font-family: 'lumo-icons';
1588
1588
  display: block;
1589
1589
  }
1590
- `;Y("",Hs,{moduleId:"lumo-field-button"});/**
1590
+ `;Z("",Fs,{moduleId:"lumo-field-button"});/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */const Ju=L`
1594
+ */const tc=z`
1595
1595
  :host {
1596
1596
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1597
1597
  }
@@ -1651,7 +1651,7 @@
1651
1651
  * @license
1652
1652
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
- */const Ls=L`
1654
+ */const Bs=z`
1655
1655
  [part='label'] {
1656
1656
  align-self: flex-start;
1657
1657
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1763,11 +1763,11 @@
1763
1763
  margin-left: 0;
1764
1764
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1765
1765
  }
1766
- `;Y("",Ls,{moduleId:"lumo-required-field"});/**
1766
+ `;Z("",Bs,{moduleId:"lumo-required-field"});/**
1767
1767
  * @license
1768
1768
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1769
1769
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1770
- */const Zu=L`
1770
+ */const ic=z`
1771
1771
  :host {
1772
1772
  --lumo-text-field-size: var(--lumo-size-m);
1773
1773
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1898,7 +1898,7 @@
1898
1898
  [part='clear-button']::before {
1899
1899
  content: var(--lumo-icons-cross);
1900
1900
  }
1901
- `,Fs=[Ls,Hs,Ju,Zu];Y("",Fs,{moduleId:"lumo-input-field-shared-styles"});const Qu=L`
1901
+ `,Rs=[Bs,Fs,tc,ic];Z("",Rs,{moduleId:"lumo-input-field-shared-styles"});const rc=z`
1902
1902
  [part='toggle-button']::before {
1903
1903
  content: var(--lumo-icons-calendar);
1904
1904
  }
@@ -1920,7 +1920,7 @@
1920
1920
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1921
1921
  --_lumo-text-field-overflow-mask-image: none;
1922
1922
  }
1923
- `;Y("vaadin-date-picker",[Fs,Qu],{moduleId:"lumo-date-picker"});/**
1923
+ `;Z("vaadin-date-picker",[Rs,rc],{moduleId:"lumo-date-picker"});/**
1924
1924
  @license
1925
1925
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1926
1926
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1936,7 +1936,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1936
1936
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1937
1937
  Code distributed by Google as part of the polymer project is also
1938
1938
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1939
- */let ec=/(url\()([^)]*)(\))/g,tc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ei,ue;function Ft(e,i){if(e&&tc.test(e)||e==="//")return e;if(ei===void 0){ei=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ei=t.href==="http://a/c%20d"}catch(t){}}if(i||(i=document.baseURI||window.location.href),ei)try{return new URL(e,i).href}catch(t){return e}return ue||(ue=document.implementation.createHTMLDocument("temp"),ue.base=ue.createElement("base"),ue.head.appendChild(ue.base),ue.anchor=ue.createElement("a"),ue.body.appendChild(ue.anchor)),ue.base.href=i,ue.anchor.href=e,ue.anchor.href||e}function lo(e,i){return e.replace(ec,function(t,r,o,n){return r+"'"+Ft(o.replace(/["']/g,""),i)+"'"+n})}function uo(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
1939
+ */let oc=/(url\()([^)]*)(\))/g,nc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,oi,de;function Rt(e,i){if(e&&nc.test(e)||e==="//")return e;if(oi===void 0){oi=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",oi=t.href==="http://a/c%20d"}catch(t){}}if(i||(i=document.baseURI||window.location.href),oi)try{return new URL(e,i).href}catch(t){return e}return de||(de=document.implementation.createHTMLDocument("temp"),de.base=de.createElement("base"),de.head.appendChild(de.base),de.anchor=de.createElement("a"),de.body.appendChild(de.anchor)),de.base.href=i,de.anchor.href=e,de.anchor.href||e}function fo(e,i){return e.replace(oc,function(t,r,o,n){return r+"'"+Rt(o.replace(/["']/g,""),i)+"'"+n})}function po(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
1940
1940
  @license
1941
1941
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1942
1942
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1944,7 +1944,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1944
1944
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1945
1945
  Code distributed by Google as part of the polymer project is also
1946
1946
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1947
- */const $s=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const ic=$s&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[e],i.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let rc=window.Polymer&&window.Polymer.rootPath||uo(document.baseURI||window.location.href),yi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let bi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,oc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Bs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Rs=window.Polymer&&window.Polymer.legacyWarnings||!1,nc=window.Polymer&&window.Polymer.syncInitialRender||!1,br=window.Polymer&&window.Polymer.legacyUndefined||!1,sc=window.Polymer&&window.Polymer.orderedComputed||!1,Ko=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ac=window.Polymer&&window.Polymer.fastDomIf||!1,Jo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let lc=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1947
+ */const zs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const sc=zs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[e],i.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let ac=window.Polymer&&window.Polymer.rootPath||po(document.baseURI||window.location.href),xi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ei=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,lc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Us=window.Polymer&&window.Polymer.legacyOptimizations||!1,js=window.Polymer&&window.Polymer.legacyWarnings||!1,uc=window.Polymer&&window.Polymer.syncInitialRender||!1,Er=window.Polymer&&window.Polymer.legacyUndefined||!1,cc=window.Polymer&&window.Polymer.orderedComputed||!1,Qo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,hc=window.Polymer&&window.Polymer.fastDomIf||!1,en=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let dc=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1948
1948
  @license
1949
1949
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1950
1950
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1952,7 +1952,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1952
1952
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1953
1953
  Code distributed by Google as part of the polymer project is also
1954
1954
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1955
- */let uc=0;const X=function(e){let i=e.__mixinApplications;i||(i=new WeakMap,e.__mixinApplications=i);let t=uc++;function r(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=i,a=s.get(o);if(!a){a=e(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1955
+ */let fc=0;const Q=function(e){let i=e.__mixinApplications;i||(i=new WeakMap,e.__mixinApplications=i);let t=fc++;function r(o){let n=o.__mixinSet;if(n&&n[t])return o;let s=i,a=s.get(o);if(!a){a=e(o),s.set(o,a);let l=Object.create(a.__mixinSet||n||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1956
1956
  @license
1957
1957
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1958
1958
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1960,7 +1960,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1960
1960
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1961
1961
  Code distributed by Google as part of the polymer project is also
1962
1962
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1963
- */let co={},zs={};function Zo(e,i){co[e]=zs[e.toLowerCase()]=i}function Qo(e){return co[e]||zs[e.toLowerCase()]}function cc(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Ut extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,t){if(i){let r=Qo(i);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(i,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ft(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=uo(t)}return this.__assetpath}register(i){if(i=i||this.id,i){if(bi&&Qo(i)!==void 0)throw Zo(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,Zo(i,this),cc(this)}}}Ut.prototype.modules=co;customElements.define("dom-module",Ut);/**
1963
+ */let mo={},Vs={};function tn(e,i){mo[e]=Vs[e.toLowerCase()]=i}function rn(e){return mo[e]||Vs[e.toLowerCase()]}function pc(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Wt extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,t){if(i){let r=rn(i);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(i,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Rt(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=po(t)}return this.__assetpath}register(i){if(i=i||this.id,i){if(Ei&&rn(i)!==void 0)throw tn(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,tn(i,this),pc(this)}}}Wt.prototype.modules=mo;customElements.define("dom-module",Wt);/**
1964
1964
  @license
1965
1965
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1966
1966
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1968,7 +1968,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1968
1968
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1969
1969
  Code distributed by Google as part of the polymer project is also
1970
1970
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1971
- */const hc="link[rel=import][type~=css]",dc="include",en="shady-unscoped";function Us(e){return Ut.import(e)}function tn(e){let i=e.body?e.body:e;const t=lo(i.textContent,e.baseURI),r=document.createElement("style");return r.textContent=t,r}function fc(e){const i=e.trim().split(/\s+/),t=[];for(let r=0;r<i.length;r++)t.push(...pc(i[r]));return t}function pc(e){const i=Us(e);if(!i)return console.warn("Could not find style data in module named",e),[];if(i._styles===void 0){const t=[];t.push(...Vs(i));const r=i.querySelector("template");r&&t.push(...js(r,i.assetpath)),i._styles=t}return i._styles}function js(e,i){if(!e._styles){const t=[],r=e.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute(dc);s&&t.push(...fc(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(n.textContent=lo(n.textContent,i)),t.push(n)}e._styles=t}return e._styles}function mc(e){let i=Us(e);return i?Vs(i):[]}function Vs(e){const i=[],t=e.querySelectorAll(hc);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const n=o.import,s=o.hasAttribute(en);if(s&&!n._unscopedStyle){const a=tn(n);a.setAttribute(en,""),n._unscopedStyle=a}else n._style||(n._style=tn(n));i.push(s?n._unscopedStyle:n._style)}}return i}/**
1971
+ */const mc="link[rel=import][type~=css]",_c="include",on="shady-unscoped";function Gs(e){return Wt.import(e)}function nn(e){let i=e.body?e.body:e;const t=fo(i.textContent,e.baseURI),r=document.createElement("style");return r.textContent=t,r}function gc(e){const i=e.trim().split(/\s+/),t=[];for(let r=0;r<i.length;r++)t.push(...bc(i[r]));return t}function bc(e){const i=Gs(e);if(!i)return console.warn("Could not find style data in module named",e),[];if(i._styles===void 0){const t=[];t.push(...Ys(i));const r=i.querySelector("template");r&&t.push(...Ws(r,i.assetpath)),i._styles=t}return i._styles}function Ws(e,i){if(!e._styles){const t=[],r=e.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let n=r[o],s=n.getAttribute(_c);s&&t.push(...gc(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(n.textContent=fo(n.textContent,i)),t.push(n)}e._styles=t}return e._styles}function yc(e){let i=Gs(e);return i?Ys(i):[]}function Ys(e){const i=[],t=e.querySelectorAll(mc);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const n=o.import,s=o.hasAttribute(on);if(s&&!n._unscopedStyle){const a=nn(n);a.setAttribute(on,""),n._unscopedStyle=a}else n._style||(n._style=nn(n));i.push(s?n._unscopedStyle:n._style)}}return i}/**
1972
1972
  @license
1973
1973
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1974
1974
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1976,7 +1976,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1976
1976
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1977
1977
  Code distributed by Google as part of the polymer project is also
1978
1978
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1979
- */const ee=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;/**
1979
+ */const te=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;/**
1980
1980
  @license
1981
1981
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1982
1982
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1984,7 +1984,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1984
1984
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1985
1985
  Code distributed by Google as part of the polymer project is also
1986
1986
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1987
- */function vr(e){return e.indexOf(".")>=0}function Ye(e){let i=e.indexOf(".");return i===-1?e:e.slice(0,i)}function Gs(e,i){return e.indexOf(i+".")===0}function jt(e,i){return i.indexOf(e+".")===0}function Vt(e,i,t){return i+t.slice(e.length)}function _c(e,i){return e===i||Gs(e,i)||jt(e,i)}function kt(e){if(Array.isArray(e)){let i=[];for(let t=0;t<e.length;t++){let r=e[t].toString().split(".");for(let o=0;o<r.length;o++)i.push(r[o])}return i.join(".")}else return e}function Ws(e){return Array.isArray(e)?kt(e).split("."):e.toString().split(".")}function se(e,i,t){let r=e,o=Ws(i);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return t&&(t.path=o.join(".")),r}function rn(e,i,t){let r=e,o=Ws(i),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=t}else r[i]=t;return o.join(".")}/**
1987
+ */function Cr(e){return e.indexOf(".")>=0}function Ke(e){let i=e.indexOf(".");return i===-1?e:e.slice(0,i)}function qs(e,i){return e.indexOf(i+".")===0}function Yt(e,i){return i.indexOf(e+".")===0}function qt(e,i,t){return i+t.slice(e.length)}function vc(e,i){return e===i||qs(e,i)||Yt(e,i)}function Ht(e){if(Array.isArray(e)){let i=[];for(let t=0;t<e.length;t++){let r=e[t].toString().split(".");for(let o=0;o<r.length;o++)i.push(r[o])}return i.join(".")}else return e}function Xs(e){return Array.isArray(e)?Ht(e).split("."):e.toString().split(".")}function ue(e,i,t){let r=e,o=Xs(i);for(let n=0;n<o.length;n++){if(!r)return;let s=o[n];r=r[s]}return t&&(t.path=o.join(".")),r}function sn(e,i,t){let r=e,o=Xs(i),n=o[o.length-1];if(o.length>1){for(let s=0;s<o.length-1;s++){let a=o[s];if(r=r[a],!r)return}r[n]=t}else r[i]=t;return o.join(".")}/**
1988
1988
  @license
1989
1989
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1990
1990
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1992,7 +1992,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1992
1992
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1993
1993
  Code distributed by Google as part of the polymer project is also
1994
1994
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1995
- */const vi={},gc=/-[a-z]/g,yc=/([A-Z])/g;function Ys(e){return vi[e]||(vi[e]=e.indexOf("-")<0?e:e.replace(gc,i=>i[1].toUpperCase()))}function Di(e){return vi[e]||(vi[e]=e.replace(yc,"-$1").toLowerCase())}/**
1995
+ */const Ci={},wc=/-[a-z]/g,xc=/([A-Z])/g;function Ks(e){return Ci[e]||(Ci[e]=e.indexOf("-")<0?e:e.replace(wc,i=>i[1].toUpperCase()))}function Ii(e){return Ci[e]||(Ci[e]=e.replace(xc,"-$1").toLowerCase())}/**
1996
1996
  @license
1997
1997
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1998
1998
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2000,7 +2000,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2000
2000
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2001
2001
  Code distributed by Google as part of the polymer project is also
2002
2002
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2003
- */let bc=0,qs=0,st=[],vc=0,wr=!1,Xs=document.createTextNode("");new window.MutationObserver(wc).observe(Xs,{characterData:!0});function wc(){wr=!1;const e=st.length;for(let i=0;i<e;i++){let t=st[i];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}st.splice(0,e),qs+=e}const xc={after(e){return{run(i){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}}},run(e,i){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}},Ks={run(e){return wr||(wr=!0,Xs.textContent=vc++),st.push(e),bc++},cancel(e){const i=e-qs;if(i>=0){if(!st[i])throw new Error("invalid async handle: "+e);st[i]=null}}};/**
2003
+ */let Ec=0,Js=0,ht=[],Cc=0,Tr=!1,Zs=document.createTextNode("");new window.MutationObserver(Tc).observe(Zs,{characterData:!0});function Tc(){Tr=!1;const e=ht.length;for(let i=0;i<e;i++){let t=ht[i];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}ht.splice(0,e),Js+=e}const Ac={after(e){return{run(i){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}}},run(e,i){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}},Qs={run(e){return Tr||(Tr=!0,Zs.textContent=Cc++),ht.push(e),Ec++},cancel(e){const i=e-Js;if(i>=0){if(!ht[i])throw new Error("invalid async handle: "+e);ht[i]=null}}};/**
2004
2004
  @license
2005
2005
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2006
2006
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2008,7 +2008,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2008
2008
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2009
2009
  Code distributed by Google as part of the polymer project is also
2010
2010
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2011
- */const Ec=Ks,Js=X(e=>{class i extends e{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ec.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=ee(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2011
+ */const Sc=Qs,ea=Q(e=>{class i extends e{static createProperties(r){const o=this.prototype;for(let n in r)n in o||o._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(n){this._setPendingProperty(r,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,n){let s=this.__data[r],a=this._shouldPropertyChange(r,o,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=o,this.__dataPending[r]=o),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Sc.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,o=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,o,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,n)),this.__dataCounter--}_shouldPropertiesChange(r,o,n){return!!o}_propertiesChanged(r,o,n){}_shouldPropertyChange(r,o,n){return n!==o&&(n===n||o===o)}attributeChangedCallback(r,o,n,s){o!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,n,s)}_attributeToProperty(r,o,n){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(o,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,o,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,n){const s=this._serializeValue(o);(n==="class"||n==="name"||n==="slot")&&(r=te(r)),s===void 0?r.removeAttribute(n):r.setAttribute(n,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2012
2012
  @license
2013
2013
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2014
2014
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2016,7 +2016,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2016
2016
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2017
2017
  Code distributed by Google as part of the polymer project is also
2018
2018
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2019
- */const Zs={};let ti=HTMLElement.prototype;for(;ti;){let e=Object.getOwnPropertyNames(ti);for(let i=0;i<e.length;i++)Zs[e[i]]=!0;ti=Object.getPrototypeOf(ti)}const Tc=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function Cc(e,i){if(!Zs[i]){let t=e[i];t!==void 0&&(e.__data?e._setPendingProperty(i,t):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[i]=t))}}const Ac=X(e=>{const i=Js(e);class t extends i{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(Ys(o[n]))}static attributeNameForProperty(o){return Di(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Tc(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Cc(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
2019
+ */const ta={};let ni=HTMLElement.prototype;for(;ni;){let e=Object.getOwnPropertyNames(ni);for(let i=0;i<e.length;i++)ta[e[i]]=!0;ni=Object.getPrototypeOf(ni)}const Pc=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function Dc(e,i){if(!ta[i]){let t=e[i];t!==void 0&&(e.__data?e._setPendingProperty(i,t):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[i]=t))}}const Oc=Q(e=>{const i=ea(e);class t extends i{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let n=0;n<o.length;n++)this.prototype._createPropertyAccessor(Ks(o[n]))}static attributeNameForProperty(o){return Ii(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let n in o)this._setProperty(n,o[n])}_ensureAttribute(o,n){const s=this;s.hasAttribute(o)||this._valueToNodeAttribute(s,n,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pc(o))return o;try{return JSON.stringify(o)}catch(n){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,n){let s;switch(n){case Object:try{s=JSON.parse(o)}catch(a){s=o}break;case Array:try{s=JSON.parse(o)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:s=isNaN(o)?String(o):Number(o),s=new Date(s);break;default:s=super._deserializeValue(o,n);break}return s}_definePropertyAccessor(o,n){Dc(this,o),super._definePropertyAccessor(o,n)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
2020
2020
  @license
2021
2021
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2022
2022
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2024,7 +2024,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2024
2024
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2025
2025
  Code distributed by Google as part of the polymer project is also
2026
2026
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2027
- */const Sc={"dom-if":!0,"dom-repeat":!0};let on=!1,nn=!1;function Pc(){if(!on){on=!0;const e=document.createElement("textarea");e.placeholder="a",nn=e.placeholder===e.textContent}return nn}function Dc(e){Pc()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Oc=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,t,r)=>{const o=t.getAttribute(r);if(e&&r.startsWith("on-")){i.setAttribute(r,e.createScript(o,r));return}i.setAttribute(r,o)}})();function kc(e){let i=e.getAttribute("is");if(i&&Sc[i]){let t=e;for(t.removeAttribute("is"),e=t.ownerDocument.createElement(i),t.parentNode.replaceChild(e,t),e.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Oc(e,t,r),t.removeAttribute(r)}}return e}function Qs(e,i){let t=i.parentInfo&&Qs(e,i.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(i.parentIndex===o++)return r}else return e}function Mc(e,i,t,r){r.id&&(i[r.id]=t)}function Ic(e,i,t){if(t.events&&t.events.length)for(let r=0,o=t.events,n;r<o.length&&(n=o[r]);r++)e._addMethodEventListenerToNode(i,n.name,n.value,e)}function Nc(e,i,t,r){t.templateInfo&&(i._templateInfo=t.templateInfo,i._parentTemplateInfo=r)}function Hc(e,i,t){return e=e._methodHost||e,function(o){e[t]?e[t](o,o.detail):console.warn("listener method `"+t+"` not defined")}}const Lc=X(e=>{class i extends e{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),Dc(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=kc(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)s.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,u)&&(u.infoIndex=o.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let u=0,c=n.length,h;u<c&&(h=n[u]);u++){let d=l[u]=Qs(a,h);Mc(this,a.$,d,h),Nc(this,d,h,o),Ic(this,d,h)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=Hc(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return i});/**
2027
+ */const kc={"dom-if":!0,"dom-repeat":!0};let an=!1,ln=!1;function Mc(){if(!an){an=!0;const e=document.createElement("textarea");e.placeholder="a",ln=e.placeholder===e.textContent}return ln}function Ic(e){Mc()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Nc=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,t,r)=>{const o=t.getAttribute(r);if(e&&r.startsWith("on-")){i.setAttribute(r,e.createScript(o,r));return}i.setAttribute(r,o)}})();function Hc(e){let i=e.getAttribute("is");if(i&&kc[i]){let t=e;for(t.removeAttribute("is"),e=t.ownerDocument.createElement(i),t.parentNode.replaceChild(e,t),e.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Nc(e,t,r),t.removeAttribute(r)}}return e}function ia(e,i){let t=i.parentInfo&&ia(e,i.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(i.parentIndex===o++)return r}else return e}function Lc(e,i,t,r){r.id&&(i[r.id]=t)}function $c(e,i,t){if(t.events&&t.events.length)for(let r=0,o=t.events,n;r<o.length&&(n=o[r]);r++)e._addMethodEventListenerToNode(i,n.name,n.value,e)}function Fc(e,i,t,r){t.templateInfo&&(i._templateInfo=t.templateInfo,i._parentTemplateInfo=r)}function Bc(e,i,t){return e=e._methodHost||e,function(o){e[t]?e[t](o,o.detail):console.warn("listener method `"+t+"` not defined")}}const Rc=Q(e=>{class i extends e{static _parseTemplate(r,o){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!o,n.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,n){return this._parseTemplateNode(r.content,o,n)}static _parseTemplateNode(r,o,n){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,o,n)||s:a.localName==="slot"&&(o.hasInsertionPoint=!0),Ic(a),a.firstChild&&this._parseTemplateChildNodes(a,o,n),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,o,n)||s),s||n.noted}static _parseTemplateChildNodes(r,o,n){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Hc(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)s.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(o.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:n};this._parseTemplateNode(s,o,u)&&(u.infoIndex=o.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,o,n){let s=r,a=this._parseTemplate(s,o);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,o,n){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,o,n,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,o,n,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),n.events=n.events||[],n.events.push({name:s.slice(3),value:a}),!0):s==="id"?(n.id=a,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let n=o.nodeInfoList,s=o.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let u=0,c=n.length,h;u<c&&(h=n[u]);u++){let d=l[u]=ia(a,h);Lc(this,a.$,d,h),Fc(this,d,h,o),$c(this,d,h)}return a=a,a}_addMethodEventListenerToNode(r,o,n,s){s=s||r;let a=Bc(s,o,n);return this._addEventListenerToNode(r,o,a),a}_addEventListenerToNode(r,o,n){r.addEventListener(o,n)}_removeEventListenerFromNode(r,o,n){r.removeEventListener(o,n)}}return i});/**
2028
2028
  * @fileoverview
2029
2029
  * @suppress {checkPrototypalTypes}
2030
2030
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2034,7 +2034,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2034
2034
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2035
2035
  * Google as part of the polymer project is also subject to an additional IP
2036
2036
  * rights grant found at http://polymer.github.io/PATENTS.txt
2037
- */let Gt=0;const Wt=[],F={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ea="__computeInfo",Fc=/[A-Z]/;function qi(e,i,t){let r=e[i];if(!r)r=e[i]={};else if(!e.hasOwnProperty(i)&&(r=e[i]=Object.create(e[i]),t))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function Mt(e,i,t,r,o,n){if(i){let s=!1;const a=Gt++;for(let l in t){let u=o?Ye(l):l,c=i[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!o||ho(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,t,r,f.info,o,n),s=!0)}return s}return!1}function $c(e,i,t,r,o,n,s,a){let l=!1,u=s?Ye(r):r,c=i[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==t)&&(!s||ho(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(e,r,o,n,f.info,s,a),l=!0);return l}function ho(e,i){if(i){let t=i.name;return t==e||!!(i.structured&&Gs(t,e))||!!(i.wildcard&&jt(t,e))}else return!0}function sn(e,i,t,r,o){let n=typeof o.method=="string"?e[o.method]:o.method,s=o.property;n?n.call(e,e.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Bc(e,i,t,r,o){let n=e[F.NOTIFY],s,a=Gt++;for(let u in i)i[u]&&(n&&$c(e,n,a,u,t,r,o)||o&&Rc(e,u,t))&&(s=!0);let l;s&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Rc(e,i,t){let r=Ye(i);if(r!==i){let o=Di(r)+"-changed";return ta(e,o,t[i],i),!0}return!1}function ta(e,i,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),ee(e).dispatchEvent(new CustomEvent(i,{detail:o}))}function zc(e,i,t,r,o,n){let a=(n?Ye(i):i)!=i?i:null,l=a?se(e,a):e.__data[i];a&&l===void 0&&(l=t[i]),ta(e,o.eventName,l,a)}function Uc(e,i,t,r,o){let n,s=e.detail,a=s&&s.path;a?(r=Vt(t,r,a),n=s&&s.value):n=e.currentTarget[t],n=o?!n:n,(!i[F.READ_ONLY]||!i[F.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function jc(e,i,t,r,o){let n=e.__data[i];yi&&(n=yi(n,o.attrName,"attribute",e)),e._propertyToAttribute(i,o.attrName,n)}function Vc(e,i,t,r){let o=e[F.COMPUTE];if(o)if(sc){Gt++;const n=Wc(e),s=[];for(let l in i)an(l,o,s,n,r);let a;for(;a=s.shift();)ia(e,"",i,t,a)&&an(a.methodInfo,o,s,n,r);Object.assign(t,e.__dataOld),Object.assign(i,e.__dataPending),e.__dataPending=null}else{let n=i;for(;Mt(e,o,n,t,r);)Object.assign(t,e.__dataOld),Object.assign(i,e.__dataPending),n=e.__dataPending,e.__dataPending=null}}const Gc=(e,i,t)=>{let r=0,o=i.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=t.get(i[s].methodInfo)-t.get(e.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),i.splice(n,0,e)},an=(e,i,t,r,o)=>{const n=o?Ye(e):e,s=i[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Gt&&(!o||ho(e,l.trigger))&&(l.info.lastRun=Gt,Gc(l.info,t,r))}};function Wc(e){let i=e.constructor.__orderedComputedDeps;if(!i){i=new Map;const t=e[F.COMPUTE];let{counts:r,ready:o,total:n}=Yc(e),s;for(;s=o.shift();){i.set(s,i.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--n,--r[u]===0&&o.push(u)})}n!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=i}return i}function Yc(e){const i=e[ea],t={},r=e[F.COMPUTE],o=[];let n=0;for(let s in i){const a=i[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||o.push(s);return{counts:t,ready:o,total:n}}function ia(e,i,t,r,o){let n=xr(e,i,t,r,o);if(n===Wt)return!1;let s=o.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[s]?e._setPendingProperty(s,n,!0):(e[s]=n,!1)}function qc(e,i,t){let r=e.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];jt(n,i)?(o=Vt(n,s,i),e._setPendingPropertyOrPath(o,t,!0,!0)):jt(s,i)&&(o=Vt(s,n,i),e._setPendingPropertyOrPath(o,t,!0,!0))}}}function Xi(e,i,t,r,o,n,s){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),Qc(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Di(o)+"-changed",a.listenerNegate=c}let l=i.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Xc(e,i,a,c,l)}}function Xc(e,i,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=r.dependencies,s={index:o,binding:t,part:r,evaluator:e};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=oa(l),l.wildcard=!0),e._addTemplatePropertyEffect(i,l.rootProperty,{fn:Kc,info:s,trigger:l})}}}function Kc(e,i,t,r,o,n,s){let a=s[o.index],l=o.binding,u=o.part;if(n&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=t[i];i=Vt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&e._enqueueClient(a)}else{let c=o.evaluator._evaluateBinding(e,u,i,t,r,n);c!==Wt&&Jc(e,a,l,u,c)}}function Jc(e,i,t,r,o){if(o=Zc(i,o,t,r),yi&&(o=yi(o,t.target,t.kind,i)),t.kind=="attribute")e._valueToNodeAttribute(i,o,t.target);else{let n=t.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[n]?(!i[F.READ_ONLY]||!i[F.READ_ONLY][n])&&i._setPendingProperty(n,o)&&e._enqueueClient(i):e._setUnmanagedPropertyToNode(i,n,o)}}function Zc(e,i,t,r){if(t.isCompound){let o=e.__dataCompoundStorage[t.target];o[r.compoundIndex]=i,i=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(i=i==null?"":i),i}function Qc(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function eh(e,i){let{nodeList:t,nodeInfoList:r}=i;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];th(s,u),ih(s,e,u)}s.__dataHost=e}}function th(e,i){if(i.isCompound){let t=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=i.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=i.target;t[n]=o,i.literal&&i.kind=="property"&&(n==="className"&&(e=ee(e)),e[n]=i.literal)}}function ih(e,i,t){if(t.listenerEvent){let r=t.parts[0];e.addEventListener(t.listenerEvent,function(o){Uc(o,i,t.target,r.source,r.negate)})}}function ln(e,i,t,r,o,n){n=i.static||n&&(typeof n!="object"||n[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return n&&e._addPropertyEffect(i.methodName,t,{fn:r,info:s}),s}function xr(e,i,t,r,o){let n=e._methodHost||e,s=n[o.methodName];if(s){let a=e._marshalArgs(o.args,i,t);return a===Wt?Wt:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const rh=[],ra="(?:[a-zA-Z_$][\\w.:$\\-*]*)",oh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",nh="(?:'(?:[^'\\\\]|\\\\.)*')",sh='(?:"(?:[^"\\\\]|\\\\.)*")',ah="(?:"+nh+"|"+sh+")",un="(?:("+ra+"|"+oh+"|"+ah+")\\s*)",lh="(?:"+un+"(?:,\\s*"+un+")*)",uh="(?:\\(\\s*(?:"+lh+"?)\\)\\s*)",ch="("+ra+"\\s*"+uh+"?)",hh="(\\[\\[|{{)\\s*",dh="(?:]]|}})",fh="(?:(!)\\s*)?",ph=hh+fh+ch+dh,cn=new RegExp(ph,"g");function hn(e){let i="";for(let t=0;t<e.length;t++){let r=e[t].literal;i+=r||""}return i}function Ki(e){let i=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:rh};if(i[2].trim()){let o=i[2].replace(/\\,/g,"&comma;").split(",");return mh(o,r)}else return r}return null}function mh(e,i){return i.args=e.map(function(t){let r=oa(t);return r.literal||(i.static=!1),r},this),i}function oa(e){let i=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=i.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(i),t.literal=!0;break}return t.literal||(t.rootProperty=Ye(i),t.structured=vr(i),t.structured&&(t.wildcard=i.slice(-2)==".*",t.wildcard&&(t.name=i.slice(0,-2)))),t}function dn(e,i,t){let r=se(e,t);return r===void 0&&(r=i[t]),r}function na(e,i,t,r){const o={indexSplices:r};br&&!e._overrideLegacyUndefined&&(i.splices=o),e.notifyPath(t+".splices",o),e.notifyPath(t+".length",i.length),br&&!e._overrideLegacyUndefined&&(o.indexSplices=[])}function At(e,i,t,r,o,n){na(e,i,t,[{index:r,addedCount:o,removed:n,object:i,type:"splice"}])}function _h(e){return e[0].toUpperCase()+e.substring(1)}const fo=X(e=>{const i=Lc(Ac(e));class t extends i{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return F}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(St.length){let o=St[St.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 n=this[F.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==F.READ_ONLY);let a=qi(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=qi(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,F.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,F.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,F.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,F.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Ye(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=se(this,o);if(o=rn(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return qc(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=ee(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&vr(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[F.NOTIFY]&&this[F.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!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 n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[F.READ_ONLY]||!this[F.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Vc(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Mt(this,this[F.REFLECT],n,s,a),Mt(this,this[F.OBSERVE],n,s,a),l&&Bc(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[F.PROPAGATE]&&Mt(this,this[F.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(u,c)=>{Mt(this,o.propertyEffects,u,s,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,s,c)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=kt(o),n=kt(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=kt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=se(this,o,s);na(this,a,s.path,n)}get(o,n){return se(n||this,o)}set(o,n,s){s?rn(s,o,n):(!this[F.READ_ONLY]||!this[F.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=se(this,o,s),l=a.length,u=a.push(...n);return n.length&&At(this,a,s.path,l,n.length,[]),u}pop(o){let n={path:""},s=se(this,o,n),a=!!s.length,l=s.pop();return a&&At(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},u=se(this,o,l);n<0?n=u.length-Math.floor(-n):n&&(n=Math.floor(n));let c;return arguments.length===2?c=u.splice(n):c=u.splice(n,s,...a),(a.length||c.length)&&At(this,u,l.path,n,a.length,c),c}shift(o){let n={path:""},s=se(this,o,n),a=!!s.length,l=s.shift();return a&&At(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=se(this,o,s),l=a.unshift(...n);return n.length&&At(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=se(this,o,a),s=a.path}else Array.isArray(o)?s=kt(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,F.READ_ONLY),n&&(this["_set"+_h(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,F.OBSERVE,{fn:sn,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,F.OBSERVE,{fn:sn,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=Ki(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");ln(this,s,F.OBSERVE,xr,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,F.NOTIFY,{fn:zc,info:{eventName:Di(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,F.REFLECT,{fn:jc,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=Ki(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=ln(this,a,F.COMPUTE,ia,o,s);qi(this,ea)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let u=0,c=o.length;u<c;u++){let{name:h,structured:d,wildcard:f,value:p,literal:y}=o[u];if(!y)if(f){const x=jt(h,n),P=dn(a,s,x?n:h);p={path:x?n:h,value:P,base:x?se(a,h):P}}else p=d?dn(a,s,h):a[h];if(br&&!this._overrideLegacyUndefined&&p===void 0&&o.length>1)return Wt;l[u]=p}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),St.push(this);let s=super._stampTemplate(o,n);if(St.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,eh(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let u=n.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ee(ee(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,n,s){let a=i._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=hn(l)||" ",Xi(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let u=this._parseBindings(l,n);if(u){let c=a,h="property";Fc.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=hn(u);return d&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(d+=" "+o.getAttribute(a)),o.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ys(a)),Xi(this,n,s,h,a,u,d),!0}else return i._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=i._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,u=s.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";Ko&&(c||h)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let d=u.hostProps;if(ac&&c)d&&(n.hostProps=Object.assign(n.hostProps||{},d),Ko||(s.parentInfo.noted=!0));else{let f="{";for(let p in d){let y=[{mode:f,source:p,dependencies:[p],hostProp:!0}];Xi(this,n,s,"property","_host_"+p,y)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=cn.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,f="",p=-1;u=="{"&&(p=h.indexOf("::"))>0&&(f=h.substring(p+2),h=h.substring(0,p),d=!0);let y=Ki(h),x=[];if(y){let{args:P,methodName:D}=y;for(let k=0;k<P.length;k++){let O=P[k];O.literal||x.push(O)}let A=n.dynamicFns;(A&&A[D]||y.static)&&(x.push(D),y.dynamicFn=!0)}else x.push(h);s.push({source:h,mode:u,negate:c,customEvent:d,signature:y,dependencies:x,event:f}),a=cn.lastIndex}if(a&&a<o.length){let u=o.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,u){let c;return n.signature?c=xr(o,s,a,l,n.signature):s!=n.source?c=se(o,n.source):u&&vr(s)?c=se(o,s):c=o.__data[s],n.negate&&(c=!c),c}}return t}),St=[];/**
2037
+ */let Xt=0;const Kt=[],U={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ra="__computeInfo",zc=/[A-Z]/;function Zi(e,i,t){let r=e[i];if(!r)r=e[i]={};else if(!e.hasOwnProperty(i)&&(r=e[i]=Object.create(e[i]),t))for(let o in r){let n=r[o],s=r[o]=Array(n.length);for(let a=0;a<n.length;a++)s[a]=n[a]}return r}function Lt(e,i,t,r,o,n){if(i){let s=!1;const a=Xt++;for(let l in t){let u=o?Ke(l):l,c=i[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!o||_o(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(e,l,t,r,p.info,o,n),s=!0)}return s}return!1}function Uc(e,i,t,r,o,n,s,a){let l=!1,u=s?Ke(r):r,c=i[u];if(c)for(let h=0,d=c.length,p;h<d&&(p=c[h]);h++)(!p.info||p.info.lastRun!==t)&&(!s||_o(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(e,r,o,n,p.info,s,a),l=!0);return l}function _o(e,i){if(i){let t=i.name;return t==e||!!(i.structured&&qs(t,e))||!!(i.wildcard&&Yt(t,e))}else return!0}function un(e,i,t,r,o){let n=typeof o.method=="string"?e[o.method]:o.method,s=o.property;n?n.call(e,e.__data[s],r[s]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function jc(e,i,t,r,o){let n=e[U.NOTIFY],s,a=Xt++;for(let u in i)i[u]&&(n&&Uc(e,n,a,u,t,r,o)||o&&Vc(e,u,t))&&(s=!0);let l;s&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Vc(e,i,t){let r=Ke(i);if(r!==i){let o=Ii(r)+"-changed";return oa(e,o,t[i],i),!0}return!1}function oa(e,i,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),te(e).dispatchEvent(new CustomEvent(i,{detail:o}))}function Gc(e,i,t,r,o,n){let a=(n?Ke(i):i)!=i?i:null,l=a?ue(e,a):e.__data[i];a&&l===void 0&&(l=t[i]),oa(e,o.eventName,l,a)}function Wc(e,i,t,r,o){let n,s=e.detail,a=s&&s.path;a?(r=qt(t,r,a),n=s&&s.value):n=e.currentTarget[t],n=o?!n:n,(!i[U.READ_ONLY]||!i[U.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,n,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function Yc(e,i,t,r,o){let n=e.__data[i];xi&&(n=xi(n,o.attrName,"attribute",e)),e._propertyToAttribute(i,o.attrName,n)}function qc(e,i,t,r){let o=e[U.COMPUTE];if(o)if(cc){Xt++;const n=Kc(e),s=[];for(let l in i)cn(l,o,s,n,r);let a;for(;a=s.shift();)na(e,"",i,t,a)&&cn(a.methodInfo,o,s,n,r);Object.assign(t,e.__dataOld),Object.assign(i,e.__dataPending),e.__dataPending=null}else{let n=i;for(;Lt(e,o,n,t,r);)Object.assign(t,e.__dataOld),Object.assign(i,e.__dataPending),n=e.__dataPending,e.__dataPending=null}}const Xc=(e,i,t)=>{let r=0,o=i.length-1,n=-1;for(;r<=o;){const s=r+o>>1,a=t.get(i[s].methodInfo)-t.get(e.methodInfo);if(a<0)r=s+1;else if(a>0)o=s-1;else{n=s;break}}n<0&&(n=o+1),i.splice(n,0,e)},cn=(e,i,t,r,o)=>{const n=o?Ke(e):e,s=i[n];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Xt&&(!o||_o(e,l.trigger))&&(l.info.lastRun=Xt,Xc(l.info,t,r))}};function Kc(e){let i=e.constructor.__orderedComputedDeps;if(!i){i=new Map;const t=e[U.COMPUTE];let{counts:r,ready:o,total:n}=Jc(e),s;for(;s=o.shift();){i.set(s,i.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--n,--r[u]===0&&o.push(u)})}n!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=i}return i}function Jc(e){const i=e[ra],t={},r=e[U.COMPUTE],o=[];let n=0;for(let s in i){const a=i[s];n+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||o.push(s);return{counts:t,ready:o,total:n}}function na(e,i,t,r,o){let n=Ar(e,i,t,r,o);if(n===Kt)return!1;let s=o.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[s]?e._setPendingProperty(s,n,!0):(e[s]=n,!1)}function Zc(e,i,t){let r=e.__dataLinkedPaths;if(r){let o;for(let n in r){let s=r[n];Yt(n,i)?(o=qt(n,s,i),e._setPendingPropertyOrPath(o,t,!0,!0)):Yt(s,i)&&(o=qt(s,n,i),e._setPendingPropertyOrPath(o,t,!0,!0))}}}function Qi(e,i,t,r,o,n,s){t.bindings=t.bindings||[];let a={kind:r,target:o,parts:n,literal:s,isCompound:n.length!==1};if(t.bindings.push(a),rh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Ii(o)+"-changed",a.listenerNegate=c}let l=i.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Qc(e,i,a,c,l)}}function Qc(e,i,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=r.dependencies,s={index:o,binding:t,part:r,evaluator:e};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=aa(l),l.wildcard=!0),e._addTemplatePropertyEffect(i,l.rootProperty,{fn:eh,info:s,trigger:l})}}}function eh(e,i,t,r,o,n,s){let a=s[o.index],l=o.binding,u=o.part;if(n&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=t[i];i=qt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&e._enqueueClient(a)}else{let c=o.evaluator._evaluateBinding(e,u,i,t,r,n);c!==Kt&&th(e,a,l,u,c)}}function th(e,i,t,r,o){if(o=ih(i,o,t,r),xi&&(o=xi(o,t.target,t.kind,i)),t.kind=="attribute")e._valueToNodeAttribute(i,o,t.target);else{let n=t.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[n]?(!i[U.READ_ONLY]||!i[U.READ_ONLY][n])&&i._setPendingProperty(n,o)&&e._enqueueClient(i):e._setUnmanagedPropertyToNode(i,n,o)}}function ih(e,i,t,r){if(t.isCompound){let o=e.__dataCompoundStorage[t.target];o[r.compoundIndex]=i,i=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(i=i==null?"":i),i}function rh(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function oh(e,i){let{nodeList:t,nodeInfoList:r}=i;if(r.length)for(let o=0;o<r.length;o++){let n=r[o],s=t[o],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];nh(s,u),sh(s,e,u)}s.__dataHost=e}}function nh(e,i){if(i.isCompound){let t=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=i.parts,o=new Array(r.length);for(let s=0;s<r.length;s++)o[s]=r[s].literal;let n=i.target;t[n]=o,i.literal&&i.kind=="property"&&(n==="className"&&(e=te(e)),e[n]=i.literal)}}function sh(e,i,t){if(t.listenerEvent){let r=t.parts[0];e.addEventListener(t.listenerEvent,function(o){Wc(o,i,t.target,r.source,r.negate)})}}function hn(e,i,t,r,o,n){n=i.static||n&&(typeof n!="object"||n[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:o,dynamicFn:n};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return n&&e._addPropertyEffect(i.methodName,t,{fn:r,info:s}),s}function Ar(e,i,t,r,o){let n=e._methodHost||e,s=n[o.methodName];if(s){let a=e._marshalArgs(o.args,i,t);return a===Kt?Kt:s.apply(n,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const ah=[],sa="(?:[a-zA-Z_$][\\w.:$\\-*]*)",lh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",uh="(?:'(?:[^'\\\\]|\\\\.)*')",ch='(?:"(?:[^"\\\\]|\\\\.)*")',hh="(?:"+uh+"|"+ch+")",dn="(?:("+sa+"|"+lh+"|"+hh+")\\s*)",dh="(?:"+dn+"(?:,\\s*"+dn+")*)",fh="(?:\\(\\s*(?:"+dh+"?)\\)\\s*)",ph="("+sa+"\\s*"+fh+"?)",mh="(\\[\\[|{{)\\s*",_h="(?:]]|}})",gh="(?:(!)\\s*)?",bh=mh+gh+ph+_h,fn=new RegExp(bh,"g");function pn(e){let i="";for(let t=0;t<e.length;t++){let r=e[t].literal;i+=r||""}return i}function er(e){let i=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:ah};if(i[2].trim()){let o=i[2].replace(/\\,/g,"&comma;").split(",");return yh(o,r)}else return r}return null}function yh(e,i){return i.args=e.map(function(t){let r=aa(t);return r.literal||(i.static=!1),r},this),i}function aa(e){let i=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=i.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(i),t.literal=!0;break}return t.literal||(t.rootProperty=Ke(i),t.structured=Cr(i),t.structured&&(t.wildcard=i.slice(-2)==".*",t.wildcard&&(t.name=i.slice(0,-2)))),t}function mn(e,i,t){let r=ue(e,t);return r===void 0&&(r=i[t]),r}function la(e,i,t,r){const o={indexSplices:r};Er&&!e._overrideLegacyUndefined&&(i.splices=o),e.notifyPath(t+".splices",o),e.notifyPath(t+".length",i.length),Er&&!e._overrideLegacyUndefined&&(o.indexSplices=[])}function Ot(e,i,t,r,o,n){la(e,i,t,[{index:r,addedCount:o,removed:n,object:i,type:"splice"}])}function vh(e){return e[0].toUpperCase()+e.substring(1)}const go=Q(e=>{const i=Rc(Oc(e));class t extends i{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return U}_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(kt.length){let o=kt[kt.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 n=this[U.READ_ONLY];for(let s in o)(!n||!n[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=o[s])}_addPropertyEffect(o,n,s){this._createPropertyAccessor(o,n==U.READ_ONLY);let a=Zi(this,n,!0)[o];a||(a=this[n][o]=[]),a.push(s)}_removePropertyEffect(o,n,s){let a=Zi(this,n,!0)[o],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,n){let s=this[n];return!!(s&&s[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,U.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,U.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,U.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,U.COMPUTE)}_setPendingPropertyOrPath(o,n,s,a){if(a||Ke(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=ue(this,o);if(o=sn(this,o,n),!o||!super._shouldPropertyChange(o,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,n,s))return Zc(this,o,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,n,s);this[o]=n}return!1}_setUnmanagedPropertyToNode(o,n,s){(s!==o[n]||typeof s=="object")&&(n==="className"&&(o=te(o)),o[n]=s)}_setPendingProperty(o,n,s){let a=this.__dataHasPaths&&Cr(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,n,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=n:this.__data[o]=n,this.__dataPending[o]=n,(a||this[U.NOTIFY]&&this[U.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=s),!0):!1}_setProperty(o,n){this._setPendingProperty(o,n,!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 n=0;n<o.length;n++){let s=o[n];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,n){for(let s in o)(n||!this[U.READ_ONLY]||!this[U.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,n,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;qc(this,n,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,s,a),this._flushClients(),Lt(this,this[U.REFLECT],n,s,a),Lt(this,this[U.OBSERVE],n,s,a),l&&jc(this,l,n,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,n,s){this[U.PROPAGATE]&&Lt(this,this[U.PROPAGATE],o,n,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,n,s)}_runEffectsForTemplate(o,n,s,a){const l=(u,c)=>{Lt(this,o.propertyEffects,u,s,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,s,c)};o.runEffects?o.runEffects(l,n,a):l(n,a)}linkPaths(o,n){o=Ht(o),n=Ht(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=n}unlinkPaths(o){o=Ht(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,n){let s={path:""},a=ue(this,o,s);la(this,a,s.path,n)}get(o,n){return ue(n||this,o)}set(o,n,s){s?sn(s,o,n):(!this[U.READ_ONLY]||!this[U.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,n,!0)&&this._invalidateProperties()}push(o,...n){let s={path:""},a=ue(this,o,s),l=a.length,u=a.push(...n);return n.length&&Ot(this,a,s.path,l,n.length,[]),u}pop(o){let n={path:""},s=ue(this,o,n),a=!!s.length,l=s.pop();return a&&Ot(this,s,n.path,s.length,0,[l]),l}splice(o,n,s,...a){let l={path:""},u=ue(this,o,l);n<0?n=u.length-Math.floor(-n):n&&(n=Math.floor(n));let c;return arguments.length===2?c=u.splice(n):c=u.splice(n,s,...a),(a.length||c.length)&&Ot(this,u,l.path,n,a.length,c),c}shift(o){let n={path:""},s=ue(this,o,n),a=!!s.length,l=s.shift();return a&&Ot(this,s,n.path,0,0,[l]),l}unshift(o,...n){let s={path:""},a=ue(this,o,s),l=a.unshift(...n);return n.length&&Ot(this,a,s.path,0,n.length,[]),l}notifyPath(o,n){let s;if(arguments.length==1){let a={path:""};n=ue(this,o,a),s=a.path}else Array.isArray(o)?s=Ht(o):s=o;this._setPendingPropertyOrPath(s,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,n){this._addPropertyEffect(o,U.READ_ONLY),n&&(this["_set"+vh(o)]=function(s){this._setProperty(o,s)})}_createPropertyObserver(o,n,s){let a={property:o,method:n,dynamicFn:!!s};this._addPropertyEffect(o,U.OBSERVE,{fn:un,info:a,trigger:{name:o}}),s&&this._addPropertyEffect(n,U.OBSERVE,{fn:un,info:a,trigger:{name:n}})}_createMethodObserver(o,n){let s=er(o);if(!s)throw new Error("Malformed observer expression '"+o+"'");hn(this,s,U.OBSERVE,Ar,null,n)}_createNotifyingProperty(o){this._addPropertyEffect(o,U.NOTIFY,{fn:Gc,info:{eventName:Ii(o)+"-changed",property:o}})}_createReflectedProperty(o){let n=this.constructor.attributeNameForProperty(o);n[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,U.REFLECT,{fn:Yc,info:{attrName:n}})}_createComputedProperty(o,n,s){let a=er(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=hn(this,a,U.COMPUTE,na,o,s);Zi(this,ra)[o]=l}_marshalArgs(o,n,s){const a=this.__data,l=[];for(let u=0,c=o.length;u<c;u++){let{name:h,structured:d,wildcard:p,value:f,literal:m}=o[u];if(!m)if(p){const E=Yt(h,n),D=mn(a,s,E?n:h);f={path:E?n:h,value:D,base:E?ue(a,h):D}}else f=d?mn(a,s,h):a[h];if(Er&&!this._overrideLegacyUndefined&&f===void 0&&o.length>1)return Kt;l[u]=f}return l}static addPropertyEffect(o,n,s){this.prototype._addPropertyEffect(o,n,s)}static createPropertyObserver(o,n,s){this.prototype._createPropertyObserver(o,n,s)}static createMethodObserver(o,n){this.prototype._createMethodObserver(o,n)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,n){this.prototype._createReadOnlyProperty(o,n)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,n,s){this.prototype._createComputedProperty(o,n,s)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,n){let s=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(n)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=o._parentTemplateInfo||this.__templateInfo,u=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=u,u?u.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(o,n,s){let a=o.hostProps=o.hostProps||{};a[n]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[n]=l[n]||[]).push(s)}_stampTemplate(o,n){n=n||this._bindTemplate(o,!0),kt.push(this);let s=super._stampTemplate(o,n);if(kt.pop(),n.nodeList=s.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=n,oh(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(o){const n=o.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=n;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),n.nextSibling=n.previousSibling=null;let u=n.childNodes;for(let c=0;c<u.length;c++){let h=u[c];te(te(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,n,s){let a=i._parseTemplateNode.call(this,o,n,s);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,n);l&&(o.textContent=pn(l)||" ",Qi(this,n,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,n,s,a,l){let u=this._parseBindings(l,n);if(u){let c=a,h="property";zc.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=pn(u);return d&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(d+=" "+o.getAttribute(a)),o.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ks(a)),Qi(this,n,s,h,a,u,d),!0}else return i._parseTemplateNodeAttribute.call(this,o,n,s,a,l)}static _parseTemplateNestedTemplate(o,n,s){let a=i._parseTemplateNestedTemplate.call(this,o,n,s);const l=o.parentNode,u=s.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";Qo&&(c||h)&&(l.removeChild(o),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let d=u.hostProps;if(hc&&c)d&&(n.hostProps=Object.assign(n.hostProps||{},d),Qo||(s.parentInfo.noted=!0));else{let p="{";for(let f in d){let m=[{mode:p,source:f,dependencies:[f],hostProp:!0}];Qi(this,n,s,"property","_host_"+f,m)}}return a}static _parseBindings(o,n){let s=[],a=0,l;for(;(l=fn.exec(o))!==null;){l.index>a&&s.push({literal:o.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,p="",f=-1;u=="{"&&(f=h.indexOf("::"))>0&&(p=h.substring(f+2),h=h.substring(0,f),d=!0);let m=er(h),E=[];if(m){let{args:D,methodName:k}=m;for(let O=0;O<D.length;O++){let I=D[O];I.literal||E.push(I)}let M=n.dynamicFns;(M&&M[k]||m.static)&&(E.push(k),m.dynamicFn=!0)}else E.push(h);s.push({source:h,mode:u,negate:c,customEvent:d,signature:m,dependencies:E,event:p}),a=fn.lastIndex}if(a&&a<o.length){let u=o.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(o,n,s,a,l,u){let c;return n.signature?c=Ar(o,s,a,l,n.signature):s!=n.source?c=ue(o,n.source):u&&Cr(s)?c=ue(o,s):c=o.__data[s],n.negate&&(c=!c),c}}return t}),kt=[];/**
2038
2038
  @license
2039
2039
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2040
2040
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2050,7 +2050,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2050
2050
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2051
2051
  Code distributed by Google as part of the polymer project is also
2052
2052
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2053
- */function gh(e){const i={};for(let t in e){const r=e[t];i[t]=typeof r=="function"?{type:r}:r}return i}const yh=X(e=>{const i=Js(e);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=gh(a))}n.__ownProperties=s}return n.__ownProperties}class o extends i{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
2053
+ */function wh(e){const i={};for(let t in e){const r=e[t];i[t]=typeof r=="function"?{type:r}:r}return i}const xh=Q(e=>{const i=ea(e);function t(n){const s=Object.getPrototypeOf(n);return s.prototype instanceof o?s:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let s=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(s=wh(a))}n.__ownProperties=s}return n.__ownProperties}class o extends i{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
2054
2054
  * @fileoverview
2055
2055
  * @suppress {checkPrototypalTypes}
2056
2056
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2060,7 +2060,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2060
2060
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2061
2061
  * Google as part of the polymer project is also subject to an additional IP
2062
2062
  * rights grant found at http://polymer.github.io/PATENTS.txt
2063
- */const bh="3.5.2",fn=window.ShadyCSS&&window.ShadyCSS.cssBuild,vh=X(e=>{const i=yh(fo(e));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function n(l,u,c,h){if(!fn){const d=u.content.querySelectorAll("style"),f=js(u),p=mc(c),y=u.content.firstElementChild;for(let P=0;P<p.length;P++){let D=p[P];D.textContent=l._processStyleText(D.textContent,h),u.content.insertBefore(D,y)}let x=0;for(let P=0;P<f.length;P++){let D=f[P],A=d[x];A!==D?(D=D.cloneNode(!0),A.parentNode.insertBefore(D,A)):x++,D.textContent=l._processStyleText(D.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),lc&&fn&&ic){const d=u.content.querySelectorAll("style");if(d){let f="";Array.from(d).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!bi||oc)&&(u=Ut.import(l,"template"),bi&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return bh}static _finalizeClass(){i._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Bs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)o(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=uo(u.url);else{const c=Ut.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=rc,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return lo(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Ft(h):"";n(this,c,u,d),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(u){const c=ee(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),nc&&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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Ft(this.importPath)),Ft(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return Rs&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
2063
+ */const Eh="3.5.2",_n=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ch=Q(e=>{const i=xh(go(e));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function n(l,u,c,h){if(!_n){const d=u.content.querySelectorAll("style"),p=Ws(u),f=yc(c),m=u.content.firstElementChild;for(let D=0;D<f.length;D++){let k=f[D];k.textContent=l._processStyleText(k.textContent,h),u.content.insertBefore(k,m)}let E=0;for(let D=0;D<p.length;D++){let k=p[D],M=d[E];M!==k?(k=k.cloneNode(!0),M.parentNode.insertBefore(k,M)):E++,k.textContent=l._processStyleText(k.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),dc&&_n&&sc){const d=u.content.querySelectorAll("style");if(d){let p="";Array.from(d).forEach(f=>{p+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function s(l){let u=null;if(l&&(!Ei||lc)&&(u=Wt.import(l,"template"),Ei&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return Eh}static _finalizeClass(){i._finalizeClass.call(this);const u=r(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Us||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)o(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=po(u.url);else{const c=Wt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ac,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return fo(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Rt(h):"";n(this,c,u,d),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(u){const c=te(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),uc&&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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Rt(this.importPath)),Rt(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return js&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
2064
2064
  @license
2065
2065
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2066
2066
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2068,7 +2068,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2068
2068
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2069
2069
  Code distributed by Google as part of the polymer project is also
2070
2070
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2071
- */const pn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class sa{constructor(i,t){la(i,t);const r=t.reduce((o,n,s)=>o+aa(n)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function aa(e){if(e instanceof sa)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function wh(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof sa)return aa(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const qe=function(i,...t){la(i,t);const r=document.createElement("template");let o=t.reduce((n,s,a)=>n+wh(s)+i[a+1],i[0]);return pn&&(o=pn.createHTML(o)),r.innerHTML=o,r},la=(e,i)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||i.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2071
+ */const gn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class ua{constructor(i,t){ha(i,t);const r=t.reduce((o,n,s)=>o+ca(n)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function ca(e){if(e instanceof ua)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function Th(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof ua)return ca(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const Je=function(i,...t){ha(i,t);const r=document.createElement("template");let o=t.reduce((n,s,a)=>n+Th(s)+i[a+1],i[0]);return gn&&(o=gn.createHTML(o)),r.innerHTML=o,r},ha=(e,i)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||i.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2072
2072
  @license
2073
2073
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2074
2074
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2076,19 +2076,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2076
2076
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2077
2077
  Code distributed by Google as part of the polymer project is also
2078
2078
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2079
- */const Ie=vh(HTMLElement);/**
2079
+ */const Be=Ch(HTMLElement);/**
2080
2080
  * @license
2081
2081
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2082
2082
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2083
- */const we=[];function Er(e,i,t=e.getAttribute("dir")){i?e.setAttribute("dir",i):t!=null&&e.removeAttribute("dir")}function Tr(){return document.documentElement.getAttribute("dir")}function xh(){const e=Tr();we.forEach(i=>{Er(i,e)})}const Eh=new MutationObserver(xh);Eh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Oi=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Er(this,Tr(),null))}attributeChangedCallback(t,r,o){if(super.attributeChangedCallback(t,r,o),t!=="dir")return;const n=Tr(),s=o===n&&we.indexOf(this)===-1,a=!o&&r&&we.indexOf(this)===-1;s||a?(this.__subscribe(),Er(this,n,o)):o!==n&&r===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=we.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,o){o==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,o)}_attributeToProperty(t,r,o){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,o)}__subscribe(){we.includes(this)||we.push(this)}__unsubscribe(){we.includes(this)&&we.splice(we.indexOf(this),1)}};/**
2083
+ */const Se=[];function Sr(e,i,t=e.getAttribute("dir")){i?e.setAttribute("dir",i):t!=null&&e.removeAttribute("dir")}function Pr(){return document.documentElement.getAttribute("dir")}function Ah(){const e=Pr();Se.forEach(i=>{Sr(i,e)})}const Sh=new MutationObserver(Ah);Sh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ni=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Sr(this,Pr(),null))}attributeChangedCallback(t,r,o){if(super.attributeChangedCallback(t,r,o),t!=="dir")return;const n=Pr(),s=o===n&&Se.indexOf(this)===-1,a=!o&&r&&Se.indexOf(this)===-1;s||a?(this.__subscribe(),Sr(this,n,o)):o!==n&&r===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Se.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,o){o==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,o)}_attributeToProperty(t,r,o){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,o)}__subscribe(){Se.includes(this)||Se.push(this)}__unsubscribe(){Se.includes(this)&&Se.splice(Se.indexOf(this),1)}};/**
2084
2084
  * @license
2085
2085
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2086
2086
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2087
- */const Th=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2087
+ */const Ph=e=>class extends e{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2088
2088
  * @license
2089
2089
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2090
2090
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2091
- */const Ch=L`
2091
+ */const Dh=z`
2092
2092
  :host {
2093
2093
  display: flex;
2094
2094
  align-items: center;
@@ -2157,15 +2157,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2157
2157
  * @license
2158
2158
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2159
2159
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2160
- */Y("vaadin-input-container",Ch,{moduleId:"vaadin-input-container-styles"});class Ah extends Th(We(Oi(Ie))){static get is(){return"vaadin-input-container"}static get template(){return qe`
2160
+ */Z("vaadin-input-container",Dh,{moduleId:"vaadin-input-container-styles"});class Oh extends Ph(Xe(Ni(Be))){static get is(){return"vaadin-input-container"}static get template(){return Je`
2161
2161
  <slot name="prefix"></slot>
2162
2162
  <slot></slot>
2163
2163
  <slot name="suffix"></slot>
2164
- `}}ye(Ah);/**
2164
+ `}}Ae(Oh);/**
2165
2165
  * @license
2166
2166
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2167
2167
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2168
- */const Sh=L`
2168
+ */const kh=z`
2169
2169
  :host {
2170
2170
  z-index: 200;
2171
2171
  position: fixed;
@@ -2228,7 +2228,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2228
2228
  * @license
2229
2229
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2230
2230
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2231
- */let po=!1;window.addEventListener("keydown",()=>{po=!0},{capture:!0});window.addEventListener("mousedown",()=>{po=!1},{capture:!0});function Cr(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function mo(){return po}function Ph(e){const i=e.style;if(i.visibility==="hidden"||i.display==="none")return!0;const t=window.getComputedStyle(e);return t.visibility==="hidden"||t.display==="none"}function Dh(e,i){const t=Math.max(e.tabIndex,0),r=Math.max(i.tabIndex,0);return t===0||r===0?r>t:t>r}function Oh(e,i){const t=[];for(;e.length>0&&i.length>0;)Dh(e[0],i[0])?t.push(i.shift()):t.push(e.shift());return t.concat(e,i)}function Ar(e){const i=e.length;if(i<2)return e;const t=Math.ceil(i/2),r=Ar(e.slice(0,t)),o=Ar(e.slice(t));return Oh(r,o)}function ua(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function kh(e){return e.getRootNode().activeElement===e}function Mh(e){if(!ua(e))return-1;const i=e.getAttribute("tabindex")||0;return Number(i)}function ca(e,i){if(e.nodeType!==Node.ELEMENT_NODE||Ph(e))return!1;const t=e,r=Mh(t);let o=r>0;r>=0&&i.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=ca(s,i)||o}),o}function Ih(e){const i=[];return ca(e,i)?Ar(i):i}/**
2231
+ */let bo=!1;window.addEventListener("keydown",()=>{bo=!0},{capture:!0});window.addEventListener("mousedown",()=>{bo=!1},{capture:!0});function Dr(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function yo(){return bo}function Mh(e){const i=e.style;if(i.visibility==="hidden"||i.display==="none")return!0;const t=window.getComputedStyle(e);return t.visibility==="hidden"||t.display==="none"}function Ih(e,i){const t=Math.max(e.tabIndex,0),r=Math.max(i.tabIndex,0);return t===0||r===0?r>t:t>r}function Nh(e,i){const t=[];for(;e.length>0&&i.length>0;)Ih(e[0],i[0])?t.push(i.shift()):t.push(e.shift());return t.concat(e,i)}function Or(e){const i=e.length;if(i<2)return e;const t=Math.ceil(i/2),r=Or(e.slice(0,t)),o=Or(e.slice(t));return Nh(r,o)}function da(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Hh(e){return e.getRootNode().activeElement===e}function Lh(e){if(!da(e))return-1;const i=e.getAttribute("tabindex")||0;return Number(i)}function fa(e,i){if(e.nodeType!==Node.ELEMENT_NODE||Mh(e))return!1;const t=e,r=Lh(t);let o=r>0;r>=0&&i.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(s=>{o=fa(s,i)||o}),o}function $h(e){const i=[];return fa(e,i)?Or(i):i}/**
2232
2232
  @license
2233
2233
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2234
2234
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2236,63 +2236,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2236
2236
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2237
2237
  Code distributed by Google as part of the polymer project is also
2238
2238
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2239
- */let Sr=!1,Nh=[],ha=[];function Hh(){Sr=!0,requestAnimationFrame(function(){Sr=!1,Lh(Nh),setTimeout(function(){Fh(ha)})})}function Lh(e){for(;e.length;)da(e.shift())}function Fh(e){for(let i=0,t=e.length;i<t;i++)da(e.shift())}function da(e){const i=e[0],t=e[1],r=e[2];try{t.apply(i,r)}catch(o){setTimeout(()=>{throw o})}}function fa(e,i,t){Sr||Hh(),ha.push([e,i,t])}/**
2239
+ */let kr=!1,Fh=[],pa=[];function Bh(){kr=!0,requestAnimationFrame(function(){kr=!1,Rh(Fh),setTimeout(function(){zh(pa)})})}function Rh(e){for(;e.length;)ma(e.shift())}function zh(e){for(let i=0,t=e.length;i<t;i++)ma(e.shift())}function ma(e){const i=e[0],t=e[1],r=e[2];try{t.apply(i,r)}catch(o){setTimeout(()=>{throw o})}}function _a(e,i,t){kr||Bh(),pa.push([e,i,t])}/**
2240
2240
  * @license
2241
2241
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2242
2242
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2243
- */const ki=e=>e.test(navigator.userAgent),Pr=e=>e.test(navigator.platform),$h=e=>e.test(navigator.vendor);ki(/Android/u);ki(/Chrome/u)&&$h(/Google Inc/u);ki(/Firefox/u);const Bh=Pr(/^iPad/u)||Pr(/^Mac/u)&&navigator.maxTouchPoints>1,Rh=Pr(/^iPhone/u),pa=Rh||Bh;ki(/^((?!chrome|android).)*safari/iu);const zh=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
2243
+ */const Hi=e=>e.test(navigator.userAgent),Mr=e=>e.test(navigator.platform),Uh=e=>e.test(navigator.vendor);Hi(/Android/u);Hi(/Chrome/u)&&Uh(/Google Inc/u);Hi(/Firefox/u);const jh=Mr(/^iPad/u)||Mr(/^Mac/u)&&navigator.maxTouchPoints>1,Vh=Mr(/^iPhone/u),ga=Vh||jh;Hi(/^((?!chrome|android).)*safari/iu);const Gh=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
2244
2244
  * @license
2245
2245
  * Copyright (c) 2017 Anton Korzunov
2246
2246
  * SPDX-License-Identifier: MIT
2247
- */let Je=new WeakMap,ii=new WeakMap,ri={},Ji=0;const mn=e=>e&&e.nodeType===Node.ELEMENT_NODE,Zi=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Uh=(e,i)=>mn(e)?i.map(t=>{if(!mn(t))return Zi(t,"is not a valid element"),null;let r=t;for(;r&&r!==e;){if(e.contains(r))return t;r=r.getRootNode().host}return Zi(t,"is not contained inside",e),null}).filter(t=>!!t):(Zi(e,"is not a valid element"),[]),jh=(e,i,t,r)=>{const o=Uh(i,Array.isArray(e)?e:[e]);ri[t]||(ri[t]=new WeakMap);const n=ri[t],s=[],a=new Set,l=new Set(o),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};o.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const y=p.getAttribute(r),x=y!==null&&y!=="false",P=(Je.get(p)||0)+1,D=(n.get(p)||0)+1;Je.set(p,P),n.set(p,D),s.push(p),P===1&&x&&ii.set(p,!0),D===1&&p.setAttribute(t,"true"),x||p.setAttribute(r,"true")}})};return c(i),a.clear(),Ji+=1,()=>{s.forEach(h=>{const d=Je.get(h)-1,f=n.get(h)-1;Je.set(h,d),n.set(h,f),d||(ii.has(h)?ii.delete(h):h.removeAttribute(r)),f||h.removeAttribute(t)}),Ji-=1,Ji||(Je=new WeakMap,Je=new WeakMap,ii=new WeakMap,ri={})}},ma=(e,i=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),jh(r,i,t,"aria-hidden")};/**
2247
+ */let it=new WeakMap,si=new WeakMap,ai={},tr=0;const bn=e=>e&&e.nodeType===Node.ELEMENT_NODE,ir=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Wh=(e,i)=>bn(e)?i.map(t=>{if(!bn(t))return ir(t,"is not a valid element"),null;let r=t;for(;r&&r!==e;){if(e.contains(r))return t;r=r.getRootNode().host}return ir(t,"is not contained inside",e),null}).filter(t=>!!t):(ir(e,"is not a valid element"),[]),Yh=(e,i,t,r)=>{const o=Wh(i,Array.isArray(e)?e:[e]);ai[t]||(ai[t]=new WeakMap);const n=ai[t],s=[],a=new Set,l=new Set(o),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};o.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(f=>{if(!["template","script","style"].includes(f.localName))if(a.has(f))c(f);else{const m=f.getAttribute(r),E=m!==null&&m!=="false",D=(it.get(f)||0)+1,k=(n.get(f)||0)+1;it.set(f,D),n.set(f,k),s.push(f),D===1&&E&&si.set(f,!0),k===1&&f.setAttribute(t,"true"),E||f.setAttribute(r,"true")}})};return c(i),a.clear(),tr+=1,()=>{s.forEach(h=>{const d=it.get(h)-1,p=n.get(h)-1;it.set(h,d),n.set(h,p),d||(si.has(h)?si.delete(h):h.removeAttribute(r)),p||h.removeAttribute(t)}),tr-=1,tr||(it=new WeakMap,it=new WeakMap,si=new WeakMap,ai={})}},ba=(e,i=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(e)?e:[e]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),Yh(r,i,t,"aria-hidden")};/**
2248
2248
  * @license
2249
2249
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2250
2250
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2251
- */class Vh{constructor(i,t){this.host=i,this.callback=typeof t=="function"?t:()=>i}showModal(){const i=this.callback();this.__showOthers=ma(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2251
+ */class qh{constructor(i,t){this.host=i,this.callback=typeof t=="function"?t:()=>i}showModal(){const i=this.callback();this.__showOthers=ba(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2252
2252
  * @license
2253
2253
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2254
2254
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2255
- */class Gh{saveFocus(i){this.focusNode=i||Cr()}restoreFocus(i){const t=this.focusNode;if(!t)return;const r=i?i.preventScroll:!1;Cr()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2255
+ */class Xh{saveFocus(i){this.focusNode=i||Dr()}restoreFocus(i){const t=this.focusNode;if(!t)return;const r=i?i.preventScroll:!1;Dr()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2256
2256
  * @license
2257
2257
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2258
2258
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2259
- */const Qi=[];class Wh{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Ih(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(kh).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Qi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Qi.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(Qi).pop()&&i.key==="Tab"){i.preventDefault();const t=i.shiftKey;this.__focusNextElement(t)}}__focusNextElement(i=!1){const t=this.__focusableElements,r=i?-1:1,o=this.__focusedElementIndex,n=(t.length+o+r)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
2259
+ */const rr=[];class Kh{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return $h(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(Hh).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");rr.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,rr.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(rr).pop()&&i.key==="Tab"){i.preventDefault();const t=i.shiftKey;this.__focusNextElement(t)}}__focusNextElement(i=!1){const t=this.__focusableElements,r=i?-1:1,o=this.__focusedElementIndex,n=(t.length+o+r)%t.length,s=t[n];s.focus(),s.localName==="input"&&s.select()}}/**
2260
2260
  * @license
2261
2261
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2262
2262
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2263
- */const bt=X(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
2263
+ */const Et=Q(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
2264
2264
  * @license
2265
2265
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2266
2266
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2267
- */const Yh=e=>class extends bt(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Vh(this),this.__focusTrapController=new Wh(this),this.__focusRestorationController=new Gh}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 t=!mo();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Cr();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const o=t.ownerDocument;for(;r&&r!==o&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2267
+ */const Jh=e=>class extends Et(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new qh(this),this.__focusTrapController=new Kh(this),this.__focusRestorationController=new Xh}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 t=!yo();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Dr();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const o=t.ownerDocument;for(;r&&r!==o&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2268
2268
  * @license
2269
2269
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2270
2270
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2271
- */const _a=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,i)=>e.__zIndex-i.__zIndex||0),Dr=()=>_a().filter(e=>e.$.overlay),qh=e=>e===Dr().pop(),Xh=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return qh(this)}bringToFront(){let t="";const r=_a().filter(o=>o!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Dr().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Dr();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2271
+ */const ya=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,i)=>e.__zIndex-i.__zIndex||0),Ir=()=>ya().filter(e=>e.$.overlay),Zh=e=>e===Ir().pop(),Qh=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Zh(this)}bringToFront(){let t="";const r=ya().filter(o=>o!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ir().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Ir();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2272
2272
  * @license
2273
2273
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2274
2274
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2275
- */const Kh=e=>class extends Yh(Xh(e)){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),pa&&(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(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,o=window.innerWidth>t,n=document.documentElement.clientHeight;o&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}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(t,r,o,n){const s=this._oldOwner!==r||this._oldModel!==o;this._oldModel=o,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==n;this._oldOpened=n,a&&l&&(this.innerHTML="",delete this._$litPart$),n&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),fa(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const o=`__${t}Handler`,n=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2275
+ */const ed=e=>class extends Jh(Qh(e)){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),ga&&(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(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,o=window.innerWidth>t,n=document.documentElement.clientHeight;o&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}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(t,r,o,n){const s=this._oldOwner!==r||this._oldModel!==o;this._oldModel=o,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==n;this._oldOpened=n,a&&l&&(this.innerHTML="",delete this._$litPart$),n&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),_a(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const o=`__${t}Handler`,n=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",n),delete this[o])};this[o]=n,this.addEventListener("animationend",n)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2276
2276
  * @license
2277
2277
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2278
2278
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2279
- */function Jh(e){const i=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){i.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return i}function _o(e){return e?new Set(e.split(" ")):new Set}function Mi(e){return e?[...e].join(" "):""}function ga(e,i,t){const r=_o(e.getAttribute(i));r.add(t),e.setAttribute(i,Mi(r))}function Zh(e,i,t){const r=_o(e.getAttribute(i));if(r.delete(t),r.size===0){e.removeAttribute(i);return}e.setAttribute(i,Mi(r))}function Qh(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
2279
+ */function td(e){const i=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){i.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return i}function vo(e){return e?new Set(e.split(" ")):new Set}function Li(e){return e?[...e].join(" "):""}function va(e,i,t){const r=vo(e.getAttribute(i));r.add(t),e.setAttribute(i,Li(r))}function id(e,i,t){const r=vo(e.getAttribute(i));if(r.delete(t),r.size===0){e.removeAttribute(i);return}e.setAttribute(i,Li(r))}function rd(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
2280
2280
  * @license
2281
2281
  * Copyright (c) 2024 Vaadin Ltd.
2282
2282
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2283
- */function ed(e,i){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:u,width:c,height:h}=e.getBoundingClientRect();if(s||i(),!c||!h)return;const d=Math.floor(u),f=Math.floor(r.clientWidth-(l+c)),p=Math.floor(r.clientHeight-(u+h)),y=Math.floor(l),P={rootMargin:`${-d}px ${-f}px ${-p}px ${-y}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function A(k){let O=k[0].intersectionRatio;if(O!==a){if(!D)return n();O===0&&(O=1e-7),n(!1,O)}D=!1}t=new IntersectionObserver(A,P),t.observe(e)}return n(!0),o}/**
2283
+ */function od(e,i){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function n(s=!1,a=1){o();const{left:l,top:u,width:c,height:h}=e.getBoundingClientRect();if(s||i(),!c||!h)return;const d=Math.floor(u),p=Math.floor(r.clientWidth-(l+c)),f=Math.floor(r.clientHeight-(u+h)),m=Math.floor(l),D={rootMargin:`${-d}px ${-p}px ${-f}px ${-m}px`,threshold:Math.max(0,Math.min(1,a))||1};let k=!0;function M(O){let I=O[0].intersectionRatio;if(I!==a){if(!k)return n();I===0&&(I=1e-7),n(!1,I)}k=!1}t=new IntersectionObserver(M,D),t.observe(e)}return n(!0),o}/**
2284
2284
  * @license
2285
2285
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2286
2286
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2287
- */const er={start:"top",end:"bottom"},tr={start:"left",end:"right"},_n=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),td=e=>class extends e{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=Jh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=ed(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,_n.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,_n.observe(r))),t){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(o[n],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const o=this.__isRTL,n=this.__shouldAlignStartHorizontally(t,o),s=!o&&n||o&&!n;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,er,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,tr,this,n);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(t,r){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,o,n,this.__margins,s,this.noHorizontalOverlap,tr)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,o,this.__margins,n,this.noVerticalOverlap,er)}__shouldAlignStart(t,r,o,n,s,a,l){const u=o-t[a?l.end:l.start]-n[l.end],c=t[a?l.start:l.end]-n[l.start],h=s?u:c,f=h>(s?c:u)||h>r;return s===f}__adjustBottomProperty(t,r,o){let n;if(t===r.end){if(r.end===er.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;n=o-a}this.__oldViewportHeight=s}if(r.end===tr.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;n=o-a}this.__oldViewportWidth=s}}return n}__calculatePositionInOneDimension(t,r,o,n,s,a){const l=a?n.start:n.end,u=a?n.end:n.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),h=this.__adjustBottomProperty(l,n,c),d=r[a?n.start:n.end]-t[o===a?n.end:n.start],f=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2287
+ */const or={start:"top",end:"bottom"},nr={start:"left",end:"right"},yn=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),nd=e=>class extends e{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=td(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=od(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,yn.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,yn.observe(r))),t){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(o[n],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const o=this.__isRTL,n=this.__shouldAlignStartHorizontally(t,o),s=!o&&n||o&&!n;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,or,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,nr,this,n);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!r),this.toggleAttribute("top-aligned",r),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(t,r){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,o,n,this.__margins,s,this.noHorizontalOverlap,nr)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,o,this.__margins,n,this.noVerticalOverlap,or)}__shouldAlignStart(t,r,o,n,s,a,l){const u=o-t[a?l.end:l.start]-n[l.end],c=t[a?l.start:l.end]-n[l.start],h=s?u:c,p=h>(s?c:u)||h>r;return s===p}__adjustBottomProperty(t,r,o){let n;if(t===r.end){if(r.end===or.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;n=o-a}this.__oldViewportHeight=s}if(r.end===nr.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;n=o-a}this.__oldViewportWidth=s}}return n}__calculatePositionInOneDimension(t,r,o,n,s,a){const l=a?n.start:n.end,u=a?n.end:n.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),h=this.__adjustBottomProperty(l,n,c),d=r[a?n.start:n.end]-t[o===a?n.end:n.start],p=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:p,[u]:""}}};/**
2288
2288
  * @license
2289
2289
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2290
2290
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2291
- */const id=e=>class extends td(Kh(e)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ua(t.composedPath()[0])&&t.preventDefault()}};/**
2291
+ */const sd=e=>class extends nd(ed(e)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!da(t.composedPath()[0])&&t.preventDefault()}};/**
2292
2292
  * @license
2293
2293
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2294
2294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2295
- */const rd=L`
2295
+ */const ad=z`
2296
2296
  [part='overlay'] {
2297
2297
  display: flex;
2298
2298
  flex: auto;
@@ -2311,14 +2311,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2311
2311
  * @license
2312
2312
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2313
2313
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2314
- */Y("vaadin-date-picker-overlay",[Sh,rd],{moduleId:"vaadin-date-picker-overlay-styles"});class od extends id(Oi(We(Ie))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return qe`
2314
+ */Z("vaadin-date-picker-overlay",[kh,ad],{moduleId:"vaadin-date-picker-overlay-styles"});class ld extends sd(Ni(Xe(Be))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Je`
2315
2315
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2316
2316
  <div part="overlay" id="overlay">
2317
2317
  <div part="content" id="content">
2318
2318
  <slot></slot>
2319
2319
  </div>
2320
2320
  </div>
2321
- `}}ye(od);const nd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ci=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function sd(){function e(){return!0}return ya(e)}function ad(){try{return ld()?!0:ud()?ci?!cd():!sd():!1}catch(e){return!1}}function ld(){return localStorage.getItem("vaadin.developmentmode.force")}function ud(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function cd(){return!!(ci&&Object.keys(ci).map(i=>ci[i]).filter(i=>i.productionMode).length>0)}function ya(e,i){if(typeof e!="function")return;const t=nd.exec(e.toString());if(t)try{e=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return e(i)}window.Vaadin=window.Vaadin||{};const gn=function(e,i){if(window.Vaadin.developmentMode)return ya(e,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=ad());function hd(){/*! vaadin-dev-mode:start
2321
+ `}}Ae(ld);const ud=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,pi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function cd(){function e(){return!0}return wa(e)}function hd(){try{return dd()?!0:fd()?pi?!pd():!cd():!1}catch(e){return!1}}function dd(){return localStorage.getItem("vaadin.developmentmode.force")}function fd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function pd(){return!!(pi&&Object.keys(pi).map(i=>pi[i]).filter(i=>i.productionMode).length>0)}function wa(e,i){if(typeof e!="function")return;const t=ud.exec(e.toString());if(t)try{e=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return e(i)}window.Vaadin=window.Vaadin||{};const vn=function(e,i){if(window.Vaadin.developmentMode)return wa(e,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=hd());function md(){/*! vaadin-dev-mode:start
2322
2322
  (function () {
2323
2323
  'use strict';
2324
2324
 
@@ -2796,7 +2796,7 @@ try {
2796
2796
 
2797
2797
  }());
2798
2798
 
2799
- vaadin-dev-mode:end **/}const dd=function(){if(typeof gn=="function")return gn(hd)};/**
2799
+ vaadin-dev-mode:end **/}const _d=function(){if(typeof vn=="function")return vn(md)};/**
2800
2800
  * @license
2801
2801
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2802
2802
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2804,7 +2804,7 @@ try {
2804
2804
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2805
2805
  * Code distributed by Google as part of the polymer project is also
2806
2806
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2807
- */let yn=0,ba=0;const at=[];let Or=!1;function fd(){Or=!1;const e=at.length;for(let i=0;i<e;i++){const t=at[i];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}at.splice(0,e),ba+=e}const wi={after(e){return{run(i){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}}},run(e,i){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}},pd={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},md={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},_d={run(e){Or||(Or=!0,queueMicrotask(()=>fd())),at.push(e);const i=yn;return yn+=1,i},cancel(e){const i=e-ba;if(i>=0){if(!at[i])throw new Error(`invalid async handle: ${e}`);at[i]=null}}};/**
2807
+ */let wn=0,xa=0;const dt=[];let Nr=!1;function gd(){Nr=!1;const e=dt.length;for(let i=0;i<e;i++){const t=dt[i];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}dt.splice(0,e),xa+=e}const Ti={after(e){return{run(i){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}}},run(e,i){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}},bd={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},yd={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},vd={run(e){Nr||(Nr=!0,queueMicrotask(()=>gd())),dt.push(e);const i=wn;return wn+=1,i},cancel(e){const i=e-xa;if(i>=0){if(!dt[i])throw new Error(`invalid async handle: ${e}`);dt[i]=null}}};/**
2808
2808
  @license
2809
2809
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2810
2810
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2812,31 +2812,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2812
2812
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2813
2813
  Code distributed by Google as part of the polymer project is also
2814
2814
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2815
- */const kr=new Set;let dt=class Mr{static debounce(i,t,r){return i instanceof Mr?i._cancelAsync():i=new Mr,i.setConfig(t,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,t){this._asyncModule=i,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,kr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),kr.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 gd(e){kr.add(e)}/**
2815
+ */const Hr=new Set;let _t=class Lr{static debounce(i,t,r){return i instanceof Lr?i._cancelAsync():i=new Lr,i.setConfig(t,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,t){this._asyncModule=i,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Hr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Hr.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 wd(e){Hr.add(e)}/**
2816
2816
  * @license
2817
2817
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2818
2818
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2819
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){dd()};let ir;const bn=new Set,va=e=>class extends Oi(e){static finalize(){super.finalize();const{is:t}=this;t&&!bn.has(t)&&(window.Vaadin.registrations.push(this),bn.add(t),window.Vaadin.developmentModeCallback&&(ir=dt.debounce(ir,md,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),gd(ir)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2819
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){_d()};let sr;const xn=new Set,Ea=e=>class extends Ni(e){static finalize(){super.finalize();const{is:t}=this;t&&!xn.has(t)&&(window.Vaadin.registrations.push(this),xn.add(t),window.Vaadin.developmentModeCallback&&(sr=_t.debounce(sr,yd,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),wd(sr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2820
2820
  * @license
2821
2821
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2822
2822
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2823
- */class yd{constructor(i,t){this.slot=i,this.callback=t,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 i=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];i.length&&(t=i.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=i.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:i,movedNodes:o,removedNodes:r}),this._storedNodes=i}}/**
2823
+ */class xd{constructor(i,t){this.slot=i,this.callback=t,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 i=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];i.length&&(t=i.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,s)=>{const a=i.indexOf(n);a===-1?r.push(n):a!==s&&o.push(n)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:i,movedNodes:o,removedNodes:r}),this._storedNodes=i}}/**
2824
2824
  * @license
2825
2825
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2826
2826
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2827
- */let bd=0;function wa(){return bd++}/**
2827
+ */let Ed=0;function Ca(){return Ed++}/**
2828
2828
  * @license
2829
2829
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2830
2830
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2831
- */class Re extends EventTarget{static generateId(i,t="default"){return`${t}-${i.localName}-${wa()}`}constructor(i,t,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=o;this.host=i,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let i=this.getSlotChild();i?(this.node=i,this.initAddedNode(i)):(i=this.attachDefaultNode(),this.initNode(i))}initMultiple(){const i=this.getSlotChildren();if(i.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=i,i.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:i,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,i.appendChild(o)),o}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===i||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:t}=this;t&&t(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,t=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new yd(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!Qh(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...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)))})}}/**
2831
+ */class Ve extends EventTarget{static generateId(i,t="default"){return`${t}-${i.localName}-${Ca()}`}constructor(i,t,r,o={}){super();const{initializer:n,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=o;this.host=i,this.slotName=t,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=n,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let i=this.getSlotChild();i?(this.node=i,this.initAddedNode(i)):(i=this.attachDefaultNode(),this.initNode(i))}initMultiple(){const i=this.getSlotChildren();if(i.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=i,i.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:i,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,i.appendChild(o)),o}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===i||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:t}=this;t&&t(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,t=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new xd(r,({addedNodes:o,removedNodes:n})=>{const s=this.multiple?this.nodes:[this.node],a=o.filter(l=>!rd(l)&&!s.includes(l));n.length&&(this.nodes=s.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...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)))})}}/**
2832
2832
  * @license
2833
2833
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2834
2834
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2835
- */class xa extends Re{constructor(i){super(i,"tooltip"),this.setTarget(i)}initCustomNode(i){i.target=this.target,this.ariaTarget!==void 0&&(i.ariaTarget=this.ariaTarget),this.context!==void 0&&(i.context=this.context),this.manual!==void 0&&(i.manual=this.manual),this.opened!==void 0&&(i.opened=this.opened),this.position!==void 0&&(i._position=this.position),this.shouldShow!==void 0&&(i.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(i){this.ariaTarget=i;const t=this.node;t&&(t.ariaTarget=i)}setContext(i){this.context=i;const t=this.node;t&&(t.context=i)}setManual(i){this.manual=i;const t=this.node;t&&(t.manual=i)}setOpened(i){this.opened=i;const t=this.node;t&&(t.opened=i)}setPosition(i){this.position=i;const t=this.node;t&&(t._position=i)}setShouldShow(i){this.shouldShow=i;const t=this.node;t&&(t.shouldShow=i)}setTarget(i){this.target=i;const t=this.node;t&&(t.target=i)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2835
+ */class Ta extends Ve{constructor(i){super(i,"tooltip"),this.setTarget(i)}initCustomNode(i){i.target=this.target,this.ariaTarget!==void 0&&(i.ariaTarget=this.ariaTarget),this.context!==void 0&&(i.context=this.context),this.manual!==void 0&&(i.manual=this.manual),this.opened!==void 0&&(i.opened=this.opened),this.position!==void 0&&(i._position=this.position),this.shouldShow!==void 0&&(i.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(i){this.ariaTarget=i;const t=this.node;t&&(t.ariaTarget=i)}setContext(i){this.context=i;const t=this.node;t&&(t.context=i)}setManual(i){this.manual=i;const t=this.node;t&&(t.manual=i)}setOpened(i){this.opened=i;const t=this.node;t&&(t.opened=i)}setPosition(i){this.position=i;const t=this.node;t&&(t._position=i)}setShouldShow(i){this.shouldShow=i;const t=this.node;t&&(t.shouldShow=i)}setTarget(i){this.target=i;const t=this.node;t&&(t.target=i)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2836
2836
  * @license
2837
2837
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2838
2838
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2839
- */const vd=L`
2839
+ */const Cd=z`
2840
2840
  :host {
2841
2841
  display: inline-block;
2842
2842
  position: relative;
@@ -2896,7 +2896,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2896
2896
  outline-color: GrayText;
2897
2897
  }
2898
2898
  }
2899
- `,wd=e=>e`
2899
+ `,Td=e=>e`
2900
2900
  <div class="vaadin-button-container">
2901
2901
  <span part="prefix" aria-hidden="true">
2902
2902
  <slot name="prefix"></slot>
@@ -2917,39 +2917,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2917
2917
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2918
2918
  Code distributed by Google as part of the polymer project is also
2919
2919
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2920
- */const xd=e=>e,Ea=typeof document.head.style.touchAction=="string",Ir="__polymerGestures",rr="__polymerGesturesHandled",Nr="__polymerGesturesTouchAction",vn=25,wn=5,Ed=2,Td=["mousedown","mousemove","mouseup","click"],Cd=[0,1,4,2],Ad=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function go(e){return Td.indexOf(e)>-1}let Sd=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){Sd=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function Pd(e){go(e)}const Dd=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Od={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function je(e){const i=e.type;if(!go(i))return!1;if(i==="mousemove"){let r=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!Ad&&(r=Cd[e.which]||0),!!(r&1)}return(e.button===void 0?0:e.button)===0}function kd(e){if(e.type==="click"){if(e.detail===0)return!0;const i=Me(e);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const t=i.getBoundingClientRect(),r=e.pageX,o=e.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const xe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Md(e){let i="auto";const t=Ca(e);for(let r=0,o;r<t.length;r++)if(o=t[r],o[Nr]){i=o[Nr];break}return i}function Ta(e,i,t){e.movefn=i,e.upfn=t,document.addEventListener("mousemove",i),document.addEventListener("mouseup",t)}function lt(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Ca=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],yo={},ze=[];function Id(e,i){let t=document.elementFromPoint(e,i),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(e,i),o===r)break;r&&(t=r)}return t}function Me(e){const i=Ca(e);return i.length>0?i[0]:e.target}function Nd(e){const i=e.type,r=e.currentTarget[Ir];if(!r)return;const o=r[i];if(!o)return;if(!e[rr]&&(e[rr]={},i.startsWith("touch"))){const s=e.changedTouches[0];if(i==="touchstart"&&e.touches.length===1&&(xe.touch.id=s.identifier),xe.touch.id!==s.identifier)return;Ea||(i==="touchstart"||i==="touchmove")&&Hd(e)}const n=e[rr];if(!n.skip){for(let s=0,a;s<ze.length;s++)a=ze[s],o[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<ze.length;s++)a=ze[s],o[a.name]&&!n[a.name]&&(n[a.name]=!0,a[i](e))}}function Hd(e){const i=e.changedTouches[0],t=e.type;if(t==="touchstart")xe.touch.x=i.clientX,xe.touch.y=i.clientY,xe.touch.scrollDecided=!1;else if(t==="touchmove"){if(xe.touch.scrollDecided)return;xe.touch.scrollDecided=!0;const r=Md(e);let o=!1;const n=Math.abs(xe.touch.x-i.clientX),s=Math.abs(xe.touch.y-i.clientY);e.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?e.preventDefault():xi("track")}}function me(e,i,t){return yo[i]?(Ld(e,i,t),!0):!1}function Ld(e,i,t){const r=yo[i],o=r.deps,n=r.name;let s=e[Ir];s||(e[Ir]=s={});for(let a=0,l,u;a<o.length;a++)l=o[a],!(Dd&&go(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&e.addEventListener(l,Nd,Pd(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);e.addEventListener(i,t),r.touchAction&&Aa(e,r.touchAction)}function bo(e){ze.push(e),e.emits.forEach(i=>{yo[i]=e})}function Fd(e){for(let i=0,t;i<ze.length;i++){t=ze[i];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===e)return t}return null}function Aa(e,i){Ea&&e instanceof HTMLElement&&_d.run(()=>{e.style.touchAction=i}),e[Nr]=i}function vo(e,i,t){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,xd(e).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function xi(e){const i=Fd(e);i.info&&(i.info.prevent=!0)}bo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){lt(this.info)},mousedown(e){if(!je(e))return;const i=Me(e),t=this,r=n=>{je(n)||(Pt("up",i,n),lt(t.info))},o=n=>{je(n)&&Pt("up",i,n),lt(t.info)};Ta(this.info,r,o),Pt("down",i,e)},touchstart(e){Pt("down",Me(e),e.changedTouches[0],e)},touchend(e){Pt("up",Me(e),e.changedTouches[0],e)}});function Pt(e,i,t,r){i&&vo(i,e,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return xi(o)}})}bo({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(e){this.moves.length>Ed&&this.moves.shift(),this.moves.push(e)},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,lt(this.info)},mousedown(e){if(!je(e))return;const i=Me(e),t=this,r=n=>{const s=n.clientX,a=n.clientY;xn(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&xi("tap"),t.info.addMove({x:s,y:a}),je(n)||(t.info.state="end",lt(t.info)),i&&or(t.info,i,n),t.info.started=!0)},o=n=>{t.info.started&&r(n),lt(t.info)};Ta(this.info,r,o),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const i=e.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(e){const i=Me(e),t=e.changedTouches[0],r=t.clientX,o=t.clientY;xn(this.info,r,o)&&(this.info.state==="start"&&xi("tap"),this.info.addMove({x:r,y:o}),or(this.info,i,t),this.info.state="track",this.info.started=!0)},touchend(e){const i=Me(e),t=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),or(this.info,i,t))}});function xn(e,i,t){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-i),o=Math.abs(e.y-t);return r>=wn||o>=wn}function or(e,i,t){if(!i)return;const r=e.moves[e.moves.length-2],o=e.moves[e.moves.length-1],n=o.x-e.x,s=o.y-e.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),vo(i,"track",{state:e.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return Id(t.clientX,t.clientY)}})}bo({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(e){je(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){je(e)&&En(this.info,e)},touchstart(e){const i=e.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(e){En(this.info,e.changedTouches[0],e)}});function En(e,i,t){const r=Math.abs(i.clientX-e.x),o=Math.abs(i.clientY-e.y),n=Me(t||i);!n||Od[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=vn&&o<=vn||kd(i))&&(e.prevent||vo(n,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:t}))}/**
2920
+ */const Ad=e=>e,Aa=typeof document.head.style.touchAction=="string",$r="__polymerGestures",ar="__polymerGesturesHandled",Fr="__polymerGesturesTouchAction",En=25,Cn=5,Sd=2,Pd=["mousedown","mousemove","mouseup","click"],Dd=[0,1,4,2],Od=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function wo(e){return Pd.indexOf(e)>-1}let kd=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){kd=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function Md(e){wo(e)}const Id=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Nd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ye(e){const i=e.type;if(!wo(i))return!1;if(i==="mousemove"){let r=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!Od&&(r=Dd[e.which]||0),!!(r&1)}return(e.button===void 0?0:e.button)===0}function Hd(e){if(e.type==="click"){if(e.detail===0)return!0;const i=Fe(e);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const t=i.getBoundingClientRect(),r=e.pageX,o=e.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const Pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ld(e){let i="auto";const t=Pa(e);for(let r=0,o;r<t.length;r++)if(o=t[r],o[Fr]){i=o[Fr];break}return i}function Sa(e,i,t){e.movefn=i,e.upfn=t,document.addEventListener("mousemove",i),document.addEventListener("mouseup",t)}function ft(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const Pa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],xo={},Ge=[];function $d(e,i){let t=document.elementFromPoint(e,i),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(e,i),o===r)break;r&&(t=r)}return t}function Fe(e){const i=Pa(e);return i.length>0?i[0]:e.target}function Fd(e){const i=e.type,r=e.currentTarget[$r];if(!r)return;const o=r[i];if(!o)return;if(!e[ar]&&(e[ar]={},i.startsWith("touch"))){const s=e.changedTouches[0];if(i==="touchstart"&&e.touches.length===1&&(Pe.touch.id=s.identifier),Pe.touch.id!==s.identifier)return;Aa||(i==="touchstart"||i==="touchmove")&&Bd(e)}const n=e[ar];if(!n.skip){for(let s=0,a;s<Ge.length;s++)a=Ge[s],o[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Ge.length;s++)a=Ge[s],o[a.name]&&!n[a.name]&&(n[a.name]=!0,a[i](e))}}function Bd(e){const i=e.changedTouches[0],t=e.type;if(t==="touchstart")Pe.touch.x=i.clientX,Pe.touch.y=i.clientY,Pe.touch.scrollDecided=!1;else if(t==="touchmove"){if(Pe.touch.scrollDecided)return;Pe.touch.scrollDecided=!0;const r=Ld(e);let o=!1;const n=Math.abs(Pe.touch.x-i.clientX),s=Math.abs(Pe.touch.y-i.clientY);e.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=s>n:r==="pan-y"&&(o=n>s)),o?e.preventDefault():Ai("track")}}function Ee(e,i,t){return xo[i]?(Rd(e,i,t),!0):!1}function Rd(e,i,t){const r=xo[i],o=r.deps,n=r.name;let s=e[$r];s||(e[$r]=s={});for(let a=0,l,u;a<o.length;a++)l=o[a],!(Id&&wo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&e.addEventListener(l,Fd,Md(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);e.addEventListener(i,t),r.touchAction&&Da(e,r.touchAction)}function Eo(e){Ge.push(e),e.emits.forEach(i=>{xo[i]=e})}function zd(e){for(let i=0,t;i<Ge.length;i++){t=Ge[i];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===e)return t}return null}function Da(e,i){Aa&&e instanceof HTMLElement&&vd.run(()=>{e.style.touchAction=i}),e[Fr]=i}function Co(e,i,t){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,Ad(e).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Ai(e){const i=zd(e);i.info&&(i.info.prevent=!0)}Eo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ft(this.info)},mousedown(e){if(!Ye(e))return;const i=Fe(e),t=this,r=n=>{Ye(n)||(Mt("up",i,n),ft(t.info))},o=n=>{Ye(n)&&Mt("up",i,n),ft(t.info)};Sa(this.info,r,o),Mt("down",i,e)},touchstart(e){Mt("down",Fe(e),e.changedTouches[0],e)},touchend(e){Mt("up",Fe(e),e.changedTouches[0],e)}});function Mt(e,i,t,r){i&&Co(i,e,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return Ai(o)}})}Eo({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(e){this.moves.length>Sd&&this.moves.shift(),this.moves.push(e)},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,ft(this.info)},mousedown(e){if(!Ye(e))return;const i=Fe(e),t=this,r=n=>{const s=n.clientX,a=n.clientY;Tn(t.info,s,a)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Ai("tap"),t.info.addMove({x:s,y:a}),Ye(n)||(t.info.state="end",ft(t.info)),i&&lr(t.info,i,n),t.info.started=!0)},o=n=>{t.info.started&&r(n),ft(t.info)};Sa(this.info,r,o),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const i=e.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(e){const i=Fe(e),t=e.changedTouches[0],r=t.clientX,o=t.clientY;Tn(this.info,r,o)&&(this.info.state==="start"&&Ai("tap"),this.info.addMove({x:r,y:o}),lr(this.info,i,t),this.info.state="track",this.info.started=!0)},touchend(e){const i=Fe(e),t=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),lr(this.info,i,t))}});function Tn(e,i,t){if(e.prevent)return!1;if(e.started)return!0;const r=Math.abs(e.x-i),o=Math.abs(e.y-t);return r>=Cn||o>=Cn}function lr(e,i,t){if(!i)return;const r=e.moves[e.moves.length-2],o=e.moves[e.moves.length-1],n=o.x-e.x,s=o.y-e.y;let a,l=0;r&&(a=o.x-r.x,l=o.y-r.y),Co(i,"track",{state:e.state,x:t.clientX,y:t.clientY,dx:n,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return $d(t.clientX,t.clientY)}})}Eo({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(e){Ye(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Ye(e)&&An(this.info,e)},touchstart(e){const i=e.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(e){An(this.info,e.changedTouches[0],e)}});function An(e,i,t){const r=Math.abs(i.clientX-e.x),o=Math.abs(i.clientY-e.y),n=Fe(t||i);!n||Nd[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=En&&o<=En||Hd(i))&&(e.prevent||Co(n,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:t}))}/**
2921
2921
  * @license
2922
2922
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2923
2923
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2924
- */const Sa=X(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2924
+ */const Oa=Q(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2925
2925
  * @license
2926
2926
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2927
2927
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2928
- */const Ii=X(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2928
+ */const $i=Q(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2929
2929
  * @license
2930
2930
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2931
2931
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2932
- */const $d=e=>class extends Sa(Ii(e)){get _activeKeys(){return[" "]}ready(){super.ready(),me(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),me(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2932
+ */const Ud=e=>class extends Oa($i(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2933
2933
  * @license
2934
2934
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2935
2935
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2936
- */const wo=X(e=>class extends e{get _keyboardActive(){return mo()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2936
+ */const To=Q(e=>class extends e{get _keyboardActive(){return yo()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2937
2937
  * @license
2938
2938
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2939
2939
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2940
- */const Pa=e=>class extends Sa(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2940
+ */const ka=e=>class extends Oa(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2941
2941
  * @license
2942
2942
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2943
2943
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2944
- */const Bd=e=>class extends $d(Pa(wo(e))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2944
+ */const jd=e=>class extends Ud(ka(To(e))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2945
2945
  * @license
2946
2946
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2947
2947
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2948
- */Y("vaadin-button",vd,{moduleId:"vaadin-button-styles"});class Rd extends Bd(va(We(bt(Ie)))){static get is(){return"vaadin-button"}static get template(){return wd(qe)}ready(){super.ready(),this._tooltipController=new xa(this),this.addController(this._tooltipController)}}ye(Rd);/**
2948
+ */Z("vaadin-button",Cd,{moduleId:"vaadin-button-styles"});class Vd extends jd(Ea(Xe(Et(Be)))){static get is(){return"vaadin-button"}static get template(){return Td(Je)}ready(){super.ready(),this._tooltipController=new Ta(this),this.addController(this._tooltipController)}}Ae(Vd);/**
2949
2949
  * @license
2950
2950
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2951
2951
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2952
- */function zd(e){let i=e.getDay();i===0&&(i=7);const t=4-i,r=new Date(e.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function Hr(e){const i=new Date(e);return i.setHours(0,0,0,0),i}function Te(e,i,t=Hr){return e instanceof Date&&i instanceof Date&&t(e).getTime()===t(i).getTime()}function xo(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function ft(e,i,t,r){let o=!1;if(typeof r=="function"&&e){const n=xo(e);o=r(n)}return(!i||e>=i)&&(!t||e<=t)&&!o}function Da(e,i){return i.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(e.getTime()-r.getTime()),n=Math.abs(t.getTime()-e.getTime());return o<n?r:t})}function Oa(e){const i=new Date,t=new Date(i);return t.setDate(1),t.setMonth(parseInt(e)+i.getMonth()),t}function Ud(e,i,t=0,r=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let o=i+Math.floor(e.getFullYear()/100)*100;return e<new Date(o-50,t,r)?o-=100:e>new Date(o+50,t,r)&&(o+=100),o}function Dt(e){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!i)return;const t=new Date(0,0);return t.setFullYear(parseInt(i[1],10)),t.setMonth(parseInt(i[2],10)-1),t.setDate(parseInt(i[3],10)),t}function jd(e){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",o=e.year;o<0?(o=-o,t="-",r="000000"):e.year>=1e4&&(t="+",r="000000");const n=t+i(o,r),s=i(e.month+1),a=i(e.day);return[n,s,a].join("-")}function Vd(e){return e instanceof Date?jd({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
2952
+ */function Gd(e){let i=e.getDay();i===0&&(i=7);const t=4-i,r=new Date(e.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const n=r.getTime()-o.getTime(),s=Math.round(n/(24*3600*1e3));return Math.floor(s/7+1)}function Br(e){const i=new Date(e);return i.setHours(0,0,0,0),i}function Oe(e,i,t=Br){return e instanceof Date&&i instanceof Date&&t(e).getTime()===t(i).getTime()}function Ao(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function gt(e,i,t,r){let o=!1;if(typeof r=="function"&&e){const n=Ao(e);o=r(n)}return(!i||e>=i)&&(!t||e<=t)&&!o}function Ma(e,i){return i.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(e.getTime()-r.getTime()),n=Math.abs(t.getTime()-e.getTime());return o<n?r:t})}function Ia(e){const i=new Date,t=new Date(i);return t.setDate(1),t.setMonth(parseInt(e)+i.getMonth()),t}function Wd(e,i,t=0,r=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let o=i+Math.floor(e.getFullYear()/100)*100;return e<new Date(o-50,t,r)?o-=100:e>new Date(o+50,t,r)&&(o+=100),o}function It(e){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!i)return;const t=new Date(0,0);return t.setFullYear(parseInt(i[1],10)),t.setMonth(parseInt(i[2],10)-1),t.setDate(parseInt(i[3],10)),t}function Yd(e){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",o=e.year;o<0?(o=-o,t="-",r="000000"):e.year>=1e4&&(t="+",r="000000");const n=t+i(o,r),s=i(e.month+1),a=i(e.day);return[n,s,a].join("-")}function qd(e){return e instanceof Date?Yd({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}):""}/**
2953
2953
  @license
2954
2954
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2955
2955
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2957,7 +2957,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2957
2957
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2958
2958
  Code distributed by Google as part of the polymer project is also
2959
2959
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2960
- */class Ei{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,t){this._asyncModule=i,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Yt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Yt.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(i,t,r){return i instanceof Ei?i._cancelAsync():i=new Ei,i.setConfig(t,r),i}}let Yt=new Set;const Gd=function(e){Yt.add(e)},Wd=function(){const e=!!Yt.size;return Yt.forEach(i=>{try{i.flush()}catch(t){setTimeout(()=>{throw t})}}),e};/**
2960
+ */class Si{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,t){this._asyncModule=i,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Jt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Jt.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(i,t,r){return i instanceof Si?i._cancelAsync():i=new Si,i.setConfig(t,r),i}}let Jt=new Set;const Xd=function(e){Jt.add(e)},Kd=function(){const e=!!Jt.size;return Jt.forEach(i=>{try{i.flush()}catch(t){setTimeout(()=>{throw t})}}),e};/**
2961
2961
  @license
2962
2962
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2963
2963
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2965,11 +2965,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2965
2965
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2966
2966
  Code distributed by Google as part of the polymer project is also
2967
2967
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2968
- */const Eo=function(){let e,i;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=Wd();while(e||i)};/**
2968
+ */const So=function(){let e,i;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=Kd();while(e||i)};/**
2969
2969
  * @license
2970
2970
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2971
2971
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2972
- */const ka=document.createElement("template");ka.innerHTML=`
2972
+ */const Na=document.createElement("template");Na.innerHTML=`
2973
2973
  <style>
2974
2974
  :host {
2975
2975
  display: block;
@@ -3019,11 +3019,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3019
3019
  <div class="buffer"></div>
3020
3020
  <div id="fullHeight"></div>
3021
3021
  </div>
3022
- `;class Ma extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ka.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%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(i=>{this.$[i.id]=i}),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()),Eo()}_createElement(){}_updateElement(i,t){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const t=i?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+t,o=i<this._buffers[0].translateY+t;(r||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=dt.debounce(this._debouncerScrollFinish,wi.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=dt.debounce(this._debouncerUpdateClones,wi.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${wa()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,i)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const t=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(t).forEach(r=>{i.instance[r]=t[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(i,t){const r=i.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3022
+ `;class Ha extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Na.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%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(i=>{this.$[i.id]=i}),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()),So()}_createElement(){}_updateElement(i,t){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const t=i?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+t,o=i<this._buffers[0].translateY+t;(r||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=_t.debounce(this._debouncerScrollFinish,Ti.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=_t.debounce(this._debouncerUpdateClones,Ti.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const n=`vaadin-infinite-scroller-item-content-${Ca()}`,s=document.createElement("slot");s.setAttribute("name",n),s._itemWrapper=o,t.appendChild(s),o.setAttribute("slot",n),this.appendChild(o),this._isVisible(o,i)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const t=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(t).forEach(r=>{i.instance[r]=t[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*o;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,t))&&this._updateElement(l.instance,n+a)}),r.updated=!0}})}_isVisible(i,t){const r=i.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3023
3023
  * @license
3024
3024
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3025
3025
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3026
- */const Ia=document.createElement("template");Ia.innerHTML=`
3026
+ */const La=document.createElement("template");La.innerHTML=`
3027
3027
  <style>
3028
3028
  :host {
3029
3029
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3035,11 +3035,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3035
3035
  height: 100%;
3036
3036
  }
3037
3037
  </style>
3038
- `;class Yd extends Ma{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ia.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,t){i.month=Oa(t)}}ye(Yd);/**
3038
+ `;class Jd extends Ha{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(La.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,t){i.month=Ia(t)}}Ae(Jd);/**
3039
3039
  * @license
3040
3040
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3041
3041
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3042
- */const Na=document.createElement("template");Na.innerHTML=`
3042
+ */const $a=document.createElement("template");$a.innerHTML=`
3043
3043
  <style>
3044
3044
  :host {
3045
3045
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3073,15 +3073,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3073
3073
  border-left-color: #000;
3074
3074
  }
3075
3075
  </style>
3076
- `;class qd extends Ma{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Na.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,t){i.year=this._yearAfterXYears(t)}_yearAfterXYears(i){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(i)+t.getFullYear()),r.getFullYear()}}ye(qd);/**
3076
+ `;class Zd extends Ha{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild($a.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,t){i.year=this._yearAfterXYears(t)}_yearAfterXYears(i){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(i)+t.getFullYear()),r.getFullYear()}}Ae(Zd);/**
3077
3077
  * @license
3078
3078
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3079
3079
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3080
- */const Xd=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3080
+ */const Qd=e=>class extends e{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3081
3081
  * @license
3082
3082
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3083
3083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3084
- */class Kd extends We(Xd(Ie)){static get is(){return"vaadin-date-picker-year"}static get template(){return qe`
3084
+ */class ef extends Xe(Qd(Be)){static get is(){return"vaadin-date-picker-year"}static get template(){return Je`
3085
3085
  <style>
3086
3086
  :host {
3087
3087
  display: block;
@@ -3090,7 +3090,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3090
3090
  </style>
3091
3091
  <div part="year-number">[[year]]</div>
3092
3092
  <div part="year-separator" aria-hidden="true"></div>
3093
- `}}ye(Kd);/**
3093
+ `}}Ae(ef);/**
3094
3094
  @license
3095
3095
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3096
3096
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3098,7 +3098,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3098
3098
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3099
3099
  Code distributed by Google as part of the polymer project is also
3100
3100
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3101
- */function To(e,i,t,r,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(r=e.__dataTemp[i]));let s=r!==t&&(r===r||t===t);return n&&s&&(e.__dataTemp[i]=t),s}const Co=X(e=>{class i extends e{_shouldPropertyChange(r,o,n){return To(this,r,o,n,!0)}}return i}),Jd=X(e=>{class i extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return To(this,r,o,n,this.mutableData)}}return i});Co._mutablePropertyChange=To;/**
3101
+ */function Po(e,i,t,r,o){let n;o&&(n=typeof t=="object"&&t!==null,n&&(r=e.__dataTemp[i]));let s=r!==t&&(r===r||t===t);return n&&s&&(e.__dataTemp[i]=t),s}const Do=Q(e=>{class i extends e{_shouldPropertyChange(r,o,n){return Po(this,r,o,n,!0)}}return i}),tf=Q(e=>{class i extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,n){return Po(this,r,o,n,this.mutableData)}}return i});Do._mutablePropertyChange=Po;/**
3102
3102
  @license
3103
3103
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3104
3104
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3106,7 +3106,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3106
3106
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3107
3107
  Code distributed by Google as part of the polymer project is also
3108
3108
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3109
- */let Lr=null;function Fr(){return Lr}Fr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Fr,writable:!0}});const Ha=fo(Fr),Zd=Co(Ha);function Qd(e,i){Lr=e,Object.setPrototypeOf(e,i.prototype),new i,Lr=null}const ef=fo(class{});function tf(e,i){for(let t=0;t<i.length;t++){let r=i[t];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),ee(ee(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&ee(ee(o).parentNode).replaceChild(r,o)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}class Ne extends ef{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(i&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in i)this._setPendingProperty(r,i[r])}forwardHostProp(i,t){this._setPendingPropertyOrPath(i,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(i,t,r)}}_showHideChildren(i){tf(i,this.children)}_setUnmanagedPropertyToNode(i,t,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&t=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,t,r)}get parentModel(){let i=this.__parentModel;if(!i){let t;i=this;do i=i.__dataHost.__dataHost;while((t=i.__templatizeOptions)&&!t.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}Ne.prototype.__dataHost;Ne.prototype.__templatizeOptions;Ne.prototype._methodHost;Ne.prototype.__templatizeOwner;Ne.prototype.__hostProps;const rf=Co(Ne);function Tn(e){let i=e.__dataHost;return i&&i._methodHost||i}function of(e,i,t){let r=t.mutableData?rf:Ne;$r.mixin&&(r=$r.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(e),af(o,e,i,t),o}function nf(e,i,t,r){let o=t.forwardHostProp;if(o&&i.hasHostProps){const n=e.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?Zd:Ha;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}s=i.templatizeTemplateClass=u}let a=i.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:sf(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);Rs&&r&&cf(i,t,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),n)Qd(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function sf(e,i){return function(r,o,n){i.call(r.__templatizeOwner,o.substring(6),n[o])}}function af(e,i,t,r){let o=t.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(n,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:lf(n,s)})}if(r.forwardHostProp&&i.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),e.prototype._addPropertyEffect(n,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:uf()})}function lf(e,i){return function(r,o,n){i.call(r.__templatizeOwner,r,o,n[o])}}function uf(){return function(i,t,r){i.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function $r(e,i,t){if(bi&&!Tn(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=i;let o=(i?i.constructor:Ne)._parseTemplate(e),n=o.templatizeInstanceClass;n||(n=of(e,o,t),o.templatizeInstanceClass=n);const s=Tn(e);nf(e,o,t,s);let a=class extends n{};return a.prototype._methodHost=s,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=o.hostProps,a=a,a}function cf(e,i,t){const r=t.constructor._properties,{propertyEffects:o}=e,{instanceProps:n}=i;for(let s in o)if(!r[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function hf(e,i){let t;for(;i;)if(t=i.__dataHost?i:i.__templatizeInstance)if(t.__dataHost!=e)i=t.__dataHost;else return t;else i=ee(i).parentNode;return null}/**
3109
+ */let Rr=null;function zr(){return Rr}zr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:zr,writable:!0}});const Fa=go(zr),rf=Do(Fa);function of(e,i){Rr=e,Object.setPrototypeOf(e,i.prototype),new i,Rr=null}const nf=go(class{});function sf(e,i){for(let t=0;t<i.length;t++){let r=i[t];if(!!e!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),te(te(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&te(te(o).parentNode).replaceChild(r,o)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}class Re extends nf{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(i&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in i)this._setPendingProperty(r,i[r])}forwardHostProp(i,t){this._setPendingPropertyOrPath(i,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(i,t,r)}}_showHideChildren(i){sf(i,this.children)}_setUnmanagedPropertyToNode(i,t,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&t=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,t,r)}get parentModel(){let i=this.__parentModel;if(!i){let t;i=this;do i=i.__dataHost.__dataHost;while((t=i.__templatizeOptions)&&!t.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}Re.prototype.__dataHost;Re.prototype.__templatizeOptions;Re.prototype._methodHost;Re.prototype.__templatizeOwner;Re.prototype.__hostProps;const af=Do(Re);function Sn(e){let i=e.__dataHost;return i&&i._methodHost||i}function lf(e,i,t){let r=t.mutableData?af:Re;Ur.mixin&&(r=Ur.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(e),hf(o,e,i,t),o}function uf(e,i,t,r){let o=t.forwardHostProp;if(o&&i.hasHostProps){const n=e.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(n){let l=t.mutableData?rf:Fa;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}s=i.templatizeTemplateClass=u}let a=i.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cf(l,o)}),s.prototype._createNotifyingProperty("_host_"+l);js&&r&&pf(i,t,r)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),n)of(e,s),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function cf(e,i){return function(r,o,n){i.call(r.__templatizeOwner,o.substring(6),n[o])}}function hf(e,i,t,r){let o=t.hostProps||{};for(let n in r.instanceProps){delete o[n];let s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(n,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:df(n,s)})}if(r.forwardHostProp&&i.__dataHost)for(let n in o)t.hasHostProps||(t.hasHostProps=!0),e.prototype._addPropertyEffect(n,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ff()})}function df(e,i){return function(r,o,n){i.call(r.__templatizeOwner,r,o,n[o])}}function ff(){return function(i,t,r){i.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function Ur(e,i,t){if(Ei&&!Sn(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=i;let o=(i?i.constructor:Re)._parseTemplate(e),n=o.templatizeInstanceClass;n||(n=lf(e,o,t),o.templatizeInstanceClass=n);const s=Sn(e);uf(e,o,t,s);let a=class extends n{};return a.prototype._methodHost=s,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=o.hostProps,a=a,a}function pf(e,i,t){const r=t.constructor._properties,{propertyEffects:o}=e,{instanceProps:n}=i;for(let s in o)if(!r[s]&&!(n&&n[s])){const a=o[s];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function mf(e,i){let t;for(;i;)if(t=i.__dataHost?i:i.__templatizeInstance)if(t.__dataHost!=e)i=t.__dataHost;else return t;else i=te(i).parentNode;return null}/**
3110
3110
  @license
3111
3111
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3112
3112
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3114,7 +3114,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3114
3114
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3115
3115
  Code distributed by Google as part of the polymer project is also
3116
3116
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3117
- */let Cn=!1;function df(){if(Bs&&!$s){if(!Cn){Cn=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
3117
+ */let Pn=!1;function _f(){if(Us&&!zs){if(!Pn){Pn=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
3118
3118
  @license
3119
3119
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3120
3120
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3122,15 +3122,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3122
3122
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3123
3123
  Code distributed by Google as part of the polymer project is also
3124
3124
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3125
- */const ff=Jd(Ie);class An extends ff{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:!Jo,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),df()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=ee(ee(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let t=this.template=i._templateInfo?i:this.querySelector("template");if(!t){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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=$r(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(_c(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=Vt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let t=i,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)i.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,t=0){this.__renderDebouncer=Ei.debounce(this.__renderDebouncer,t>0?xc.after(t):Ks,i.bind(this)),Gd(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Eo()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const t=this.__sortAndFilterItems(i),r=this.__calculateLimit(t.length);this.__updateInstances(i,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Jo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let t=new Array(i.length);for(let r=0;r<i.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,n)=>this.__filterFn(i[r],o,n))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(i[r],i[o])),t}__calculateLimit(i){let t=i;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(i,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(i-r,0),this.__chunkCount),t=Math.min(r+o,i)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,t=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,t,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=r[n],l=i[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let t=this.__instances[i];const r=ee(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];r.appendChild(n)}return t}__attachInstance(i,t){let r=this.__instances[i];t.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,t,r){let o={};return o[this.as]=i,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(i,t,r){const o=this.__stampInstance(i,t,r);let n=this.__instances[t+1],s=n?n.children[0]:this;return ee(ee(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(i){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(i)}__handleItemPath(i,t){let r=i.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let t=this.modelForElement(i);return t&&t[this.as]}indexForElement(i){let t=this.modelForElement(i);return t&&t[this.indexAs]}modelForElement(i){return hf(this.template,i)}}customElements.define(An.is,An);/**
3125
+ */const gf=tf(Be);class Dn extends gf{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:!en,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),_f()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=te(te(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let t=this.template=i._templateInfo?i:this.querySelector("template");if(!t){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 r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Ur(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,n){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(o,n)},notifyInstanceProp:function(o,n,s){if(vc(this.as,n)){let a=o[this.itemsIndexAs];n==this.as&&(this.items[a]=s);let l=qt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let t=i,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)i.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,t=0){this.__renderDebouncer=Si.debounce(this.__renderDebouncer,t>0?Ac.after(t):Qs,i.bind(this)),Xd(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),So()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const t=this.__sortAndFilterItems(i),r=this.__calculateLimit(t.length);this.__updateInstances(i,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!en||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let t=new Array(i.length);for(let r=0;r<i.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,n)=>this.__filterFn(i[r],o,n))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(i[r],i[o])),t}__calculateLimit(i){let t=i;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(i,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(i-r,0),this.__chunkCount),t=Math.min(r+o,i)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,t=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,t,r){const o=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let s=this.__instances[n],a=r[n],l=i[a];o[a]=n,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,n),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,n,a)}for(let s=this.__instances.length-1;s>=n;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let t=this.__instances[i];const r=te(t.root);for(let o=0;o<t.children.length;o++){let n=t.children[o];r.appendChild(n)}return t}__attachInstance(i,t){let r=this.__instances[i];t.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,t,r){let o={};return o[this.as]=i,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(i,t,r){const o=this.__stampInstance(i,t,r);let n=this.__instances[t+1],s=n?n.children[0]:this;return te(te(this).parentNode).insertBefore(o.root,s),this.__instances[t]=o,o}_showHideChildren(i){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(i)}__handleItemPath(i,t){let r=i.slice(6),o=r.indexOf("."),n=o<0?r:r.substring(0,o);if(n==parseInt(n,10)){let s=o<0?"":r.substring(o+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let t=this.modelForElement(i);return t&&t[this.as]}indexForElement(i){let t=this.modelForElement(i);return t&&t[this.indexAs]}modelForElement(i){return mf(this.template,i)}}customElements.define(Dn.is,Dn);/**
3126
3126
  * @license
3127
3127
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3128
3128
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3129
- */const pf=e=>class extends wo(e){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(t=>Te(t.date,this.focusedDate))}ready(){super.ready(),me(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,o){const n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&o&&r.getMonth()===o.getMonth()&&r.getMonth()===t.getMonth()&&o.getDate()-r.getDate()>=0?!1:!ft(n,r,o)&&!ft(s,r,o)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:o,weekdaysShort:n,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(n,s);return this._applyFirstDayOfWeek(o,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(o=>Te(o,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return Te(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const o=new Date(0,0);for(o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);o.getDay()!==r.firstDayOfWeek;)this._dateAdd(o,-1);const n=[],s=o.getMonth(),a=t.getMonth();for(;o.getMonth()===a||o.getMonth()===s;)n.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return n}_getWeeks(t){return t.reduce((r,o,n)=>(n%7===0&&r.push([]),r[r.length-1].push(o),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((o,n)=>!o&&n?n:o);return zd(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3129
+ */const bf=e=>class extends To(e){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(t=>Oe(t.date,this.focusedDate))}ready(){super.ready(),Ee(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,o){const n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&o&&r.getMonth()===o.getMonth()&&r.getMonth()===t.getMonth()&&o.getDate()-r.getDate()>=0?!1:!gt(n,r,o)&&!gt(s,r,o)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:o,weekdaysShort:n,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(n,s);return this._applyFirstDayOfWeek(o,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(o=>Oe(o,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return Oe(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const o=new Date(0,0);for(o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);o.getDay()!==r.firstDayOfWeek;)this._dateAdd(o,-1);const n=[],s=o.getMonth(),a=t.getMonth();for(;o.getMonth()===a||o.getMonth()===s;)n.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return n}_getWeeks(t){return t.reduce((r,o,n)=>(n%7===0&&r.push([]),r[r.length-1].push(o),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((o,n)=>!o&&n?n:o);return Gd(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3130
3130
  * @license
3131
3131
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3132
3132
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3133
- */const mf=L`
3133
+ */const yf=z`
3134
3134
  :host {
3135
3135
  display: block;
3136
3136
  }
@@ -3190,7 +3190,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3190
3190
  * @license
3191
3191
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3192
3192
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3193
- */Y("vaadin-month-calendar",mf,{moduleId:"vaadin-month-calendar-styles"});class _f extends pf(We(Ie)){static get template(){return qe`
3193
+ */Z("vaadin-month-calendar",yf,{moduleId:"vaadin-month-calendar-styles"});class vf extends bf(Xe(Be)){static get template(){return Je`
3194
3194
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3195
3195
  <table
3196
3196
  id="monthGrid"
@@ -3232,19 +3232,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3232
3232
  </template>
3233
3233
  </tbody>
3234
3234
  </table>
3235
- `}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(i,t){i&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,t,r,o,n,s){const a=["date"],l=i>Hr(new Date),u=i<Hr(new Date);return this.__isDayDisabled(i,o,n,s)&&a.push("disabled"),this.__isDayFocused(i,t)&&a.push("focused"),this.__isDaySelected(i,r)&&a.push("selected"),this._isToday(i)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(i,t){return Te(i,t)}__isDaySelected(i,t){return Te(i,t)}__getDayAriaSelected(i,t){if(this.__isDaySelected(i,t))return"true"}__isDayDisabled(i,t,r,o){return!ft(i,t,r,o)}__getDayAriaDisabled(i,t,r,o){if(!(i===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(i,t,r,o))return"true"}__getDayTabindex(i,t){return this.__isDayFocused(i,t)?"0":"-1"}}ye(_f);/**
3235
+ `}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(i,t){i&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,t,r,o,n,s){const a=["date"],l=i>Br(new Date),u=i<Br(new Date);return this.__isDayDisabled(i,o,n,s)&&a.push("disabled"),this.__isDayFocused(i,t)&&a.push("focused"),this.__isDaySelected(i,r)&&a.push("selected"),this._isToday(i)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(i,t){return Oe(i,t)}__isDaySelected(i,t){return Oe(i,t)}__getDayAriaSelected(i,t){if(this.__isDaySelected(i,t))return"true"}__isDayDisabled(i,t,r,o){return!gt(i,t,r,o)}__getDayAriaDisabled(i,t,r,o){if(!(i===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(i,t,r,o))return"true"}__getDayTabindex(i,t){return this.__isDayFocused(i,t)?"0":"-1"}}Ae(vf);/**
3236
3236
  * @license
3237
3237
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3238
3238
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3239
- */class La{constructor(i,t){this.query=i,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
3239
+ */class Ba{constructor(i,t){this.query=i,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
3240
3240
  * @license
3241
3241
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3242
3242
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3243
- */const gf=e=>class extends e{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(t=>t.focusableDateElement).find(Boolean)}_addListeners(){Aa(this.$.scrollers,"pan-y"),me(this.$.scrollers,"track",this._track.bind(this)),me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new La(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new Re(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),me(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Re(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),me(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+o,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(o=>{o.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),me(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,o,n,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(o,n,s))}__updateCalendars(t,r,o,n,s,a,l,u,c,h){t&&t.length&&t.forEach(d=>{d.i18n=r,d.minDate=o,d.maxDate=n,d.isDateDisabled=h,d.focusedDate=a,d.selectedDate=s,d.showWeekNumbers=l,d.ignoreTaps=u,c?d.setAttribute("theme",c):d.removeAttribute("theme")})}__updateYears(t,r,o){t&&t.length&&t.forEach(n=>{n.selectedDate=r,o?n.setAttribute("theme",o):n.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const o=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(o+u,r);return}const n=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;n?this._scrollToPosition(o,r):l&&this._scrollToPosition(o-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let o=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+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=dt.debounce(this._debouncer,wi.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,o){return t&&r&&typeof r.formatDate=="function"?r.formatDate(xo(t)):o}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const o=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let o;this._revealPromise=new Promise(u=>{o=u});const n=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const c=u-s;if(c<this.scrollDuration){const h=n(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(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?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(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Oa(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Te(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&Te(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return Et(this,null,function*(){const o=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,r||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return Et(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{fa(this,()=>{Eo(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(Da(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,o){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,o):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+t),r&&o.setDate(this.focusedDate.getDate()+r),o}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),o=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==o&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const o=new Date(0,0);o.setFullYear(t.getFullYear()),r==="minDate"?(o.setMonth(t.getMonth()),o.setDate(1)):(o.setMonth(t.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,o=this.maxDate,n=this.isDateDisabled){return ft(t,r,o,n)}_isTodayAllowed(t,r,o){return this._dateAllowed(this._getTodayMidnight(),t,r,o)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3243
+ */const wf=e=>class extends e{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(t=>t.focusableDateElement).find(Boolean)}_addListeners(){Da(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ba(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new Ve(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Ee(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new Ve(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Ee(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+o,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ve(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(o=>{o.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new Ve(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),Ee(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,o,n,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(o,n,s))}__updateCalendars(t,r,o,n,s,a,l,u,c,h){t&&t.length&&t.forEach(d=>{d.i18n=r,d.minDate=o,d.maxDate=n,d.isDateDisabled=h,d.focusedDate=a,d.selectedDate=s,d.showWeekNumbers=l,d.ignoreTaps=u,c?d.setAttribute("theme",c):d.removeAttribute("theme")})}__updateYears(t,r,o){t&&t.length&&t.forEach(n=>{n.selectedDate=r,o?n.setAttribute("theme",o):n.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const o=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(o+u,r);return}const n=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;n?this._scrollToPosition(o,r):l&&this._scrollToPosition(o-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let o=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+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=_t.debounce(this._debouncer,Ti.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,o){return t&&r&&typeof r.formatDate=="function"?r.formatDate(Ao(t)):o}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const o=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let o;this._revealPromise=new Promise(u=>{o=u});const n=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const c=u-s;if(c<this.scrollDuration){const h=n(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(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?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(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Ia(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Oe(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&Oe(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return St(this,null,function*(){const o=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,r||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return St(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{_a(this,()=>{So(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(Ma(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,o){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,o):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+t),r&&o.setDate(this.focusedDate.getDate()+r),o}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),o=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==o&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const o=new Date(0,0);o.setFullYear(t.getFullYear()),r==="minDate"?(o.setMonth(t.getMonth()),o.setDate(1)):(o.setMonth(t.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,o=this.maxDate,n=this.isDateDisabled){return gt(t,r,o,n)}_isTodayAllowed(t,r,o){return this._dateAllowed(this._getTodayMidnight(),t,r,o)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3244
3244
  * @license
3245
3245
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3246
3246
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3247
- */const yf=L`
3247
+ */const xf=z`
3248
3248
  :host {
3249
3249
  display: flex;
3250
3250
  flex-direction: column;
@@ -3308,7 +3308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3308
3308
  * @license
3309
3309
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3310
3310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3311
- */Y("vaadin-date-picker-overlay-content",yf,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bf extends gf(bt(We(Oi(Ie)))){static get template(){return qe`
3311
+ */Z("vaadin-date-picker-overlay-content",xf,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ef extends wf(Et(Xe(Ni(Be)))){static get template(){return Je`
3312
3312
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3313
3313
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3314
3314
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3328,92 +3328,92 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3328
3328
  <slot name="today-button"></slot>
3329
3329
  <slot name="cancel-button"></slot>
3330
3330
  </div>
3331
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ye(bf);/**
3331
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Ae(Ef);/**
3332
3332
  * @license
3333
3333
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3334
3334
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3335
- */const Fa=X(e=>class extends wo(Pa(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3335
+ */const Ra=Q(e=>class extends To(ka(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3336
3336
  * @license
3337
3337
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3338
3338
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3339
- */const nr=new WeakMap;function vf(e){return nr.has(e)||nr.set(e,new Set),nr.get(e)}function wf(e,i){const t=document.createElement("style");t.textContent=e,i===document?document.head.appendChild(t):i.insertBefore(t,i.firstChild)}const xf=X(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=vf(t);this.slotStyles.forEach(o=>{r.has(o)||(wf(o,t),r.add(o))})}});/**
3339
+ */const ur=new WeakMap;function Cf(e){return ur.has(e)||ur.set(e,new Set),ur.get(e)}function Tf(e,i){const t=document.createElement("style");t.textContent=e,i===document?document.head.appendChild(t):i.insertBefore(t,i.firstChild)}const Af=Q(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=Cf(t);this.slotStyles.forEach(o=>{r.has(o)||(Tf(o,t),r.add(o))})}});/**
3340
3340
  * @license
3341
3341
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3342
3342
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3343
- */const $a=X(e=>class extends e{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(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3343
+ */const za=Q(e=>class extends e{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(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3344
3344
  * @license
3345
3345
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3346
3346
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3347
- */const Ef=e=>class extends $a(Ii(e)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),zh||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3347
+ */const Sf=e=>class extends za($i(e)){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",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Gh||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3348
3348
  * @license
3349
3349
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3350
3350
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3351
- */const sr=new Map;function Ao(e){return sr.has(e)||sr.set(e,new WeakMap),sr.get(e)}function Ba(e,i){e&&e.removeAttribute(i)}function Ra(e,i){if(!e||!i)return;const t=Ao(i);if(t.has(e))return;const r=_o(e.getAttribute(i));t.set(e,new Set(r))}function Tf(e,i){if(!e||!i)return;const t=Ao(i),r=t.get(e);!r||r.size===0?e.removeAttribute(i):ga(e,i,Mi(r)),t.delete(e)}function ar(e,i,t={newId:null,oldId:null,fromUser:!1}){if(!e||!i)return;const{newId:r,oldId:o,fromUser:n}=t,s=Ao(i),a=s.get(e);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(e):Ra(e,i),Ba(e,i)),Zh(e,i,o);const l=r||Mi(a);l&&ga(e,i,l)}function Cf(e,i){Ra(e,i),Ba(e,i)}/**
3351
+ */const cr=new Map;function Oo(e){return cr.has(e)||cr.set(e,new WeakMap),cr.get(e)}function Ua(e,i){e&&e.removeAttribute(i)}function ja(e,i){if(!e||!i)return;const t=Oo(i);if(t.has(e))return;const r=vo(e.getAttribute(i));t.set(e,new Set(r))}function Pf(e,i){if(!e||!i)return;const t=Oo(i),r=t.get(e);!r||r.size===0?e.removeAttribute(i):va(e,i,Li(r)),t.delete(e)}function hr(e,i,t={newId:null,oldId:null,fromUser:!1}){if(!e||!i)return;const{newId:r,oldId:o,fromUser:n}=t,s=Oo(i),a=s.get(e);if(!n&&a){o&&a.delete(o),r&&a.add(r);return}n&&(a?r||s.delete(e):ja(e,i),Ua(e,i)),id(e,i,o);const l=r||Li(a);l&&va(e,i,l)}function Df(e,i){ja(e,i),Ua(e,i)}/**
3352
3352
  * @license
3353
3353
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3354
3354
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3355
- */class Af{constructor(i){this.host=i,this.__required=!1}setTarget(i){this.__target=i,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(i){this.__setAriaRequiredAttribute(i),this.__required=i}setAriaLabel(i){this.__setAriaLabelToAttribute(i),this.__label=i}setLabelId(i,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,t),t?this.__labelIdFromUser=i:this.__labelId=i}setErrorId(i){this.__setErrorIdToAriaAttribute(i,this.__errorId),this.__errorId=i}setHelperId(i){this.__setHelperIdToAriaAttribute(i,this.__helperId),this.__helperId=i}__setAriaLabelToAttribute(i){this.__target&&(i?(Cf(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Tf(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,t,r){ar(this.__target,"aria-labelledby",{newId:i,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(i,t){ar(this.__target,"aria-describedby",{newId:i,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(i,t){ar(this.__target,"aria-describedby",{newId:i,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3355
+ */class Of{constructor(i){this.host=i,this.__required=!1}setTarget(i){this.__target=i,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(i){this.__setAriaRequiredAttribute(i),this.__required=i}setAriaLabel(i){this.__setAriaLabelToAttribute(i),this.__label=i}setLabelId(i,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,t),t?this.__labelIdFromUser=i:this.__labelId=i}setErrorId(i){this.__setErrorIdToAriaAttribute(i,this.__errorId),this.__errorId=i}setHelperId(i){this.__setHelperIdToAriaAttribute(i,this.__helperId),this.__helperId=i}__setAriaLabelToAttribute(i){this.__target&&(i?(Df(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Pf(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,t,r){hr(this.__target,"aria-labelledby",{newId:i,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(i,t){hr(this.__target,"aria-describedby",{newId:i,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(i,t){hr(this.__target,"aria-describedby",{newId:i,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3356
3356
  * @license
3357
3357
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3358
3358
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3359
- */const pe=document.createElement("div");pe.style.position="fixed";pe.style.clip="rect(0px, 0px, 0px, 0px)";pe.setAttribute("aria-live","polite");document.body.appendChild(pe);let oi;function Sf(e,i={}){const t=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;t==="alert"?(pe.removeAttribute("aria-live"),pe.removeAttribute("role"),oi=dt.debounce(oi,pd,()=>{pe.setAttribute("role","alert")})):(oi&&oi.cancel(),pe.removeAttribute("role"),pe.setAttribute("aria-live",t)),pe.textContent="",setTimeout(()=>{pe.textContent=e},r)}/**
3359
+ */const be=document.createElement("div");be.style.position="fixed";be.style.clip="rect(0px, 0px, 0px, 0px)";be.setAttribute("aria-live","polite");document.body.appendChild(be);let li;function kf(e,i={}){const t=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;t==="alert"?(be.removeAttribute("aria-live"),be.removeAttribute("role"),li=_t.debounce(li,bd,()=>{be.setAttribute("role","alert")})):(li&&li.cancel(),be.removeAttribute("role"),be.setAttribute("aria-live",t)),be.textContent="",setTimeout(()=>{be.textContent=e},r)}/**
3360
3360
  * @license
3361
3361
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3362
3362
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3363
- */class So extends Re{constructor(i,t,r,o={}){super(i,t,r,Qt(Zt({},o),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const i=super.attachDefaultNode();return i&&this.__updateNodeId(i),i}restoreDefaultNode(){}updateDefaultNode(i){this.__notifyChange(i)}observeNode(i){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,n=o===this.node;r.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(i,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(i){return i?i.nodeType===Node.ELEMENT_NODE&&(customElements.get(i.localName)||i.children.length>0)||i.textContent&&i.textContent.trim()!=="":!1}__notifyChange(i){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(i),node:i}}))}__updateNodeId(i){const t=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!i.id&&(i.id=this.defaultId)}}/**
3363
+ */class ko extends Ve{constructor(i,t,r,o={}){super(i,t,r,ri(ii({},o),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const i=super.attachDefaultNode();return i&&this.__updateNodeId(i),i}restoreDefaultNode(){}updateDefaultNode(i){this.__notifyChange(i)}observeNode(i){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,n=o===this.node;r.type==="attributes"?n&&this.__updateNodeId(o):(n||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(i,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(i){return i?i.nodeType===Node.ELEMENT_NODE&&(customElements.get(i.localName)||i.children.length>0)||i.textContent&&i.textContent.trim()!=="":!1}__notifyChange(i){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(i),node:i}}))}__updateNodeId(i){const t=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!i.id&&(i.id=this.defaultId)}}/**
3364
3364
  * @license
3365
3365
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3366
3366
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3367
- */class Pf extends So{constructor(i){super(i,"error-message","div")}setErrorMessage(i){this.errorMessage=i,this.updateDefaultNode(this.node)}setInvalid(i){this.invalid=i,this.updateDefaultNode(this.node)}initAddedNode(i){i!==this.defaultNode&&this.initCustomNode(i)}initNode(i){this.updateDefaultNode(i)}initCustomNode(i){i.textContent&&!this.errorMessage&&(this.errorMessage=i.textContent.trim()),super.initCustomNode(i)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(i){const{errorMessage:t,invalid:r}=this,o=!!(r&&t&&t.trim()!=="");i&&(i.textContent=o?t:"",i.hidden=!o,o&&Sf(t,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3367
+ */class Mf extends ko{constructor(i){super(i,"error-message","div")}setErrorMessage(i){this.errorMessage=i,this.updateDefaultNode(this.node)}setInvalid(i){this.invalid=i,this.updateDefaultNode(this.node)}initAddedNode(i){i!==this.defaultNode&&this.initCustomNode(i)}initNode(i){this.updateDefaultNode(i)}initCustomNode(i){i.textContent&&!this.errorMessage&&(this.errorMessage=i.textContent.trim()),super.initCustomNode(i)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(i){const{errorMessage:t,invalid:r}=this,o=!!(r&&t&&t.trim()!=="");i&&(i.textContent=o?t:"",i.hidden=!o,o&&kf(t,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3368
3368
  * @license
3369
3369
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3370
3370
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3371
- */class Df extends So{constructor(i){super(i,"helper",null)}setHelperText(i){this.helperText=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:i}=this;if(i&&i.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3371
+ */class If extends ko{constructor(i){super(i,"helper",null)}setHelperText(i){this.helperText=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:i}=this;if(i&&i.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3372
3372
  * @license
3373
3373
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3374
3374
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3375
- */class Of extends So{constructor(i){super(i,"label","label")}setLabel(i){this.label=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:i}=this;if(i&&i.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3375
+ */class Nf extends ko{constructor(i){super(i,"label","label")}setLabel(i){this.label=i,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:i}=this;if(i&&i.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3376
3376
  * @license
3377
3377
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3378
3378
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3379
- */const kf=X(e=>class extends bt(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Of(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3379
+ */const Hf=Q(e=>class extends Et(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Nf(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3380
3380
  * @license
3381
3381
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3382
3382
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3383
- */const za=X(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3383
+ */const Va=Q(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3384
3384
  * @license
3385
3385
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3386
3386
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3387
- */const Mf=e=>class extends za(kf(bt(e))){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 Af(this),this._helperController=new Df(this),this._errorController=new Pf(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:o}=t.detail;this.__labelChanged(r,o)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:o}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,o)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3387
+ */const Lf=e=>class extends Va(Hf(Et(e))){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 Of(this),this._helperController=new If(this),this._errorController=new Mf(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:o}=t.detail;this.__labelChanged(r,o)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:o}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,o)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3388
3388
  * @license
3389
3389
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3390
3390
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3391
- */const If=X(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,o)=>{this._delegateAttribute(r,t[o])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,o)=>{this._delegateProperty(r,t[o])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3391
+ */const $f=Q(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,o)=>{this._delegateAttribute(r,t[o])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,o)=>{this._delegateProperty(r,t[o])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3392
3392
  * @license
3393
3393
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3394
3394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3395
- */const Ua=X(e=>class extends If(za($a(e))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const o=this._hasValidConstraints(r),n=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():n&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3395
+ */const Ga=Q(e=>class extends $f(Va(za(e))){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(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const o=this._hasValidConstraints(r),n=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():n&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3396
3396
  * @license
3397
3397
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3398
3398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3399
- */const Nf=e=>class extends xf(Fa(Ua(Mf(Ef(Ii(e)))))){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[`
3399
+ */const Ff=e=>class extends Af(Ra(Ga(Lf(Sf($i(e)))))){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[`
3400
3400
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3401
3401
  font: inherit;
3402
3402
  color: inherit;
3403
3403
  }
3404
- `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=dt.debounce(this._preventInputDebouncer,wi.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3404
+ `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=_t.debounce(this._preventInputDebouncer,Ti.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */class Hf extends Re{constructor(i,t,r={}){const{uniqueIdPrefix:o}=r;super(i,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
3408
+ */class Bf extends Ve{constructor(i,t,r={}){const{uniqueIdPrefix:o}=r;super(i,"input","input",{initializer:(n,s)=>{s.value&&(n.value=s.value),s.type&&n.setAttribute("type",s.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */class Lf{constructor(i,t){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3412
+ */class Rf{constructor(i,t){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const Ff=L`
3416
+ */const zf=z`
3417
3417
  [part='clear-button'] {
3418
3418
  display: none;
3419
3419
  cursor: default;
@@ -3430,7 +3430,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3430
3430
  * @license
3431
3431
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3432
3432
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3433
- */const $f=L`
3433
+ */const Uf=z`
3434
3434
  :host {
3435
3435
  display: inline-flex;
3436
3436
  outline: none;
@@ -3468,7 +3468,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3468
3468
  * @license
3469
3469
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3470
3470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3471
- */const Bf=L`
3471
+ */const jf=z`
3472
3472
  [class$='container'] {
3473
3473
  display: flex;
3474
3474
  flex-direction: column;
@@ -3480,23 +3480,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3480
3480
  * @license
3481
3481
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3482
3482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3483
- */const Rf=[$f,Bf,Ff];/**
3483
+ */const Vf=[Uf,jf,zf];/**
3484
3484
  * @license
3485
3485
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3486
3486
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3487
- */const zf=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:o}=r;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&o.remove(...s)}const n=typeof t=="string"?t.split(" ").filter(Boolean):[];n.length>0&&o.add(...n),this.__previousClasses=n}};/**
3487
+ */const Gf=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:o}=r;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&o.remove(...s)}const n=typeof t=="string"?t.split(" ").filter(Boolean):[];n.length>0&&o.add(...n),this.__previousClasses=n}};/**
3488
3488
  * @license
3489
3489
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3490
3490
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3491
- */class Uf{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
3491
+ */class Wf{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
3492
3492
  * @license
3493
3493
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3494
3494
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3495
- */const jf=e=>class extends zf(bt(Fa(Ua(Ii(e))))){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(t){const r=String(t.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),o=new Date;let n,s=o.getMonth(),a=o.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,n=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?Dt(this.referenceDate):new Date;a=Ud(l,a,s,n)}}else r.length===2?(s=parseInt(r[0])-1,n=parseInt(r[1])):r.length===1&&(n=parseInt(r[0]));if(n!==void 0)return{day:n,month:s,year:a}},formatTitle:(t,r)=>`${t} ${r}`})},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:pa},_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(t){super._inputElementValue=t,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(t){super._onFocus(t),this._noInput&&!mo()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new La(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Uf(this));const t=this.$.overlay;this._overlayElement=t,t.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(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close()}),r.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value}),r.addEventListener("click",o=>o.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=Dt(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(xo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),o=!this._selectedDate||ft(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),r&&o&&n}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,o,n,s,a){return!t||r&&(!a||s)||o&&s||!n.parseDate}_formatISO(t){return Vd(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const o=Dt(t);if(t&&!o){this.value=r;return}t?Te(this._selectedDate,o)||(this._selectedDate=o,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,o,n,s,a,l,u,c){t&&(t.i18n=r,t.label=o,t.minDate=n,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=c)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const o=t.focusedDate||r;t.scrollToDate(o),this._ignoreFocusedDateChange=!0,t.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[n,t];this.__showOthers=ma(s)}_getInitialPosition(){const t=Dt(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||ft(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Da(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(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(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Te(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return Dt(t)}};/**
3495
+ */const Yf=e=>class extends Gf(Et(Ra(Ga($i(e))))){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(t){const r=String(t.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),o=new Date;let n,s=o.getMonth(),a=o.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,n=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?It(this.referenceDate):new Date;a=Wd(l,a,s,n)}}else r.length===2?(s=parseInt(r[0])-1,n=parseInt(r[1])):r.length===1&&(n=parseInt(r[0]));if(n!==void 0)return{day:n,month:s,year:a}},formatTitle:(t,r)=>`${t} ${r}`})},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:ga},_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(t){super._inputElementValue=t,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(t){super._onFocus(t),this._noInput&&!yo()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ba(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Wf(this));const t=this.$.overlay;this._overlayElement=t,t.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(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close()}),r.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value}),r.addEventListener("click",o=>o.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=It(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Ao(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),o=!this._selectedDate||gt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),r&&o&&n}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,o,n,s,a){return!t||r&&(!a||s)||o&&s||!n.parseDate}_formatISO(t){return qd(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const o=It(t);if(t&&!o){this.value=r;return}t?Oe(this._selectedDate,o)||(this._selectedDate=o,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,o,n,s,a,l,u,c){t&&(t.i18n=r,t.label=o,t.minDate=n,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=c)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const o=t.focusedDate||r;t.scrollToDate(o),this._ignoreFocusedDateChange=!0,t.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[n,t];this.__showOthers=ba(s)}_getInitialPosition(){const t=It(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||gt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Ma(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(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(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Oe(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return It(t)}};/**
3496
3496
  * @license
3497
3497
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3498
3498
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3499
- */const Vf=L`
3499
+ */const qf=z`
3500
3500
  :host([opened]) {
3501
3501
  pointer-events: auto;
3502
3502
  }
@@ -3513,7 +3513,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3513
3513
  * @license
3514
3514
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3515
3515
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3516
- */Y("vaadin-date-picker",[Rf,Vf],{moduleId:"vaadin-date-picker-styles"});class Gf extends jf(Nf(We(va(Ie)))){static get is(){return"vaadin-date-picker"}static get template(){return qe`
3516
+ */Z("vaadin-date-picker",[Vf,qf],{moduleId:"vaadin-date-picker-styles"});class Xf extends Yf(Ff(Xe(Ea(Be)))){static get is(){return"vaadin-date-picker"}static get template(){return Je`
3517
3517
  <div class="vaadin-date-picker-container">
3518
3518
  <div part="label">
3519
3519
  <slot name="label"></slot>
@@ -3555,7 +3555,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3555
3555
  ></vaadin-date-picker-overlay>
3556
3556
 
3557
3557
  <slot name="tooltip"></slot>
3558
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Hf(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Lf(this.inputElement,this._labelController)),this._tooltipController=new xa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ye(Gf);if(typeof window!="undefined"){let e=function(i){return function(...t){try{return i.apply(this,t)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-aLuAR06s.cjs")).then(({default:i})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",i.element)})}if(typeof window!="undefined"){let e=function(i){return function(...t){try{return i.apply(this,t)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-Yja8d8Zz.cjs")).then(({default:i})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",i.element)})}var Wf=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Va={exports:{}};(function(e,i){(function(t,r){e.exports=r()})(Wf,function(){var t=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",p="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var b=["th","st","nd","rd"],g=T%100;return"["+T+(b[(g-20)%10]||b[g]||b[0])+"]"}},A=function(T,b,g){var m=String(T);return!m||m.length>=b?T:""+Array(b+1-m.length).join(g)+T},k={s:A,z:function(T){var b=-T.utcOffset(),g=Math.abs(b),m=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+A(m,2,"0")+":"+A(_,2,"0")},m:function T(b,g){if(b.date()<g.date())return-T(g,b);var m=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(m,h),w=g-_<0,C=b.clone().add(m+(w?-1:1),h);return+(-(m+(g-_)/(w?_-C:C-_))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:h,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:n,Q:d}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},O="en",z={};z[O]=D;var W="$isDayjsObject",V=function(T){return T instanceof te||!(!T||!T[W])},le=function T(b,g,m){var _;if(!b)return O;if(typeof b=="string"){var w=b.toLowerCase();z[w]&&(_=w),g&&(z[w]=g,_=w);var C=b.split("-");if(!_&&C.length>1)return T(C[0])}else{var R=b.name;z[R]=b,_=R}return!m&&_&&(O=_),_||!m&&O},B=function(T,b){if(V(T))return T.clone();var g=typeof b=="object"?b:{};return g.date=T,g.args=arguments,new te(g)},I=k;I.l=le,I.i=V,I.w=function(T,b){return B(T,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var te=function(){function T(g){this.$L=le(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[W]=!0}var b=T.prototype;return b.parse=function(g){this.$d=function(m){var _=m.date,w=m.utc;if(_===null)return new Date(NaN);if(I.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var C=_.match(x);if(C){var R=C[2]-1||0,U=(C[7]||"0").substring(0,3);return w?new Date(Date.UTC(C[1],R,C[3]||1,C[4]||0,C[5]||0,C[6]||0,U)):new Date(C[1],R,C[3]||1,C[4]||0,C[5]||0,C[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return I},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,m){var _=B(g);return this.startOf(m)<=_&&_<=this.endOf(m)},b.isAfter=function(g,m){return B(g)<this.startOf(m)},b.isBefore=function(g,m){return this.endOf(m)<B(g)},b.$g=function(g,m,_){return I.u(g)?this[m]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,m){var _=this,w=!!I.u(m)||m,C=I.p(g),R=function(ve,v){var Q=I.w(_.$u?Date.UTC(_.$y,v,ve):new Date(_.$y,v,ve),_);return w?Q:Q.endOf(u)},U=function(ve,v){return I.w(_.toDate()[ve].apply(_.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(v)),_)},q=this.$W,K=this.$M,oe=this.$D,Pe="set"+(this.$u?"UTC":"");switch(C){case f:return w?R(1,0):R(31,11);case h:return w?R(1,K):R(0,K+1);case c:var be=this.$locale().weekStart||0,He=(q<be?q+7:q)-be;return R(w?oe-He:oe+(6-He),K);case u:case p:return U(Pe+"Hours",0);case l:return U(Pe+"Minutes",1);case a:return U(Pe+"Seconds",2);case s:return U(Pe+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,m){var _,w=I.p(g),C="set"+(this.$u?"UTC":""),R=(_={},_[u]=C+"Date",_[p]=C+"Date",_[h]=C+"Month",_[f]=C+"FullYear",_[l]=C+"Hours",_[a]=C+"Minutes",_[s]=C+"Seconds",_[n]=C+"Milliseconds",_)[w],U=w===u?this.$D+(m-this.$W):m;if(w===h||w===f){var q=this.clone().set(p,1);q.$d[R](U),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else R&&this.$d[R](U);return this.init(),this},b.set=function(g,m){return this.clone().$set(g,m)},b.get=function(g){return this[I.p(g)]()},b.add=function(g,m){var _,w=this;g=Number(g);var C=I.p(m),R=function(K){var oe=B(w);return I.w(oe.date(oe.date()+Math.round(K*g)),w)};if(C===h)return this.set(h,this.$M+g);if(C===f)return this.set(f,this.$y+g);if(C===u)return R(1);if(C===c)return R(7);var U=(_={},_[a]=r,_[l]=o,_[s]=t,_)[C]||1,q=this.$d.getTime()+g*U;return I.w(q,this)},b.subtract=function(g,m){return this.add(-1*g,m)},b.format=function(g){var m=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var w=g||"YYYY-MM-DDTHH:mm:ssZ",C=I.z(this),R=this.$H,U=this.$m,q=this.$M,K=_.weekdays,oe=_.months,Pe=_.meridiem,be=function(v,Q,ne,Le){return v&&(v[Q]||v(m,w))||ne[Q].slice(0,Le)},He=function(v){return I.s(R%12||12,v,"0")},ve=Pe||function(v,Q,ne){var Le=v<12?"AM":"PM";return ne?Le.toLowerCase():Le};return w.replace(P,function(v,Q){return Q||function(ne){switch(ne){case"YY":return String(m.$y).slice(-2);case"YYYY":return I.s(m.$y,4,"0");case"M":return q+1;case"MM":return I.s(q+1,2,"0");case"MMM":return be(_.monthsShort,q,oe,3);case"MMMM":return be(oe,q);case"D":return m.$D;case"DD":return I.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return be(_.weekdaysMin,m.$W,K,2);case"ddd":return be(_.weekdaysShort,m.$W,K,3);case"dddd":return K[m.$W];case"H":return String(R);case"HH":return I.s(R,2,"0");case"h":return He(1);case"hh":return He(2);case"a":return ve(R,U,!0);case"A":return ve(R,U,!1);case"m":return String(U);case"mm":return I.s(U,2,"0");case"s":return String(m.$s);case"ss":return I.s(m.$s,2,"0");case"SSS":return I.s(m.$ms,3,"0");case"Z":return C}return null}(v)||C.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,m,_){var w,C=this,R=I.p(m),U=B(g),q=(U.utcOffset()-this.utcOffset())*r,K=this-U,oe=function(){return I.m(C,U)};switch(R){case f:w=oe()/12;break;case h:w=oe();break;case d:w=oe()/3;break;case c:w=(K-q)/6048e5;break;case u:w=(K-q)/864e5;break;case l:w=K/o;break;case a:w=K/r;break;case s:w=K/t;break;default:w=K}return _?w:I.a(w)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return z[this.$L]},b.locale=function(g,m){if(!g)return this.$L;var _=this.clone(),w=le(g,m,!0);return w&&(_.$L=w),_},b.clone=function(){return I.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},T}(),he=te.prototype;return B.prototype=he,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",p]].forEach(function(T){he[T[1]]=function(b){return this.$g(b,T[0],T[1])}}),B.extend=function(T,b){return T.$i||(T(b,te,B),T.$i=!0),B},B.locale=le,B.isDayjs=V,B.unix=function(T){return B(1e3*T)},B.en=z[O],B.Ls=z,B.p={},B})})(Va);var Yf=Va.exports;const Sn=ja(Yf);/*! *****************************************************************************
3558
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Bf(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Rf(this.inputElement,this._labelController)),this._tooltipController=new Ta(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}Ae(Xf);if(typeof window!="undefined"){let e=function(i){return function(...t){try{return i.apply(this,t)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-Bdunpxra.cjs")).then(({default:i})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",i.element)})}if(typeof window!="undefined"){let e=function(i){return function(...t){try{return i.apply(this,t)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-BHFAhogr.cjs")).then(({default:i})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",i.element)})}var Kf=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}};(function(e,i){(function(t,r){e.exports=r()})(Kf,function(){var t=1e3,r=6e4,o=36e5,n="millisecond",s="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",p="year",f="date",m="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var y=["th","st","nd","rd"],_=C%100;return"["+C+(y[(_-20)%10]||y[_]||y[0])+"]"}},M=function(C,y,_){var b=String(C);return!b||b.length>=y?C:""+Array(y+1-b.length).join(_)+C},O={s:M,z:function(C){var y=-C.utcOffset(),_=Math.abs(y),b=Math.floor(_/60),g=_%60;return(y<=0?"+":"-")+M(b,2,"0")+":"+M(g,2,"0")},m:function C(y,_){if(y.date()<_.date())return-C(_,y);var b=12*(_.year()-y.year())+(_.month()-y.month()),g=y.clone().add(b,h),T=_-g<0,A=y.clone().add(b+(T?-1:1),h);return+(-(b+(_-g)/(T?g-A:A-g))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:h,y:p,w:c,d:u,D:f,h:l,m:a,s,ms:n,Q:d}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},I="en",q={};q[I]=k;var re="$isDayjsObject",oe=function(C){return C instanceof he||!(!C||!C[re])},we=function C(y,_,b){var g;if(!y)return I;if(typeof y=="string"){var T=y.toLowerCase();q[T]&&(g=T),_&&(q[T]=_,g=T);var A=y.split("-");if(!g&&A.length>1)return C(A[0])}else{var j=y.name;q[j]=y,g=j}return!b&&g&&(I=g),g||!b&&I},W=function(C,y){if(oe(C))return C.clone();var _=typeof y=="object"?y:{};return _.date=C,_.args=arguments,new he(_)},N=O;N.l=we,N.i=oe,N.w=function(C,y){return W(C,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var he=function(){function C(_){this.$L=we(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[re]=!0}var y=C.prototype;return y.parse=function(_){this.$d=function(b){var g=b.date,T=b.utc;if(g===null)return new Date(NaN);if(N.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var A=g.match(E);if(A){var j=A[2]-1||0,R=(A[7]||"0").substring(0,3);return T?new Date(Date.UTC(A[1],j,A[3]||1,A[4]||0,A[5]||0,A[6]||0,R)):new Date(A[1],j,A[3]||1,A[4]||0,A[5]||0,A[6]||0,R)}}return new Date(g)}(_),this.init()},y.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},y.$utils=function(){return N},y.isValid=function(){return this.$d.toString()!==m},y.isSame=function(_,b){var g=W(_);return this.startOf(b)<=g&&g<=this.endOf(b)},y.isAfter=function(_,b){return W(_)<this.startOf(b)},y.isBefore=function(_,b){return this.endOf(b)<W(_)},y.$g=function(_,b,g){return N.u(_)?this[b]:this.set(g,_)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(_,b){var g=this,T=!!N.u(b)||b,A=N.p(_),j=function(pe,ie){var xe=N.w(g.$u?Date.UTC(g.$y,ie,pe):new Date(g.$y,ie,pe),g);return T?xe:xe.endOf(u)},R=function(pe,ie){return N.w(g.toDate()[pe].apply(g.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ie)),g)},V=this.$W,L=this.$M,G=this.$D,x="set"+(this.$u?"UTC":"");switch(A){case p:return T?j(1,0):j(31,11);case h:return T?j(1,L):j(0,L+1);case c:var F=this.$locale().weekStart||0,Y=(V<F?V+7:V)-F;return j(T?G-Y:G+(6-Y),L);case u:case f:return R(x+"Hours",0);case l:return R(x+"Minutes",1);case a:return R(x+"Seconds",2);case s:return R(x+"Milliseconds",3);default:return this.clone()}},y.endOf=function(_){return this.startOf(_,!1)},y.$set=function(_,b){var g,T=N.p(_),A="set"+(this.$u?"UTC":""),j=(g={},g[u]=A+"Date",g[f]=A+"Date",g[h]=A+"Month",g[p]=A+"FullYear",g[l]=A+"Hours",g[a]=A+"Minutes",g[s]=A+"Seconds",g[n]=A+"Milliseconds",g)[T],R=T===u?this.$D+(b-this.$W):b;if(T===h||T===p){var V=this.clone().set(f,1);V.$d[j](R),V.init(),this.$d=V.set(f,Math.min(this.$D,V.daysInMonth())).$d}else j&&this.$d[j](R);return this.init(),this},y.set=function(_,b){return this.clone().$set(_,b)},y.get=function(_){return this[N.p(_)]()},y.add=function(_,b){var g,T=this;_=Number(_);var A=N.p(b),j=function(L){var G=W(T);return N.w(G.date(G.date()+Math.round(L*_)),T)};if(A===h)return this.set(h,this.$M+_);if(A===p)return this.set(p,this.$y+_);if(A===u)return j(1);if(A===c)return j(7);var R=(g={},g[a]=r,g[l]=o,g[s]=t,g)[A]||1,V=this.$d.getTime()+_*R;return N.w(V,this)},y.subtract=function(_,b){return this.add(-1*_,b)},y.format=function(_){var b=this,g=this.$locale();if(!this.isValid())return g.invalidDate||m;var T=_||"YYYY-MM-DDTHH:mm:ssZ",A=N.z(this),j=this.$H,R=this.$m,V=this.$M,L=g.weekdays,G=g.months,x=g.meridiem,F=function(ie,xe,ze,Qe){return ie&&(ie[xe]||ie(b,T))||ze[xe].slice(0,Qe)},Y=function(ie){return N.s(j%12||12,ie,"0")},pe=x||function(ie,xe,ze){var Qe=ie<12?"AM":"PM";return ze?Qe.toLowerCase():Qe};return T.replace(D,function(ie,xe){return xe||function(ze){switch(ze){case"YY":return String(b.$y).slice(-2);case"YYYY":return N.s(b.$y,4,"0");case"M":return V+1;case"MM":return N.s(V+1,2,"0");case"MMM":return F(g.monthsShort,V,G,3);case"MMMM":return F(G,V);case"D":return b.$D;case"DD":return N.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return F(g.weekdaysMin,b.$W,L,2);case"ddd":return F(g.weekdaysShort,b.$W,L,3);case"dddd":return L[b.$W];case"H":return String(j);case"HH":return N.s(j,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return pe(j,R,!0);case"A":return pe(j,R,!1);case"m":return String(R);case"mm":return N.s(R,2,"0");case"s":return String(b.$s);case"ss":return N.s(b.$s,2,"0");case"SSS":return N.s(b.$ms,3,"0");case"Z":return A}return null}(ie)||A.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(_,b,g){var T,A=this,j=N.p(b),R=W(_),V=(R.utcOffset()-this.utcOffset())*r,L=this-R,G=function(){return N.m(A,R)};switch(j){case p:T=G()/12;break;case h:T=G();break;case d:T=G()/3;break;case c:T=(L-V)/6048e5;break;case u:T=(L-V)/864e5;break;case l:T=L/o;break;case a:T=L/r;break;case s:T=L/t;break;default:T=L}return g?T:N.a(T)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return q[this.$L]},y.locale=function(_,b){if(!_)return this.$L;var g=this.clone(),T=we(_,b,!0);return T&&(g.$L=T),g},y.clone=function(){return N.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},C}(),ne=he.prototype;return W.prototype=ne,[["$ms",n],["$s",s],["$m",a],["$H",l],["$W",u],["$M",h],["$y",p],["$D",f]].forEach(function(C){ne[C[1]]=function(y){return this.$g(y,C[0],C[1])}}),W.extend=function(C,y){return C.$i||(C(y,he,W),C.$i=!0),W},W.locale=we,W.isDayjs=oe,W.unix=function(C){return W(1e3*C)},W.en=q[I],W.Ls=q,W.p={},W})})(Ya);var Jf=Ya.exports;const On=Wa(Jf);/*! *****************************************************************************
3559
3559
  Copyright (c) Microsoft Corporation.
3560
3560
 
3561
3561
  Permission to use, copy, modify, and/or distribute this software for any
@@ -3568,8 +3568,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3568
3568
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3569
3569
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3570
3570
  PERFORMANCE OF THIS SOFTWARE.
3571
- ***************************************************************************** */var Br=function(e,i){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Br(e,i)};function Jt(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Br(e,i);function t(){this.constructor=e}e.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}function Rr(e){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&e[i],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function zr(e,i){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,n=[],s;try{for(;(i===void 0||i-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return n}function Ur(e,i,t){if(arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return e.concat(n||i)}function Ce(e){return typeof e=="function"}function Ga(e){var i=function(r){Error.call(r),r.stack=new Error().stack},t=e(i);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var lr=Ga(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
3571
+ ***************************************************************************** */var jr=function(e,i){return jr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},jr(e,i)};function ti(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");jr(e,i);function t(){this.constructor=e}e.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}function Vr(e){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&e[i],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gr(e,i){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,n=[],s;try{for(;(i===void 0||i-- >0)&&!(o=r.next()).done;)n.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return n}function Wr(e,i,t){if(arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return e.concat(n||i)}function ke(e){return typeof e=="function"}function qa(e){var i=function(r){Error.call(r),r.stack=new Error().stack},t=e(i);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var dr=qa(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
3572
3572
  `+t.map(function(r,o){return o+1+") "+r.toString()}).join(`
3573
- `):"",this.name="UnsubscriptionError",this.errors=t}});function jr(e,i){if(e){var t=e.indexOf(i);0<=t&&e.splice(t,1)}}var Ni=function(){function e(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var i,t,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Rr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(y){i={error:y}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Ce(c))try{c()}catch(y){n=y instanceof lr?y.errors:[y]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Rr(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{Pn(p)}catch(y){n=n!=null?n:[],y instanceof lr?n=Ur(Ur([],zr(n)),zr(y.errors)):n.push(y)}}}catch(y){r={error:y}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(n)throw new lr(n)}},e.prototype.add=function(i){var t;if(i&&i!==this)if(this.closed)Pn(i);else{if(i instanceof e){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(i)}},e.prototype._hasParent=function(i){var t=this._parentage;return t===i||Array.isArray(t)&&t.includes(i)},e.prototype._addParent=function(i){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(i),t):t?[t,i]:i},e.prototype._removeParent=function(i){var t=this._parentage;t===i?this._parentage=null:Array.isArray(t)&&jr(t,i)},e.prototype.remove=function(i){var t=this._finalizers;t&&jr(t,i),i instanceof e&&i._removeParent(this)},e.EMPTY=function(){var i=new e;return i.closed=!0,i}(),e}(),Wa=Ni.EMPTY;function Ya(e){return e instanceof Ni||e&&"closed"in e&&Ce(e.remove)&&Ce(e.add)&&Ce(e.unsubscribe)}function Pn(e){Ce(e)?e():e.unsubscribe()}var qf={Promise:void 0},Xf={setTimeout:function(e,i){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Ur([e,i],zr(t)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Kf(e){Xf.setTimeout(function(){throw e})}function Dn(){}function hi(e){e()}var qa=function(e){Jt(i,e);function i(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ya(t)&&t.add(r)):r.destination=Qf,r}return i.create=function(t,r,o){return new Vr(t,r,o)},i.prototype.next=function(t){this.isStopped||this._next(t)},i.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(t){this.destination.next(t)},i.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Ni),Jf=function(){function e(i){this.partialObserver=i}return e.prototype.next=function(i){var t=this.partialObserver;if(t.next)try{t.next(i)}catch(r){ni(r)}},e.prototype.error=function(i){var t=this.partialObserver;if(t.error)try{t.error(i)}catch(r){ni(r)}else ni(i)},e.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(t){ni(t)}},e}(),Vr=function(e){Jt(i,e);function i(t,r,o){var n=e.call(this)||this,s;return Ce(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new Jf(s),n}return i}(qa);function ni(e){Kf(e)}function Zf(e){throw e}var Qf={closed:!0,next:Dn,error:Zf,complete:Dn},ep=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tp(e){return e}function ip(e){return e.length===0?tp:e.length===1?e[0]:function(t){return e.reduce(function(r,o){return o(r)},t)}}var On=function(){function e(i){i&&(this._subscribe=i)}return e.prototype.lift=function(i){var t=new e;return t.source=this,t.operator=i,t},e.prototype.subscribe=function(i,t,r){var o=this,n=op(i)?i:new Vr(i,t,r);return hi(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},e.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(t){i.error(t)}},e.prototype.forEach=function(i,t){var r=this;return t=kn(t),new t(function(o,n){var s=new Vr({next:function(a){try{i(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(i){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(i)},e.prototype[ep]=function(){return this},e.prototype.pipe=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return ip(i)(this)},e.prototype.toPromise=function(i){var t=this;return i=kn(i),new i(function(r,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},e.create=function(i){return new e(i)},e}();function kn(e){var i;return(i=e!=null?e:qf.Promise)!==null&&i!==void 0?i:Promise}function rp(e){return e&&Ce(e.next)&&Ce(e.error)&&Ce(e.complete)}function op(e){return e&&e instanceof qa||rp(e)&&Ya(e)}var np=Ga(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xa=function(e){Jt(i,e);function i(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.prototype.lift=function(t){var r=new Mn(this,this);return r.operator=t,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new np},i.prototype.next=function(t){var r=this;hi(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Rr(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},i.prototype.error=function(t){var r=this;hi(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},i.prototype.complete=function(){var t=this;hi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},i.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},i.prototype._innerSubscribe=function(t){var r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Wa:(this.currentObservers=null,a.push(t),new Ni(function(){r.currentObservers=null,jr(a,t)}))},i.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?t.error(n):s&&t.complete()},i.prototype.asObservable=function(){var t=new On;return t.source=this,t},i.create=function(t,r){return new Mn(t,r)},i}(On),Mn=function(e){Jt(i,e);function i(t,r){var o=e.call(this)||this;return o.destination=t,o.source=r,o}return i.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},i.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},i.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},i.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Wa},i}(Xa),Ka={now:function(){return(Ka.delegate||Date).now()},delegate:void 0},sp=function(e){Jt(i,e);function i(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ka);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return i.prototype.next=function(t){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,t)},i.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},i.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),u=0,c=1;c<n.length&&n[c]<=l;c+=2)u=c;u&&n.splice(0,u+1)}},i}(Xa);const In=[],Nn={},ap=(e,i=0)=>{if(In.indexOf(e)==-1){const t=new sp(i);Nn[e]=t,In.push(e)}return Nn[e]},Ze=[];function lp(e,i){return{subscribe:Hi(e,i).subscribe}}function Hi(e,i=re){let t;const r=new Set;function o(a){if(eo(e,a)&&(e=a,t)){const l=!Ze.length;for(const u of r)u[1](),Ze.push(u,e);if(l){for(let u=0;u<Ze.length;u+=2)Ze[u][0](Ze[u+1]);Ze.length=0}}}function n(a){o(a(e))}function s(a,l=re){const u=[a,l];return r.add(u),r.size===1&&(t=i(o,n)||re),a(e),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function vt(e,i,t){const r=!Array.isArray(e),o=r?[e]:e;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=i.length<2;return lp(t,(s,a)=>{let l=!1;const u=[];let c=0,h=re;const d=()=>{if(c)return;h();const p=i(r?u[0]:u,s,a);n?s(p):h=Si(p)?p:re},f=o.map((p,y)=>as(p,x=>{u[y]=x,c&=~(1<<y),l&&d()},()=>{c|=1<<y}));return l=!0,d(),function(){Se(f),h(),l=!1}})}var up=function(i){return cp(i)&&!hp(i)};function cp(e){return!!e&&typeof e=="object"}function hp(e){var i=Object.prototype.toString.call(e);return i==="[object RegExp]"||i==="[object Date]"||pp(e)}var dp=typeof Symbol=="function"&&Symbol.for,fp=dp?Symbol.for("react.element"):60103;function pp(e){return e.$$typeof===fp}function mp(e){return Array.isArray(e)?[]:{}}function qt(e,i){return i.clone!==!1&&i.isMergeableObject(e)?pt(mp(e),e,i):e}function _p(e,i,t){return e.concat(i).map(function(r){return qt(r,t)})}function gp(e,i){if(!i.customMerge)return pt;var t=i.customMerge(e);return typeof t=="function"?t:pt}function yp(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(i){return Object.propertyIsEnumerable.call(e,i)}):[]}function Hn(e){return Object.keys(e).concat(yp(e))}function Ja(e,i){try{return i in e}catch(t){return!1}}function bp(e,i){return Ja(e,i)&&!(Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))}function vp(e,i,t){var r={};return t.isMergeableObject(e)&&Hn(e).forEach(function(o){r[o]=qt(e[o],t)}),Hn(i).forEach(function(o){bp(e,o)||(Ja(e,o)&&t.isMergeableObject(i[o])?r[o]=gp(o,t)(e[o],i[o],t):r[o]=qt(i[o],t))}),r}function pt(e,i,t){t=t||{},t.arrayMerge=t.arrayMerge||_p,t.isMergeableObject=t.isMergeableObject||up,t.cloneUnlessOtherwiseSpecified=qt;var r=Array.isArray(i),o=Array.isArray(e),n=r===o;return n?r?t.arrayMerge(e,i,t):vp(e,i,t):qt(i,t)}pt.all=function(i,t){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,o){return pt(r,o,t)},{})};var wp=pt,xp=wp;const Ep=ja(xp);var Gr=function(e,i){return Gr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Gr(e,i)};function Li(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Gr(e,i);function t(){this.constructor=e}e.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var _e=function(){return _e=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},_e.apply(this,arguments)};function Tp(e,i){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function ur(e,i,t){if(t||arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return e.concat(n||Array.prototype.slice.call(i))}function cr(e,i){var t=i&&i.cache?i.cache:kp,r=i&&i.serializer?i.serializer:Dp,o=i&&i.strategy?i.strategy:Sp;return o(e,{cache:t,serializer:r})}function Cp(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ap(e,i,t,r){var o=Cp(r)?r:t(r),n=i.get(o);return typeof n=="undefined"&&(n=e.call(this,r),i.set(o,n)),n}function Za(e,i,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),n=i.get(o);return typeof n=="undefined"&&(n=e.apply(this,r),i.set(o,n)),n}function Qa(e,i,t,r,o){return t.bind(i,e,r,o)}function Sp(e,i){var t=e.length===1?Ap:Za;return Qa(e,this,t,i.cache.create(),i.serializer)}function Pp(e,i){return Qa(e,this,Za,i.cache.create(),i.serializer)}var Dp=function(){return JSON.stringify(arguments)},Op=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(i){return this.cache[i]},e.prototype.set=function(i,t){this.cache[i]=t},e}(),kp={create:function(){return new Op}},hr={variadic:Pp},Ti=function(){return Ti=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Ti.apply(this,arguments)};var N;(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"})(N||(N={}));var j;(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"})(j||(j={}));var mt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(mt||(mt={}));function Ln(e){return e.type===j.literal}function Mp(e){return e.type===j.argument}function el(e){return e.type===j.number}function tl(e){return e.type===j.date}function il(e){return e.type===j.time}function rl(e){return e.type===j.select}function ol(e){return e.type===j.plural}function Ip(e){return e.type===j.pound}function nl(e){return e.type===j.tag}function sl(e){return!!(e&&typeof e=="object"&&e.type===mt.number)}function Wr(e){return!!(e&&typeof e=="object"&&e.type===mt.dateTime)}var al=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Np=/(?:[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 Hp(e){var i={};return e.replace(Np,function(t){var r=t.length;switch(t[0]){case"G":i.era=r===4?"long":r===5?"narrow":"short";break;case"y":i.year=r===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":i.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][r-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][r-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][r-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][r-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":i.minute=["numeric","2-digit"][r-1];break;case"s":i.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=r<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""}),i}var G=function(){return G=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},G.apply(this,arguments)};var Lp=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Fp(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var i=e.split(Lp).filter(function(d){return d.length>0}),t=[],r=0,o=i;r<o.length;r++){var n=o[r],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function $p(e){return e.replace(/^(.*?)-/,"")}var Fn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ll=/^(@+)?(\+|#+)?[rs]?$/g,Bp=/(\*)(0+)|(#+)(0+)|(0+)/g,ul=/^(0+)$/;function $n(e){var i={};return e[e.length-1]==="r"?i.roundingPriority="morePrecision":e[e.length-1]==="s"&&(i.roundingPriority="lessPrecision"),e.replace(ll,function(t,r,o){return typeof o!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):o==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),i}function cl(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 Rp(e){var i;if(e[0]==="E"&&e[1]==="E"?(i={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(i={notation:"scientific"},e=e.slice(1)),i){var t=e.slice(0,2);if(t==="+!"?(i.signDisplay="always",e=e.slice(2)):t==="+?"&&(i.signDisplay="exceptZero",e=e.slice(2)),!ul.test(e))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=e.length}return i}function Bn(e){var i={},t=cl(e);return t||i}function zp(e){for(var i={},t=0,r=e;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=$p(o.options[0]);continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=G(G(G({},i),{notation:"scientific"}),o.options.reduce(function(l,u){return G(G({},l),Bn(u))},{}));continue;case"engineering":i=G(G(G({},i),{notation:"engineering"}),o.options.reduce(function(l,u){return G(G({},l),Bn(u))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":i.roundingMode="floor";continue;case"rounding-mode-ceiling":i.roundingMode="ceil";continue;case"rounding-mode-down":i.roundingMode="trunc";continue;case"rounding-mode-up":i.roundingMode="expand";continue;case"rounding-mode-half-even":i.roundingMode="halfEven";continue;case"rounding-mode-half-down":i.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":i.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Bp,function(l,u,c,h,d,f){if(u)i.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ul.test(o.stem)){i.minimumIntegerDigits=o.stem.length;continue}if(Fn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Fn,function(l,u,c,h,d,f){return c==="*"?i.minimumFractionDigits=u.length:h&&h[0]==="#"?i.maximumFractionDigits=h.length:d&&f?(i.minimumFractionDigits=d.length,i.maximumFractionDigits=d.length+f.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var n=o.options[0];n==="w"?i=G(G({},i),{trailingZeroDisplay:"stripIfInteger"}):n&&(i=G(G({},i),$n(n)));continue}if(ll.test(o.stem)){i=G(G({},i),$n(o.stem));continue}var s=cl(o.stem);s&&(i=G(G({},i),s));var a=Rp(o.stem);a&&(i=G(G({},i),a))}return i}var si={"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 Up(e,i){for(var t="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var n=0;r+1<e.length&&e.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",u=jp(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else o==="J"?t+="H":t+=o}return t}function jp(e){var i=e.hourCycle;if(i===void 0&&e.hourCycles&&e.hourCycles.length&&(i=e.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,r;t!=="root"&&(r=e.maximize().region);var o=si[r||""]||si[t||""]||si["".concat(t,"-001")]||si["001"];return o[0]}var dr,Vp=new RegExp("^".concat(al.source,"*")),Gp=new RegExp("".concat(al.source,"*$"));function H(e,i){return{start:e,end:i}}var Wp=!!String.prototype.startsWith&&"_a".startsWith("a",1),Yp=!!String.fromCodePoint,qp=!!Object.fromEntries,Xp=!!String.prototype.codePointAt,Kp=!!String.prototype.trimStart,Jp=!!String.prototype.trimEnd,Zp=!!Number.isSafeInteger,Qp=Zp?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Yr=!0;try{var em=dl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yr=((dr=em.exec("a"))===null||dr===void 0?void 0:dr[0])==="a"}catch(e){Yr=!1}var Rn=Wp?function(i,t,r){return i.startsWith(t,r)}:function(i,t,r){return i.slice(r,r+t.length)===t},qr=Yp?String.fromCodePoint:function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];for(var r="",o=i.length,n=0,s;o>n;){if(s=i[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},zn=qp?Object.fromEntries:function(i){for(var t={},r=0,o=i;r<o.length;r++){var n=o[r],s=n[0],a=n[1];t[s]=a}return t},hl=Xp?function(i,t){return i.codePointAt(t)}:function(i,t){var r=i.length;if(!(t<0||t>=r)){var o=i.charCodeAt(t),n;return o<55296||o>56319||t+1===r||(n=i.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},tm=Kp?function(i){return i.trimStart()}:function(i){return i.replace(Vp,"")},im=Jp?function(i){return i.trimEnd()}:function(i){return i.replace(Gp,"")};function dl(e,i){return new RegExp(e,i)}var Xr;if(Yr){var Un=dl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xr=function(i,t){var r;Un.lastIndex=t;var o=Un.exec(i);return(r=o[1])!==null&&r!==void 0?r:""}}else Xr=function(i,t){for(var r=[];;){var o=hl(i,t);if(o===void 0||fl(o)||sm(o))break;r.push(o),t+=o>=65536?2:1}return qr.apply(void 0,r)};var rm=function(){function e(i,t){t===void 0&&(t={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.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(i,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(i,r);if(s.err)return s;o.push(s.val)}else{if(n===125&&i>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:j.pound,location:H(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(N.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&Kr(this.peek()||0)){var s=this.parseTag(i,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(i,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(i,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:j.literal,value:"<".concat(o,"/>"),location:H(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(i+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Kr(this.char()))return this.error(N.INVALID_TAG,H(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(N.UNMATCHED_CLOSING_TAG,H(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:j.tag,value:o,children:s,location:H(r,this.clonePosition())},err:null}:this.error(N.INVALID_TAG,H(a,this.clonePosition())))}else return this.error(N.UNCLOSED_TAG,H(r,this.clonePosition()))}else return this.error(N.INVALID_TAG,H(r,this.clonePosition()))},e.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&nm(this.char());)this.bump();return this.message.slice(i,this.offset())},e.prototype.parseLiteral=function(i,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(i,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=H(r,this.clonePosition());return{val:{type:j.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!om(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(i){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(i==="plural"||i==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return qr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(i,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&i>0?null:(this.bump(),qr(r))},e.prototype.parseArgument=function(i,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(N.EMPTY_ARGUMENT,H(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(N.MALFORMED_ARGUMENT,H(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:j.argument,value:o,location:H(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(r,this.clonePosition())):this.parseArgumentOptions(i,t,o,r);default:return this.error(N.MALFORMED_ARGUMENT,H(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),t=this.offset(),r=Xr(this.message,t),o=t+r.length;this.bumpTo(o);var n=this.clonePosition(),s=H(i,n);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(i,t,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(N.EXPECT_ARGUMENT_TYPE,H(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=im(h.val);if(d.length===0)return this.error(N.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var f=H(c,this.clonePosition());u={style:d,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var y=H(o,this.clonePosition());if(u&&Rn(u==null?void 0:u.style,"::",0)){var x=tm(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(x,u.styleLocation);return h.err?h:{val:{type:j.number,value:r,location:y,style:h.val},err:null}}else{if(x.length===0)return this.error(N.EXPECT_DATE_TIME_SKELETON,y);var P=x;this.locale&&(P=Up(x,this.locale));var d={type:mt.dateTime,pattern:P,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Hp(P):{}},D=a==="date"?j.date:j.time;return{val:{type:D,value:r,location:y,style:d},err:null}}}return{val:{type:a==="number"?j.number:a==="date"?j.date:j.time,value:r,location:y,style:(n=u==null?void 0:u.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS,H(A,Ti({},A)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),O=0;if(a!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),k=this.parseIdentifierIfPossible(),O=h.val}var z=this.tryParsePluralOrSelectOptions(i,a,t,k);if(z.err)return z;var p=this.tryParseArgumentClose(o);if(p.err)return p;var W=H(o,this.clonePosition());return a==="select"?{val:{type:j.select,value:r,options:zn(z.val),location:W},err:null}:{val:{type:j.plural,value:r,options:zn(z.val),offset:O,pluralType:a==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(N.INVALID_ARGUMENT_TYPE,H(s,l))}},e.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE,H(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(o,this.clonePosition()));this.bump();break}case 123:{i+=1,this.bump();break}case 125:{if(i>0)i-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(i,t){var r=[];try{r=Fp(i)}catch(o){return this.error(N.INVALID_NUMBER_SKELETON,t)}return{val:{type:mt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?zp(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(i,t,r,o){for(var n,s=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR,N.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=H(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?N.DUPLICATE_SELECT_ARGUMENT_SELECTOR:N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,t,r);if(p.err)return p;var y=this.tryParseArgumentClose(f);if(y.err)return y;a.push([u,{value:p.val,location:H(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),n=this.parseIdentifierIfPossible(),u=n.value,c=n.location}return a.length===0?this.error(t==="select"?N.EXPECT_SELECT_ARGUMENT_SELECTOR:N.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(N.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(i,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=H(o,this.clonePosition());return n?(s*=r,Qp(s)?{val:s,err:null}:this.error(t,l)):this.error(i,l)},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 i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var t=hl(this.message,i);if(t===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(i,t){return{val:null,err:{kind:i,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var i=this.char();i===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},e.prototype.bumpIf=function(i){if(Rn(this.message,i,this.offset())){for(var t=0;t<i.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(i){var t=this.offset(),r=this.message.indexOf(i,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var t=this.offset();if(t===i)break;if(t>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&fl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(i>=65536?2:1));return r!=null?r:null},e}();function Kr(e){return e>=97&&e<=122||e>=65&&e<=90}function om(e){return Kr(e)||e===47}function nm(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 fl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function sm(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 Jr(e){e.forEach(function(i){if(delete i.location,rl(i)||ol(i))for(var t in i.options)delete i.options[t].location,Jr(i.options[t].value);else el(i)&&sl(i.style)||(tl(i)||il(i))&&Wr(i.style)?delete i.style.location:nl(i)&&Jr(i.children)})}function am(e,i){i===void 0&&(i={}),i=Ti({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var t=new rm(e,i).parse();if(t.err){var r=SyntaxError(N[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return i!=null&&i.captureLocation||Jr(t.val),t.val}var _t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(_t||(_t={}));var Fi=function(e){Li(i,e);function i(t,r,o){var n=e.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),jn=function(e){Li(i,e);function i(t,r,o,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),_t.INVALID_VALUE,n)||this}return i}(Fi),lm=function(e){Li(i,e);function i(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),_t.INVALID_VALUE,o)||this}return i}(Fi),um=function(e){Li(i,e);function i(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),_t.MISSING_VALUE,r)||this}return i}(Fi),ie;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ie||(ie={}));function cm(e){return e.length<2?e:e.reduce(function(i,t){var r=i[i.length-1];return!r||r.type!==ie.literal||t.type!==ie.literal?i.push(t):r.value+=t.value,i},[])}function hm(e){return typeof e=="function"}function di(e,i,t,r,o,n,s){if(e.length===1&&Ln(e[0]))return[{type:ie.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Ln(c)){a.push({type:ie.literal,value:c.value});continue}if(Ip(c)){typeof n=="number"&&a.push({type:ie.literal,value:t.getNumberFormat(i).format(n)});continue}var h=c.value;if(!(o&&h in o))throw new um(h,s);var d=o[h];if(Mp(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ie.literal:ie.object,value:d});continue}if(tl(c)){var f=typeof c.style=="string"?r.date[c.style]:Wr(c.style)?c.style.parsedOptions:void 0;a.push({type:ie.literal,value:t.getDateTimeFormat(i,f).format(d)});continue}if(il(c)){var f=typeof c.style=="string"?r.time[c.style]:Wr(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ie.literal,value:t.getDateTimeFormat(i,f).format(d)});continue}if(el(c)){var f=typeof c.style=="string"?r.number[c.style]:sl(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),a.push({type:ie.literal,value:t.getNumberFormat(i,f).format(d)});continue}if(nl(c)){var p=c.children,y=c.value,x=o[y];if(!hm(x))throw new lm(y,"function",s);var P=di(p,i,t,r,o,n),D=x(P.map(function(O){return O.value}));Array.isArray(D)||(D=[D]),a.push.apply(a,D.map(function(O){return{type:typeof O=="string"?ie.literal:ie.object,value:O}}))}if(rl(c)){var A=c.options[d]||c.options.other;if(!A)throw new jn(c.value,d,Object.keys(c.options),s);a.push.apply(a,di(A.value,i,t,r,o));continue}if(ol(c)){var A=c.options["=".concat(d)];if(!A){if(!Intl.PluralRules)throw new Fi(`Intl.PluralRules is not available in this environment.
3573
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Yr(e,i){if(e){var t=e.indexOf(i);0<=t&&e.splice(t,1)}}var Fi=function(){function e(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var i,t,r,o,n;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Vr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(m){i={error:m}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(ke(c))try{c()}catch(m){n=m instanceof dr?m.errors:[m]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Vr(h),p=d.next();!p.done;p=d.next()){var f=p.value;try{kn(f)}catch(m){n=n!=null?n:[],m instanceof dr?n=Wr(Wr([],Gr(n)),Gr(m.errors)):n.push(m)}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(n)throw new dr(n)}},e.prototype.add=function(i){var t;if(i&&i!==this)if(this.closed)kn(i);else{if(i instanceof e){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(i)}},e.prototype._hasParent=function(i){var t=this._parentage;return t===i||Array.isArray(t)&&t.includes(i)},e.prototype._addParent=function(i){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(i),t):t?[t,i]:i},e.prototype._removeParent=function(i){var t=this._parentage;t===i?this._parentage=null:Array.isArray(t)&&Yr(t,i)},e.prototype.remove=function(i){var t=this._finalizers;t&&Yr(t,i),i instanceof e&&i._removeParent(this)},e.EMPTY=function(){var i=new e;return i.closed=!0,i}(),e}(),Xa=Fi.EMPTY;function Ka(e){return e instanceof Fi||e&&"closed"in e&&ke(e.remove)&&ke(e.add)&&ke(e.unsubscribe)}function kn(e){ke(e)?e():e.unsubscribe()}var Zf={Promise:void 0},Qf={setTimeout:function(e,i){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Wr([e,i],Gr(t)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function ep(e){Qf.setTimeout(function(){throw e})}function Mn(){}function mi(e){e()}var Ja=function(e){ti(i,e);function i(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ka(t)&&t.add(r)):r.destination=rp,r}return i.create=function(t,r,o){return new qr(t,r,o)},i.prototype.next=function(t){this.isStopped||this._next(t)},i.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(t){this.destination.next(t)},i.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Fi),tp=function(){function e(i){this.partialObserver=i}return e.prototype.next=function(i){var t=this.partialObserver;if(t.next)try{t.next(i)}catch(r){ui(r)}},e.prototype.error=function(i){var t=this.partialObserver;if(t.error)try{t.error(i)}catch(r){ui(r)}else ui(i)},e.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(t){ui(t)}},e}(),qr=function(e){ti(i,e);function i(t,r,o){var n=e.call(this)||this,s;return ke(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0}:s=t,n.destination=new tp(s),n}return i}(Ja);function ui(e){ep(e)}function ip(e){throw e}var rp={closed:!0,next:Mn,error:ip,complete:Mn},op=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function np(e){return e}function sp(e){return e.length===0?np:e.length===1?e[0]:function(t){return e.reduce(function(r,o){return o(r)},t)}}var In=function(){function e(i){i&&(this._subscribe=i)}return e.prototype.lift=function(i){var t=new e;return t.source=this,t.operator=i,t},e.prototype.subscribe=function(i,t,r){var o=this,n=lp(i)?i:new qr(i,t,r);return mi(function(){var s=o,a=s.operator,l=s.source;n.add(a?a.call(n,l):l?o._subscribe(n):o._trySubscribe(n))}),n},e.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(t){i.error(t)}},e.prototype.forEach=function(i,t){var r=this;return t=Nn(t),new t(function(o,n){var s=new qr({next:function(a){try{i(a)}catch(l){n(l),s.unsubscribe()}},error:n,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(i){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(i)},e.prototype[op]=function(){return this},e.prototype.pipe=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return sp(i)(this)},e.prototype.toPromise=function(i){var t=this;return i=Nn(i),new i(function(r,o){var n;t.subscribe(function(s){return n=s},function(s){return o(s)},function(){return r(n)})})},e.create=function(i){return new e(i)},e}();function Nn(e){var i;return(i=e!=null?e:Zf.Promise)!==null&&i!==void 0?i:Promise}function ap(e){return e&&ke(e.next)&&ke(e.error)&&ke(e.complete)}function lp(e){return e&&e instanceof Ja||ap(e)&&Ka(e)}var up=qa(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Za=function(e){ti(i,e);function i(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.prototype.lift=function(t){var r=new Hn(this,this);return r.operator=t,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new up},i.prototype.next=function(t){var r=this;mi(function(){var o,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Vr(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}}})},i.prototype.error=function(t){var r=this;mi(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},i.prototype.complete=function(){var t=this;mi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},i.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},i.prototype._innerSubscribe=function(t){var r=this,o=this,n=o.hasError,s=o.isStopped,a=o.observers;return n||s?Xa:(this.currentObservers=null,a.push(t),new Fi(function(){r.currentObservers=null,Yr(a,t)}))},i.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,n=r.thrownError,s=r.isStopped;o?t.error(n):s&&t.complete()},i.prototype.asObservable=function(){var t=new In;return t.source=this,t},i.create=function(t,r){return new Hn(t,r)},i}(In),Hn=function(e){ti(i,e);function i(t,r){var o=e.call(this)||this;return o.destination=t,o.source=r,o}return i.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},i.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},i.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},i.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Xa},i}(Za),Qa={now:function(){return(Qa.delegate||Date).now()},delegate:void 0},cp=function(e){ti(i,e);function i(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Qa);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=o,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return i.prototype.next=function(t){var r=this,o=r.isStopped,n=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;o||(n.push(t),!s&&n.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,t)},i.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,n=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=n?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},i.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,n=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<n.length&&n.splice(0,n.length-a),!s){for(var l=o.now(),u=0,c=1;c<n.length&&n[c]<=l;c+=2)u=c;u&&n.splice(0,u+1)}},i}(Za);const Ln=[],$n={},hp=(e,i=0)=>{if(Ln.indexOf(e)==-1){const t=new cp(i);$n[e]=t,Ln.push(e)}return $n[e]},rt=[];function dp(e,i){return{subscribe:Bi(e,i).subscribe}}function Bi(e,i=ae){let t;const r=new Set;function o(a){if(oo(e,a)&&(e=a,t)){const l=!rt.length;for(const u of r)u[1](),rt.push(u,e);if(l){for(let u=0;u<rt.length;u+=2)rt[u][0](rt[u+1]);rt.length=0}}}function n(a){o(a(e))}function s(a,l=ae){const u=[a,l];return r.add(u),r.size===1&&(t=i(o,n)||ae),a(e),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:o,update:n,subscribe:s}}function Ct(e,i,t){const r=!Array.isArray(e),o=r?[e]:e;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=i.length<2;return dp(t,(s,a)=>{let l=!1;const u=[];let c=0,h=ae;const d=()=>{if(c)return;h();const f=i(r?u[0]:u,s,a);n?s(f):h=ki(f)?f:ae},p=o.map((f,m)=>cs(f,E=>{u[m]=E,c&=~(1<<m),l&&d()},()=>{c|=1<<m}));return l=!0,d(),function(){ve(p),h(),l=!1}})}var fp=function(i){return pp(i)&&!mp(i)};function pp(e){return!!e&&typeof e=="object"}function mp(e){var i=Object.prototype.toString.call(e);return i==="[object RegExp]"||i==="[object Date]"||bp(e)}var _p=typeof Symbol=="function"&&Symbol.for,gp=_p?Symbol.for("react.element"):60103;function bp(e){return e.$$typeof===gp}function yp(e){return Array.isArray(e)?[]:{}}function Zt(e,i){return i.clone!==!1&&i.isMergeableObject(e)?bt(yp(e),e,i):e}function vp(e,i,t){return e.concat(i).map(function(r){return Zt(r,t)})}function wp(e,i){if(!i.customMerge)return bt;var t=i.customMerge(e);return typeof t=="function"?t:bt}function xp(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(i){return Object.propertyIsEnumerable.call(e,i)}):[]}function Fn(e){return Object.keys(e).concat(xp(e))}function el(e,i){try{return i in e}catch(t){return!1}}function Ep(e,i){return el(e,i)&&!(Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))}function Cp(e,i,t){var r={};return t.isMergeableObject(e)&&Fn(e).forEach(function(o){r[o]=Zt(e[o],t)}),Fn(i).forEach(function(o){Ep(e,o)||(el(e,o)&&t.isMergeableObject(i[o])?r[o]=wp(o,t)(e[o],i[o],t):r[o]=Zt(i[o],t))}),r}function bt(e,i,t){t=t||{},t.arrayMerge=t.arrayMerge||vp,t.isMergeableObject=t.isMergeableObject||fp,t.cloneUnlessOtherwiseSpecified=Zt;var r=Array.isArray(i),o=Array.isArray(e),n=r===o;return n?r?t.arrayMerge(e,i,t):Cp(e,i,t):Zt(i,t)}bt.all=function(i,t){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,o){return bt(r,o,t)},{})};var Tp=bt,Ap=Tp;const Sp=Wa(Ap);var Xr=function(e,i){return Xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},Xr(e,i)};function Ri(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Xr(e,i);function t(){this.constructor=e}e.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var Te=function(){return Te=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Te.apply(this,arguments)};function Pp(e,i){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}function fr(e,i,t){if(t||arguments.length===2)for(var r=0,o=i.length,n;r<o;r++)(n||!(r in i))&&(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return e.concat(n||Array.prototype.slice.call(i))}function pr(e,i){var t=i&&i.cache?i.cache:Hp,r=i&&i.serializer?i.serializer:Ip,o=i&&i.strategy?i.strategy:kp;return o(e,{cache:t,serializer:r})}function Dp(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Op(e,i,t,r){var o=Dp(r)?r:t(r),n=i.get(o);return typeof n=="undefined"&&(n=e.call(this,r),i.set(o,n)),n}function tl(e,i,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),n=i.get(o);return typeof n=="undefined"&&(n=e.apply(this,r),i.set(o,n)),n}function il(e,i,t,r,o){return t.bind(i,e,r,o)}function kp(e,i){var t=e.length===1?Op:tl;return il(e,this,t,i.cache.create(),i.serializer)}function Mp(e,i){return il(e,this,tl,i.cache.create(),i.serializer)}var Ip=function(){return JSON.stringify(arguments)},Np=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(i){return this.cache[i]},e.prototype.set=function(i,t){this.cache[i]=t},e}(),Hp={create:function(){return new Np}},mr={variadic:Mp},Pi=function(){return Pi=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Pi.apply(this,arguments)};var $;(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"})($||($={}));var X;(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"})(X||(X={}));var yt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(yt||(yt={}));function Bn(e){return e.type===X.literal}function Lp(e){return e.type===X.argument}function rl(e){return e.type===X.number}function ol(e){return e.type===X.date}function nl(e){return e.type===X.time}function sl(e){return e.type===X.select}function al(e){return e.type===X.plural}function $p(e){return e.type===X.pound}function ll(e){return e.type===X.tag}function ul(e){return!!(e&&typeof e=="object"&&e.type===yt.number)}function Kr(e){return!!(e&&typeof e=="object"&&e.type===yt.dateTime)}var cl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Fp=/(?:[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 Bp(e){var i={};return e.replace(Fp,function(t){var r=t.length;switch(t[0]){case"G":i.era=r===4?"long":r===5?"narrow":"short";break;case"y":i.year=r===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":i.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][r-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][r-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][r-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][r-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][r-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":i.minute=["numeric","2-digit"][r-1];break;case"s":i.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=r<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""}),i}var K=function(){return K=Object.assign||function(i){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},K.apply(this,arguments)};var Rp=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function zp(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var i=e.split(Rp).filter(function(d){return d.length>0}),t=[],r=0,o=i;r<o.length;r++){var n=o[r],s=n.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Up(e){return e.replace(/^(.*?)-/,"")}var Rn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hl=/^(@+)?(\+|#+)?[rs]?$/g,jp=/(\*)(0+)|(#+)(0+)|(0+)/g,dl=/^(0+)$/;function zn(e){var i={};return e[e.length-1]==="r"?i.roundingPriority="morePrecision":e[e.length-1]==="s"&&(i.roundingPriority="lessPrecision"),e.replace(hl,function(t,r,o){return typeof o!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):o==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),i}function fl(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 Vp(e){var i;if(e[0]==="E"&&e[1]==="E"?(i={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(i={notation:"scientific"},e=e.slice(1)),i){var t=e.slice(0,2);if(t==="+!"?(i.signDisplay="always",e=e.slice(2)):t==="+?"&&(i.signDisplay="exceptZero",e=e.slice(2)),!dl.test(e))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=e.length}return i}function Un(e){var i={},t=fl(e);return t||i}function Gp(e){for(var i={},t=0,r=e;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=Up(o.options[0]);continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=K(K(K({},i),{notation:"scientific"}),o.options.reduce(function(l,u){return K(K({},l),Un(u))},{}));continue;case"engineering":i=K(K(K({},i),{notation:"engineering"}),o.options.reduce(function(l,u){return K(K({},l),Un(u))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":i.roundingMode="floor";continue;case"rounding-mode-ceiling":i.roundingMode="ceil";continue;case"rounding-mode-down":i.roundingMode="trunc";continue;case"rounding-mode-up":i.roundingMode="expand";continue;case"rounding-mode-half-even":i.roundingMode="halfEven";continue;case"rounding-mode-half-down":i.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":i.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(jp,function(l,u,c,h,d,p){if(u)i.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(dl.test(o.stem)){i.minimumIntegerDigits=o.stem.length;continue}if(Rn.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Rn,function(l,u,c,h,d,p){return c==="*"?i.minimumFractionDigits=u.length:h&&h[0]==="#"?i.maximumFractionDigits=h.length:d&&p?(i.minimumFractionDigits=d.length,i.maximumFractionDigits=d.length+p.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var n=o.options[0];n==="w"?i=K(K({},i),{trailingZeroDisplay:"stripIfInteger"}):n&&(i=K(K({},i),zn(n)));continue}if(hl.test(o.stem)){i=K(K({},i),zn(o.stem));continue}var s=fl(o.stem);s&&(i=K(K({},i),s));var a=Vp(o.stem);a&&(i=K(K({},i),a))}return i}var ci={"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 Wp(e,i){for(var t="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var n=0;r+1<e.length&&e.charAt(r+1)===o;)n++,r++;var s=1+(n&1),a=n<2?1:3+(n>>1),l="a",u=Yp(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else o==="J"?t+="H":t+=o}return t}function Yp(e){var i=e.hourCycle;if(i===void 0&&e.hourCycles&&e.hourCycles.length&&(i=e.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,r;t!=="root"&&(r=e.maximize().region);var o=ci[r||""]||ci[t||""]||ci["".concat(t,"-001")]||ci["001"];return o[0]}var _r,qp=new RegExp("^".concat(cl.source,"*")),Xp=new RegExp("".concat(cl.source,"*$"));function B(e,i){return{start:e,end:i}}var Kp=!!String.prototype.startsWith&&"_a".startsWith("a",1),Jp=!!String.fromCodePoint,Zp=!!Object.fromEntries,Qp=!!String.prototype.codePointAt,em=!!String.prototype.trimStart,tm=!!String.prototype.trimEnd,im=!!Number.isSafeInteger,rm=im?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Jr=!0;try{var om=ml("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Jr=((_r=om.exec("a"))===null||_r===void 0?void 0:_r[0])==="a"}catch(e){Jr=!1}var jn=Kp?function(i,t,r){return i.startsWith(t,r)}:function(i,t,r){return i.slice(r,r+t.length)===t},Zr=Jp?String.fromCodePoint:function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];for(var r="",o=i.length,n=0,s;o>n;){if(s=i[n++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Vn=Zp?Object.fromEntries:function(i){for(var t={},r=0,o=i;r<o.length;r++){var n=o[r],s=n[0],a=n[1];t[s]=a}return t},pl=Qp?function(i,t){return i.codePointAt(t)}:function(i,t){var r=i.length;if(!(t<0||t>=r)){var o=i.charCodeAt(t),n;return o<55296||o>56319||t+1===r||(n=i.charCodeAt(t+1))<56320||n>57343?o:(o-55296<<10)+(n-56320)+65536}},nm=em?function(i){return i.trimStart()}:function(i){return i.replace(qp,"")},sm=tm?function(i){return i.trimEnd()}:function(i){return i.replace(Xp,"")};function ml(e,i){return new RegExp(e,i)}var Qr;if(Jr){var Gn=ml("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qr=function(i,t){var r;Gn.lastIndex=t;var o=Gn.exec(i);return(r=o[1])!==null&&r!==void 0?r:""}}else Qr=function(i,t){for(var r=[];;){var o=pl(i,t);if(o===void 0||_l(o)||cm(o))break;r.push(o),t+=o>=65536?2:1}return Zr.apply(void 0,r)};var am=function(){function e(i,t){t===void 0&&(t={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.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(i,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(n===123){var s=this.parseArgument(i,r);if(s.err)return s;o.push(s.val)}else{if(n===125&&i>0)break;if(n===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:X.pound,location:B(a,this.clonePosition())})}else if(n===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error($.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(n===60&&!this.ignoreTag&&eo(this.peek()||0)){var s=this.parseTag(i,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(i,t);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(i,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:X.literal,value:"<".concat(o,"/>"),location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var n=this.parseMessage(i+1,t,!0);if(n.err)return n;var s=n.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!eo(this.char()))return this.error($.INVALID_TAG,B(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return o!==u?this.error($.UNMATCHED_CLOSING_TAG,B(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:X.tag,value:o,children:s,location:B(r,this.clonePosition())},err:null}:this.error($.INVALID_TAG,B(a,this.clonePosition())))}else return this.error($.UNCLOSED_TAG,B(r,this.clonePosition()))}else return this.error($.INVALID_TAG,B(r,this.clonePosition()))},e.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&um(this.char());)this.bump();return this.message.slice(i,this.offset())},e.prototype.parseLiteral=function(i,t){for(var r=this.clonePosition(),o="";;){var n=this.tryParseQuote(t);if(n){o+=n;continue}var s=this.tryParseUnquoted(i,t);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=B(r,this.clonePosition());return{val:{type:X.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!lm(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(i){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(i==="plural"||i==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Zr.apply(void 0,t)},e.prototype.tryParseUnquoted=function(i,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&i>0?null:(this.bump(),Zr(r))},e.prototype.parseArgument=function(i,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error($.EMPTY_ARGUMENT,B(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error($.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:o,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(i,t,o,r);default:return this.error($.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),t=this.offset(),r=Qr(this.message,t),o=t+r.length;this.bumpTo(o);var n=this.clonePosition(),s=B(i,n);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(i,t,r,o){var n,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error($.EXPECT_ARGUMENT_TYPE,B(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=sm(h.val);if(d.length===0)return this.error($.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var p=B(c,this.clonePosition());u={style:d,styleLocation:p}}var f=this.tryParseArgumentClose(o);if(f.err)return f;var m=B(o,this.clonePosition());if(u&&jn(u==null?void 0:u.style,"::",0)){var E=nm(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,u.styleLocation);return h.err?h:{val:{type:X.number,value:r,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error($.EXPECT_DATE_TIME_SKELETON,m);var D=E;this.locale&&(D=Wp(E,this.locale));var d={type:yt.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Bp(D):{}},k=a==="date"?X.date:X.time;return{val:{type:k,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?X.number:a==="date"?X.date:X.time,value:r,location:m,style:(n=u==null?void 0:u.style)!==null&&n!==void 0?n:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($.EXPECT_SELECT_ARGUMENT_OPTIONS,B(M,Pi({},M)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),O=this.parseIdentifierIfPossible(),I=h.val}var q=this.tryParsePluralOrSelectOptions(i,a,t,O);if(q.err)return q;var f=this.tryParseArgumentClose(o);if(f.err)return f;var re=B(o,this.clonePosition());return a==="select"?{val:{type:X.select,value:r,options:Vn(q.val),location:re},err:null}:{val:{type:X.plural,value:r,options:Vn(q.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:re},err:null}}default:return this.error($.INVALID_ARGUMENT_TYPE,B(s,l))}},e.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error($.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error($.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(o,this.clonePosition()));this.bump();break}case 123:{i+=1,this.bump();break}case 125:{if(i>0)i-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(i,t){var r=[];try{r=zp(i)}catch(o){return this.error($.INVALID_NUMBER_SKELETON,t)}return{val:{type:yt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Gp(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(i,t,r,o){for(var n,s=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger($.EXPECT_PLURAL_ARGUMENT_SELECTOR,$.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=B(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?$.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?$.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(i+1,t,r);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([u,{value:f.val,location:B(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),n=this.parseIdentifierIfPossible(),u=n.value,c=n.location}return a.length===0?this.error(t==="select"?$.EXPECT_SELECT_ARGUMENT_SELECTOR:$.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error($.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(i,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)n=!0,s=s*10+(a-48),this.bump();else break}var l=B(o,this.clonePosition());return n?(s*=r,rm(s)?{val:s,err:null}:this.error(t,l)):this.error(i,l)},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 i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var t=pl(this.message,i);if(t===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(i,t){return{val:null,err:{kind:i,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var i=this.char();i===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=i<65536?1:2)}},e.prototype.bumpIf=function(i){if(jn(this.message,i,this.offset())){for(var t=0;t<i.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(i){var t=this.offset(),r=this.message.indexOf(i,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(i){if(this.offset()>i)throw Error("targetOffset ".concat(i," must be greater than or equal to the current offset ").concat(this.offset()));for(i=Math.min(i,this.message.length);;){var t=this.offset();if(t===i)break;if(t>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_l(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(i>=65536?2:1));return r!=null?r:null},e}();function eo(e){return e>=97&&e<=122||e>=65&&e<=90}function lm(e){return eo(e)||e===47}function um(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 _l(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function cm(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 to(e){e.forEach(function(i){if(delete i.location,sl(i)||al(i))for(var t in i.options)delete i.options[t].location,to(i.options[t].value);else rl(i)&&ul(i.style)||(ol(i)||nl(i))&&Kr(i.style)?delete i.style.location:ll(i)&&to(i.children)})}function hm(e,i){i===void 0&&(i={}),i=Pi({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var t=new am(e,i).parse();if(t.err){var r=SyntaxError($[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return i!=null&&i.captureLocation||to(t.val),t.val}var vt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(vt||(vt={}));var zi=function(e){Ri(i,e);function i(t,r,o){var n=e.call(this,t)||this;return n.code=r,n.originalMessage=o,n}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),Wn=function(e){Ri(i,e);function i(t,r,o,n){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),vt.INVALID_VALUE,n)||this}return i}(zi),dm=function(e){Ri(i,e);function i(t,r,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),vt.INVALID_VALUE,o)||this}return i}(zi),fm=function(e){Ri(i,e);function i(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),vt.MISSING_VALUE,r)||this}return i}(zi),se;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(se||(se={}));function pm(e){return e.length<2?e:e.reduce(function(i,t){var r=i[i.length-1];return!r||r.type!==se.literal||t.type!==se.literal?i.push(t):r.value+=t.value,i},[])}function mm(e){return typeof e=="function"}function _i(e,i,t,r,o,n,s){if(e.length===1&&Bn(e[0]))return[{type:se.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Bn(c)){a.push({type:se.literal,value:c.value});continue}if($p(c)){typeof n=="number"&&a.push({type:se.literal,value:t.getNumberFormat(i).format(n)});continue}var h=c.value;if(!(o&&h in o))throw new fm(h,s);var d=o[h];if(Lp(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?se.literal:se.object,value:d});continue}if(ol(c)){var p=typeof c.style=="string"?r.date[c.style]:Kr(c.style)?c.style.parsedOptions:void 0;a.push({type:se.literal,value:t.getDateTimeFormat(i,p).format(d)});continue}if(nl(c)){var p=typeof c.style=="string"?r.time[c.style]:Kr(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:se.literal,value:t.getDateTimeFormat(i,p).format(d)});continue}if(rl(c)){var p=typeof c.style=="string"?r.number[c.style]:ul(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),a.push({type:se.literal,value:t.getNumberFormat(i,p).format(d)});continue}if(ll(c)){var f=c.children,m=c.value,E=o[m];if(!mm(E))throw new dm(m,"function",s);var D=_i(f,i,t,r,o,n),k=E(D.map(function(I){return I.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(I){return{type:typeof I=="string"?se.literal:se.object,value:I}}))}if(sl(c)){var M=c.options[d]||c.options.other;if(!M)throw new Wn(c.value,d,Object.keys(c.options),s);a.push.apply(a,_i(M.value,i,t,r,o));continue}if(al(c)){var M=c.options["=".concat(d)];if(!M){if(!Intl.PluralRules)throw new zi(`Intl.PluralRules is not available in this environment.
3574
3574
  Try polyfilling it using "@formatjs/intl-pluralrules"
3575
- `,_t.MISSING_INTL_API,s);var k=t.getPluralRules(i,{type:c.pluralType}).select(d-(c.offset||0));A=c.options[k]||c.options.other}if(!A)throw new jn(c.value,d,Object.keys(c.options),s);a.push.apply(a,di(A.value,i,t,r,o,d-(c.offset||0)));continue}}return cm(a)}function dm(e,i){return i?_e(_e(_e({},e||{}),i||{}),Object.keys(e).reduce(function(t,r){return t[r]=_e(_e({},e[r]),i[r]||{}),t},{})):e}function fm(e,i){return i?Object.keys(e).reduce(function(t,r){return t[r]=dm(e[r],i[r]),t},_e({},e)):e}function fr(e){return{create:function(){return{get:function(i){return e[i]},set:function(i,t){e[i]=t}}}}}function pm(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:cr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,ur([void 0],t,!1)))},{cache:fr(e.number),strategy:hr.variadic}),getDateTimeFormat:cr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,ur([void 0],t,!1)))},{cache:fr(e.dateTime),strategy:hr.variadic}),getPluralRules:cr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,ur([void 0],t,!1)))},{cache:fr(e.pluralRules),strategy:hr.variadic})}}var mm=function(){function e(i,t,r,o){t===void 0&&(t=e.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=n.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ie.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return di(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=t,this.resolvedLocale=e.resolveLocale(t),typeof i=="string"){if(this.message=i,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Tp(s,["formatters"]);this.ast=e.__parse(i,_e(_e({},a),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=fm(e.formats,r),this.formatters=o&&o.formatters||pm(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(i){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(i);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},e.__parse=am,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 _m(e,i){if(i==null)return;if(i in e)return e[i];const t=i.split(".");let r=e;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in r){r=r[n];break}}r=r[t[o]]}else r=void 0;return r}const Oe={},gm=(e,i,t)=>t&&(i in Oe||(Oe[i]={}),e in Oe[i]||(Oe[i][e]=t),t),pl=(e,i)=>{if(i==null)return;if(i in Oe&&e in Oe[i])return Oe[i][e];const t=$i(i);for(let r=0;r<t.length;r++){const o=t[r],n=bm(o,e);if(n)return gm(e,i,n)}};let Po;const wt=Hi({});function ym(e){return Po[e]||null}function ml(e){return e in Po}function bm(e,i){if(!ml(e))return null;const t=ym(e);return _m(t,i)}function vm(e){if(e==null)return;const i=$i(e);for(let t=0;t<i.length;t++){const r=i[t];if(ml(r))return r}}function Do(e,...i){delete Oe[e],wt.update(t=>(t[e]=Ep.all([t[e]||{},...i]),t))}vt([wt],([e])=>Object.keys(e));wt.subscribe(e=>Po=e);const fi={};function wm(e,i){fi[e].delete(i),fi[e].size===0&&delete fi[e]}function _l(e){return fi[e]}function xm(e){return $i(e).map(i=>{const t=_l(i);return[i,t?[...t]:[]]}).filter(([,i])=>i.length>0)}function Zr(e){return e==null?!1:$i(e).some(i=>{var t;return(t=_l(i))==null?void 0:t.size})}function Em(e,i){return Promise.all(i.map(r=>(wm(e,r),r().then(o=>o.default||o)))).then(r=>Do(e,...r))}const Ot={};function gl(e){if(!Zr(e))return e in Ot?Ot[e]:Promise.resolve();const i=xm(e);return Ot[e]=Promise.all(i.map(([t,r])=>Em(t,r))).then(()=>{if(Zr(e))return gl(e);delete Ot[e]}),Ot[e]}const Tm={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"}}},Cm={fallbackLocale:null,loadingDelay:200,formats:Tm,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Am=Cm;function gt(){return Am}const pr=Hi(!1);var Sm=Object.defineProperty,Pm=Object.defineProperties,Dm=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,Om=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,Gn=(e,i,t)=>i in e?Sm(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Mm=(e,i)=>{for(var t in i||(i={}))Om.call(i,t)&&Gn(e,t,i[t]);if(Vn)for(var t of Vn(i))km.call(i,t)&&Gn(e,t,i[t]);return e},Im=(e,i)=>Pm(e,Dm(i));let Qr;const Ci=Hi(null);function Wn(e){return e.split("-").map((i,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $i(e,i=gt().fallbackLocale){const t=Wn(e);return i?[...new Set([...t,...Wn(i)])]:t}function Xe(){return Qr!=null?Qr:void 0}Ci.subscribe(e=>{Qr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Nm=e=>{if(e&&vm(e)&&Zr(e)){const{loadingDelay:i}=gt();let t;return typeof window!="undefined"&&Xe()!=null&&i?t=window.setTimeout(()=>pr.set(!0),i):pr.set(!0),gl(e).then(()=>{Ci.set(e)}).finally(()=>{clearTimeout(t),pr.set(!1)})}return Ci.set(e)},Ae=Im(Mm({},Ci),{set:Nm}),Bi=e=>{const i=Object.create(null);return r=>{const o=JSON.stringify(r);return o in i?i[o]:i[o]=e(r)}};var Hm=Object.defineProperty,Ai=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,Yn=(e,i,t)=>i in e?Hm(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Oo=(e,i)=>{for(var t in i||(i={}))yl.call(i,t)&&Yn(e,t,i[t]);if(Ai)for(var t of Ai(i))bl.call(i,t)&&Yn(e,t,i[t]);return e},xt=(e,i)=>{var t={};for(var r in e)yl.call(e,r)&&i.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&Ai)for(var r of Ai(e))i.indexOf(r)<0&&bl.call(e,r)&&(t[r]=e[r]);return t};const Xt=(e,i)=>{const{formats:t}=gt();if(e in t&&i in t[e])return t[e][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${e} format.`)},Lm=Bi(e=>{var i=e,{locale:t,format:r}=i,o=xt(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Xt("number",r)),new Intl.NumberFormat(t,o)}),Fm=Bi(e=>{var i=e,{locale:t,format:r}=i,o=xt(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Xt("date",r):Object.keys(o).length===0&&(o=Xt("date","short")),new Intl.DateTimeFormat(t,o)}),$m=Bi(e=>{var i=e,{locale:t,format:r}=i,o=xt(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Xt("time",r):Object.keys(o).length===0&&(o=Xt("time","short")),new Intl.DateTimeFormat(t,o)}),Bm=(e={})=>{var i=e,{locale:t=Xe()}=i,r=xt(i,["locale"]);return Lm(Oo({locale:t},r))},Rm=(e={})=>{var i=e,{locale:t=Xe()}=i,r=xt(i,["locale"]);return Fm(Oo({locale:t},r))},zm=(e={})=>{var i=e,{locale:t=Xe()}=i,r=xt(i,["locale"]);return $m(Oo({locale:t},r))},Um=Bi((e,i=Xe())=>new mm(e,i,gt().formats,{ignoreTag:gt().ignoreTag})),jm=(e,i={})=>{var t,r,o,n;let s=i;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Xe(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=pl(e,l);if(!c)c=(n=(o=(r=(t=gt()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:e,defaultValue:u}))!=null?o:u)!=null?n: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(!a)return c;let h=c;try{h=Um(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},Vm=(e,i)=>zm(i).format(e),Gm=(e,i)=>Rm(i).format(e),Wm=(e,i)=>Bm(i).format(e),Ym=(e,i=Xe())=>pl(e,i),vl=vt([Ae,wt],()=>jm);vt([Ae],()=>Vm);vt([Ae],()=>Gm);vt([Ae],()=>Wm);vt([Ae,wt],()=>Ym);window.emWidgets={topic:ap};const wl=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function qm({withLocale:e,translations:i}){Ae.subscribe(t=>{t==null&&(wt.set(i),Ae.set(e))})}function qn(e,i){Do(e,i)}function Xm(e){Ae.set(e)}const Xn={en:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"en-us":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"zh-hk":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",CoolOffFor24Hours:"24小時",CoolOffFor72Hours:"72小時",CoolOffFor7Days:"7天",CoolOffFor30Days:"30天",CoolOffFor6Weeks:"6週",CoolOffFor2Months:"2個月",CoolOffFor3Months:"3個月",CoolOffUntilSelectedDate:"直到",dateInstructions:"如需手動輸入日期,請使用以下格式:",duration:"持續時間:",confirmationModalTitle:"確認",confirmationModalTextPeriodTimeout:"您確定要冷靜 {period} 嗎?",confirmationModalTextUntilTimeout:"您確定要冷靜直到 {date} 嗎?"},fr:{titleTimeout:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:`Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,save:"Savez",CoolOffFor24Hours:"24 heures",CoolOffFor72Hours:"72 heures",CoolOffFor7Days:"7 jours",CoolOffFor30Days:"30 jours",CoolOffFor6Weeks:"6 semaines",CoolOffFor2Months:"2 mois",CoolOffFor3Months:"3 mois",CoolOffUntilSelectedDate:"Jusqu'à",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",duration:"Durée :",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",confirmationModalTextUntilTimeout:"Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"},ro:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",CoolOffFor24Hours:"24 ore",CoolOffFor72Hours:"72 ore",CoolOffFor7Days:"7 zile",CoolOffFor30Days:"30 zile",CoolOffFor6Weeks:"6 săptămâni",CoolOffFor2Months:"2 luni",CoolOffFor3Months:"3 luni",CoolOffUntilSelectedDate:"Până la",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",duration:"Durată:",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodTimeout:"Ești sigur că vrei să te răcorești pentru {period}?",confirmationModalTextUntilTimeout:"Ești sigur că vrei să te răcorești până la {date}?"},es:{titleTimeout:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Estás seguro de que quieres enfriarte por {period}?",confirmationModalTextUntilTimeout:"¿Estás seguro de que quieres enfriarte hasta {date}?"},pt:{titleTimeout:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem a certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem a certeza de que deseja se refrescar até {date}?"},hr:{titleTimeout:"Samoisključenje",timeoutTextFirst:'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',timeoutTextSecondary:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",save:"Spremi",CoolOffFor24Hours:"24 sata",CoolOffFor72Hours:"72 sata",CoolOffFor7Days:"7 dana",CoolOffFor30Days:"30 dana",CoolOffFor6Weeks:"6 tjedana",CoolOffFor2Months:"2 mjeseca",CoolOffFor3Months:"3 mjeseca",CoolOffUntilSelectedDate:"Do",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",duration:"Trajanje:",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodTimeout:"Jeste li sigurni da se želite rashladiti na {period}?",confirmationModalTextUntilTimeout:"Jeste li sigurni da se želite rashladiti do {date}?"},"pt-br":{titleTimeout:"Tempo fora",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",timeoutTextSecondary:"Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",save:"Manter",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem certeza de que deseja se refrescar até {date}?"},"es-mx":{titleTimeout:"Tiempo Fuera",timeoutTextFirst:"{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",timeoutTextSecondary:'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Está seguro de que desea refrescarse por {period}?",confirmationModalTextUntilTimeout:"¿Está seguro de que desea refrescarse hasta {date}?"},tr:{titleTimeout:"Zaman aşımı",timeoutTextFirst:"{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",timeoutTextSecondary:"Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",save:"Kaydetmek",CoolOffFor24Hours:"24 saat",CoolOffFor72Hours:"72 saat",CoolOffFor7Days:"7 gün",CoolOffFor30Days:"30 gün",CoolOffFor6Weeks:"6 hafta",CoolOffFor2Months:"2 ay",CoolOffFor3Months:"3 ay",CoolOffUntilSelectedDate:"Kadar",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",duration:"Süre:",confirmationModalTitle:"Onay",confirmationModalTextPeriodTimeout:"{period} için kendinizi soğutmak istediğinizden emin misiniz?",confirmationModalTextUntilTimeout:"{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"}},tt="__WIDGET_GLOBAL_STYLE_CACHE__";function xl(e,i){if(e){const t=document.createElement("style");t.innerHTML=i,e.appendChild(t)}}function El(e,i){if(!e||!i)return;const t=new URL(i);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,e&&e.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Tl(e,i,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=Km(e,i),t;window[tt]||(window[tt]={}),t=Jm(e,i);const n=t.unsubscribe.bind(t),s=()=>{if(window[tt][i]){const a=window[tt][i];a.refCount>1?a.refCount=a.refCount-1:delete window[tt][i]}n()};return t.unsubscribe=s,t}function Km(e,i){const t=document.createElement("style");return window.emMessageBus.subscribe(i,r=>{e&&(t.innerHTML=r,e.appendChild(t))})}function Jm(e,i){return window.emMessageBus.subscribe(i,t=>{if(!e)return;const r=e.getRootNode(),o=window[tt];let n=o[i]&&o[i].sheet;n?o[i].refCount=o[i].refCount+1:(n=new CSSStyleSheet,n.replaceSync(t),o[i]={sheet:n,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(n)||(r.adoptedStyleSheets=[...s,n])})}function Zm(e){ds(e,"svelte-u6jylo",`.TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`)}function Kn(e,i,t){const r=e.slice();return r[43]=i[t].value,r}function Qm(e){let i,t,r,o=e[18]("titleTimeout")+"",n,s,a,l,u=e[18]("timeoutTextFirst",{values:{operatorname:e[0],baseurl:e[6],lang:e[1]}})+"",c,h,d=e[18]("timeoutTextSecondary",{values:{supportemail:e[5],baseurl:e[6],lang:e[1]}})+"",f,p,y,x,P,D,A,k=e[18]("save")+"",O,z,W,V,le,B,I,te,he=e[19]&&t_(e),T=$o(e[10]),b=[];for(let m=0;m<T.length;m+=1)b[m]=Jn(Kn(e,T,m));let g=e[12]&&Zn(e);return{c(){i=M("form"),he&&he.c(),t=J(),r=M("h2"),n=ge(o),s=J(),a=M("div"),l=M("p"),c=J(),h=M("p"),f=J(),p=M("div"),y=M("select");for(let m=0;m<b.length;m+=1)b[m].c();x=J(),g&&g.c(),P=J(),D=M("div"),A=M("button"),O=ge(k),z=J(),W=M("player-account-modal"),V=M("player-account-general-confirmation-modal"),$(r,"class","TimeoutTitle "+(e[19]?"TimeoutTitleNone":"")),$(a,"class","TimeoutDescription "+(e[19]?"TimeoutDescriptionMobile":"")),$(y,"class","TimeoutSelect "+(e[19]?"TimeoutSelectMobile":"")),e[11]===void 0&&ut(()=>e[27].call(y)),$(p,"class","TimeoutSelectWrapper"),$(A,"class","TimeoutSave"),$(D,"class","TimeoutActionButtons "+(e[19]?"TimeoutActionButtonsMobile":"")),$(i,"class","TimeoutWrapper "+(e[19]?"TimeoutWrapperMobile":"")),S(V,"modalTitle",le=e[18]("confirmationModalTitle")),S(V,"modalText",e[16]),S(V,"hascancelbutton",!1),S(V,"modalconfirmevent","SetPlayerAccountTimeout"),S(V,"modalconfirmdata",B={timeoutSelected:e[11],timeoutExpiryDate:e[13]}),S(V,"mbsource",e[4]),S(V,"lang",e[1]),S(W,"clientstyling",e[2]),S(W,"clientstylingurl",e[3]),S(W,"mbsource",e[4]),S(W,"showmodaleventname","ShowTimeoutConfirmationModal")},m(m,_){fe(m,i,_),he&&he.m(i,null),E(i,t),E(i,r),E(r,n),E(i,s),E(i,a),E(a,l),l.innerHTML=u,E(a,c),E(a,h),h.innerHTML=d,E(i,f),E(i,p),E(p,y);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(y,null);Ho(y,e[11],!0),E(i,x),g&&g.m(i,null),E(i,P),E(i,D),E(D,A),E(A,O),fe(m,z,_),fe(m,W,_),E(W,V),e[30](V),I||(te=[It(y,"change",e[27]),It(y,"change",e[22]),It(A,"click",e[29])],I=!0)},p(m,_){if(m[19]&&he.p(m,_),_[0]&262144&&o!==(o=m[18]("titleTimeout")+"")&&Ve(n,o),_[0]&262211&&u!==(u=m[18]("timeoutTextFirst",{values:{operatorname:m[0],baseurl:m[6],lang:m[1]}})+"")&&(l.innerHTML=u),_[0]&262242&&d!==(d=m[18]("timeoutTextSecondary",{values:{supportemail:m[5],baseurl:m[6],lang:m[1]}})+"")&&(h.innerHTML=d),_[0]&263168){T=$o(m[10]);let w;for(w=0;w<T.length;w+=1){const C=Kn(m,T,w);b[w]?b[w].p(C,_):(b[w]=Jn(C),b[w].c(),b[w].m(y,null))}for(;w<b.length;w+=1)b[w].d(1);b.length=T.length}_[0]&3072&&Ho(y,m[11]),m[12]?g?g.p(m,_):(g=Zn(m),g.c(),g.m(i,P)):g&&(g.d(1),g=null),_[0]&262144&&k!==(k=m[18]("save")+"")&&Ve(O,k),_[0]&262144&&le!==(le=m[18]("confirmationModalTitle"))&&S(V,"modalTitle",le),_[0]&65536&&S(V,"modalText",m[16]),_[0]&11264&&B!==(B={timeoutSelected:m[11],timeoutExpiryDate:m[13]})&&S(V,"modalconfirmdata",B),_[0]&16&&S(V,"mbsource",m[4]),_[0]&2&&S(V,"lang",m[1]),_[0]&4&&S(W,"clientstyling",m[2]),_[0]&8&&S(W,"clientstylingurl",m[3]),_[0]&16&&S(W,"mbsource",m[4])},d(m){m&&(ae(i),ae(z),ae(W)),he&&he.d(),Rl(b,m),g&&g.d(),e[30](null),I=!1,Se(te)}}}function e_(e){let i,t,r,o,n,s,a,l,u,c,h,d,f,p,y,x;function P(k,O){return k[19]?r_:i_}let A=P(e)(e);return{c(){i=M("div"),A.c(),t=J(),r=M("div"),o=M("ui-skeleton"),n=J(),s=M("div"),a=J(),l=M("ui-skeleton"),u=J(),c=M("div"),h=J(),d=M("div"),f=M("ui-skeleton"),p=J(),y=M("div"),x=M("ui-skeleton"),S(o,"structure","text"),S(o,"height",e[19]?"15px":"20px"),S(o,"rows","3"),S(o,"width","100%"),No(s,"height",e[19]?"10px":"30px"),S(l,"structure","text"),S(l,"height",e[19]?"15px":"20px"),S(l,"rows","3"),S(l,"width","100%"),No(c,"height",e[19]?"10px":"30px"),$(r,"class","TimeoutDescription"),S(f,"structure","rectangle"),S(f,"width",e[19]?"100%":"50%"),S(f,"height",e[19]?"30px":"44px"),S(f,"margin-bottom","16px"),$(d,"class","TimeoutSelectWrapper"),S(x,"structure","rectangle"),S(x,"width","100%"),S(x,"height",e[19]?"35px":"50px"),$(y,"class","TimeoutActionButtons "+(e[19]?"TimeoutActionButtonsMobile":"")),$(i,"class","TimeoutWrapper "+(e[19]?"TimeoutWrapperMobile":""))},m(k,O){fe(k,i,O),A.m(i,null),E(i,t),E(i,r),E(r,o),E(r,n),E(r,s),E(r,a),E(r,l),E(r,u),E(r,c),E(i,h),E(i,d),E(d,f),E(i,p),E(i,y),E(y,x)},p:re,d(k){k&&ae(i),A.d()}}}function t_(e){let i,t,r,o,n,s,a,l,u,c,h=e[18]("titleTimeout")+"",d,f,p;return{c(){i=M("div"),t=$e("svg"),r=$e("defs"),o=$e("style"),n=ge(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),s=$e("g"),a=$e("g"),l=$e("path"),u=J(),c=M("h2"),d=ge(h),$(l,"class","aaa"),$(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),$(l,"transform","translate(15 15) rotate(180)"),$(a,"transform","translate(20 158)"),$(s,"transform","translate(-20 -158)"),$(t,"xmlns","http://www.w3.org/2000/svg"),$(t,"width","15"),$(t,"height","15"),$(t,"viewBox","0 0 15 15"),$(c,"class","TimeoutTitleMobile"),$(c,"part","TimeoutTitleMobile"),$(i,"class","MenuReturnButton"),$(i,"part","MenuReturnButton")},m(y,x){fe(y,i,x),E(i,t),E(t,r),E(r,o),E(o,n),E(t,s),E(s,a),E(a,l),E(i,u),E(i,c),E(c,d),f||(p=It(i,"click",e[26]),f=!0)},p(y,x){x[0]&262144&&h!==(h=y[18]("titleTimeout")+"")&&Ve(d,h)},d(y){y&&ae(i),f=!1,p()}}}function Jn(e){let i,t=e[18](e[43])+"",r,o;return{c(){i=M("option"),r=ge(t),i.__value=o=e[43],Io(i,i.__value)},m(n,s){fe(n,i,s),E(i,r)},p(n,s){s[0]&263168&&t!==(t=n[18](n[43])+"")&&Ve(r,t),s[0]&1024&&o!==(o=n[43])&&(i.__value=o,Io(i,i.__value))},d(n){n&&ae(i)}}}function Zn(e){let i,t,r=e[18]("duration")+"",o,n,s,a=e[18]("dateInstructions")+"",l,u,c,h,d;return{c(){i=M("div"),t=M("label"),o=ge(r),n=J(),s=M("span"),l=ge(a),u=J(),c=M("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=J(),d=M("vaadin-date-picker"),$(t,"for","TimeoutDate"),$(s,"class","TimeoutDateInstructions"),S(d,"min",e[14]),S(d,"max",e[15]),S(d,"value",e[14]),$(i,"class","TimeoutDateWrapper "+(e[19]?"TimeoutDateWrapperMobile":""))},m(f,p){fe(f,i,p),E(i,t),E(t,o),E(i,n),E(i,s),E(s,l),E(s,u),E(s,c),E(i,h),E(i,d),e[28](d)},p(f,p){p[0]&262144&&r!==(r=f[18]("duration")+"")&&Ve(o,r),p[0]&262144&&a!==(a=f[18]("dateInstructions")+"")&&Ve(l,a),p[0]&16384&&S(d,"min",f[14]),p[0]&32768&&S(d,"max",f[15]),p[0]&16384&&S(d,"value",f[14])},d(f){f&&ae(i),e[28](null)}}}function i_(e){let i;return{c(){i=M("ui-skeleton"),S(i,"structure","title"),S(i,"width","100px"),S(i,"margin-top","20px"),S(i,"margin-bottom","20px")},m(t,r){fe(t,i,r)},d(t){t&&ae(i)}}}function r_(e){let i;return{c(){i=M("div"),i.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',$(i,"class","MenuReturnButton")},m(t,r){fe(t,i,r)},d(t){t&&ae(i)}}}function o_(e){let i;function t(n,s){return n[17]?e_:Qm}let r=t(e),o=r(e);return{c(){i=M("div"),o.c()},m(n,s){fe(n,i,s),o.m(i,null),e[31](i)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(i,null)))},i:re,o:re,d(n){n&&ae(i),o.d(),e[31](null)}}}function n_(e,i,t){let r;ls(e,vl,v=>t(18,r=v));let{operator:o="Everymatrix"}=i,{lang:n="en"}=i,{clientstyling:s=""}=i,{clientstylingurl:a=""}=i,{mbsource:l}=i,{translationurl:u=""}=i,{supportemail:c=""}=i,{endpoint:h=""}=i,{baseurl:d=""}=i,{hasconfirmationmodal:f="false"}=i;qm({withLocale:"en",translations:{}});let p,y,x,P=window.navigator.userAgent,D=wl(P)!=="PC",A=[{value:"CoolOffFor24Hours",dateSelector:!1},{value:"CoolOffFor7Days",dateSelector:!1},{value:"CoolOffFor30Days",dateSelector:!1},{value:"CoolOffFor3Months",dateSelector:!1}],k=A[0].value,O=!1,z="",W,V,le="",B=f==="true",I=!0,te;const he=()=>{fetch(u).then(v=>v.json()).then(v=>{Object.keys(v).forEach(Q=>{qn(Q,v[Q])})}).catch(v=>{console.log(v)})};Object.keys(Xn).forEach(v=>{qn(v,Xn[v])});const T=()=>{const v=new URL("/v1/player/coolOffSettings",h),Q={method:"GET"};fetch(v.href,Q).then(ne=>{if(!ne.ok)throw new Error("There was an error while fetching the configuration");return ne.json()}).then(ne=>{const{periods:Le}=ne;Le&&t(10,A=Le.map(Ri=>({value:Ri.key,text:Ri.text,dateSelector:Ri.dateSelector})))}).catch(ne=>{console.log(ne)}).finally(()=>{t(17,I=!1),t(11,k=A[0].value)})},b=()=>{if(!B){t(16,le="");return}t(16,le=O?r("confirmationModalTextUntilTimeout",{values:{date:z}}):r("confirmationModalTextPeriodTimeout",{values:{period:r(k)}}))},g=v=>{v.preventDefault(),B?window.postMessage({type:"ShowTimeoutConfirmationModal"},window.location.href):_()},m=v=>{const{timeoutSelected:Q,timeoutExpiryDate:ne}=v.detail;t(11,k=Q),t(13,z=ne),_()},_=()=>{window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:k,timeoutExpiryDate:z},window.location.href)},w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:D},window.location.href)},C=()=>{Xm(n),T()},R=()=>{const v=A.find(Q=>Q.value===k);t(12,O=!1),v.dateSelector&&(t(12,O=!0),t(14,W=Sn().format("YYYY-MM-DD")),t(15,V=Sn().add(6,"months").format("YYYY-MM-DD")),t(13,z=W)),B&&b()},U=v=>{t(13,z=v.target.value)},q=()=>{y.addEventListener("change",U,!1)};Jl(()=>{te&&te.removeEventListener("SetPlayerAccountTimeout",m),y&&y.removeEventListener("change",U)});const K=()=>w();function oe(){k=jl(this),t(11,k),t(10,A)}function Pe(v){rt[v?"unshift":"push"](()=>{y=v,t(8,y)})}const be=v=>g(v);function He(v){rt[v?"unshift":"push"](()=>{te=v,t(9,te)})}function ve(v){rt[v?"unshift":"push"](()=>{p=v,t(7,p)})}return e.$$set=v=>{"operator"in v&&t(0,o=v.operator),"lang"in v&&t(1,n=v.lang),"clientstyling"in v&&t(2,s=v.clientstyling),"clientstylingurl"in v&&t(3,a=v.clientstylingurl),"mbsource"in v&&t(4,l=v.mbsource),"translationurl"in v&&t(23,u=v.translationurl),"supportemail"in v&&t(5,c=v.supportemail),"endpoint"in v&&t(24,h=v.endpoint),"baseurl"in v&&t(6,d=v.baseurl),"hasconfirmationmodal"in v&&t(25,f=v.hasconfirmationmodal)},e.$$.update=()=>{e.$$.dirty[0]&256&&y&&q(),e.$$.dirty[0]&2&&n&&C(),e.$$.dirty[0]&132&&s&&p&&xl(p,s),e.$$.dirty[0]&136&&a&&p&&El(p,a),e.$$.dirty[0]&144&&l&&p&&Tl(p,`${l}.Style`,x),e.$$.dirty[0]&8388608&&u&&he(),e.$$.dirty[0]&512&&te&&te.addEventListener("SetPlayerAccountTimeout",m)},B&&b(),[o,n,s,a,l,c,d,p,y,te,A,k,O,z,W,V,le,I,r,D,g,w,R,u,h,f,K,oe,Pe,be,He,ve]}class Cl extends bs{constructor(i){super(),_s(this,i,n_,o_,eo,{operator:0,lang:1,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:23,supportemail:5,endpoint:24,baseurl:6,hasconfirmationmodal:25},Zm,[-1,-1])}get operator(){return this.$$.ctx[0]}set operator(i){this.$$set({operator:i}),ce()}get lang(){return this.$$.ctx[1]}set lang(i){this.$$set({lang:i}),ce()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(i){this.$$set({clientstyling:i}),ce()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),ce()}get mbsource(){return this.$$.ctx[4]}set mbsource(i){this.$$set({mbsource:i}),ce()}get translationurl(){return this.$$.ctx[23]}set translationurl(i){this.$$set({translationurl:i}),ce()}get supportemail(){return this.$$.ctx[5]}set supportemail(i){this.$$set({supportemail:i}),ce()}get endpoint(){return this.$$.ctx[24]}set endpoint(i){this.$$set({endpoint:i}),ce()}get baseurl(){return this.$$.ctx[6]}set baseurl(i){this.$$set({baseurl:i}),ce()}get hasconfirmationmodal(){return this.$$.ctx[25]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),ce()}}ys(Cl,{operator:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},supportemail:{},endpoint:{},baseurl:{},hasconfirmationmodal:{}},[],[],!0);const s_=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"}));exports.$format=vl;exports.$locale=Ae;exports.PlayerAccountTimeout_ce=s_;exports.SvelteComponent=bs;exports.addMessages=Do;exports.add_render_callback=ut;exports.append=E;exports.append_styles=ds;exports.attr=$;exports.binding_callbacks=rt;exports.check_outros=ou;exports.component_subscribe=ls;exports.create_bidirectional_transition=au;exports.create_custom_element=ys;exports.create_slot=Il;exports.detach=ae;exports.element=M;exports.empty=zl;exports.flush=ce;exports.getDevice=wl;exports.get_all_dirty_from_scope=Ll;exports.get_slot_changes=Nl;exports.group_outros=ru;exports.identity=ns;exports.init=_s;exports.insert=fe;exports.listen=It;exports.noop=re;exports.onMount=Kl;exports.run_all=Se;exports.safe_not_equal=eo;exports.setClientStyling=xl;exports.setClientStylingURL=El;exports.setStreamStyling=Tl;exports.set_data=Ve;exports.space=J;exports.svg_element=$e;exports.text=ge;exports.transition_in=ms;exports.transition_out=nu;exports.update_slot_base=Hl;
3575
+ `,vt.MISSING_INTL_API,s);var O=t.getPluralRules(i,{type:c.pluralType}).select(d-(c.offset||0));M=c.options[O]||c.options.other}if(!M)throw new Wn(c.value,d,Object.keys(c.options),s);a.push.apply(a,_i(M.value,i,t,r,o,d-(c.offset||0)));continue}}return pm(a)}function _m(e,i){return i?Te(Te(Te({},e||{}),i||{}),Object.keys(e).reduce(function(t,r){return t[r]=Te(Te({},e[r]),i[r]||{}),t},{})):e}function gm(e,i){return i?Object.keys(e).reduce(function(t,r){return t[r]=_m(e[r],i[r]),t},Te({},e)):e}function gr(e){return{create:function(){return{get:function(i){return e[i]},set:function(i,t){e[i]=t}}}}}function bm(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,fr([void 0],t,!1)))},{cache:gr(e.number),strategy:mr.variadic}),getDateTimeFormat:pr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,fr([void 0],t,!1)))},{cache:gr(e.dateTime),strategy:mr.variadic}),getPluralRules:pr(function(){for(var i,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,fr([void 0],t,!1)))},{cache:gr(e.pluralRules),strategy:mr.variadic})}}var ym=function(){function e(i,t,r,o){t===void 0&&(t=e.defaultLocale);var n=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=n.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==se.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return _i(n.ast,n.locales,n.formatters,n.formats,l,void 0,n.message)},this.resolvedOptions=function(){var l;return{locale:((l=n.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},this.locales=t,this.resolvedLocale=e.resolveLocale(t),typeof i=="string"){if(this.message=i,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Pp(s,["formatters"]);this.ast=e.__parse(i,Te(Te({},a),{locale:this.resolvedLocale}))}else this.ast=i;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=gm(e.formats,r),this.formatters=o&&o.formatters||bm(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(i){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(i);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},e.__parse=hm,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 vm(e,i){if(i==null)return;if(i in e)return e[i];const t=i.split(".");let r=e;for(let o=0;o<t.length;o++)if(typeof r=="object"){if(o>0){const n=t.slice(o,t.length).join(".");if(n in r){r=r[n];break}}r=r[t[o]]}else r=void 0;return r}const Ne={},wm=(e,i,t)=>t&&(i in Ne||(Ne[i]={}),e in Ne[i]||(Ne[i][e]=t),t),gl=(e,i)=>{if(i==null)return;if(i in Ne&&e in Ne[i])return Ne[i][e];const t=Ui(i);for(let r=0;r<t.length;r++){const o=t[r],n=Em(o,e);if(n)return wm(e,i,n)}};let Mo;const Tt=Bi({});function xm(e){return Mo[e]||null}function bl(e){return e in Mo}function Em(e,i){if(!bl(e))return null;const t=xm(e);return vm(t,i)}function Cm(e){if(e==null)return;const i=Ui(e);for(let t=0;t<i.length;t++){const r=i[t];if(bl(r))return r}}function Io(e,...i){delete Ne[e],Tt.update(t=>(t[e]=Sp.all([t[e]||{},...i]),t))}Ct([Tt],([e])=>Object.keys(e));Tt.subscribe(e=>Mo=e);const gi={};function Tm(e,i){gi[e].delete(i),gi[e].size===0&&delete gi[e]}function yl(e){return gi[e]}function Am(e){return Ui(e).map(i=>{const t=yl(i);return[i,t?[...t]:[]]}).filter(([,i])=>i.length>0)}function io(e){return e==null?!1:Ui(e).some(i=>{var t;return(t=yl(i))==null?void 0:t.size})}function Sm(e,i){return Promise.all(i.map(r=>(Tm(e,r),r().then(o=>o.default||o)))).then(r=>Io(e,...r))}const Nt={};function vl(e){if(!io(e))return e in Nt?Nt[e]:Promise.resolve();const i=Am(e);return Nt[e]=Promise.all(i.map(([t,r])=>Sm(t,r))).then(()=>{if(io(e))return vl(e);delete Nt[e]}),Nt[e]}const Pm={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"}}},Dm={fallbackLocale:null,loadingDelay:200,formats:Pm,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Om=Dm;function wt(){return Om}const br=Bi(!1);var km=Object.defineProperty,Mm=Object.defineProperties,Im=Object.getOwnPropertyDescriptors,Yn=Object.getOwnPropertySymbols,Nm=Object.prototype.hasOwnProperty,Hm=Object.prototype.propertyIsEnumerable,qn=(e,i,t)=>i in e?km(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Lm=(e,i)=>{for(var t in i||(i={}))Nm.call(i,t)&&qn(e,t,i[t]);if(Yn)for(var t of Yn(i))Hm.call(i,t)&&qn(e,t,i[t]);return e},$m=(e,i)=>Mm(e,Im(i));let ro;const Di=Bi(null);function Xn(e){return e.split("-").map((i,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Ui(e,i=wt().fallbackLocale){const t=Xn(e);return i?[...new Set([...t,...Xn(i)])]:t}function Ze(){return ro!=null?ro:void 0}Di.subscribe(e=>{ro=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Fm=e=>{if(e&&Cm(e)&&io(e)){const{loadingDelay:i}=wt();let t;return typeof window!="undefined"&&Ze()!=null&&i?t=window.setTimeout(()=>br.set(!0),i):br.set(!0),vl(e).then(()=>{Di.set(e)}).finally(()=>{clearTimeout(t),br.set(!1)})}return Di.set(e)},Me=$m(Lm({},Di),{set:Fm}),ji=e=>{const i=Object.create(null);return r=>{const o=JSON.stringify(r);return o in i?i[o]:i[o]=e(r)}};var Bm=Object.defineProperty,Oi=Object.getOwnPropertySymbols,wl=Object.prototype.hasOwnProperty,xl=Object.prototype.propertyIsEnumerable,Kn=(e,i,t)=>i in e?Bm(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,No=(e,i)=>{for(var t in i||(i={}))wl.call(i,t)&&Kn(e,t,i[t]);if(Oi)for(var t of Oi(i))xl.call(i,t)&&Kn(e,t,i[t]);return e},At=(e,i)=>{var t={};for(var r in e)wl.call(e,r)&&i.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&Oi)for(var r of Oi(e))i.indexOf(r)<0&&xl.call(e,r)&&(t[r]=e[r]);return t};const Qt=(e,i)=>{const{formats:t}=wt();if(e in t&&i in t[e])return t[e][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${e} format.`)},Rm=ji(e=>{var i=e,{locale:t,format:r}=i,o=At(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Qt("number",r)),new Intl.NumberFormat(t,o)}),zm=ji(e=>{var i=e,{locale:t,format:r}=i,o=At(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Qt("date",r):Object.keys(o).length===0&&(o=Qt("date","short")),new Intl.DateTimeFormat(t,o)}),Um=ji(e=>{var i=e,{locale:t,format:r}=i,o=At(i,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Qt("time",r):Object.keys(o).length===0&&(o=Qt("time","short")),new Intl.DateTimeFormat(t,o)}),jm=(e={})=>{var i=e,{locale:t=Ze()}=i,r=At(i,["locale"]);return Rm(No({locale:t},r))},Vm=(e={})=>{var i=e,{locale:t=Ze()}=i,r=At(i,["locale"]);return zm(No({locale:t},r))},Gm=(e={})=>{var i=e,{locale:t=Ze()}=i,r=At(i,["locale"]);return Um(No({locale:t},r))},Wm=ji((e,i=Ze())=>new ym(e,i,wt().formats,{ignoreTag:wt().ignoreTag})),Ym=(e,i={})=>{var t,r,o,n;let s=i;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:l=Ze(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=gl(e,l);if(!c)c=(n=(o=(r=(t=wt()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:e,defaultValue:u}))!=null?o:u)!=null?n: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(!a)return c;let h=c;try{h=Wm(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},qm=(e,i)=>Gm(i).format(e),Xm=(e,i)=>Vm(i).format(e),Km=(e,i)=>jm(i).format(e),Jm=(e,i=Ze())=>gl(e,i),El=Ct([Me,Tt],()=>Ym);Ct([Me],()=>qm);Ct([Me],()=>Xm);Ct([Me],()=>Km);Ct([Me,Tt],()=>Jm);window.emWidgets={topic:hp};const Cl=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function Zm({withLocale:e,translations:i}){Me.subscribe(t=>{t==null&&(Tt.set(i),Me.set(e))})}function Jn(e,i){Io(e,i)}function Qm(e){Me.set(e)}const Zn={en:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"en-us":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"zh-hk":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",CoolOffFor24Hours:"24小時",CoolOffFor72Hours:"72小時",CoolOffFor7Days:"7天",CoolOffFor30Days:"30天",CoolOffFor6Weeks:"6週",CoolOffFor2Months:"2個月",CoolOffFor3Months:"3個月",CoolOffUntilSelectedDate:"直到",dateInstructions:"如需手動輸入日期,請使用以下格式:",duration:"持續時間:",confirmationModalTitle:"確認",confirmationModalTextPeriodTimeout:"您確定要冷靜 {period} 嗎?",confirmationModalTextUntilTimeout:"您確定要冷靜直到 {date} 嗎?"},fr:{titleTimeout:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:`Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,save:"Savez",CoolOffFor24Hours:"24 heures",CoolOffFor72Hours:"72 heures",CoolOffFor7Days:"7 jours",CoolOffFor30Days:"30 jours",CoolOffFor6Weeks:"6 semaines",CoolOffFor2Months:"2 mois",CoolOffFor3Months:"3 mois",CoolOffUntilSelectedDate:"Jusqu'à",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",duration:"Durée :",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",confirmationModalTextUntilTimeout:"Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"},ro:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",CoolOffFor24Hours:"24 ore",CoolOffFor72Hours:"72 ore",CoolOffFor7Days:"7 zile",CoolOffFor30Days:"30 zile",CoolOffFor6Weeks:"6 săptămâni",CoolOffFor2Months:"2 luni",CoolOffFor3Months:"3 luni",CoolOffUntilSelectedDate:"Până la",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",duration:"Durată:",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodTimeout:"Ești sigur că vrei să te răcorești pentru {period}?",confirmationModalTextUntilTimeout:"Ești sigur că vrei să te răcorești până la {date}?"},es:{titleTimeout:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Estás seguro de que quieres enfriarte por {period}?",confirmationModalTextUntilTimeout:"¿Estás seguro de que quieres enfriarte hasta {date}?"},pt:{titleTimeout:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem a certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem a certeza de que deseja se refrescar até {date}?"},hr:{titleTimeout:"Samoisključenje",timeoutTextFirst:'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',timeoutTextSecondary:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",save:"Spremi",CoolOffFor24Hours:"24 sata",CoolOffFor72Hours:"72 sata",CoolOffFor7Days:"7 dana",CoolOffFor30Days:"30 dana",CoolOffFor6Weeks:"6 tjedana",CoolOffFor2Months:"2 mjeseca",CoolOffFor3Months:"3 mjeseca",CoolOffUntilSelectedDate:"Do",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",duration:"Trajanje:",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodTimeout:"Jeste li sigurni da se želite rashladiti na {period}?",confirmationModalTextUntilTimeout:"Jeste li sigurni da se želite rashladiti do {date}?"},"pt-br":{titleTimeout:"Tempo fora",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",timeoutTextSecondary:"Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",save:"Manter",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem certeza de que deseja se refrescar até {date}?"},"es-mx":{titleTimeout:"Tiempo Fuera",timeoutTextFirst:"{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",timeoutTextSecondary:'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Está seguro de que desea refrescarse por {period}?",confirmationModalTextUntilTimeout:"¿Está seguro de que desea refrescarse hasta {date}?"},tr:{titleTimeout:"Zaman aşımı",timeoutTextFirst:"{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",timeoutTextSecondary:"Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",save:"Kaydetmek",CoolOffFor24Hours:"24 saat",CoolOffFor72Hours:"72 saat",CoolOffFor7Days:"7 gün",CoolOffFor30Days:"30 gün",CoolOffFor6Weeks:"6 hafta",CoolOffFor2Months:"2 ay",CoolOffFor3Months:"3 ay",CoolOffUntilSelectedDate:"Kadar",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",duration:"Süre:",confirmationModalTitle:"Onay",confirmationModalTextPeriodTimeout:"{period} için kendinizi soğutmak istediğinizden emin misiniz?",confirmationModalTextUntilTimeout:"{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"}},st="__WIDGET_GLOBAL_STYLE_CACHE__";function Tl(e,i){if(e){const t=document.createElement("style");t.innerHTML=i,e.appendChild(t)}}function Al(e,i){if(!e||!i)return;const t=new URL(i);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,e&&e.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Sl(e,i,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=e_(e,i),t;window[st]||(window[st]={}),t=t_(e,i);const n=t.unsubscribe.bind(t),s=()=>{if(window[st][i]){const a=window[st][i];a.refCount>1?a.refCount=a.refCount-1:delete window[st][i]}n()};return t.unsubscribe=s,t}function e_(e,i){const t=document.createElement("style");return window.emMessageBus.subscribe(i,r=>{e&&(t.innerHTML=r,e.appendChild(t))})}function t_(e,i){return window.emMessageBus.subscribe(i,t=>{if(!e)return;const r=e.getRootNode(),o=window[st];let n=o[i]&&o[i].sheet;n?o[i].refCount=o[i].refCount+1:(n=new CSSStyleSheet,n.replaceSync(t),o[i]={sheet:n,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(n)||(r.adoptedStyleSheets=[...s,n])})}function i_(e){ms(e,"svelte-1dxh4dh",".TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.TimeoutConfigWrapper .TimeoutConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.TimeoutConfigWrapper .TimeoutConfigLabel .TimeoutConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.TimeoutConfigWrapper .TimeoutConfigLabel p{margin:0;font-family:inherit}.TimeoutConfigWrapper .TimeoutConfigLabel .TimeoutConfigIcon.active{transform:rotateZ(0deg)}.TimeoutConfigWrapper .TimeoutDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.TimeoutConfigWrapper .TimeoutDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.TimeoutConfigWrapper .TimeoutDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.TimeoutConfigWrapper .TimeoutDropDown.active{max-height:600px;opacity:1}.TimeoutConfigWrapper.TimeoutConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.TimeoutConfigWrapper.TimeoutConfigWrapperMobile .TimeoutConfigLabel .TimeoutConfigIcon{width:10px;height:10px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));color:var(--emw--button-typography, var(--emw--color-white, #ffffff));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function Qn(e,i,t){const r=e.slice();return r[49]=i[t],r}function r_(e){let i,t,r,o=e[19]("titleTimeout")+"",n,s,a,l,u=e[19]("timeoutTextFirst",{values:{operatorname:e[0],baseurl:e[6],lang:e[1]}})+"",c,h,d=e[19]("timeoutTextSecondary",{values:{supportemail:e[5],baseurl:e[6],lang:e[1]}})+"",p,f,m,E,D=e[19](e[11])+"",k,M,O,I,q,re,oe,we,W,N,he,ne=e[19]("save")+"",C,y,_,b,g,T,A,j,R=e[20]&&n_(e),V=zo(e[10]),L=[];for(let x=0;x<V.length;x+=1)L[x]=es(Qn(e,V,x));let G=e[12]&&ts(e);return{c(){i=H("form"),R&&R.c(),t=J(),r=H("h2"),n=ye(o),s=J(),a=H("div"),l=H("p"),c=J(),h=H("p"),p=J(),f=H("div"),m=H("div"),E=H("p"),k=ye(D),M=J(),O=Ce("svg"),I=Ce("g"),q=Ce("path"),re=J(),oe=H("div");for(let x=0;x<L.length;x+=1)L[x].c();we=J(),G&&G.c(),W=J(),N=H("div"),he=H("button"),C=ye(ne),y=J(),_=H("player-account-modal"),b=H("player-account-general-confirmation-modal"),S(r,"class","TimeoutTitle "+(e[20]?"TimeoutTitleNone":"")),S(a,"class","TimeoutDescription "+(e[20]?"TimeoutDescriptionMobile":"")),S(q,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),S(q,"stroke-linecap","round"),S(O,"xmlns","http://www.w3.org/2000/svg"),S(O,"xmlns:xlink","http://www.w3.org/1999/xlink"),S(O,"version","1.1"),S(O,"viewBox","0 0 100 100"),S(O,"xml:space","preserve"),S(O,"class","TimeoutConfigIcon"),et(O,"active",e[13]),S(m,"class","TimeoutConfigLabel"),S(m,"role","button"),S(m,"tabindex","0"),S(oe,"class","TimeoutDropDown"),et(oe,"active",e[13]),S(f,"class","TimeoutConfigWrapper "+(e[20]?"TimeoutConfigWrapperMobile":"")),et(f,"active",e[13]),S(he,"class","TimeoutSave"),S(N,"class","TimeoutActionButtons "+(e[20]?"TimeoutActionButtonsMobile":"")),S(i,"class","TimeoutWrapper "+(e[20]?"TimeoutWrapperMobile":"")),P(b,"modalTitle",g=e[19]("confirmationModalTitle")),P(b,"modalText",e[17]),P(b,"hascancelbutton",!1),P(b,"modalconfirmevent","SetPlayerAccountTimeout"),P(b,"modalconfirmdata",T={timeoutSelected:e[11],timeoutExpiryDate:e[14]}),P(b,"mbsource",e[4]),P(b,"lang",e[1]),P(_,"clientstyling",e[2]),P(_,"clientstylingurl",e[3]),P(_,"mbsource",e[4]),P(_,"showmodaleventname","ShowTimeoutConfirmationModal")},m(x,F){_e(x,i,F),R&&R.m(i,null),w(i,t),w(i,r),w(r,n),w(i,s),w(i,a),w(a,l),l.innerHTML=u,w(a,c),w(a,h),h.innerHTML=d,w(i,p),w(i,f),w(f,m),w(m,E),w(E,k),w(m,M),w(m,O),w(O,I),w(I,q),w(f,re),w(f,oe);for(let Y=0;Y<L.length;Y+=1)L[Y]&&L[Y].m(oe,null);w(i,we),G&&G.m(i,null),w(i,W),w(i,N),w(N,he),w(he,C),_e(x,y,F),_e(x,_,F),w(_,b),e[36](b),A||(j=[He(m,"click",e[30]),He(m,"keydown",e[31]),He(he,"click",e[35])],A=!0)},p(x,F){if(x[20]&&R.p(x,F),F[0]&524288&&o!==(o=x[19]("titleTimeout")+"")&&Le(n,o),F[0]&524355&&u!==(u=x[19]("timeoutTextFirst",{values:{operatorname:x[0],baseurl:x[6],lang:x[1]}})+"")&&(l.innerHTML=u),F[0]&524386&&d!==(d=x[19]("timeoutTextSecondary",{values:{supportemail:x[5],baseurl:x[6],lang:x[1]}})+"")&&(h.innerHTML=d),F[0]&526336&&D!==(D=x[19](x[11])+"")&&Le(k,D),F[0]&8192&&et(O,"active",x[13]),F[0]&17304576){V=zo(x[10]);let Y;for(Y=0;Y<V.length;Y+=1){const pe=Qn(x,V,Y);L[Y]?L[Y].p(pe,F):(L[Y]=es(pe),L[Y].c(),L[Y].m(oe,null))}for(;Y<L.length;Y+=1)L[Y].d(1);L.length=V.length}F[0]&8192&&et(oe,"active",x[13]),F[0]&8192&&et(f,"active",x[13]),x[12]?G?G.p(x,F):(G=ts(x),G.c(),G.m(i,W)):G&&(G.d(1),G=null),F[0]&524288&&ne!==(ne=x[19]("save")+"")&&Le(C,ne),F[0]&524288&&g!==(g=x[19]("confirmationModalTitle"))&&P(b,"modalTitle",g),F[0]&131072&&P(b,"modalText",x[17]),F[0]&18432&&T!==(T={timeoutSelected:x[11],timeoutExpiryDate:x[14]})&&P(b,"modalconfirmdata",T),F[0]&16&&P(b,"mbsource",x[4]),F[0]&2&&P(b,"lang",x[1]),F[0]&4&&P(_,"clientstyling",x[2]),F[0]&8&&P(_,"clientstylingurl",x[3]),F[0]&16&&P(_,"mbsource",x[4])},d(x){x&&(ce(i),ce(y),ce(_)),R&&R.d(),Gl(L,x),G&&G.d(),e[36](null),A=!1,ve(j)}}}function o_(e){let i,t,r,o,n,s,a,l,u,c,h,d,p,f,m,E;function D(O,I){return O[20]?a_:s_}let M=D(e)(e);return{c(){i=H("div"),M.c(),t=J(),r=H("div"),o=H("ui-skeleton"),n=J(),s=H("div"),a=J(),l=H("ui-skeleton"),u=J(),c=H("div"),h=J(),d=H("div"),p=H("ui-skeleton"),f=J(),m=H("div"),E=H("ui-skeleton"),P(o,"structure","text"),P(o,"height",e[20]?"15px":"20px"),P(o,"rows","3"),P(o,"width","100%"),Fo(s,"height",e[20]?"10px":"30px"),P(l,"structure","text"),P(l,"height",e[20]?"15px":"20px"),P(l,"rows","3"),P(l,"width","100%"),Fo(c,"height",e[20]?"10px":"30px"),S(r,"class","TimeoutDescription"),P(p,"structure","rectangle"),P(p,"width",e[20]?"100%":"50%"),P(p,"height",e[20]?"30px":"44px"),P(p,"margin-bottom","16px"),S(d,"class","TimeoutConfigWrapper "+(e[20]?"TimeoutConfigWrapperMobile":"")),P(E,"structure","rectangle"),P(E,"width","100%"),P(E,"height",e[20]?"35px":"50px"),S(m,"class","TimeoutActionButtons "+(e[20]?"TimeoutActionButtonsMobile":"")),S(i,"class","TimeoutWrapper "+(e[20]?"TimeoutWrapperMobile":""))},m(O,I){_e(O,i,I),M.m(i,null),w(i,t),w(i,r),w(r,o),w(r,n),w(r,s),w(r,a),w(r,l),w(r,u),w(r,c),w(i,h),w(i,d),w(d,p),w(i,f),w(i,m),w(m,E)},p:ae,d(O){O&&ce(i),M.d()}}}function n_(e){let i,t,r,o,n,s,a,l,u,c,h=e[19]("titleTimeout")+"",d,p,f;return{c(){i=H("div"),t=Ce("svg"),r=Ce("defs"),o=Ce("style"),n=ye(`.aaa {
3576
+ fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
3577
+ }
3578
+ `),s=Ce("g"),a=Ce("g"),l=Ce("path"),u=J(),c=H("h2"),d=ye(h),S(l,"class","aaa"),S(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),S(l,"transform","translate(15 15) rotate(180)"),S(a,"transform","translate(20 158)"),S(s,"transform","translate(-20 -158)"),S(t,"xmlns","http://www.w3.org/2000/svg"),S(t,"width","15"),S(t,"height","15"),S(t,"viewBox","0 0 15 15"),S(c,"class","TimeoutTitleMobile"),S(c,"part","TimeoutTitleMobile"),S(i,"class","MenuReturnButton"),S(i,"part","MenuReturnButton"),S(i,"role","button"),S(i,"tabindex","0")},m(m,E){_e(m,i,E),w(i,t),w(t,r),w(r,o),w(o,n),w(t,s),w(s,a),w(a,l),w(i,u),w(i,c),w(c,d),p||(f=[He(i,"click",e[28]),He(i,"keydown",e[29])],p=!0)},p(m,E){E[0]&524288&&h!==(h=m[19]("titleTimeout")+"")&&Le(d,h)},d(m){m&&ce(i),p=!1,ve(f)}}}function es(e){let i,t=e[19](e[49].value)+"",r,o,n,s,a;function l(){return e[32](e[49])}function u(...c){return e[33](e[49],...c)}return{c(){i=H("div"),r=ye(t),o=J(),S(i,"role","option"),S(i,"tabindex","0"),S(i,"aria-selected",n=e[11]===e[49].value)},m(c,h){_e(c,i,h),w(i,r),w(i,o),s||(a=[He(i,"click",l),He(i,"keydown",u)],s=!0)},p(c,h){e=c,h[0]&525312&&t!==(t=e[19](e[49].value)+"")&&Le(r,t),h[0]&3072&&n!==(n=e[11]===e[49].value)&&S(i,"aria-selected",n)},d(c){c&&ce(i),s=!1,ve(a)}}}function ts(e){let i,t,r=e[19]("duration")+"",o,n,s,a=e[19]("dateInstructions")+"",l,u,c,h,d;return{c(){i=H("div"),t=H("label"),o=ye(r),n=J(),s=H("span"),l=ye(a),u=J(),c=H("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=J(),d=H("vaadin-date-picker"),S(t,"for","TimeoutDate"),S(s,"class","TimeoutDateInstructions"),P(d,"min",e[15]),P(d,"max",e[16]),P(d,"value",e[15]),S(i,"class","TimeoutDateWrapper "+(e[20]?"TimeoutDateWrapperMobile":""))},m(p,f){_e(p,i,f),w(i,t),w(t,o),w(i,n),w(i,s),w(s,l),w(s,u),w(s,c),w(i,h),w(i,d),e[34](d)},p(p,f){f[0]&524288&&r!==(r=p[19]("duration")+"")&&Le(o,r),f[0]&524288&&a!==(a=p[19]("dateInstructions")+"")&&Le(l,a),f[0]&32768&&P(d,"min",p[15]),f[0]&65536&&P(d,"max",p[16]),f[0]&32768&&P(d,"value",p[15])},d(p){p&&ce(i),e[34](null)}}}function s_(e){let i;return{c(){i=H("ui-skeleton"),P(i,"structure","title"),P(i,"width","100px"),P(i,"margin-top","20px"),P(i,"margin-bottom","20px")},m(t,r){_e(t,i,r)},d(t){t&&ce(i)}}}function a_(e){let i;return{c(){i=H("div"),i.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',S(i,"class","MenuReturnButton")},m(t,r){_e(t,i,r)},d(t){t&&ce(i)}}}function l_(e){let i;function t(n,s){return n[18]?o_:r_}let r=t(e),o=r(e);return{c(){i=H("div"),o.c()},m(n,s){_e(n,i,s),o.m(i,null),e[37](i)},p(n,s){r===(r=t(n))&&o?o.p(n,s):(o.d(1),o=r(n),o&&(o.c(),o.m(i,null)))},i:ae,o:ae,d(n){n&&ce(i),o.d(),e[37](null)}}}function u_(e,i,t){let r;hs(e,El,v=>t(19,r=v));let{operator:o="Everymatrix"}=i,{lang:n="en"}=i,{clientstyling:s=""}=i,{clientstylingurl:a=""}=i,{mbsource:l}=i,{translationurl:u=""}=i,{supportemail:c=""}=i,{endpoint:h=""}=i,{baseurl:d=""}=i,{hasconfirmationmodal:p="false"}=i;Zm({withLocale:"en",translations:{}});let f,m,E,D=window.navigator.userAgent,k=Cl(D)!=="PC",M=[{value:"CoolOffFor24Hours",dateSelector:!1},{value:"CoolOffFor7Days",dateSelector:!1},{value:"CoolOffFor30Days",dateSelector:!1},{value:"CoolOffFor3Months",dateSelector:!1}],O=M[0].value,I=!1,q=!1,re="",oe,we,W="",N=p==="true",he=!0,ne;const C=()=>{fetch(u).then(v=>v.json()).then(v=>{Object.keys(v).forEach(le=>{Jn(le,v[le])})}).catch(v=>{console.log(v)})};Object.keys(Zn).forEach(v=>{Jn(v,Zn[v])});const y=()=>{const v=new URL("/v1/player/coolOffSettings",h),le={method:"GET"};fetch(v.href,le).then(ge=>{if(!ge.ok)throw new Error("There was an error while fetching the configuration");return ge.json()}).then(ge=>{const{periods:Ho}=ge;Ho&&t(10,M=Ho.map(Vi=>({value:Vi.key,text:Vi.text,dateSelector:Vi.dateSelector})))}).catch(ge=>{console.log(ge)}).finally(()=>{t(18,he=!1),t(11,O=M[0].value)})},_=()=>{if(!N){t(17,W="");return}t(17,W=I?r("confirmationModalTextUntilTimeout",{values:{date:re}}):r("confirmationModalTextPeriodTimeout",{values:{period:r(O)}}))},b=v=>{v.preventDefault(),N?window.postMessage({type:"ShowTimeoutConfirmationModal"},window.location.href):T()},g=v=>{const{timeoutSelected:le,timeoutExpiryDate:ge}=v.detail;t(11,O=le),t(14,re=ge),T()},T=()=>{window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:O,timeoutExpiryDate:re},window.location.href)},A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:k},window.location.href)},j=()=>{Qm(n),y()},R=()=>{t(13,q=!q)},V=v=>{t(11,O=v.value),t(12,I=!1),v.dateSelector&&(t(12,I=!0),t(15,oe=On().format("YYYY-MM-DD")),t(16,we=On().add(6,"months").format("YYYY-MM-DD")),t(14,re=oe)),t(13,q=!1),N&&_()},L=v=>{var ge;const le=v.target;t(14,re=(ge=le==null?void 0:le.value)!=null?ge:"")},G=()=>{m.addEventListener("change",L,!1)};tu(()=>{ne&&ne.removeEventListener("SetPlayerAccountTimeout",g),m&&m.removeEventListener("change",L)});const x=()=>A(),F=v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),A())},Y=()=>R(),pe=v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),R())},ie=v=>V(v),xe=(v,le)=>{(le.key==="Enter"||le.key===" ")&&(le.preventDefault(),V(v))};function ze(v){lt[v?"unshift":"push"](()=>{m=v,t(8,m)})}const Qe=v=>b(v);function Dl(v){lt[v?"unshift":"push"](()=>{ne=v,t(9,ne)})}function Ol(v){lt[v?"unshift":"push"](()=>{f=v,t(7,f)})}return e.$$set=v=>{"operator"in v&&t(0,o=v.operator),"lang"in v&&t(1,n=v.lang),"clientstyling"in v&&t(2,s=v.clientstyling),"clientstylingurl"in v&&t(3,a=v.clientstylingurl),"mbsource"in v&&t(4,l=v.mbsource),"translationurl"in v&&t(25,u=v.translationurl),"supportemail"in v&&t(5,c=v.supportemail),"endpoint"in v&&t(26,h=v.endpoint),"baseurl"in v&&t(6,d=v.baseurl),"hasconfirmationmodal"in v&&t(27,p=v.hasconfirmationmodal)},e.$$.update=()=>{e.$$.dirty[0]&256&&m&&G(),e.$$.dirty[0]&2&&n&&j(),e.$$.dirty[0]&132&&s&&f&&Tl(f,s),e.$$.dirty[0]&136&&a&&f&&Al(f,a),e.$$.dirty[0]&144&&l&&f&&Sl(f,`${l}.Style`,E),e.$$.dirty[0]&33554432&&u&&C(),e.$$.dirty[0]&512&&ne&&ne.addEventListener("SetPlayerAccountTimeout",g)},N&&_(),[o,n,s,a,l,c,d,f,m,ne,M,O,I,q,re,oe,we,W,he,r,k,b,A,R,V,u,h,p,x,F,Y,pe,ie,xe,ze,Qe,Dl,Ol]}class Pl extends xs{constructor(i){super(),ys(this,i,u_,l_,oo,{operator:0,lang:1,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:25,supportemail:5,endpoint:26,baseurl:6,hasconfirmationmodal:27},i_,[-1,-1])}get operator(){return this.$$.ctx[0]}set operator(i){this.$$set({operator:i}),fe()}get lang(){return this.$$.ctx[1]}set lang(i){this.$$set({lang:i}),fe()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(i){this.$$set({clientstyling:i}),fe()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),fe()}get mbsource(){return this.$$.ctx[4]}set mbsource(i){this.$$set({mbsource:i}),fe()}get translationurl(){return this.$$.ctx[25]}set translationurl(i){this.$$set({translationurl:i}),fe()}get supportemail(){return this.$$.ctx[5]}set supportemail(i){this.$$set({supportemail:i}),fe()}get endpoint(){return this.$$.ctx[26]}set endpoint(i){this.$$set({endpoint:i}),fe()}get baseurl(){return this.$$.ctx[6]}set baseurl(i){this.$$set({baseurl:i}),fe()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),fe()}}ws(Pl,{operator:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},supportemail:{},endpoint:{},baseurl:{},hasconfirmationmodal:{}},[],[],!0);const c_=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"}));exports.$format=El;exports.$locale=Me;exports.PlayerAccountTimeout_ce=c_;exports.SvelteComponent=xs;exports.addMessages=Io;exports.add_render_callback=Ut;exports.append=w;exports.append_styles=ms;exports.attr=S;exports.binding_callbacks=lt;exports.check_outros=lu;exports.component_subscribe=hs;exports.create_bidirectional_transition=hu;exports.create_custom_element=ws;exports.create_slot=Fl;exports.detach=ce;exports.element=H;exports.empty=Wl;exports.flush=fe;exports.getDevice=Cl;exports.get_all_dirty_from_scope=zl;exports.get_slot_changes=Bl;exports.group_outros=au;exports.identity=ls;exports.init=ys;exports.insert=_e;exports.listen=He;exports.noop=ae;exports.onMount=eu;exports.run_all=ve;exports.safe_not_equal=oo;exports.setClientStyling=Tl;exports.setClientStylingURL=Al;exports.setStreamStyling=Sl;exports.set_data=Le;exports.space=J;exports.svg_element=Ce;exports.text=ye;exports.transition_in=bs;exports.transition_out=uu;exports.update_slot_base=Rl;