@everymatrix/player-account-self-exclusion 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,52 +1,65 @@
1
- "use strict";var Ja=Object.defineProperty,Za=Object.defineProperties;var Qa=Object.getOwnPropertyDescriptors;var wn=Object.getOwnPropertySymbols;var el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable;var Hi=(t,i,e)=>i in t?Ja(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,St=(t,i)=>{for(var e in i||(i={}))el.call(i,e)&&Hi(t,e,i[e]);if(wn)for(var e of wn(i))tl.call(i,e)&&Hi(t,e,i[e]);return t},Zt=(t,i)=>Za(t,Qa(i));var ye=(t,i,e)=>Hi(t,typeof i!="symbol"?i+"":i,e);var At=(t,i,e)=>new Promise((r,n)=>{var o=l=>{try{a(e.next(l))}catch(u){n(u)}},s=l=>{try{a(e.throw(l))}catch(u){n(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-DtnYQAt6.cjs");function Se(){}function Yo(t){return t()}function En(){return Object.create(null)}function bt(t){t.forEach(Yo)}function Wr(t){return typeof t=="function"}function Go(t,i){return t!=t?i==i:t!==i||t&&typeof t=="object"||typeof t=="function"}function il(t){return Object.keys(t).length===0}function Wo(t,...i){if(t==null){for(const r of i)r(void 0);return Se}const e=t.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}function rl(t,i,e){t.$$.on_destroy.push(Wo(i,e))}function m(t,i){t.appendChild(i)}function nl(t,i,e){const r=ol(t);if(!r.getElementById(i)){const n=C("style");n.id=i,n.textContent=e,sl(r,n)}}function ol(t){if(!t)return document;const i=t.getRootNode?t.getRootNode():t.ownerDocument;return i&&i.host?i:t.ownerDocument}function sl(t,i){return m(t.head||t,i),i.sheet}function ge(t,i,e){t.insertBefore(i,e||null)}function me(t){t.parentNode&&t.parentNode.removeChild(t)}function al(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function C(t){return document.createElement(t)}function Ie(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function pe(t){return document.createTextNode(t)}function K(){return pe(" ")}function hi(t,i,e,r){return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}function A(t,i,e){e==null?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}function D(t,i,e){const r=i.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:A(t,i,e)}function ll(t){return Array.from(t.childNodes)}function we(t,i){i=""+i,t.data!==i&&(t.data=i)}function Li(t,i,e,r){e==null?t.style.removeProperty(i):t.style.setProperty(i,e,"")}function Ze(t,i,e){t.classList.toggle(i,!!e)}function ul(t){const i={};return t.childNodes.forEach(e=>{i[e.slot||"default"]=!0}),i}let $t;function Nt(t){$t=t}function cl(){if(!$t)throw new Error("Function called outside component initialization");return $t}function dl(t){cl().$$.on_mount.push(t)}const it=[],fi=[];let nt=[];const Sn=[],hl=Promise.resolve();let ur=!1;function fl(){ur||(ur=!0,hl.then(xe))}function cr(t){nt.push(t)}const Bi=new Set;let Qe=0;function xe(){if(Qe!==0)return;const t=$t;do{try{for(;Qe<it.length;){const i=it[Qe];Qe++,Nt(i),pl(i.$$)}}catch(i){throw it.length=0,Qe=0,i}for(Nt(null),it.length=0,Qe=0;fi.length;)fi.pop()();for(let i=0;i<nt.length;i+=1){const e=nt[i];Bi.has(e)||(Bi.add(e),e())}nt.length=0}while(it.length);for(;Sn.length;)Sn.pop()();ur=!1,Bi.clear(),Nt(t)}function pl(t){if(t.fragment!==null){t.update(),bt(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(cr)}}function ml(t){const i=[],e=[];nt.forEach(r=>t.indexOf(r)===-1?i.push(r):e.push(r)),e.forEach(r=>r()),nt=i}const _l=new Set;function gl(t,i){t&&t.i&&(_l.delete(t),t.i(i))}function An(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function bl(t,i,e){const{fragment:r,after_update:n}=t.$$;r&&r.m(i,e),cr(()=>{const o=t.$$.on_mount.map(Yo).filter(Wr);t.$$.on_destroy?t.$$.on_destroy.push(...o):bt(o),t.$$.on_mount=[]}),n.forEach(cr)}function vl(t,i){const e=t.$$;e.fragment!==null&&(ml(e.after_update),bt(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function yl(t,i){t.$$.dirty[0]===-1&&(it.push(t),fl(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function xl(t,i,e,r,n,o,s=null,a=[-1]){const l=$t;Nt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Se,not_equal:n,bound:En(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:En(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,i.props||{},(d,h,...f)=>{const p=f.length?f[0]:h;return u.ctx&&n(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&yl(t,d)),h}):[],u.update(),c=!0,bt(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const d=ll(i.target);u.fragment&&u.fragment.l(d),d.forEach(me)}else u.fragment&&u.fragment.c();i.intro&&gl(t.$$.fragment),bl(t,i.target,i.anchor),xe()}Nt(l)}let qo;typeof HTMLElement=="function"&&(qo=class extends HTMLElement{constructor(i,e,r){super();ye(this,"$$ctor");ye(this,"$$s");ye(this,"$$c");ye(this,"$$cn",!1);ye(this,"$$d",{});ye(this,"$$r",!1);ye(this,"$$p_d",{});ye(this,"$$l",{});ye(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(i,e,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){const n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,r)}removeEventListener(i,e,r){if(super.removeEventListener(i,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}connectedCallback(){return At(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(o){return()=>{let s;return{c:function(){s=C("slot"),o!=="default"&&A(s,"name",o)},m:function(u,c){ge(u,s,c)},d:function(u){u&&me(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=ul(this);for(const o of this.$$s)o in r&&(e[o]=[i(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=si(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Zt(St({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=si(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,e,r){var n;this.$$r||(i=this.$$g_p(i),this.$$d[i]=si(i,r,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function si(t,i,e,r){var o;const n=(o=e[t])==null?void 0:o.type;if(i=n==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!e[t])return i;if(r==="toAttribute")switch(n){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(n){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function wl(t,i,e,r,n,o){let s=class extends qo{constructor(){super(t,e,n),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=si(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]}})}),t.element=s,s}class El{constructor(){ye(this,"$$");ye(this,"$$set")}$destroy(){vl(this,1),this.$destroy=Se}$on(i,e){if(!Wr(e))return Se;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(e),()=>{const n=r.indexOf(e);n!==-1&&r.splice(n,1)}}$set(i){this.$$set&&!il(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Sl="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sl);var dr=function(t,i){return dr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},dr(t,i)};function He(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");dr(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var j=function(){return j=Object.assign||function(i){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},j.apply(this,arguments)};function Al(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)i.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(e[r[n]]=t[r[n]]);return e}function hr(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function fr(t,i){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var r=e.call(t),n,o=[],s;try{for(;(i===void 0||i-- >0)&&!(n=r.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return o}function ot(t,i,e){if(e||arguments.length===2)for(var r=0,n=i.length,o;r<n;r++)(o||!(r in i))&&(o||(o=Array.prototype.slice.call(i,0,r)),o[r]=i[r]);return t.concat(o||Array.prototype.slice.call(i))}function Ne(t){return typeof t=="function"}function Xo(t){var i=function(r){Error.call(r),r.stack=new Error().stack},e=t(i);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $i=Xo(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
1
+ "use strict";var el=Object.defineProperty,tl=Object.defineProperties;var il=Object.getOwnPropertyDescriptors;var An=Object.getOwnPropertySymbols;var rl=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable;var Ni=(t,i,e)=>i in t?el(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,Kt=(t,i)=>{for(var e in i||(i={}))rl.call(i,e)&&Ni(t,e,i[e]);if(An)for(var e of An(i))nl.call(i,e)&&Ni(t,e,i[e]);return t},Jt=(t,i)=>tl(t,il(i));var ye=(t,i,e)=>(Ni(t,typeof i!="symbol"?i+"":i,e),e);var Et=(t,i,e)=>new Promise((r,n)=>{var o=l=>{try{a(e.next(l))}catch(u){n(u)}},s=l=>{try{a(e.throw(l))}catch(u){n(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-C1buDKbo.cjs");function Ee(){}function Wo(t){return t()}function Cn(){return Object.create(null)}function gt(t){t.forEach(Wo)}function Wr(t){return typeof t=="function"}function qo(t,i){return t!=t?i==i:t!==i||t&&typeof t=="object"||typeof t=="function"}function ol(t){return Object.keys(t).length===0}function Xo(t,...i){if(t==null){for(const r of i)r(void 0);return Ee}const e=t.subscribe(...i);return e.unsubscribe?()=>e.unsubscribe():e}function sl(t,i,e){t.$$.on_destroy.push(Xo(i,e))}function m(t,i){t.appendChild(i)}function al(t,i,e){const r=ll(t);if(!r.getElementById(i)){const n=C("style");n.id=i,n.textContent=e,ul(r,n)}}function ll(t){if(!t)return document;const i=t.getRootNode?t.getRootNode():t.ownerDocument;return i&&i.host?i:t.ownerDocument}function ul(t,i){return m(t.head||t,i),i.sheet}function ge(t,i,e){t.insertBefore(i,e||null)}function me(t){t.parentNode&&t.parentNode.removeChild(t)}function cl(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function C(t){return document.createElement(t)}function Me(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function pe(t){return document.createTextNode(t)}function K(){return pe(" ")}function hi(t,i,e,r){return t.addEventListener(i,e,r),()=>t.removeEventListener(i,e,r)}function A(t,i,e){e==null?t.removeAttribute(i):t.getAttribute(i)!==e&&t.setAttribute(i,e)}function D(t,i,e){const r=i.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:i in t?t[i]=typeof t[i]=="boolean"&&e===""?!0:e:A(t,i,e)}function hl(t){return Array.from(t.childNodes)}function we(t,i){i=""+i,t.data!==i&&(t.data=i)}function Li(t,i,e,r){e==null?t.style.removeProperty(i):t.style.setProperty(i,e,"")}function Je(t,i,e){t.classList.toggle(i,!!e)}function dl(t){const i={};return t.childNodes.forEach(e=>{i[e.slot||"default"]=!0}),i}let Ht;function Ot(t){Ht=t}function fl(){if(!Ht)throw new Error("Function called outside component initialization");return Ht}function pl(t){fl().$$.on_mount.push(t)}const tt=[],di=[];let rt=[];const Tn=[],ml=Promise.resolve();let ur=!1;function _l(){ur||(ur=!0,ml.then(xe))}function cr(t){rt.push(t)}const Hi=new Set;let Ze=0;function xe(){if(Ze!==0)return;const t=Ht;do{try{for(;Ze<tt.length;){const i=tt[Ze];Ze++,Ot(i),gl(i.$$)}}catch(i){throw tt.length=0,Ze=0,i}for(Ot(null),tt.length=0,Ze=0;di.length;)di.pop()();for(let i=0;i<rt.length;i+=1){const e=rt[i];Hi.has(e)||(Hi.add(e),e())}rt.length=0}while(tt.length);for(;Tn.length;)Tn.pop()();ur=!1,Hi.clear(),Ot(t)}function gl(t){if(t.fragment!==null){t.update(),gt(t.before_update);const i=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,i),t.after_update.forEach(cr)}}function bl(t){const i=[],e=[];rt.forEach(r=>t.indexOf(r)===-1?i.push(r):e.push(r)),e.forEach(r=>r()),rt=i}const vl=new Set;function yl(t,i){t&&t.i&&(vl.delete(t),t.i(i))}function Pn(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function xl(t,i,e){const{fragment:r,after_update:n}=t.$$;r&&r.m(i,e),cr(()=>{const o=t.$$.on_mount.map(Wo).filter(Wr);t.$$.on_destroy?t.$$.on_destroy.push(...o):gt(o),t.$$.on_mount=[]}),n.forEach(cr)}function wl(t,i){const e=t.$$;e.fragment!==null&&(bl(e.after_update),gt(e.on_destroy),e.fragment&&e.fragment.d(i),e.on_destroy=e.fragment=null,e.ctx=[])}function El(t,i){t.$$.dirty[0]===-1&&(tt.push(t),_l(),t.$$.dirty.fill(0)),t.$$.dirty[i/31|0]|=1<<i%31}function Sl(t,i,e,r,n,o,s=null,a=[-1]){const l=Ht;Ot(t);const u=t.$$={fragment:null,ctx:[],props:o,update:Ee,not_equal:n,bound:Cn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(l?l.$$.context:[])),callbacks:Cn(),dirty:a,skip_bound:!1,root:i.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(t,i.props||{},(h,d,...f)=>{const p=f.length?f[0]:d;return u.ctx&&n(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),c&&El(t,h)),d}):[],u.update(),c=!0,gt(u.before_update),u.fragment=r?r(u.ctx):!1,i.target){if(i.hydrate){const h=hl(i.target);u.fragment&&u.fragment.l(h),h.forEach(me)}else u.fragment&&u.fragment.c();i.intro&&yl(t.$$.fragment),xl(t,i.target,i.anchor),xe()}Ot(l)}let Ko;typeof HTMLElement=="function"&&(Ko=class extends HTMLElement{constructor(i,e,r){super();ye(this,"$$ctor");ye(this,"$$s");ye(this,"$$c");ye(this,"$$cn",!1);ye(this,"$$d",{});ye(this,"$$r",!1);ye(this,"$$p_d",{});ye(this,"$$l",{});ye(this,"$$l_u",new Map);this.$$ctor=i,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(i,e,r){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){const n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,r)}removeEventListener(i,e,r){if(super.removeEventListener(i,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}connectedCallback(){return Et(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(o){return()=>{let s;return{c:function(){s=C("slot"),o!=="default"&&A(s,"name",o)},m:function(u,c){ge(u,s,c)},d:function(u){u&&me(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=dl(this);for(const o of this.$$s)o in r&&(e[o]=[i(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=oi(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Jt(Kt({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=oi(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(i,e,r){var n;this.$$r||(i=this.$$g_p(i),this.$$d[i]=oi(i,r,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$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(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function oi(t,i,e,r){var o;const n=(o=e[t])==null?void 0:o.type;if(i=n==="Boolean"&&typeof i!="boolean"?i!=null:i,!r||!e[t])return i;if(r==="toAttribute")switch(n){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(n){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function Al(t,i,e,r,n,o){let s=class extends Ko{constructor(){super(t,e,n),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=oi(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]}})}),t.element=s,s}class Cl{constructor(){ye(this,"$$");ye(this,"$$set")}$destroy(){wl(this,1),this.$destroy=Ee}$on(i,e){if(!Wr(e))return Ee;const r=this.$$.callbacks[i]||(this.$$.callbacks[i]=[]);return r.push(e),()=>{const n=r.indexOf(e);n!==-1&&r.splice(n,1)}}$set(i){this.$$set&&!ol(i)&&(this.$$.skip_bound=!0,this.$$set(i),this.$$.skip_bound=!1)}}const Tl="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Tl);/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */var hr=function(t,i){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},hr(t,i)};function Ne(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");hr(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var j=function(){return j=Object.assign||function(i){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},j.apply(this,arguments)};function Pl(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)i.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(e[r[n]]=t[r[n]]);return e}function dr(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function fr(t,i){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var r=e.call(t),n,o=[],s;try{for(;(i===void 0||i-- >0)&&!(n=r.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(s)throw s.error}}return o}function nt(t,i,e){if(e||arguments.length===2)for(var r=0,n=i.length,o;r<n;r++)(o||!(r in i))&&(o||(o=Array.prototype.slice.call(i,0,r)),o[r]=i[r]);return t.concat(o||i)}function Oe(t){return typeof t=="function"}function Jo(t){var i=function(r){Error.call(r),r.stack=new Error().stack},e=t(i);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $i=Jo(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
2
15
  `+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function pr(t,i){if(t){var e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Si=function(){function t(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var i,e,r,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=hr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(v){i={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Ne(c))try{c()}catch(v){o=v instanceof $i?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=hr(d),f=h.next();!f.done;f=h.next()){var p=f.value;try{Cn(p)}catch(v){o=o!=null?o:[],v instanceof $i?o=ot(ot([],fr(o)),fr(v.errors)):o.push(v)}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}if(o)throw new $i(o)}},t.prototype.add=function(i){var e;if(i&&i!==this)if(this.closed)Cn(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}},t.prototype._hasParent=function(i){var e=this._parentage;return e===i||Array.isArray(e)&&e.includes(i)},t.prototype._addParent=function(i){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i},t.prototype._removeParent=function(i){var e=this._parentage;e===i?this._parentage=null:Array.isArray(e)&&pr(e,i)},t.prototype.remove=function(i){var e=this._finalizers;e&&pr(e,i),i instanceof t&&i._removeParent(this)},t.EMPTY=function(){var i=new t;return i.closed=!0,i}(),t}(),Ko=Si.EMPTY;function Jo(t){return t instanceof Si||t&&"closed"in t&&Ne(t.remove)&&Ne(t.add)&&Ne(t.unsubscribe)}function Cn(t){Ne(t)?t():t.unsubscribe()}var Cl={Promise:void 0},Tl={setTimeout:function(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,ot([t,i],fr(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Pl(t){Tl.setTimeout(function(){throw t})}function Tn(){}function ai(t){t()}var Zo=function(t){He(i,t);function i(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Jo(e)&&e.add(r)):r.destination=Ml,r}return i.create=function(e,r,n){return new mr(e,r,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Si),Dl=function(){function t(i){this.partialObserver=i}return t.prototype.next=function(i){var e=this.partialObserver;if(e.next)try{e.next(i)}catch(r){Qt(r)}},t.prototype.error=function(i){var e=this.partialObserver;if(e.error)try{e.error(i)}catch(r){Qt(r)}else Qt(i)},t.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(e){Qt(e)}},t}(),mr=function(t){He(i,t);function i(e,r,n){var o=t.call(this)||this,s;return Ne(e)||!e?s={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0}:s=e,o.destination=new Dl(s),o}return i}(Zo);function Qt(t){Pl(t)}function kl(t){throw t}var Ml={closed:!0,next:Tn,error:kl,complete:Tn},Ol=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Il(t){return t}function Nl(t){return t.length===0?Il:t.length===1?t[0]:function(e){return t.reduce(function(r,n){return n(r)},e)}}var Pn=function(){function t(i){i&&(this._subscribe=i)}return t.prototype.lift=function(i){var e=new t;return e.source=this,e.operator=i,e},t.prototype.subscribe=function(i,e,r){var n=this,o=Ll(i)?i:new mr(i,e,r);return ai(function(){var s=n,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},t.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(e){i.error(e)}},t.prototype.forEach=function(i,e){var r=this;return e=Dn(e),new e(function(n,o){var s=new mr({next:function(a){try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});r.subscribe(s)})},t.prototype._subscribe=function(i){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(i)},t.prototype[Ol]=function(){return this},t.prototype.pipe=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return Nl(i)(this)},t.prototype.toPromise=function(i){var e=this;return i=Dn(i),new i(function(r,n){var o;e.subscribe(function(s){return o=s},function(s){return n(s)},function(){return r(o)})})},t.create=function(i){return new t(i)},t}();function Dn(t){var i;return(i=t!=null?t:Cl.Promise)!==null&&i!==void 0?i:Promise}function Hl(t){return t&&Ne(t.next)&&Ne(t.error)&&Ne(t.complete)}function Ll(t){return t&&t instanceof Zo||Hl(t)&&Jo(t)}var Bl=Xo(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qo=function(t){He(i,t);function i(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.prototype.lift=function(e){var r=new kn(this,this);return r.operator=e,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new Bl},i.prototype.next=function(e){var r=this;ai(function(){var n,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=hr(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(e)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},i.prototype.error=function(e){var r=this;ai(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},i.prototype.complete=function(){var e=this;ai(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.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 e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var r=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?Ko:(this.currentObservers=null,a.push(e),new Si(function(){r.currentObservers=null,pr(a,e)}))},i.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,o=r.thrownError,s=r.isStopped;n?e.error(o):s&&e.complete()},i.prototype.asObservable=function(){var e=new Pn;return e.source=this,e},i.create=function(e,r){return new kn(e,r)},i}(Pn),kn=function(t){He(i,t);function i(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},i.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},i.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},i.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Ko},i}(Qo),es={now:function(){return(es.delegate||Date).now()},delegate:void 0},$l=function(t){He(i,t);function i(e,r,n){e===void 0&&(e=1/0),r===void 0&&(r=1/0),n===void 0&&(n=es);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return i.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;n||(o.push(e),!s&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},i.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},i.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,n=e._timestampProvider,o=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=n.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},i}(Qo);const Mn=[],On={},Fl=(t,i=0)=>{if(Mn.indexOf(t)==-1){const e=new $l(i);On[t]=e,Mn.push(t)}return On[t]},et=[];function Rl(t,i){return{subscribe:Ai(t,i).subscribe}}function Ai(t,i=Se){let e;const r=new Set;function n(a){if(Go(t,a)&&(t=a,e)){const l=!et.length;for(const u of r)u[1](),et.push(u,t);if(l){for(let u=0;u<et.length;u+=2)et[u][0](et[u+1]);et.length=0}}}function o(a){n(a(t))}function s(a,l=Se){const u=[a,l];return r.add(u),r.size===1&&(e=i(n,o)||Se),a(t),()=>{r.delete(u),r.size===0&&e&&(e(),e=null)}}return{set:n,update:o,subscribe:s}}function vt(t,i,e){const r=!Array.isArray(t),n=r?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=i.length<2;return Rl(e,(s,a)=>{let l=!1;const u=[];let c=0,d=Se;const h=()=>{if(c)return;d();const p=i(r?u[0]:u,s,a);o?s(p):d=Wr(p)?p:Se},f=n.map((p,v)=>Wo(p,P=>{u[v]=P,c&=~(1<<v),l&&h()},()=>{c|=1<<v}));return l=!0,h(),function(){bt(f),d(),l=!1}})}var zl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ts(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ul=function(i){return jl(i)&&!Vl(i)};function jl(t){return!!t&&typeof t=="object"}function Vl(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Wl(t)}var Yl=typeof Symbol=="function"&&Symbol.for,Gl=Yl?Symbol.for("react.element"):60103;function Wl(t){return t.$$typeof===Gl}function ql(t){return Array.isArray(t)?[]:{}}function Ft(t,i){return i.clone!==!1&&i.isMergeableObject(t)?ct(ql(t),t,i):t}function Xl(t,i,e){return t.concat(i).map(function(r){return Ft(r,e)})}function Kl(t,i){if(!i.customMerge)return ct;var e=i.customMerge(t);return typeof e=="function"?e:ct}function Jl(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function In(t){return Object.keys(t).concat(Jl(t))}function is(t,i){try{return i in t}catch(e){return!1}}function Zl(t,i){return is(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function Ql(t,i,e){var r={};return e.isMergeableObject(t)&&In(t).forEach(function(n){r[n]=Ft(t[n],e)}),In(i).forEach(function(n){Zl(t,n)||(is(t,n)&&e.isMergeableObject(i[n])?r[n]=Kl(n,e)(t[n],i[n],e):r[n]=Ft(i[n],e))}),r}function ct(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||Xl,e.isMergeableObject=e.isMergeableObject||Ul,e.cloneUnlessOtherwiseSpecified=Ft;var r=Array.isArray(i),n=Array.isArray(t),o=r===n;return o?r?e.arrayMerge(t,i,e):Ql(t,i,e):Ft(i,e)}ct.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,n){return ct(r,n,e)},{})};var eu=ct,tu=eu;const iu=ts(tu);function Fi(t,i){var e=i&&i.cache?i.cache:uu,r=i&&i.serializer?i.serializer:au,n=i&&i.strategy?i.strategy:ou;return n(t,{cache:e,serializer:r})}function ru(t){return t==null||typeof t=="number"||typeof t=="boolean"}function nu(t,i,e,r){var n=ru(r)?r:e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.call(this,r),i.set(n,o)),o}function rs(t,i,e){var r=Array.prototype.slice.call(arguments,3),n=e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.apply(this,r),i.set(n,o)),o}function ns(t,i,e,r,n){return e.bind(i,t,r,n)}function ou(t,i){var e=t.length===1?nu:rs;return ns(t,this,e,i.cache.create(),i.serializer)}function su(t,i){return ns(t,this,rs,i.cache.create(),i.serializer)}var au=function(){return JSON.stringify(arguments)},lu=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(i){return this.cache[i]},t.prototype.set=function(i,e){this.cache[i]=e},t}(),uu={create:function(){return new lu}},Ri={variadic:su},H;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(H||(H={}));var W;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(W||(W={}));var dt;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(dt||(dt={}));function Nn(t){return t.type===W.literal}function cu(t){return t.type===W.argument}function os(t){return t.type===W.number}function ss(t){return t.type===W.date}function as(t){return t.type===W.time}function ls(t){return t.type===W.select}function us(t){return t.type===W.plural}function du(t){return t.type===W.pound}function cs(t){return t.type===W.tag}function ds(t){return!!(t&&typeof t=="object"&&t.type===dt.number)}function _r(t){return!!(t&&typeof t=="object"&&t.type===dt.dateTime)}var hs=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,hu=/(?:[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 fu(t){var i={};return t.replace(hu,function(e){var r=e.length;switch(e[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 pu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var i=t.split(pu).filter(function(h){return h.length>0}),e=[],r=0,n=i;r<n.length;r++){var o=n[r],s=o.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 d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}e.push({stem:a,options:l})}return e}function _u(t){return t.replace(/^(.*?)-/,"")}var Hn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,fs=/^(@+)?(\+|#+)?[rs]?$/g,gu=/(\*)(0+)|(#+)(0+)|(0+)/g,ps=/^(0+)$/;function Ln(t){var i={};return t[t.length-1]==="r"?i.roundingPriority="morePrecision":t[t.length-1]==="s"&&(i.roundingPriority="lessPrecision"),t.replace(fs,function(e,r,n){return typeof n!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):n==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof n=="string"?n.length:0)),""}),i}function ms(t){switch(t){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 bu(t){var i;if(t[0]==="E"&&t[1]==="E"?(i={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(i={notation:"scientific"},t=t.slice(1)),i){var e=t.slice(0,2);if(e==="+!"?(i.signDisplay="always",t=t.slice(2)):e==="+?"&&(i.signDisplay="exceptZero",t=t.slice(2)),!ps.test(t))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=t.length}return i}function Bn(t){var i={},e=ms(t);return e||i}function vu(t){for(var i={},e=0,r=t;e<r.length;e++){var n=r[e];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.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=_u(n.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=j(j(j({},i),{notation:"scientific"}),n.options.reduce(function(l,u){return j(j({},l),Bn(u))},{}));continue;case"engineering":i=j(j(j({},i),{notation:"engineering"}),n.options.reduce(function(l,u){return j(j({},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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(gu,function(l,u,c,d,h,f){if(u)i.minimumIntegerDigits=c.length;else{if(d&&h)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(ps.test(n.stem)){i.minimumIntegerDigits=n.stem.length;continue}if(Hn.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Hn,function(l,u,c,d,h,f){return c==="*"?i.minimumFractionDigits=u.length:d&&d[0]==="#"?i.maximumFractionDigits=d.length:h&&f?(i.minimumFractionDigits=h.length,i.maximumFractionDigits=h.length+f.length):(i.minimumFractionDigits=u.length,i.maximumFractionDigits=u.length),""});var o=n.options[0];o==="w"?i=j(j({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=j(j({},i),Ln(o)));continue}if(fs.test(n.stem)){i=j(j({},i),Ln(n.stem));continue}var s=ms(n.stem);s&&(i=j(j({},i),s));var a=bu(n.stem);a&&(i=j(j({},i),a))}return i}var ei={"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 yu(t,i){for(var e="",r=0;r<t.length;r++){var n=t.charAt(r);if(n==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===n;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=xu(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;s-- >0;)e=u+e}else n==="J"?e+="H":e+=n}return e}function xu(t){var i=t.hourCycle;if(i===void 0&&t.hourCycles&&t.hourCycles.length&&(i=t.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 e=t.language,r;e!=="root"&&(r=t.maximize().region);var n=ei[r||""]||ei[e||""]||ei["".concat(e,"-001")]||ei["001"];return n[0]}var zi,wu=new RegExp("^".concat(hs.source,"*")),Eu=new RegExp("".concat(hs.source,"*$"));function $(t,i){return{start:t,end:i}}var Su=!!String.prototype.startsWith&&"_a".startsWith("a",1),Au=!!String.fromCodePoint,Cu=!!Object.fromEntries,Tu=!!String.prototype.codePointAt,Pu=!!String.prototype.trimStart,Du=!!String.prototype.trimEnd,ku=!!Number.isSafeInteger,Mu=ku?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},gr=!0;try{var Ou=gs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gr=((zi=Ou.exec("a"))===null||zi===void 0?void 0:zi[0])==="a"}catch(t){gr=!1}var $n=Su?function(i,e,r){return i.startsWith(e,r)}:function(i,e,r){return i.slice(r,r+e.length)===e},br=Au?String.fromCodePoint:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r="",n=i.length,o=0,s;n>o;){if(s=i[o++],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},Fn=Cu?Object.fromEntries:function(i){for(var e={},r=0,n=i;r<n.length;r++){var o=n[r],s=o[0],a=o[1];e[s]=a}return e},_s=Tu?function(i,e){return i.codePointAt(e)}:function(i,e){var r=i.length;if(!(e<0||e>=r)){var n=i.charCodeAt(e),o;return n<55296||n>56319||e+1===r||(o=i.charCodeAt(e+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Iu=Pu?function(i){return i.trimStart()}:function(i){return i.replace(wu,"")},Nu=Du?function(i){return i.trimEnd()}:function(i){return i.replace(Eu,"")};function gs(t,i){return new RegExp(t,i)}var vr;if(gr){var Rn=gs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vr=function(i,e){var r;Rn.lastIndex=e;var n=Rn.exec(i);return(r=n[1])!==null&&r!==void 0?r:""}}else vr=function(i,e){for(var r=[];;){var n=_s(i,e);if(n===void 0||bs(n)||$u(n))break;r.push(n),e+=n>=65536?2:1}return br.apply(void 0,r)};var Hu=function(){function t(i,e){e===void 0&&(e={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(i,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(i,r);if(s.err)return s;n.push(s.val)}else{if(o===125&&i>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:W.pound,location:$(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(H.UNMATCHED_CLOSING_TAG,$(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&yr(this.peek()||0)){var s=this.parseTag(i,e);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(i,e);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},t.prototype.parseTag=function(i,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:W.literal,value:"<".concat(n,"/>"),location:$(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(i+1,e,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yr(this.char()))return this.error(H.INVALID_TAG,$(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(H.UNMATCHED_CLOSING_TAG,$(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:W.tag,value:n,children:s,location:$(r,this.clonePosition())},err:null}:this.error(H.INVALID_TAG,$(a,this.clonePosition())))}else return this.error(H.UNCLOSED_TAG,$(r,this.clonePosition()))}else return this.error(H.INVALID_TAG,$(r,this.clonePosition()))},t.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&Bu(this.char());)this.bump();return this.message.slice(i,this.offset())},t.prototype.parseLiteral=function(i,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o){n+=o;continue}var s=this.tryParseUnquoted(i,e);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=$(r,this.clonePosition());return{val:{type:W.literal,value:n,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Lu(this.peek()||0))?(this.bump(),"<"):null},t.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 e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return br.apply(void 0,e)},t.prototype.tryParseUnquoted=function(i,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&i>0?null:(this.bump(),br(r))},t.prototype.parseArgument=function(i,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(H.EMPTY_ARGUMENT,$(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(H.MALFORMED_ARGUMENT,$(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:W.argument,value:n,location:$(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,$(r,this.clonePosition())):this.parseArgumentOptions(i,e,n,r);default:return this.error(H.MALFORMED_ARGUMENT,$(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),e=this.offset(),r=vr(this.message,e),n=e+r.length;this.bumpTo(n);var o=this.clonePosition(),s=$(i,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(i,e,r,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(H.EXPECT_ARGUMENT_TYPE,$(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=Nu(d.val);if(h.length===0)return this.error(H.EXPECT_ARGUMENT_STYLE,$(this.clonePosition(),this.clonePosition()));var f=$(c,this.clonePosition());u={style:h,styleLocation:f}}var p=this.tryParseArgumentClose(n);if(p.err)return p;var v=$(n,this.clonePosition());if(u&&$n(u==null?void 0:u.style,"::",0)){var P=Iu(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(P,u.styleLocation);return d.err?d:{val:{type:W.number,value:r,location:v,style:d.val},err:null}}else{if(P.length===0)return this.error(H.EXPECT_DATE_TIME_SKELETON,v);var I=P;this.locale&&(I=yu(P,this.locale));var h={type:dt.dateTime,pattern:I,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?fu(I):{}},k=a==="date"?W.date:W.time;return{val:{type:k,value:r,location:v,style:h},err:null}}}return{val:{type:a==="number"?W.number:a==="date"?W.date:W.time,value:r,location:v,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,$(R,j({},R)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),M=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),L=this.parseIdentifierIfPossible(),M=d.val}var J=this.tryParsePluralOrSelectOptions(i,a,e,L);if(J.err)return J;var p=this.tryParseArgumentClose(n);if(p.err)return p;var le=$(n,this.clonePosition());return a==="select"?{val:{type:W.select,value:r,options:Fn(J.val),location:le},err:null}:{val:{type:W.plural,value:r,options:Fn(J.val),offset:M,pluralType:a==="plural"?"cardinal":"ordinal",location:le},err:null}}default:return this.error(H.INVALID_ARGUMENT_TYPE,$(s,l))}},t.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,$(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$(n,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(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(i,e){var r=[];try{r=mu(i)}catch(n){return this.error(H.INVALID_NUMBER_SKELETON,e)}return{val:{type:dt.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?vu(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(i,e,r,n){for(var o,s=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(u.length===0){var d=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR,H.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=$(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?H.DUPLICATE_SELECT_ARGUMENT_SELECTOR:H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,e,r);if(p.err)return p;var v=this.tryParseArgumentClose(f);if(v.err)return v;a.push([u,{value:p.val,location:$(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(e==="select"?H.EXPECT_SELECT_ARGUMENT_SELECTOR:H.EXPECT_PLURAL_ARGUMENT_SELECTOR,$(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(H.MISSING_OTHER_CLAUSE,$(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(i,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=$(n,this.clonePosition());return o?(s*=r,Mu(s)?{val:s,err:null}:this.error(e,l)):this.error(i,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var e=_s(this.message,i);if(e===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(i,e){return{val:null,err:{kind:i,message:this.message,location:e}}},t.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)}},t.prototype.bumpIf=function(i){if($n(this.message,i,this.offset())){for(var e=0;e<i.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(i){var e=this.offset(),r=this.message.indexOf(i,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.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 e=this.offset();if(e===i)break;if(e>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&bs(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(i>=65536?2:1));return r!=null?r:null},t}();function yr(t){return t>=97&&t<=122||t>=65&&t<=90}function Lu(t){return yr(t)||t===47}function Bu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function bs(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function $u(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function xr(t){t.forEach(function(i){if(delete i.location,ls(i)||us(i))for(var e in i.options)delete i.options[e].location,xr(i.options[e].value);else os(i)&&ds(i.style)||(ss(i)||as(i))&&_r(i.style)?delete i.style.location:cs(i)&&xr(i.children)})}function Fu(t,i){i===void 0&&(i={}),i=j({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var e=new Hu(t,i).parse();if(e.err){var r=SyntaxError(H[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return i!=null&&i.captureLocation||xr(e.val),e.val}var ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var Ci=function(t){He(i,t);function i(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),zn=function(t){He(i,t);function i(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,o)||this}return i}(Ci),Ru=function(t){He(i,t);function i(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return i}(Ci),zu=function(t){He(i,t);function i(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return i}(Ci),ce;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ce||(ce={}));function Uu(t){return t.length<2?t:t.reduce(function(i,e){var r=i[i.length-1];return!r||r.type!==ce.literal||e.type!==ce.literal?i.push(e):r.value+=e.value,i},[])}function ju(t){return typeof t=="function"}function li(t,i,e,r,n,o,s){if(t.length===1&&Nn(t[0]))return[{type:ce.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Nn(c)){a.push({type:ce.literal,value:c.value});continue}if(du(c)){typeof o=="number"&&a.push({type:ce.literal,value:e.getNumberFormat(i).format(o)});continue}var d=c.value;if(!(n&&d in n))throw new zu(d,s);var h=n[d];if(cu(c)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ce.literal:ce.object,value:h});continue}if(ss(c)){var f=typeof c.style=="string"?r.date[c.style]:_r(c.style)?c.style.parsedOptions:void 0;a.push({type:ce.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(as(c)){var f=typeof c.style=="string"?r.time[c.style]:_r(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ce.literal,value:e.getDateTimeFormat(i,f).format(h)});continue}if(os(c)){var f=typeof c.style=="string"?r.number[c.style]:ds(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ce.literal,value:e.getNumberFormat(i,f).format(h)});continue}if(cs(c)){var p=c.children,v=c.value,P=n[v];if(!ju(P))throw new Ru(v,"function",s);var I=li(p,i,e,r,n,o),k=P(I.map(function(M){return M.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(M){return{type:typeof M=="string"?ce.literal:ce.object,value:M}}))}if(ls(c)){var R=c.options[h]||c.options.other;if(!R)throw new zn(c.value,h,Object.keys(c.options),s);a.push.apply(a,li(R.value,i,e,r,n));continue}if(us(c)){var R=c.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new Ci(`Intl.PluralRules is not available in this environment.
16
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function pr(t,i){if(t){var e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Ei=function(){function t(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var i,e,r,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=dr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(v){i={error:v}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}else s.remove(this);var c=this.initialTeardown;if(Oe(c))try{c()}catch(v){o=v instanceof $i?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=dr(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{Dn(p)}catch(v){o=o!=null?o:[],v instanceof $i?o=nt(nt([],fr(o)),fr(v.errors)):o.push(v)}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}if(o)throw new $i(o)}},t.prototype.add=function(i){var e;if(i&&i!==this)if(this.closed)Dn(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}},t.prototype._hasParent=function(i){var e=this._parentage;return e===i||Array.isArray(e)&&e.includes(i)},t.prototype._addParent=function(i){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i},t.prototype._removeParent=function(i){var e=this._parentage;e===i?this._parentage=null:Array.isArray(e)&&pr(e,i)},t.prototype.remove=function(i){var e=this._finalizers;e&&pr(e,i),i instanceof t&&i._removeParent(this)},t.EMPTY=function(){var i=new t;return i.closed=!0,i}(),t}(),Zo=Ei.EMPTY;function Qo(t){return t instanceof Ei||t&&"closed"in t&&Oe(t.remove)&&Oe(t.add)&&Oe(t.unsubscribe)}function Dn(t){Oe(t)?t():t.unsubscribe()}var es={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Dl={setTimeout:function(t,i){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,nt([t,i],fr(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function kl(t){Dl.setTimeout(function(){throw t})}function kn(){}function si(t){t()}var ts=function(t){Ne(i,t);function i(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Qo(e)&&e.add(r)):r.destination=Nl,r}return i.create=function(e,r,n){return new mr(e,r,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},i}(Ei),Ml=Function.prototype.bind;function Bi(t,i){return Ml.call(t,i)}var Ol=function(){function t(i){this.partialObserver=i}return t.prototype.next=function(i){var e=this.partialObserver;if(e.next)try{e.next(i)}catch(r){Zt(r)}},t.prototype.error=function(i){var e=this.partialObserver;if(e.error)try{e.error(i)}catch(r){Zt(r)}else Zt(i)},t.prototype.complete=function(){var i=this.partialObserver;if(i.complete)try{i.complete()}catch(e){Zt(e)}},t}(),mr=function(t){Ne(i,t);function i(e,r,n){var o=t.call(this)||this,s;if(Oe(e)||!e)s={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var a;o&&es.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return o.unsubscribe()},s={next:e.next&&Bi(e.next,a),error:e.error&&Bi(e.error,a),complete:e.complete&&Bi(e.complete,a)}):s=e}return o.destination=new Ol(s),o}return i}(ts);function Zt(t){kl(t)}function Il(t){throw t}var Nl={closed:!0,next:kn,error:Il,complete:kn},Ll=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hl(t){return t}function $l(t){return t.length===0?Hl:t.length===1?t[0]:function(e){return t.reduce(function(r,n){return n(r)},e)}}var Mn=function(){function t(i){i&&(this._subscribe=i)}return t.prototype.lift=function(i){var e=new t;return e.source=this,e.operator=i,e},t.prototype.subscribe=function(i,e,r){var n=this,o=Fl(i)?i:new mr(i,e,r);return si(function(){var s=n,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},t.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(e){i.error(e)}},t.prototype.forEach=function(i,e){var r=this;return e=On(e),new e(function(n,o){var s=new mr({next:function(a){try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});r.subscribe(s)})},t.prototype._subscribe=function(i){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(i)},t.prototype[Ll]=function(){return this},t.prototype.pipe=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return $l(i)(this)},t.prototype.toPromise=function(i){var e=this;return i=On(i),new i(function(r,n){var o;e.subscribe(function(s){return o=s},function(s){return n(s)},function(){return r(o)})})},t.create=function(i){return new t(i)},t}();function On(t){var i;return(i=t!=null?t:es.Promise)!==null&&i!==void 0?i:Promise}function Bl(t){return t&&Oe(t.next)&&Oe(t.error)&&Oe(t.complete)}function Fl(t){return t&&t instanceof ts||Bl(t)&&Qo(t)}var Rl=Jo(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),is=function(t){Ne(i,t);function i(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.prototype.lift=function(e){var r=new In(this,this);return r.operator=e,r},i.prototype._throwIfClosed=function(){if(this.closed)throw new Rl},i.prototype.next=function(e){var r=this;si(function(){var n,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=dr(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(e)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},i.prototype.error=function(e){var r=this;si(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},i.prototype.complete=function(){var e=this;si(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.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 e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},i.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},i.prototype._innerSubscribe=function(e){var r=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?Zo:(this.currentObservers=null,a.push(e),new Ei(function(){r.currentObservers=null,pr(a,e)}))},i.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,o=r.thrownError,s=r.isStopped;n?e.error(o):s&&e.complete()},i.prototype.asObservable=function(){var e=new Mn;return e.source=this,e},i.create=function(e,r){return new In(e,r)},i}(Mn),In=function(t){Ne(i,t);function i(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},i.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},i.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},i.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Zo},i}(is),rs={now:function(){return(rs.delegate||Date).now()},delegate:void 0},zl=function(t){Ne(i,t);function i(e,r,n){e===void 0&&(e=1/0),r===void 0&&(r=1/0),n===void 0&&(n=rs);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return i.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;n||(o.push(e),!s&&o.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},i.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),l=0;l<a.length&&!e.closed;l+=o?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),r},i.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,n=e._timestampProvider,o=e._buffer,s=e._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=n.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},i}(is);const Nn=[],Ln={},Ul=(t,i=0)=>{if(Nn.indexOf(t)==-1){const e=new zl(i);Ln[t]=e,Nn.push(t)}return Ln[t]},Qe=[];function jl(t,i){return{subscribe:Si(t,i).subscribe}}function Si(t,i=Ee){let e;const r=new Set;function n(a){if(qo(t,a)&&(t=a,e)){const l=!Qe.length;for(const u of r)u[1](),Qe.push(u,t);if(l){for(let u=0;u<Qe.length;u+=2)Qe[u][0](Qe[u+1]);Qe.length=0}}}function o(a){n(a(t))}function s(a,l=Ee){const u=[a,l];return r.add(u),r.size===1&&(e=i(n,o)||Ee),a(t),()=>{r.delete(u),r.size===0&&e&&(e(),e=null)}}return{set:n,update:o,subscribe:s}}function bt(t,i,e){const r=!Array.isArray(t),n=r?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=i.length<2;return jl(e,(s,a)=>{let l=!1;const u=[];let c=0,h=Ee;const d=()=>{if(c)return;h();const p=i(r?u[0]:u,s,a);o?s(p):h=Wr(p)?p:Ee},f=n.map((p,v)=>Xo(p,P=>{u[v]=P,c&=~(1<<v),l&&d()},()=>{c|=1<<v}));return l=!0,d(),function(){gt(f),h(),l=!1}})}var Vl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ns(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yl=function(i){return Gl(i)&&!Wl(i)};function Gl(t){return!!t&&typeof t=="object"}function Wl(t){var i=Object.prototype.toString.call(t);return i==="[object RegExp]"||i==="[object Date]"||Kl(t)}var ql=typeof Symbol=="function"&&Symbol.for,Xl=ql?Symbol.for("react.element"):60103;function Kl(t){return t.$$typeof===Xl}function Jl(t){return Array.isArray(t)?[]:{}}function $t(t,i){return i.clone!==!1&&i.isMergeableObject(t)?ut(Jl(t),t,i):t}function Zl(t,i,e){return t.concat(i).map(function(r){return $t(r,e)})}function Ql(t,i){if(!i.customMerge)return ut;var e=i.customMerge(t);return typeof e=="function"?e:ut}function eu(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(i){return Object.propertyIsEnumerable.call(t,i)}):[]}function Hn(t){return Object.keys(t).concat(eu(t))}function os(t,i){try{return i in t}catch(e){return!1}}function tu(t,i){return os(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}function iu(t,i,e){var r={};return e.isMergeableObject(t)&&Hn(t).forEach(function(n){r[n]=$t(t[n],e)}),Hn(i).forEach(function(n){tu(t,n)||(os(t,n)&&e.isMergeableObject(i[n])?r[n]=Ql(n,e)(t[n],i[n],e):r[n]=$t(i[n],e))}),r}function ut(t,i,e){e=e||{},e.arrayMerge=e.arrayMerge||Zl,e.isMergeableObject=e.isMergeableObject||Yl,e.cloneUnlessOtherwiseSpecified=$t;var r=Array.isArray(i),n=Array.isArray(t),o=r===n;return o?r?e.arrayMerge(t,i,e):iu(t,i,e):$t(i,e)}ut.all=function(i,e){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(r,n){return ut(r,n,e)},{})};var ru=ut,nu=ru;const ou=ns(nu);function Fi(t,i){var e=i&&i.cache?i.cache:hu,r=i&&i.serializer?i.serializer:cu,n=i&&i.strategy?i.strategy:au;return n(t,{cache:e,serializer:r})}function su(t){return t==null||typeof t=="number"||typeof t=="boolean"}function ss(t,i,e,r){var n=su(r)?r:e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.call(this,r),i.set(n,o)),o}function as(t,i,e){var r=Array.prototype.slice.call(arguments,3),n=e(r),o=i.get(n);return typeof o=="undefined"&&(o=t.apply(this,r),i.set(n,o)),o}function qr(t,i,e,r,n){return e.bind(i,t,r,n)}function au(t,i){var e=t.length===1?ss:as;return qr(t,this,e,i.cache.create(),i.serializer)}function lu(t,i){return qr(t,this,as,i.cache.create(),i.serializer)}function uu(t,i){return qr(t,this,ss,i.cache.create(),i.serializer)}var cu=function(){return JSON.stringify(arguments)};function Xr(){this.cache=Object.create(null)}Xr.prototype.get=function(t){return this.cache[t]};Xr.prototype.set=function(t,i){this.cache[t]=i};var hu={create:function(){return new Xr}},Ri={variadic:lu,monadic:uu},L;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(L||(L={}));var W;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(W||(W={}));var ct;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(ct||(ct={}));function $n(t){return t.type===W.literal}function du(t){return t.type===W.argument}function ls(t){return t.type===W.number}function us(t){return t.type===W.date}function cs(t){return t.type===W.time}function hs(t){return t.type===W.select}function ds(t){return t.type===W.plural}function fu(t){return t.type===W.pound}function fs(t){return t.type===W.tag}function ps(t){return!!(t&&typeof t=="object"&&t.type===ct.number)}function _r(t){return!!(t&&typeof t=="object"&&t.type===ct.dateTime)}var ms=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pu=/(?:[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 mu(t){var i={};return t.replace(pu,function(e){var r=e.length;switch(e[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 _u=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function gu(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var i=t.split(_u).filter(function(d){return d.length>0}),e=[],r=0,n=i;r<n.length;r++){var o=n[r],s=o.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")}e.push({stem:a,options:l})}return e}function bu(t){return t.replace(/^(.*?)-/,"")}var Bn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_s=/^(@+)?(\+|#+)?[rs]?$/g,vu=/(\*)(0+)|(#+)(0+)|(0+)/g,gs=/^(0+)$/;function Fn(t){var i={};return t[t.length-1]==="r"?i.roundingPriority="morePrecision":t[t.length-1]==="s"&&(i.roundingPriority="lessPrecision"),t.replace(_s,function(e,r,n){return typeof n!="string"?(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length):n==="+"?i.minimumSignificantDigits=r.length:r[0]==="#"?i.maximumSignificantDigits=r.length:(i.minimumSignificantDigits=r.length,i.maximumSignificantDigits=r.length+(typeof n=="string"?n.length:0)),""}),i}function bs(t){switch(t){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 yu(t){var i;if(t[0]==="E"&&t[1]==="E"?(i={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(i={notation:"scientific"},t=t.slice(1)),i){var e=t.slice(0,2);if(e==="+!"?(i.signDisplay="always",t=t.slice(2)):e==="+?"&&(i.signDisplay="exceptZero",t=t.slice(2)),!gs.test(t))throw new Error("Malformed concise eng/scientific notation");i.minimumIntegerDigits=t.length}return i}function Rn(t){var i={},e=bs(t);return e||i}function xu(t){for(var i={},e=0,r=t;e<r.length;e++){var n=r[e];switch(n.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=n.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=bu(n.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=j(j(j({},i),{notation:"scientific"}),n.options.reduce(function(l,u){return j(j({},l),Rn(u))},{}));continue;case"engineering":i=j(j(j({},i),{notation:"engineering"}),n.options.reduce(function(l,u){return j(j({},l),Rn(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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(vu,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(gs.test(n.stem)){i.minimumIntegerDigits=n.stem.length;continue}if(Bn.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Bn,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 o=n.options[0];o==="w"?i=j(j({},i),{trailingZeroDisplay:"stripIfInteger"}):o&&(i=j(j({},i),Fn(o)));continue}if(_s.test(n.stem)){i=j(j({},i),Fn(n.stem));continue}var s=bs(n.stem);s&&(i=j(j({},i),s));var a=yu(n.stem);a&&(i=j(j({},i),a))}return i}var Qt={"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 wu(t,i){for(var e="",r=0;r<t.length;r++){var n=t.charAt(r);if(n==="j"){for(var o=0;r+1<t.length&&t.charAt(r+1)===n;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Eu(i);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;s-- >0;)e=u+e}else n==="J"?e+="H":e+=n}return e}function Eu(t){var i=t.hourCycle;if(i===void 0&&t.hourCycles&&t.hourCycles.length&&(i=t.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 e=t.language,r;e!=="root"&&(r=t.maximize().region);var n=Qt[r||""]||Qt[e||""]||Qt["".concat(e,"-001")]||Qt["001"];return n[0]}var zi,Su=new RegExp("^".concat(ms.source,"*")),Au=new RegExp("".concat(ms.source,"*$"));function B(t,i){return{start:t,end:i}}var Cu=!!String.prototype.startsWith&&"_a".startsWith("a",1),Tu=!!String.fromCodePoint,Pu=!!Object.fromEntries,Du=!!String.prototype.codePointAt,ku=!!String.prototype.trimStart,Mu=!!String.prototype.trimEnd,Ou=!!Number.isSafeInteger,Iu=Ou?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},gr=!0;try{var Nu=ys("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gr=((zi=Nu.exec("a"))===null||zi===void 0?void 0:zi[0])==="a"}catch(t){gr=!1}var zn=Cu?function(i,e,r){return i.startsWith(e,r)}:function(i,e,r){return i.slice(r,r+e.length)===e},br=Tu?String.fromCodePoint:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var r="",n=i.length,o=0,s;n>o;){if(s=i[o++],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},Un=Pu?Object.fromEntries:function(i){for(var e={},r=0,n=i;r<n.length;r++){var o=n[r],s=o[0],a=o[1];e[s]=a}return e},vs=Du?function(i,e){return i.codePointAt(e)}:function(i,e){var r=i.length;if(!(e<0||e>=r)){var n=i.charCodeAt(e),o;return n<55296||n>56319||e+1===r||(o=i.charCodeAt(e+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},Lu=ku?function(i){return i.trimStart()}:function(i){return i.replace(Su,"")},Hu=Mu?function(i){return i.trimEnd()}:function(i){return i.replace(Au,"")};function ys(t,i){return new RegExp(t,i)}var vr;if(gr){var jn=ys("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vr=function(i,e){var r;jn.lastIndex=e;var n=jn.exec(i);return(r=n[1])!==null&&r!==void 0?r:""}}else vr=function(i,e){for(var r=[];;){var n=vs(i,e);if(n===void 0||xs(n)||Ru(n))break;r.push(n),e+=n>=65536?2:1}return br.apply(void 0,r)};var $u=function(){function t(i,e){e===void 0&&(e={}),this.message=i,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(i,e,r){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(i,r);if(s.err)return s;n.push(s.val)}else{if(o===125&&i>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),n.push({type:W.pound,location:B(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(L.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&yr(this.peek()||0)){var s=this.parseTag(i,e);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(i,e);if(s.err)return s;n.push(s.val)}}}return{val:n,err:null}},t.prototype.parseTag=function(i,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:W.literal,value:"<".concat(n,"/>"),location:B(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(i+1,e,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yr(this.char()))return this.error(L.INVALID_TAG,B(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return n!==u?this.error(L.UNMATCHED_CLOSING_TAG,B(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:W.tag,value:n,children:s,location:B(r,this.clonePosition())},err:null}:this.error(L.INVALID_TAG,B(a,this.clonePosition())))}else return this.error(L.UNCLOSED_TAG,B(r,this.clonePosition()))}else return this.error(L.INVALID_TAG,B(r,this.clonePosition()))},t.prototype.parseTagName=function(){var i=this.offset();for(this.bump();!this.isEOF()&&Fu(this.char());)this.bump();return this.message.slice(i,this.offset())},t.prototype.parseLiteral=function(i,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o){n+=o;continue}var s=this.tryParseUnquoted(i,e);if(s){n+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var l=B(r,this.clonePosition());return{val:{type:W.literal,value:n,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Bu(this.peek()||0))?(this.bump(),"<"):null},t.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 e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(r);this.bump()}return br.apply(void 0,e)},t.prototype.tryParseUnquoted=function(i,e){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(e==="plural"||e==="selectordinal")||r===125&&i>0?null:(this.bump(),br(r))},t.prototype.parseArgument=function(i,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(L.EMPTY_ARGUMENT,B(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(L.MALFORMED_ARGUMENT,B(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:W.argument,value:n,location:B(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,B(r,this.clonePosition())):this.parseArgumentOptions(i,e,n,r);default:return this.error(L.MALFORMED_ARGUMENT,B(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var i=this.clonePosition(),e=this.offset(),r=vr(this.message,e),n=e+r.length;this.bumpTo(n);var o=this.clonePosition(),s=B(i,o);return{value:r,location:s}},t.prototype.parseArgumentOptions=function(i,e,r,n){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(L.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=Hu(h.val);if(d.length===0)return this.error(L.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));var f=B(c,this.clonePosition());u={style:d,styleLocation:f}}var p=this.tryParseArgumentClose(n);if(p.err)return p;var v=B(n,this.clonePosition());if(u&&zn(u==null?void 0:u.style,"::",0)){var P=Lu(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:W.number,value:r,location:v,style:h.val},err:null}}else{if(P.length===0)return this.error(L.EXPECT_DATE_TIME_SKELETON,v);var I=P;this.locale&&(I=wu(P,this.locale));var d={type:ct.dateTime,pattern:I,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?mu(I):{}},k=a==="date"?W.date:W.time;return{val:{type:k,value:r,location:v,style:d},err:null}}}return{val:{type:a==="number"?W.number:a==="date"?W.date:W.time,value:r,location:v,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS,B(R,j({},R)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),M=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),H=this.parseIdentifierIfPossible(),M=h.val}var J=this.tryParsePluralOrSelectOptions(i,a,e,H);if(J.err)return J;var p=this.tryParseArgumentClose(n);if(p.err)return p;var le=B(n,this.clonePosition());return a==="select"?{val:{type:W.select,value:r,options:Un(J.val),location:le},err:null}:{val:{type:W.plural,value:r,options:Un(J.val),offset:M,pluralType:a==="plural"?"cardinal":"ordinal",location:le},err:null}}default:return this.error(L.INVALID_ARGUMENT_TYPE,B(s,l))}},t.prototype.tryParseArgumentClose=function(i){return this.isEOF()||this.char()!==125?this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE,B(i,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var i=0,e=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,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(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(i,e){var r=[];try{r=gu(i)}catch(n){return this.error(L.INVALID_NUMBER_SKELETON,e)}return{val:{type:ct.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?xu(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(i,e,r,n){for(var o,s=!1,a=[],l=new Set,u=n.value,c=n.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR,L.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(e==="select"?L.DUPLICATE_SELECT_ARGUMENT_SELECTOR:L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(i+1,e,r);if(p.err)return p;var v=this.tryParseArgumentClose(f);if(v.err)return v;a.push([u,{value:p.val,location:B(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(e==="select"?L.EXPECT_SELECT_ARGUMENT_SELECTOR:L.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(L.MISSING_OTHER_CLAUSE,B(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(i,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=B(n,this.clonePosition());return o?(s*=r,Iu(s)?{val:s,err:null}:this.error(e,l)):this.error(i,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var i=this.position.offset;if(i>=this.message.length)throw Error("out of bound");var e=vs(this.message,i);if(e===void 0)throw Error("Offset ".concat(i," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(i,e){return{val:null,err:{kind:i,message:this.message,location:e}}},t.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)}},t.prototype.bumpIf=function(i){if(zn(this.message,i,this.offset())){for(var e=0;e<i.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(i){var e=this.offset(),r=this.message.indexOf(i,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.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 e=this.offset();if(e===i)break;if(e>i)throw Error("targetOffset ".concat(i," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&xs(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var i=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(i>=65536?2:1));return r!=null?r:null},t}();function yr(t){return t>=97&&t<=122||t>=65&&t<=90}function Bu(t){return yr(t)||t===47}function Fu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function xs(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Ru(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function xr(t){t.forEach(function(i){if(delete i.location,hs(i)||ds(i))for(var e in i.options)delete i.options[e].location,xr(i.options[e].value);else ls(i)&&ps(i.style)||(us(i)||cs(i))&&_r(i.style)?delete i.style.location:fs(i)&&xr(i.children)})}function zu(t,i){i===void 0&&(i={}),i=j({shouldParseSkeletons:!0,requiresOtherClause:!0},i);var e=new $u(t,i).parse();if(e.err){var r=SyntaxError(L[e.err.kind]);throw r.location=e.err.location,r.originalMessage=e.err.message,r}return i!=null&&i.captureLocation||xr(e.val),e.val}var ht;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(ht||(ht={}));var Ai=function(t){Ne(i,t);function i(e,r,n){var o=t.call(this,e)||this;return o.code=r,o.originalMessage=n,o}return i.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},i}(Error),Vn=function(t){Ne(i,t);function i(e,r,n,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ht.INVALID_VALUE,o)||this}return i}(Ai),Uu=function(t){Ne(i,t);function i(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),ht.INVALID_VALUE,n)||this}return i}(Ai),ju=function(t){Ne(i,t);function i(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),ht.MISSING_VALUE,r)||this}return i}(Ai),ce;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ce||(ce={}));function Vu(t){return t.length<2?t:t.reduce(function(i,e){var r=i[i.length-1];return!r||r.type!==ce.literal||e.type!==ce.literal?i.push(e):r.value+=e.value,i},[])}function Yu(t){return typeof t=="function"}function ai(t,i,e,r,n,o,s){if(t.length===1&&$n(t[0]))return[{type:ce.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if($n(c)){a.push({type:ce.literal,value:c.value});continue}if(fu(c)){typeof o=="number"&&a.push({type:ce.literal,value:e.getNumberFormat(i).format(o)});continue}var h=c.value;if(!(n&&h in n))throw new ju(h,s);var d=n[h];if(du(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ce.literal:ce.object,value:d});continue}if(us(c)){var f=typeof c.style=="string"?r.date[c.style]:_r(c.style)?c.style.parsedOptions:void 0;a.push({type:ce.literal,value:e.getDateTimeFormat(i,f).format(d)});continue}if(cs(c)){var f=typeof c.style=="string"?r.time[c.style]:_r(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ce.literal,value:e.getDateTimeFormat(i,f).format(d)});continue}if(ls(c)){var f=typeof c.style=="string"?r.number[c.style]:ps(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),a.push({type:ce.literal,value:e.getNumberFormat(i,f).format(d)});continue}if(fs(c)){var p=c.children,v=c.value,P=n[v];if(!Yu(P))throw new Uu(v,"function",s);var I=ai(p,i,e,r,n,o),k=P(I.map(function(M){return M.value}));Array.isArray(k)||(k=[k]),a.push.apply(a,k.map(function(M){return{type:typeof M=="string"?ce.literal:ce.object,value:M}}))}if(hs(c)){var R=c.options[d]||c.options.other;if(!R)throw new Vn(c.value,d,Object.keys(c.options),s);a.push.apply(a,ai(R.value,i,e,r,n));continue}if(ds(c)){var R=c.options["=".concat(d)];if(!R){if(!Intl.PluralRules)throw new Ai(`Intl.PluralRules is not available in this environment.
4
17
  Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,ht.MISSING_INTL_API,s);var L=e.getPluralRules(i,{type:c.pluralType}).select(h-(c.offset||0));R=c.options[L]||c.options.other}if(!R)throw new zn(c.value,h,Object.keys(c.options),s);a.push.apply(a,li(R.value,i,e,r,n,h-(c.offset||0)));continue}}return Uu(a)}function Vu(t,i){return i?j(j(j({},t||{}),i||{}),Object.keys(t).reduce(function(e,r){return e[r]=j(j({},t[r]),i[r]||{}),e},{})):t}function Yu(t,i){return i?Object.keys(t).reduce(function(e,r){return e[r]=Vu(t[r],i[r]),e},j({},t)):t}function Ui(t){return{create:function(){return{get:function(i){return t[i]},set:function(i,e){t[i]=e}}}}}function Gu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,ot([void 0],e,!1)))},{cache:Ui(t.number),strategy:Ri.variadic}),getDateTimeFormat:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,ot([void 0],e,!1)))},{cache:Ui(t.dateTime),strategy:Ri.variadic}),getPluralRules:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,ot([void 0],e,!1)))},{cache:Ui(t.pluralRules),strategy:Ri.variadic})}}var Wu=function(){function t(i,e,r,n){e===void 0&&(e=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,h){return!d.length||h.type!==ce.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return li(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof i=="string"){if(this.message=i,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=Al(s,["formatters"]);this.ast=t.__parse(i,j(j({},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=Yu(t.formats,r),this.formatters=n&&n.formatters||Gu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(i){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(i);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},t.__parse=Fu,t.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"}}},t}();function qu(t,i){if(i==null)return;if(i in t)return t[i];const e=i.split(".");let r=t;for(let n=0;n<e.length;n++)if(typeof r=="object"){if(n>0){const o=e.slice(n,e.length).join(".");if(o in r){r=r[o];break}}r=r[e[n]]}else r=void 0;return r}const Be={},Xu=(t,i,e)=>e&&(i in Be||(Be[i]={}),t in Be[i]||(Be[i][t]=e),e),vs=(t,i)=>{if(i==null)return;if(i in Be&&t in Be[i])return Be[i][t];const e=Ti(i);for(let r=0;r<e.length;r++){const n=e[r],o=Ju(n,t);if(o)return Xu(t,i,o)}};let qr;const Kt=Ai({});function Ku(t){return qr[t]||null}function ys(t){return t in qr}function Ju(t,i){if(!ys(t))return null;const e=Ku(t);return qu(e,i)}function Zu(t){if(t==null)return;const i=Ti(t);for(let e=0;e<i.length;e++){const r=i[e];if(ys(r))return r}}function xs(t,...i){delete Be[t],Kt.update(e=>(e[t]=iu.all([e[t]||{},...i]),e))}vt([Kt],([t])=>Object.keys(t));Kt.subscribe(t=>qr=t);const ui={};function Qu(t,i){ui[t].delete(i),ui[t].size===0&&delete ui[t]}function ws(t){return ui[t]}function ec(t){return Ti(t).map(i=>{const e=ws(i);return[i,e?[...e]:[]]}).filter(([,i])=>i.length>0)}function wr(t){return t==null?!1:Ti(t).some(i=>{var e;return(e=ws(i))==null?void 0:e.size})}function tc(t,i){return Promise.all(i.map(r=>(Qu(t,r),r().then(n=>n.default||n)))).then(r=>xs(t,...r))}const Ct={};function Es(t){if(!wr(t))return t in Ct?Ct[t]:Promise.resolve();const i=ec(t);return Ct[t]=Promise.all(i.map(([e,r])=>tc(e,r))).then(()=>{if(wr(t))return Es(t);delete Ct[t]}),Ct[t]}const ic={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"}}},rc={fallbackLocale:null,loadingDelay:200,formats:ic,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},nc=rc;function ft(){return nc}const ji=Ai(!1);var oc=Object.defineProperty,sc=Object.defineProperties,ac=Object.getOwnPropertyDescriptors,Un=Object.getOwnPropertySymbols,lc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable,jn=(t,i,e)=>i in t?oc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,cc=(t,i)=>{for(var e in i||(i={}))lc.call(i,e)&&jn(t,e,i[e]);if(Un)for(var e of Un(i))uc.call(i,e)&&jn(t,e,i[e]);return t},dc=(t,i)=>sc(t,ac(i));let Er;const pi=Ai(null);function Vn(t){return t.split("-").map((i,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Ti(t,i=ft().fallbackLocale){const e=Vn(t);return i?[...new Set([...e,...Vn(i)])]:e}function qe(){return Er!=null?Er:void 0}pi.subscribe(t=>{Er=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const hc=t=>{if(t&&Zu(t)&&wr(t)){const{loadingDelay:i}=ft();let e;return typeof window!="undefined"&&qe()!=null&&i?e=window.setTimeout(()=>ji.set(!0),i):ji.set(!0),Es(t).then(()=>{pi.set(t)}).finally(()=>{clearTimeout(e),ji.set(!1)})}return pi.set(t)},yt=dc(cc({},pi),{set:hc}),Pi=t=>{const i=Object.create(null);return r=>{const n=JSON.stringify(r);return n in i?i[n]:i[n]=t(r)}};var fc=Object.defineProperty,mi=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,Yn=(t,i,e)=>i in t?fc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,Xr=(t,i)=>{for(var e in i||(i={}))Ss.call(i,e)&&Yn(t,e,i[e]);if(mi)for(var e of mi(i))As.call(i,e)&&Yn(t,e,i[e]);return t},xt=(t,i)=>{var e={};for(var r in t)Ss.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&mi)for(var r of mi(t))i.indexOf(r)<0&&As.call(t,r)&&(e[r]=t[r]);return e};const Rt=(t,i)=>{const{formats:e}=ft();if(t in e&&i in e[t])return e[t][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${t} format.`)},pc=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Rt("number",r)),new Intl.NumberFormat(e,n)}),mc=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Rt("date",r):Object.keys(n).length===0&&(n=Rt("date","short")),new Intl.DateTimeFormat(e,n)}),_c=Pi(t=>{var i=t,{locale:e,format:r}=i,n=xt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Rt("time",r):Object.keys(n).length===0&&(n=Rt("time","short")),new Intl.DateTimeFormat(e,n)}),gc=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return pc(Xr({locale:e},r))},bc=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return mc(Xr({locale:e},r))},vc=(t={})=>{var i=t,{locale:e=qe()}=i,r=xt(i,["locale"]);return _c(Xr({locale:e},r))},yc=Pi((t,i=qe())=>new Wu(t,i,ft().formats,{ignoreTag:ft().ignoreTag})),xc=(t,i={})=>{var e,r,n,o;let s=i;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=qe(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=vs(t,l);if(!c)c=(o=(n=(r=(e=ft()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:t,defaultValue:u}))!=null?n:u)!=null?o:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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 d=c;try{d=yc(c,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,h.message)}return d},wc=(t,i)=>vc(i).format(t),Ec=(t,i)=>bc(i).format(t),Sc=(t,i)=>gc(i).format(t),Ac=(t,i=qe())=>vs(t,i),Cc=vt([yt,Kt],()=>xc);vt([yt],()=>wc);vt([yt],()=>Ec);vt([yt],()=>Sc);vt([yt,Kt],()=>Ac);window.emWidgets={topic:Fl};const Tc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Cs={exports:{}};(function(t,i){(function(e,r){t.exports=r()})(zl,function(){var e=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",c="week",d="month",h="quarter",f="year",p="date",v="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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(w){var b=["th","st","nd","rd"],_=w%100;return"["+w+(b[(_-20)%10]||b[_]||b[0])+"]"}},R=function(w,b,_){var y=String(w);return!y||y.length>=b?w:""+Array(b+1-y.length).join(_)+w},L={s:R,z:function(w){var b=-w.utcOffset(),_=Math.abs(b),y=Math.floor(_/60),g=_%60;return(b<=0?"+":"-")+R(y,2,"0")+":"+R(g,2,"0")},m:function w(b,_){if(b.date()<_.date())return-w(_,b);var y=12*(_.year()-b.year())+(_.month()-b.month()),g=b.clone().add(y,d),S=_-g<0,E=b.clone().add(y+(S?-1:1),d);return+(-(y+(_-g)/(S?g-E:E-g))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:d,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:o,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},M="en",J={};J[M]=k;var le="$isDayjsObject",de=function(w){return w instanceof he||!(!w||!w[le])},ie=function w(b,_,y){var g;if(!b)return M;if(typeof b=="string"){var S=b.toLowerCase();J[S]&&(g=S),_&&(J[S]=_,g=S);var E=b.split("-");if(!g&&E.length>1)return w(E[0])}else{var B=b.name;J[B]=b,g=B}return!y&&g&&(M=g),g||!y&&M},O=function(w,b){if(de(w))return w.clone();var _=typeof b=="object"?b:{};return _.date=w,_.args=arguments,new he(_)},N=L;N.l=ie,N.i=de,N.w=function(w,b){return O(w,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var he=function(){function w(_){this.$L=ie(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[le]=!0}var b=w.prototype;return b.parse=function(_){this.$d=function(y){var g=y.date,S=y.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 E=g.match(P);if(E){var B=E[2]-1||0,V=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)):new Date(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)}}return new Date(g)}(_),this.init()},b.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()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==v},b.isSame=function(_,y){var g=O(_);return this.startOf(y)<=g&&g<=this.endOf(y)},b.isAfter=function(_,y){return O(_)<this.startOf(y)},b.isBefore=function(_,y){return this.endOf(y)<O(_)},b.$g=function(_,y,g){return N.u(_)?this[y]:this.set(g,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,y){var g=this,S=!!N.u(y)||y,E=N.p(_),B=function(ae,z){var G=N.w(g.$u?Date.UTC(g.$y,z,ae):new Date(g.$y,z,ae),g);return S?G:G.endOf(u)},V=function(ae,z){return N.w(g.toDate()[ae].apply(g.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(z)),g)},Y=this.$W,q=this.$M,ne=this.$D,be="set"+(this.$u?"UTC":"");switch(E){case f:return S?B(1,0):B(31,11);case d:return S?B(1,q):B(0,q+1);case c:var ve=this.$locale().weekStart||0,ue=(Y<ve?Y+7:Y)-ve;return B(S?ne-ue:ne+(6-ue),q);case u:case p:return V(be+"Hours",0);case l:return V(be+"Minutes",1);case a:return V(be+"Seconds",2);case s:return V(be+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,y){var g,S=N.p(_),E="set"+(this.$u?"UTC":""),B=(g={},g[u]=E+"Date",g[p]=E+"Date",g[d]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[s]=E+"Seconds",g[o]=E+"Milliseconds",g)[S],V=S===u?this.$D+(y-this.$W):y;if(S===d||S===f){var Y=this.clone().set(p,1);Y.$d[B](V),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},b.set=function(_,y){return this.clone().$set(_,y)},b.get=function(_){return this[N.p(_)]()},b.add=function(_,y){var g,S=this;_=Number(_);var E=N.p(y),B=function(q){var ne=O(S);return N.w(ne.date(ne.date()+Math.round(q*_)),S)};if(E===d)return this.set(d,this.$M+_);if(E===f)return this.set(f,this.$y+_);if(E===u)return B(1);if(E===c)return B(7);var V=(g={},g[a]=r,g[l]=n,g[s]=e,g)[E]||1,Y=this.$d.getTime()+_*V;return N.w(Y,this)},b.subtract=function(_,y){return this.add(-1*_,y)},b.format=function(_){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||v;var S=_||"YYYY-MM-DDTHH:mm:ssZ",E=N.z(this),B=this.$H,V=this.$m,Y=this.$M,q=g.weekdays,ne=g.months,be=g.meridiem,ve=function(z,G,x,ee){return z&&(z[G]||z(y,S))||x[G].slice(0,ee)},ue=function(z){return N.s(B%12||12,z,"0")},ae=be||function(z,G,x){var ee=z<12?"AM":"PM";return x?ee.toLowerCase():ee};return S.replace(I,function(z,G){return G||function(x){switch(x){case"YY":return String(y.$y).slice(-2);case"YYYY":return N.s(y.$y,4,"0");case"M":return Y+1;case"MM":return N.s(Y+1,2,"0");case"MMM":return ve(g.monthsShort,Y,ne,3);case"MMMM":return ve(ne,Y);case"D":return y.$D;case"DD":return N.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ve(g.weekdaysMin,y.$W,q,2);case"ddd":return ve(g.weekdaysShort,y.$W,q,3);case"dddd":return q[y.$W];case"H":return String(B);case"HH":return N.s(B,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return ae(B,V,!0);case"A":return ae(B,V,!1);case"m":return String(V);case"mm":return N.s(V,2,"0");case"s":return String(y.$s);case"ss":return N.s(y.$s,2,"0");case"SSS":return N.s(y.$ms,3,"0");case"Z":return E}return null}(z)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,y,g){var S,E=this,B=N.p(y),V=O(_),Y=(V.utcOffset()-this.utcOffset())*r,q=this-V,ne=function(){return N.m(E,V)};switch(B){case f:S=ne()/12;break;case d:S=ne();break;case h:S=ne()/3;break;case c:S=(q-Y)/6048e5;break;case u:S=(q-Y)/864e5;break;case l:S=q/n;break;case a:S=q/r;break;case s:S=q/e;break;default:S=q}return g?S:N.a(S)},b.daysInMonth=function(){return this.endOf(d).$D},b.$locale=function(){return J[this.$L]},b.locale=function(_,y){if(!_)return this.$L;var g=this.clone(),S=ie(_,y,!0);return S&&(g.$L=S),g},b.clone=function(){return N.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()},w}(),Ae=he.prototype;return O.prototype=Ae,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",u],["$M",d],["$y",f],["$D",p]].forEach(function(w){Ae[w[1]]=function(b){return this.$g(b,w[0],w[1])}}),O.extend=function(w,b){return w.$i||(w(b,he,O),w.$i=!0),O},O.locale=ie,O.isDayjs=de,O.unix=function(w){return O(1e3*w)},O.en=J[M],O.Ls=J,O.p={},O})})(Cs);var Pc=Cs.exports;const Vi=ts(Pc);function Gn(t,i){xs(t,i)}function Dc(t){yt.set(t)}const Wn={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};function kc(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function Mc(t,i){const e=new URL(i);fetch(e.href).then(r=>r.text()).then(r=>{const n=document.createElement("style");n.innerHTML=r,t&&t.appendChild(n)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Oc(t,i,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(i,n=>{r.innerHTML=n,t&&t.appendChild(r)})}}/**
18
+ `,ht.MISSING_INTL_API,s);var H=e.getPluralRules(i,{type:c.pluralType}).select(d-(c.offset||0));R=c.options[H]||c.options.other}if(!R)throw new Vn(c.value,d,Object.keys(c.options),s);a.push.apply(a,ai(R.value,i,e,r,n,d-(c.offset||0)));continue}}return Vu(a)}function Gu(t,i){return i?j(j(j({},t||{}),i||{}),Object.keys(t).reduce(function(e,r){return e[r]=j(j({},t[r]),i[r]||{}),e},{})):t}function Wu(t,i){return i?Object.keys(t).reduce(function(e,r){return e[r]=Gu(t[r],i[r]),e},j({},t)):t}function Ui(t){return{create:function(){return{get:function(i){return t[i]},set:function(i,e){t[i]=e}}}}}function qu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.NumberFormat).bind.apply(i,nt([void 0],e,!1)))},{cache:Ui(t.number),strategy:Ri.variadic}),getDateTimeFormat:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.DateTimeFormat).bind.apply(i,nt([void 0],e,!1)))},{cache:Ui(t.dateTime),strategy:Ri.variadic}),getPluralRules:Fi(function(){for(var i,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((i=Intl.PluralRules).bind.apply(i,nt([void 0],e,!1)))},{cache:Ui(t.pluralRules),strategy:Ri.variadic})}}var Xu=function(){function t(i,e,r,n){e===void 0&&(e=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ce.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 ai(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof i=="string"){if(this.message=i,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=n||{};s.formatters;var a=Pl(s,["formatters"]);this.ast=t.__parse(i,j(j({},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=Wu(t.formats,r),this.formatters=n&&n.formatters||qu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(i){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(i);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof i=="string"?i:i[0])}},t.__parse=zu,t.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"}}},t}();function Ku(t,i){if(i==null)return;if(i in t)return t[i];const e=i.split(".");let r=t;for(let n=0;n<e.length;n++)if(typeof r=="object"){if(n>0){const o=e.slice(n,e.length).join(".");if(o in r){r=r[o];break}}r=r[e[n]]}else r=void 0;return r}const He={},Ju=(t,i,e)=>e&&(i in He||(He[i]={}),t in He[i]||(He[i][t]=e),e),ws=(t,i)=>{if(i==null)return;if(i in He&&t in He[i])return He[i][t];const e=Ci(i);for(let r=0;r<e.length;r++){const n=e[r],o=Qu(n,t);if(o)return Ju(t,i,o)}};let Kr;const qt=Si({});function Zu(t){return Kr[t]||null}function Es(t){return t in Kr}function Qu(t,i){if(!Es(t))return null;const e=Zu(t);return Ku(e,i)}function ec(t){if(t==null)return;const i=Ci(t);for(let e=0;e<i.length;e++){const r=i[e];if(Es(r))return r}}function Ss(t,...i){delete He[t],qt.update(e=>(e[t]=ou.all([e[t]||{},...i]),e))}bt([qt],([t])=>Object.keys(t));qt.subscribe(t=>Kr=t);const li={};function tc(t,i){li[t].delete(i),li[t].size===0&&delete li[t]}function As(t){return li[t]}function ic(t){return Ci(t).map(i=>{const e=As(i);return[i,e?[...e]:[]]}).filter(([,i])=>i.length>0)}function wr(t){return t==null?!1:Ci(t).some(i=>{var e;return(e=As(i))==null?void 0:e.size})}function rc(t,i){return Promise.all(i.map(r=>(tc(t,r),r().then(n=>n.default||n)))).then(r=>Ss(t,...r))}const St={};function Cs(t){if(!wr(t))return t in St?St[t]:Promise.resolve();const i=ic(t);return St[t]=Promise.all(i.map(([e,r])=>rc(e,r))).then(()=>{if(wr(t))return Cs(t);delete St[t]}),St[t]}const nc={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"}}},oc={fallbackLocale:null,loadingDelay:200,formats:nc,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},sc=oc;function dt(){return sc}const ji=Si(!1);var ac=Object.defineProperty,lc=Object.defineProperties,uc=Object.getOwnPropertyDescriptors,Yn=Object.getOwnPropertySymbols,cc=Object.prototype.hasOwnProperty,hc=Object.prototype.propertyIsEnumerable,Gn=(t,i,e)=>i in t?ac(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,dc=(t,i)=>{for(var e in i||(i={}))cc.call(i,e)&&Gn(t,e,i[e]);if(Yn)for(var e of Yn(i))hc.call(i,e)&&Gn(t,e,i[e]);return t},fc=(t,i)=>lc(t,uc(i));let Er;const fi=Si(null);function Wn(t){return t.split("-").map((i,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Ci(t,i=dt().fallbackLocale){const e=Wn(t);return i?[...new Set([...e,...Wn(i)])]:e}function We(){return Er!=null?Er:void 0}fi.subscribe(t=>{Er=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const pc=t=>{if(t&&ec(t)&&wr(t)){const{loadingDelay:i}=dt();let e;return typeof window!="undefined"&&We()!=null&&i?e=window.setTimeout(()=>ji.set(!0),i):ji.set(!0),Cs(t).then(()=>{fi.set(t)}).finally(()=>{clearTimeout(e),ji.set(!1)})}return fi.set(t)},vt=fc(dc({},fi),{set:pc}),Ti=t=>{const i=Object.create(null);return r=>{const n=JSON.stringify(r);return n in i?i[n]:i[n]=t(r)}};var mc=Object.defineProperty,pi=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable,qn=(t,i,e)=>i in t?mc(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,Jr=(t,i)=>{for(var e in i||(i={}))Ts.call(i,e)&&qn(t,e,i[e]);if(pi)for(var e of pi(i))Ps.call(i,e)&&qn(t,e,i[e]);return t},yt=(t,i)=>{var e={};for(var r in t)Ts.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&pi)for(var r of pi(t))i.indexOf(r)<0&&Ps.call(t,r)&&(e[r]=t[r]);return e};const Bt=(t,i)=>{const{formats:e}=dt();if(t in e&&i in e[t])return e[t][i];throw new Error(`[svelte-i18n] Unknown "${i}" ${t} format.`)},_c=Ti(t=>{var i=t,{locale:e,format:r}=i,n=yt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Bt("number",r)),new Intl.NumberFormat(e,n)}),gc=Ti(t=>{var i=t,{locale:e,format:r}=i,n=yt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Bt("date",r):Object.keys(n).length===0&&(n=Bt("date","short")),new Intl.DateTimeFormat(e,n)}),bc=Ti(t=>{var i=t,{locale:e,format:r}=i,n=yt(i,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Bt("time",r):Object.keys(n).length===0&&(n=Bt("time","short")),new Intl.DateTimeFormat(e,n)}),vc=(t={})=>{var i=t,{locale:e=We()}=i,r=yt(i,["locale"]);return _c(Jr({locale:e},r))},yc=(t={})=>{var i=t,{locale:e=We()}=i,r=yt(i,["locale"]);return gc(Jr({locale:e},r))},xc=(t={})=>{var i=t,{locale:e=We()}=i,r=yt(i,["locale"]);return bc(Jr({locale:e},r))},wc=Ti((t,i=We())=>new Xu(t,i,dt().formats,{ignoreTag:dt().ignoreTag})),Ec=(t,i={})=>{var e,r,n,o;let s=i;typeof t=="object"&&(s=t,t=s.id);const{values:a,locale:l=We(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ws(t,l);if(!c)c=(o=(n=(r=(e=dt()).handleMissingMessage)==null?void 0:r.call(e,{locale:l,id:t,defaultValue:u}))!=null?n:u)!=null?o:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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=wc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},Sc=(t,i)=>xc(i).format(t),Ac=(t,i)=>yc(i).format(t),Cc=(t,i)=>vc(i).format(t),Tc=(t,i=We())=>ws(t,i),Pc=bt([vt,qt],()=>Ec);bt([vt],()=>Sc);bt([vt],()=>Ac);bt([vt],()=>Cc);bt([vt,qt],()=>Tc);window.emWidgets={topic:Ul};const Dc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var Ds={exports:{}};(function(t,i){(function(e,r){t.exports=r()})(Vl,function(){var e=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",p="date",v="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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(w){var b=["th","st","nd","rd"],_=w%100;return"["+w+(b[(_-20)%10]||b[_]||b[0])+"]"}},R=function(w,b,_){var y=String(w);return!y||y.length>=b?w:""+Array(b+1-y.length).join(_)+w},H={s:R,z:function(w){var b=-w.utcOffset(),_=Math.abs(b),y=Math.floor(_/60),g=_%60;return(b<=0?"+":"-")+R(y,2,"0")+":"+R(g,2,"0")},m:function w(b,_){if(b.date()<_.date())return-w(_,b);var y=12*(_.year()-b.year())+(_.month()-b.month()),g=b.clone().add(y,h),S=_-g<0,E=b.clone().add(y+(S?-1:1),h);return+(-(y+(_-g)/(S?g-E:E-g))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:f,w:c,d:u,D:p,h:l,m:a,s,ms:o,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},M="en",J={};J[M]=k;var le="$isDayjsObject",he=function(w){return w instanceof de||!(!w||!w[le])},ie=function w(b,_,y){var g;if(!b)return M;if(typeof b=="string"){var S=b.toLowerCase();J[S]&&(g=S),_&&(J[S]=_,g=S);var E=b.split("-");if(!g&&E.length>1)return w(E[0])}else{var $=b.name;J[$]=b,g=$}return!y&&g&&(M=g),g||!y&&M},O=function(w,b){if(he(w))return w.clone();var _=typeof b=="object"?b:{};return _.date=w,_.args=arguments,new de(_)},N=H;N.l=ie,N.i=he,N.w=function(w,b){return O(w,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var de=function(){function w(_){this.$L=ie(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[le]=!0}var b=w.prototype;return b.parse=function(_){this.$d=function(y){var g=y.date,S=y.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 E=g.match(P);if(E){var $=E[2]-1||0,V=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],$,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)):new Date(E[1],$,E[3]||1,E[4]||0,E[5]||0,E[6]||0,V)}}return new Date(g)}(_),this.init()},b.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()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==v},b.isSame=function(_,y){var g=O(_);return this.startOf(y)<=g&&g<=this.endOf(y)},b.isAfter=function(_,y){return O(_)<this.startOf(y)},b.isBefore=function(_,y){return this.endOf(y)<O(_)},b.$g=function(_,y,g){return N.u(_)?this[y]:this.set(g,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,y){var g=this,S=!!N.u(y)||y,E=N.p(_),$=function(ae,z){var G=N.w(g.$u?Date.UTC(g.$y,z,ae):new Date(g.$y,z,ae),g);return S?G:G.endOf(u)},V=function(ae,z){return N.w(g.toDate()[ae].apply(g.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(z)),g)},Y=this.$W,q=this.$M,ne=this.$D,be="set"+(this.$u?"UTC":"");switch(E){case f:return S?$(1,0):$(31,11);case h:return S?$(1,q):$(0,q+1);case c:var ve=this.$locale().weekStart||0,ue=(Y<ve?Y+7:Y)-ve;return $(S?ne-ue:ne+(6-ue),q);case u:case p:return V(be+"Hours",0);case l:return V(be+"Minutes",1);case a:return V(be+"Seconds",2);case s:return V(be+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,y){var g,S=N.p(_),E="set"+(this.$u?"UTC":""),$=(g={},g[u]=E+"Date",g[p]=E+"Date",g[h]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[s]=E+"Seconds",g[o]=E+"Milliseconds",g)[S],V=S===u?this.$D+(y-this.$W):y;if(S===h||S===f){var Y=this.clone().set(p,1);Y.$d[$](V),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else $&&this.$d[$](V);return this.init(),this},b.set=function(_,y){return this.clone().$set(_,y)},b.get=function(_){return this[N.p(_)]()},b.add=function(_,y){var g,S=this;_=Number(_);var E=N.p(y),$=function(q){var ne=O(S);return N.w(ne.date(ne.date()+Math.round(q*_)),S)};if(E===h)return this.set(h,this.$M+_);if(E===f)return this.set(f,this.$y+_);if(E===u)return $(1);if(E===c)return $(7);var V=(g={},g[a]=r,g[l]=n,g[s]=e,g)[E]||1,Y=this.$d.getTime()+_*V;return N.w(Y,this)},b.subtract=function(_,y){return this.add(-1*_,y)},b.format=function(_){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||v;var S=_||"YYYY-MM-DDTHH:mm:ssZ",E=N.z(this),$=this.$H,V=this.$m,Y=this.$M,q=g.weekdays,ne=g.months,be=g.meridiem,ve=function(z,G,x,ee){return z&&(z[G]||z(y,S))||x[G].slice(0,ee)},ue=function(z){return N.s($%12||12,z,"0")},ae=be||function(z,G,x){var ee=z<12?"AM":"PM";return x?ee.toLowerCase():ee};return S.replace(I,function(z,G){return G||function(x){switch(x){case"YY":return String(y.$y).slice(-2);case"YYYY":return N.s(y.$y,4,"0");case"M":return Y+1;case"MM":return N.s(Y+1,2,"0");case"MMM":return ve(g.monthsShort,Y,ne,3);case"MMMM":return ve(ne,Y);case"D":return y.$D;case"DD":return N.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ve(g.weekdaysMin,y.$W,q,2);case"ddd":return ve(g.weekdaysShort,y.$W,q,3);case"dddd":return q[y.$W];case"H":return String($);case"HH":return N.s($,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return ae($,V,!0);case"A":return ae($,V,!1);case"m":return String(V);case"mm":return N.s(V,2,"0");case"s":return String(y.$s);case"ss":return N.s(y.$s,2,"0");case"SSS":return N.s(y.$ms,3,"0");case"Z":return E}return null}(z)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,y,g){var S,E=this,$=N.p(y),V=O(_),Y=(V.utcOffset()-this.utcOffset())*r,q=this-V,ne=function(){return N.m(E,V)};switch($){case f:S=ne()/12;break;case h:S=ne();break;case d:S=ne()/3;break;case c:S=(q-Y)/6048e5;break;case u:S=(q-Y)/864e5;break;case l:S=q/n;break;case a:S=q/r;break;case s:S=q/e;break;default:S=q}return g?S:N.a(S)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return J[this.$L]},b.locale=function(_,y){if(!_)return this.$L;var g=this.clone(),S=ie(_,y,!0);return S&&(g.$L=S),g},b.clone=function(){return N.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()},w}(),Se=de.prototype;return O.prototype=Se,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",p]].forEach(function(w){Se[w[1]]=function(b){return this.$g(b,w[0],w[1])}}),O.extend=function(w,b){return w.$i||(w(b,de,O),w.$i=!0),O},O.locale=ie,O.isDayjs=he,O.unix=function(w){return O(1e3*w)},O.en=J[M],O.Ls=J,O.p={},O})})(Ds);var kc=Ds.exports;const Vi=ns(kc);function Xn(t,i){Ss(t,i)}function Mc(t){vt.set(t)}const Kn={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};function Oc(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function Ic(t,i){const e=new URL(i);fetch(e.href).then(r=>r.text()).then(r=>{const n=document.createElement("style");n.innerHTML=r,t&&t.appendChild(n)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Nc(t,i,e){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(i,n=>{r.innerHTML=n,t&&t.appendChild(r)})}}/**
6
19
  * @license
7
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
8
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
- */window.Vaadin||(window.Vaadin={});var $o;($o=window.Vaadin).featureFlags||($o.featureFlags={});function Ic(t){return t.replace(/-[a-z]/gu,i=>i[1].toUpperCase())}const ke={};function De(t,i="24.6.5"){if(Object.defineProperty(t,"version",{get(){return i}}),t.experimental){const r=typeof t.experimental=="string"?t.experimental:`${Ic(t.is.split("-").slice(1).join("-"))}Component`;if(!window.Vaadin.featureFlags[r]&&!ke[r]){ke[r]=new Set,ke[r].add(t),Object.defineProperty(window.Vaadin.featureFlags,r,{get(){return ke[r].size===0},set(n){n&&ke[r].size>0&&(ke[r].forEach(o=>{customElements.define(o.is,o)}),ke[r].clear())}});return}else if(ke[r]){ke[r].add(t);return}}const e=customElements.get(t.is);if(!e)customElements.define(t.is,t);else{const r=e.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
22
+ */function Pe(t,i="24.5.10"){Object.defineProperty(t,"version",{get(){return i}});const e=customElements.get(t.is);if(!e)customElements.define(t.is,t);else{const r=e.version;r&&t.version&&r===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
10
23
  * @license
11
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
12
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
13
- */class Nc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}De(Nc);/**
26
+ */class Lc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Pe(Lc);/**
14
27
  * @license
15
28
  * Copyright 2019 Google LLC
16
29
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const ci=globalThis,Kr=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jr=Symbol(),qn=new WeakMap;let Zr=class{constructor(i,e,r){if(this._$cssResult$=!0,r!==Jr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Kr&&i===void 0){const r=e!==void 0&&e.length===1;r&&(i=qn.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&qn.set(e,i))}return i}toString(){return this.cssText}};const Hc=t=>new Zr(typeof t=="string"?t:t+"",void 0,Jr),F=(t,...i)=>{const e=t.length===1?t[0]:i.reduce((r,n,o)=>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.")})(n)+t[o+1],t[0]);return new Zr(e,t,Jr)},Ts=(t,i)=>{if(Kr)t.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of i){const r=document.createElement("style"),n=ci.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,t.appendChild(r)}},Xn=Kr?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let e="";for(const r of i.cssRules)e+=r.cssText;return Hc(e)})(t):t;/**
30
+ */const ui=globalThis,Zr=ui.ShadowRoot&&(ui.ShadyCSS===void 0||ui.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qr=Symbol(),Jn=new WeakMap;let en=class{constructor(i,e,r){if(this._$cssResult$=!0,r!==Qr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Zr&&i===void 0){const r=e!==void 0&&e.length===1;r&&(i=Jn.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&Jn.set(e,i))}return i}toString(){return this.cssText}};const Hc=t=>new en(typeof t=="string"?t:t+"",void 0,Qr),F=(t,...i)=>{const e=t.length===1?t[0]:i.reduce((r,n,o)=>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.")})(n)+t[o+1],t[0]);return new en(e,t,Qr)},ks=(t,i)=>{if(Zr)t.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of i){const r=document.createElement("style"),n=ui.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,t.appendChild(r)}},Zn=Zr?t=>t:t=>t instanceof CSSStyleSheet?(i=>{let e="";for(const r of i.cssRules)e+=r.cssText;return Hc(e)})(t):t;/**
18
31
  * @license
19
32
  * Copyright 2017 Google LLC
20
33
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const{is:Lc,defineProperty:Bc,getOwnPropertyDescriptor:$c,getOwnPropertyNames:Fc,getOwnPropertySymbols:Rc,getPrototypeOf:zc}=Object,$e=globalThis,Kn=$e.trustedTypes,Uc=Kn?Kn.emptyScript:"",Yi=$e.reactiveElementPolyfillSupport,Ht=(t,i)=>t,Sr={toAttribute(t,i){switch(i){case Boolean:t=t?Uc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(r){e=null}}return e}},Ps=(t,i)=>!Lc(t,i),Jn={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:Ps};var Fo,Ro;(Fo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ro=$e.litPropertyMetadata)!=null||($e.litPropertyMetadata=new WeakMap);class rt extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Jn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(i,r,e);n!==void 0&&Bc(this.prototype,i,n)}}static getPropertyDescriptor(i,e,r){var s;const{get:n,set:o}=(s=$c(this.prototype,i))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);o.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Jn}static _$Ei(){if(this.hasOwnProperty(Ht("elementProperties")))return;const i=zc(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 e=this.properties,r=[...Fc(e),...Rc(e)];for(const n of r)this.createProperty(n,e[n])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const n of r)e.unshift(Xn(n))}else i!==void 0&&e.push(Xn(i));return e}static _$Eu(i,e){const r=e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;const i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ts(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(i,e,r){this._$AK(i,r)}_$EC(i,e){var o;const r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Sr).toAttribute(e,r.type);this._$Em=i,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(i,e){var o;const r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Sr;this._$Em=n,this[n]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(i,e,r){var n;if(i!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(i)),!((n=r.hasChanged)!=null?n:Ps)(this[i],e))return;this.P(i,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,r){var n;this._$AL.has(i)||this._$AL.set(i,e),r.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}_$ET(){return At(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,n;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 o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(e)):this._$EU()}catch(o){throw i=!1,this._$EU(),o}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}}var zo;rt.elementStyles=[],rt.shadowRootOptions={mode:"open"},rt[Ht("elementProperties")]=new Map,rt[Ht("finalized")]=new Map,Yi==null||Yi({ReactiveElement:rt}),((zo=$e.reactiveElementVersions)!=null?zo:$e.reactiveElementVersions=[]).push("2.0.4");/**
34
+ */const{is:$c,defineProperty:Bc,getOwnPropertyDescriptor:Fc,getOwnPropertyNames:Rc,getOwnPropertySymbols:zc,getPrototypeOf:Uc}=Object,$e=globalThis,Qn=$e.trustedTypes,jc=Qn?Qn.emptyScript:"",Yi=$e.reactiveElementPolyfillSupport,It=(t,i)=>t,Sr={toAttribute(t,i){switch(i){case Boolean:t=t?jc:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(r){e=null}}return e}},Ms=(t,i)=>!$c(t,i),eo={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:Ms};var zo,Uo;(zo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Uo=$e.litPropertyMetadata)!=null||($e.litPropertyMetadata=new WeakMap);class it extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=eo){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(i,r,e);n!==void 0&&Bc(this.prototype,i,n)}}static getPropertyDescriptor(i,e,r){var s;const{get:n,set:o}=(s=Fc(this.prototype,i))!=null?s:{get(){return this[e]},set(a){this[e]=a}};return{get(){return n==null?void 0:n.call(this)},set(a){const l=n==null?void 0:n.call(this);o.call(this,a),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:eo}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;const i=Uc(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){const e=this.properties,r=[...Rc(e),...zc(e)];for(const n of r)this.createProperty(n,e[n])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const r=new Set(i.flat(1/0).reverse());for(const n of r)e.unshift(Zn(n))}else i!==void 0&&e.push(Zn(i));return e}static _$Eu(i,e){const r=e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((r=i.hostConnected)==null||r.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;const i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ks(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(i,e,r){this._$AK(i,r)}_$EC(i,e){var o;const r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Sr).toAttribute(e,r.type);this._$Em=i,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(i,e){var o;const r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Sr;this._$Em=n,this[n]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(i,e,r){var n;if(i!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(i)),!((n=r.hasChanged)!=null?n:Ms)(this[i],e))return;this.P(i,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,r){var n;this._$AL.has(i)||this._$AL.set(i,e),r.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}_$ET(){return Et(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,n;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 o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(e)):this._$EU()}catch(o){throw i=!1,this._$EU(),o}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}}var jo;it.elementStyles=[],it.shadowRootOptions={mode:"open"},it[It("elementProperties")]=new Map,it[It("finalized")]=new Map,Yi==null||Yi({ReactiveElement:it}),((jo=$e.reactiveElementVersions)!=null?jo:$e.reactiveElementVersions=[]).push("2.0.4");/**
22
35
  * @license
23
36
  * Copyright 2017 Google LLC
24
37
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Lt=globalThis,_i=Lt.trustedTypes,Zn=_i?_i.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ds="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+Le,jc=`<${ks}>`,We=document,zt=()=>We.createComment(""),Ut=t=>t===null||typeof t!="object"&&typeof t!="function",Qr=Array.isArray,Vc=t=>Qr(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Gi=`[
26
- \f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qn=/-->/g,eo=/>/g,Ue=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
27
- \f\r"'\`<>=]|("|')|))|$)`,"g"),to=/'/g,io=/"/g,Ms=/^(?:script|style|textarea|title)$/i,pt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),ro=new WeakMap,je=We.createTreeWalker(We,129);function Os(t,i){if(!Qr(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zn!==void 0?Zn.createHTML(i):i}const Yc=(t,i)=>{const e=t.length-1,r=[];let n,o=i===2?"<svg>":i===3?"<math>":"",s=Tt;for(let a=0;a<e;a++){const l=t[a];let u,c,d=-1,h=0;for(;h<l.length&&(s.lastIndex=h,c=s.exec(l),c!==null);)h=s.lastIndex,s===Tt?c[1]==="!--"?s=Qn:c[1]!==void 0?s=eo:c[2]!==void 0?(Ms.test(c[2])&&(n=RegExp("</"+c[2],"g")),s=Ue):c[3]!==void 0&&(s=Ue):s===Ue?c[0]===">"?(s=n!=null?n:Tt,d=-1):c[1]===void 0?d=-2:(d=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Ue:c[3]==='"'?io:to):s===io||s===to?s=Ue:s===Qn||s===eo?s=Tt:(s=Ue,n=void 0);const f=s===Ue&&t[a+1].startsWith("/>")?" ":"";o+=s===Tt?l+jc:d>=0?(r.push(u),l.slice(0,d)+Ds+l.slice(d)+Le+f):l+Le+(d===-2?a:f)}return[Os(t,o+(t[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class jt{constructor({strings:i,_$litType$:e},r){let n;this.parts=[];let o=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Yc(i,e);if(this.el=jt.createElement(u,r),je.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=je.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(Ds)){const h=c[s++],f=n.getAttribute(d).split(Le),p=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:p[2],strings:f,ctor:p[1]==="."?Wc:p[1]==="?"?qc:p[1]==="@"?Xc:Di}),n.removeAttribute(d)}else d.startsWith(Le)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Ms.test(n.tagName)){const d=n.textContent.split(Le),h=d.length-1;if(h>0){n.textContent=_i?_i.emptyScript:"";for(let f=0;f<h;f++)n.append(d[f],zt()),je.nextNode(),l.push({type:2,index:++o});n.append(d[h],zt())}}}else if(n.nodeType===8)if(n.data===ks)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Le,d+1))!==-1;)l.push({type:7,index:o}),d+=Le.length-1}o++}}static createElement(i,e){const r=We.createElement("template");return r.innerHTML=i,r}}function mt(t,i,e=t,r){var s,a,l;if(i===pt)return i;let n=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const o=Ut(i)?void 0:i._$litDirective$;return(n==null?void 0:n.constructor)!==o&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=n:e._$Cl=n),n!==void 0&&(i=mt(t,n._$AS(t,i.values),n,r)),i}class Gc{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:e},parts:r}=this._$AD,n=((u=i==null?void 0:i.creationScope)!=null?u:We).importNode(e,!0);je.currentNode=n;let o=je.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Jt(o,o.nextSibling,this,i):l.type===1?c=new l.ctor(o,l.name,l.strings,this,i):l.type===6&&(c=new Kc(o,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=je.nextNode(),s++)}return je.currentNode=We,n}p(i){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,e),e+=r.strings.length-2):r._$AI(i[e])),e++}}class Jt{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this._$Cv}constructor(i,e,r,n){var o;this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=(o=n==null?void 0:n.isConnected)!=null?o:!0}get parentNode(){let i=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=mt(this,i,e),Ut(i)?i===re||i==null||i===""?(this._$AH!==re&&this._$AR(),this._$AH=re):i!==this._$AH&&i!==pt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Vc(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!==re&&Ut(this._$AH)?this._$AA.nextSibling.data=i:this.T(We.createTextNode(i)),this._$AH=i}$(i){var o;const{values:e,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=jt.createElement(Os(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===n)this._$AH.p(e);else{const s=new Gc(n,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(i){let e=ro.get(i.strings);return e===void 0&&ro.set(i.strings,e=new jt(i)),e}k(i){Qr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const o of i)n===e.length?e.push(r=new Jt(this.O(zt()),this.O(zt()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(i=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);i&&i!==this._$AB;){const n=i.nextSibling;i.remove(),i=n}}setConnected(i){var e;this._$AM===void 0&&(this._$Cv=i,(e=this._$AP)==null||e.call(this,i))}}class Di{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,r,n,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=i,this.name=e,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(i,e=this,r,n){const o=this.strings;let s=!1;if(o===void 0)i=mt(this,i,e,0),s=!Ut(i)||i!==this._$AH&&i!==pt,s&&(this._$AH=i);else{const a=i;let l,u;for(i=o[0],l=0;l<o.length-1;l++)u=mt(this,a[r+l],e,l),u===pt&&(u=this._$AH[l]),s||(s=!Ut(u)||u!==this._$AH[l]),u===re?i=re:i!==re&&(i+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!n&&this.j(i)}j(i){i===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class Wc extends Di{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===re?void 0:i}}class qc extends Di{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==re)}}class Xc extends Di{constructor(i,e,r,n,o){super(i,e,r,n,o),this.type=5}_$AI(i,e=this){var s;if((i=(s=mt(this,i,e,0))!=null?s:re)===pt)return;const r=this._$AH,n=i===re&&r!==re||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,o=i!==re&&(r===re||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class Kc{constructor(i,e,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){mt(this,i)}}const Wi=Lt.litHtmlPolyfillSupport;var Uo;Wi==null||Wi(jt,Jt),((Uo=Lt.litHtmlVersions)!=null?Uo:Lt.litHtmlVersions=[]).push("3.2.1");const Jc=(t,i,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!=null?o:i;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=n=new Jt(i.insertBefore(zt(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
38
+ */const Nt=globalThis,mi=Nt.trustedTypes,to=mi?mi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Os="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,Is="?"+Le,Vc=`<${Is}>`,Ge=document,Ft=()=>Ge.createComment(""),Rt=t=>t===null||typeof t!="object"&&typeof t!="function",tn=Array.isArray,Yc=t=>tn(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Gi=`[
39
+ \f\r]`,At=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,io=/-->/g,ro=/>/g,ze=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),no=/'/g,oo=/"/g,Ns=/^(?:script|style|textarea|title)$/i,ft=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),so=new WeakMap,Ue=Ge.createTreeWalker(Ge,129);function Ls(t,i){if(!tn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return to!==void 0?to.createHTML(i):i}const Gc=(t,i)=>{const e=t.length-1,r=[];let n,o=i===2?"<svg>":i===3?"<math>":"",s=At;for(let a=0;a<e;a++){const l=t[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===At?c[1]==="!--"?s=io:c[1]!==void 0?s=ro:c[2]!==void 0?(Ns.test(c[2])&&(n=RegExp("</"+c[2],"g")),s=ze):c[3]!==void 0&&(s=ze):s===ze?c[0]===">"?(s=n!=null?n:At,h=-1):c[1]===void 0?h=-2:(h=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?ze:c[3]==='"'?oo:no):s===oo||s===no?s=ze:s===io||s===ro?s=At:(s=ze,n=void 0);const f=s===ze&&t[a+1].startsWith("/>")?" ":"";o+=s===At?l+Vc:h>=0?(r.push(u),l.slice(0,h)+Os+l.slice(h)+Le+f):l+Le+(h===-2?a:f)}return[Ls(t,o+(t[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]};class zt{constructor({strings:i,_$litType$:e},r){let n;this.parts=[];let o=0,s=0;const a=i.length-1,l=this.parts,[u,c]=Gc(i,e);if(this.el=zt.createElement(u,r),Ue.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Ue.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(Os)){const d=c[s++],f=n.getAttribute(h).split(Le),p=/([.?@])?(.*)/.exec(d);l.push({type:1,index:o,name:p[2],strings:f,ctor:p[1]==="."?qc:p[1]==="?"?Xc:p[1]==="@"?Kc:Pi}),n.removeAttribute(h)}else h.startsWith(Le)&&(l.push({type:6,index:o}),n.removeAttribute(h));if(Ns.test(n.tagName)){const h=n.textContent.split(Le),d=h.length-1;if(d>0){n.textContent=mi?mi.emptyScript:"";for(let f=0;f<d;f++)n.append(h[f],Ft()),Ue.nextNode(),l.push({type:2,index:++o});n.append(h[d],Ft())}}}else if(n.nodeType===8)if(n.data===Is)l.push({type:2,index:o});else{let h=-1;for(;(h=n.data.indexOf(Le,h+1))!==-1;)l.push({type:7,index:o}),h+=Le.length-1}o++}}static createElement(i,e){const r=Ge.createElement("template");return r.innerHTML=i,r}}function pt(t,i,e=t,r){var s,a,l;if(i===ft)return i;let n=r!==void 0?(s=e._$Co)==null?void 0:s[r]:e._$Cl;const o=Rt(i)?void 0:i._$litDirective$;return(n==null?void 0:n.constructor)!==o&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,e,r)),r!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[r]=n:e._$Cl=n),n!==void 0&&(i=pt(t,n._$AS(t,i.values),n,r)),i}class Wc{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var u;const{el:{content:e},parts:r}=this._$AD,n=((u=i==null?void 0:i.creationScope)!=null?u:Ge).importNode(e,!0);Ue.currentNode=n;let o=Ue.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Xt(o,o.nextSibling,this,i):l.type===1?c=new l.ctor(o,l.name,l.strings,this,i):l.type===6&&(c=new Jc(o,this,i)),this._$AV.push(c),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=Ue.nextNode(),s++)}return Ue.currentNode=Ge,n}p(i){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,e),e+=r.strings.length-2):r._$AI(i[e])),e++}}class Xt{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this._$Cv}constructor(i,e,r,n){var o;this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=(o=n==null?void 0:n.isConnected)!=null?o:!0}get parentNode(){let i=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=pt(this,i,e),Rt(i)?i===re||i==null||i===""?(this._$AH!==re&&this._$AR(),this._$AH=re):i!==this._$AH&&i!==ft&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Yc(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!==re&&Rt(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ge.createTextNode(i)),this._$AH=i}$(i){var o;const{values:e,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=zt.createElement(Ls(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===n)this._$AH.p(e);else{const s=new Wc(n,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(i){let e=so.get(i.strings);return e===void 0&&so.set(i.strings,e=new zt(i)),e}k(i){tn(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const o of i)n===e.length?e.push(r=new Xt(this.O(Ft()),this.O(Ft()),this,this.options)):r=e[n],r._$AI(o),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(i=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);i&&i!==this._$AB;){const n=i.nextSibling;i.remove(),i=n}}setConnected(i){var e;this._$AM===void 0&&(this._$Cv=i,(e=this._$AP)==null||e.call(this,i))}}class Pi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,r,n,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=i,this.name=e,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(i,e=this,r,n){const o=this.strings;let s=!1;if(o===void 0)i=pt(this,i,e,0),s=!Rt(i)||i!==this._$AH&&i!==ft,s&&(this._$AH=i);else{const a=i;let l,u;for(i=o[0],l=0;l<o.length-1;l++)u=pt(this,a[r+l],e,l),u===ft&&(u=this._$AH[l]),s||(s=!Rt(u)||u!==this._$AH[l]),u===re?i=re:i!==re&&(i+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!n&&this.j(i)}j(i){i===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}}class qc extends Pi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===re?void 0:i}}class Xc extends Pi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==re)}}class Kc extends Pi{constructor(i,e,r,n,o){super(i,e,r,n,o),this.type=5}_$AI(i,e=this){var s;if((i=(s=pt(this,i,e,0))!=null?s:re)===ft)return;const r=this._$AH,n=i===re&&r!==re||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,o=i!==re&&(r===re||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,i):this._$AH.handleEvent(i)}}class Jc{constructor(i,e,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){pt(this,i)}}const Wi=Nt.litHtmlPolyfillSupport;var Vo;Wi==null||Wi(zt,Xt),((Vo=Nt.litHtmlVersions)!=null?Vo:Nt.litHtmlVersions=[]).push("3.2.1");const Zc=(t,i,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!=null?o:i;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=n=new Xt(i.insertBefore(Ft(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
28
41
  * @license
29
42
  * Copyright 2017 Google LLC
30
43
  * SPDX-License-Identifier: BSD-3-Clause
31
- */class st extends rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Jc(e,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 jo;st._$litElement$=!0,st.finalized=!0,(jo=globalThis.litElementHydrateSupport)==null||jo.call(globalThis,{LitElement:st});const qi=globalThis.litElementPolyfillSupport;qi==null||qi({LitElement:st});var Vo;((Vo=globalThis.litElementVersions)!=null?Vo:globalThis.litElementVersions=[]).push("4.1.1");/**
44
+ */class ot extends it{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const i=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Zc(e,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 ft}}var Yo;ot._$litElement$=!0,ot.finalized=!0,(Yo=globalThis.litElementHydrateSupport)==null||Yo.call(globalThis,{LitElement:ot});const qi=globalThis.litElementPolyfillSupport;qi==null||qi({LitElement:ot});var Go;((Go=globalThis.litElementVersions)!=null?Go:globalThis.litElementVersions=[]).push("4.1.1");/**
32
45
  * @license
33
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Zc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,n){super.attributeChangedCallback(e,r,n),e==="theme"&&this._set_theme(n)}};/**
48
+ */const Qc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,r,n){super.attributeChangedCallback(e,r,n),e==="theme"&&this._set_theme(n)}};/**
36
49
  * @license
37
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
38
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
39
- */const Is=[],Ar=new Set,en=new Set;function Ns(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Qc(t){return Ns(customElements.get(t))}function ed(t=[]){return[t].flat(1/0).filter(i=>i instanceof Zr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Hs(t,i){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(i))}function Ls(t){return t.map(i=>i.cssText).join(`
40
- `)}const gi="vaadin-themable-mixin-style";function td(t,i){const e=document.createElement("style");e.id=gi,e.textContent=Ls(t),i.content.appendChild(e)}function id(t){if(!t.shadowRoot)return;const i=t.constructor;if(t instanceof st)[...t.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ts(t.shadowRoot,i.elementStyles);else{const e=t.shadowRoot.getElementById(gi),r=i.prototype._template;e.textContent=r.content.getElementById(gi).textContent}}function rd(t){Ar.forEach(i=>{const e=i.deref();e instanceof t?id(e):e||Ar.delete(i)})}function Bs(t){if(t.prototype instanceof st)t.elementStyles=t.finalizeStyles(t.styles);else{const i=t.prototype._template;i.content.getElementById(gi).textContent=Ls(t.getStylesForThis())}en.forEach(i=>{const e=customElements.get(i);e!==t&&e.prototype instanceof t&&Bs(e)})}function nd(t,i){const e=t.__themes;return!e||!i?!1:e.some(r=>r.styles.some(n=>i.some(o=>o.cssText===n.cssText)))}function Q(t,i,e={}){i=ed(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,i,e):Is.push({themeFor:t,styles:i,include:e.include,moduleId:e.moduleId}),t&&en.forEach(r=>{if(Hs(t,r)&&Qc(r)){const n=customElements.get(r);nd(n,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".`),Bs(n),rd(n)}})}function Cr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Is}function od(t=""){let i=0;return t.startsWith("lumo-")||t.startsWith("material-")?i=1:t.startsWith("vaadin-")&&(i=2),i}function $s(t){const i=[];return t.include&&[].concat(t.include).forEach(e=>{const r=Cr().find(n=>n.moduleId===e);r?i.push(...$s(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),i}function sd(t){const i=`${t}-default-theme`,e=Cr().filter(r=>r.moduleId!==i&&Hs(r.themeFor,t)).map(r=>Zt(St({},r),{styles:[...$s(r),...r.styles],includePriority:od(r.moduleId)})).sort((r,n)=>n.includePriority-r.includePriority);return e.length>0?e:Cr().filter(r=>r.moduleId===i)}const Xe=t=>class extends Zc(t){constructor(){super(),Ar.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&en.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Ns(this)||td(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),n=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...n,...sd(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
52
+ */const Hs=[],Ar=new Set,rn=new Set;function $s(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function eh(t){return $s(customElements.get(t))}function th(t=[]){return[t].flat(1/0).filter(i=>i instanceof en?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Bs(t,i){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(i))}function Fs(t){return t.map(i=>i.cssText).join(`
53
+ `)}const _i="vaadin-themable-mixin-style";function ih(t,i){const e=document.createElement("style");e.id=_i,e.textContent=Fs(t),i.content.appendChild(e)}function rh(t){if(!t.shadowRoot)return;const i=t.constructor;if(t instanceof ot)[...t.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),ks(t.shadowRoot,i.elementStyles);else{const e=t.shadowRoot.getElementById(_i),r=i.prototype._template;e.textContent=r.content.getElementById(_i).textContent}}function nh(t){Ar.forEach(i=>{const e=i.deref();e instanceof t?rh(e):e||Ar.delete(i)})}function Rs(t){if(t.prototype instanceof ot)t.elementStyles=t.finalizeStyles(t.styles);else{const i=t.prototype._template;i.content.getElementById(_i).textContent=Fs(t.getStylesForThis())}rn.forEach(i=>{const e=customElements.get(i);e!==t&&e.prototype instanceof t&&Rs(e)})}function oh(t,i){const e=t.__themes;return!e||!i?!1:e.some(r=>r.styles.some(n=>i.some(o=>o.cssText===n.cssText)))}function Q(t,i,e={}){i=th(i),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,i,e):Hs.push({themeFor:t,styles:i,include:e.include,moduleId:e.moduleId}),t&&rn.forEach(r=>{if(Bs(t,r)&&eh(r)){const n=customElements.get(r);oh(n,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".`),Rs(n),nh(n)}})}function Cr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Hs}function sh(t=""){let i=0;return t.startsWith("lumo-")||t.startsWith("material-")?i=1:t.startsWith("vaadin-")&&(i=2),i}function zs(t){const i=[];return t.include&&[].concat(t.include).forEach(e=>{const r=Cr().find(n=>n.moduleId===e);r?i.push(...zs(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),i}function ah(t){const i=`${t}-default-theme`,e=Cr().filter(r=>r.moduleId!==i&&Bs(r.themeFor,t)).map(r=>Jt(Kt({},r),{styles:[...zs(r),...r.styles],includePriority:sh(r.moduleId)})).sort((r,n)=>n.includePriority-r.includePriority);return e.length>0?e:Cr().filter(r=>r.moduleId===i)}const qe=t=>class extends Qc(t){constructor(){super(),Ar.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&rn.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||$s(this)||ih(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...[e].flat(1/0),...r]:r}static getStylesForThis(){const e=t.__themes||[],r=Object.getPrototypeOf(this.prototype),n=(r?r.constructor.__themes:[])||[];this.__themes=[...e,...n,...ah(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
41
54
  * @license
42
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
43
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
- */const ad=(t,...i)=>{const e=document.createElement("style");e.id=t,e.textContent=i.map(r=>r.toString()).join(`
45
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},wt=(t,...i)=>{ad(`lumo-${t}`,i)};/**
57
+ */const lh=(t,...i)=>{const e=document.createElement("style");e.id=t,e.textContent=i.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},xt=(t,...i)=>{lh(`lumo-${t}`,i)};/**
46
59
  * @license
47
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
48
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
49
- */const ld=F`
62
+ */const uh=F`
50
63
  :host {
51
64
  --lumo-size-xs: 1.625rem;
52
65
  --lumo-size-s: 1.875rem;
@@ -61,11 +74,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
61
74
  /* For backwards compatibility */
62
75
  --lumo-icon-size: var(--lumo-icon-size-m);
63
76
  }
64
- `;wt("sizing-props",ld);/**
77
+ `;xt("sizing-props",uh);/**
65
78
  * @license
66
79
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
67
80
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
68
- */const ud=F`
81
+ */const ch=F`
69
82
  :host {
70
83
  /* Square */
71
84
  --lumo-space-xs: 0.25rem;
@@ -88,11 +101,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
88
101
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
89
102
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
90
103
  }
91
- `;wt("spacing-props",ud);/**
104
+ `;xt("spacing-props",ch);/**
92
105
  * @license
93
106
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
94
107
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
95
- */const cd=F`
108
+ */const hh=F`
96
109
  :host {
97
110
  /* Border radius */
98
111
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -192,11 +205,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
192
205
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
193
206
  --vaadin-input-field-value-font-weight: 500;
194
207
  }
195
- `;wt("style-props",cd);/**
208
+ `;xt("style-props",hh);/**
196
209
  * @license
197
210
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
198
211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
199
- */const dd=F`
212
+ */const dh=F`
200
213
  :host {
201
214
  /* Base (background) */
202
215
  --lumo-base-color: #fff;
@@ -281,7 +294,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
281
294
  --lumo-disabled-text-color: GrayText;
282
295
  }
283
296
  }
284
- `;wt("color-props",dd);const hd=F`
297
+ `;xt("color-props",dh);const fh=F`
285
298
  [theme~='dark'] {
286
299
  /* Base (background) */
287
300
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -399,11 +412,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
399
412
  pre code {
400
413
  background: transparent;
401
414
  }
402
- `;Q("",hd,{moduleId:"lumo-color"});/**
415
+ `;Q("",fh,{moduleId:"lumo-color"});/**
403
416
  * @license
404
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
405
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
406
- */const fd=F`
419
+ */const ph=F`
407
420
  :host {
408
421
  /* prettier-ignore */
409
422
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -423,7 +436,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
423
436
  --lumo-line-height-s: 1.375;
424
437
  --lumo-line-height-m: 1.625;
425
438
  }
426
- `,pd=F`
439
+ `,mh=F`
427
440
  body,
428
441
  :host {
429
442
  font-family: var(--lumo-font-family);
@@ -515,11 +528,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
515
528
  border-left: none;
516
529
  border-right: 2px solid var(--lumo-contrast-30pct);
517
530
  }
518
- `;Q("",pd,{moduleId:"lumo-typography"});wt("typography-props",fd);/**
531
+ `;Q("",mh,{moduleId:"lumo-typography"});xt("typography-props",ph);/**
519
532
  * @license
520
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
521
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
522
- */const Fs=F`
535
+ */const Us=F`
523
536
  :host {
524
537
  top: var(--lumo-space-m);
525
538
  right: var(--lumo-space-m);
@@ -584,11 +597,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
584
597
  opacity: 1;
585
598
  }
586
599
  }
587
- `;Q("",Fs,{moduleId:"lumo-overlay"});/**
600
+ `;Q("",Us,{moduleId:"lumo-overlay"});/**
588
601
  * @license
589
602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
590
603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
591
- */const Rs=F`
604
+ */const js=F`
592
605
  :host([opening]),
593
606
  :host([closing]) {
594
607
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -618,7 +631,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
618
631
  opacity: 0;
619
632
  }
620
633
  }
621
- `;Q("",Rs,{moduleId:"lumo-menu-overlay-core"});const md=F`
634
+ `;Q("",js,{moduleId:"lumo-menu-overlay-core"});const _h=F`
622
635
  /* Small viewport (bottom sheet) styles */
623
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
624
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -680,7 +693,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
680
693
  transform: translateY(150%);
681
694
  }
682
695
  }
683
- `,zs=[Fs,Rs,md];Q("",zs,{moduleId:"lumo-menu-overlay"});const _d=F`
696
+ `,Vs=[Us,js,_h];Q("",Vs,{moduleId:"lumo-menu-overlay"});const gh=F`
684
697
  [part='overlay'] {
685
698
  /*
686
699
  Width:
@@ -725,7 +738,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
725
738
  max-height: 70vh;
726
739
  }
727
740
  }
728
- `;Q("vaadin-date-picker-overlay",[zs,_d],{moduleId:"lumo-date-picker-overlay"});const gd=F`
741
+ `;Q("vaadin-date-picker-overlay",[Vs,gh],{moduleId:"lumo-date-picker-overlay"});const bh=F`
729
742
  :host {
730
743
  /* Sizing */
731
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1001,7 +1014,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1001
1014
  margin-left: 0;
1002
1015
  margin-right: 0;
1003
1016
  }
1004
- `;Q("vaadin-button",gd,{moduleId:"lumo-button"});Q("vaadin-date-picker-year",F`
1017
+ `;Q("vaadin-button",bh,{moduleId:"lumo-button"});Q("vaadin-date-picker-year",F`
1005
1018
  :host([current]) [part='year-number'] {
1006
1019
  color: var(--lumo-primary-text-color);
1007
1020
  }
@@ -1504,10 +1517,10 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1504
1517
  * @license
1505
1518
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1506
1519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1507
- */const bd=F`
1520
+ */const vh=F`
1508
1521
  @font-face {
1509
1522
  font-family: 'lumo-icons';
1510
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABHAAAsAAAAAI6AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuNY21hcAAAAYgAAAD+AAADymne8hxnbHlmAAACiAAAC+gAABioIzlOlWhlYWQAAA5wAAAAMAAAADZa/6SsaGhlYQAADqAAAAAdAAAAJAbpA4BobXR4AAAOwAAAABAAAAC0q+AAAGxvY2EAAA7QAAAAXAAAAFyF7o1GbWF4cAAADywAAAAfAAAAIAFMAXBuYW1lAAAPTAAAATEAAAIuUUJZCHBvc3QAABCAAAABPQAAAgfdkltveJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+xDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mEO+p/FEMUcxDANKMwIkgMABvgMMAB4nO3SV26EMABF0UsZpjG9d6Y3FpgF5StLYxMTP16WEUvHV1gGIQzQAJKgDFKIfojQ+A6rUb2e0KnXU77qPanWq/LzCXOkOVyn9RyHvWl4YkaTFu1wX5ecHn0GDBkxZsKUGXMWLFmxZsOWHXsOFBw5cebClRt3Hjx58dZ7RRn/I9cUF39Xpb691acRG2piOtUqNZ1P1TCdeJUZatNQW4baNtSO6U+ouoaam96u6hlq31AHhjo01JGhjg11YqhTQ50Z6txQF4a6NNSVoa4NdWOoW0PdGereUA+GWhjq0VBPhno21IuhXg31Zqh3Q30Y6tNQX4b6NtTSKH8BOIRpQQAAeJy1WH1sW9UVv+fG9vPz+7Bf/N6zHcd2/J04jbP6s0lap4kDpB9JWzUUCqxNgaHxpTI6hNhUNLVr17HSISb2D2iAJrWb6FTWahNQdQxRvmHamAR0qibE1E18CG3QaVNFvJ17n+3YIf1AiMQ679x77j3v3HPPPed3H7ER/OsYpw8TmQRIiuQJ8RZK+WjO1B3xaCzla21orY10a+OQ6aHTHtP0zB31mBs1GZ6RNU2uXc7oPL+xdRS9R9X1oK4fVfijdsBqvqF6vd1eLzPrYrYZ57WteF7bPDIc5+ZcJnta+S9i2Vfhs4MaMwZNQmO0Vv7gF/MZcNsCcJp4sJFSwYyAmRuFCmTBDRBUkwGqnlViyjmVBpLqaXhNpt0J5V1JOqMkuqn8WkMHvZX+iOlImiqkBiFVYDrCqINulmkwKb8ry2fkZBBn7FcTlk4ZdfpRZ9MOesLSAakKt0N3g4p2jAL8eIEOOqom/U0lgQRXUl8LtXM7HFkojUIpF0ErVBhcZC1vtyjtpsqr83a8RVcSH+ool8LgcIMjNohmVCACuDs506BdO6WIQeXjUsh1XKZGRNpp9piv3+Givoh00OU6KEV81HUHTLtN093Q+YGlE3wLHWRtMNy9XWqdLm2HKbaNsGzhu+41eswFOjE6WKSk2/1Wpt+qHeM6phbohmVmj3GvpdcVkiy9zbXfzHVqKuDB0IR2P6ZpF+D7dy6YC/9svGmBE5hKB9+X2+hh4iYRMkhGyTqyFc9APmeGQHf043tWQKHkizmwaY5AroTNVJzJDc2SFzUu92kOLsdmKu77vByb8/IjtxmhkMFISRBFISO4XMLJlj4XgGuRXtaHw2FLyHifdSOpisIhJjgkiPBAyJh7lfXTkhEadwk1mUngrOC6MazX7mASeEAPV1FyjEumBOaEDu4DP/ogRDKkiLEV1woVyMeLLKJCEM+FwdCwL4XLcRgdbfkhbzS8BNvXDKzNQiAWgOzagTXF1Eyq+Ci6/TPm/JrNY/59p1epKN4jQFGe0fx+LTMwNVCrAU2VSqnaKYzIiGmWe2Rvp9KDJhncrjLaFce8VCUbyQ1kB9lNfkJ+To6R58mfyd/Ip9ABXohDHqqwEW7A2Mij1ehntLu+h8xMtocjUJcYwoLdtYafv/1Vjy8vjLaLtBfOt3/B931Rexa24e5zstgnyqvZHs69zuhq3vFgRpQVJyN7FuE++RLSeW4xMi+t6Zeo5sIK6S5dlGVRD2hWnGoB3j7OV3lesvNLic8tOnLRSRfRdOna63VJp/1WbYs5dFZjy1AqpGICQEWKmNI+CZNoVTJ7pNop+IZkRrBHgnEmqr3TrEsfw1Gi8LqE+S1aV0SNNwXVVVvuUoU3ld6TLwmditIpvKTU50zSzWwO1h0rL8awnulwTXMYrGDT4aQ1fb4GPkyv5vMEh5Vec6yw0AMXnfcx1l/rfVZaKLDi0W4j/HfeyGZuHOf1IUGW1udizU2leXY0OmLpVDpVKJfKpZzPRKHgEBzpXAUKWYipoIeBdl3JfLZVBizEqWun1i4ZGFiyduq3DebayXsmJ+95gBG4+Urm1a2SdpKV57lP2wZyZqI+FAlfUtO+NCmgdWhMOS1gDY+jHWnBhwjBQLMEXxmLbx6t9JXTWDLtsSxgisfErqvQMbbBoywZmeyLeWe8OWNydFDxzMx4lMGRtX0xN3YFJkeW+O0bascGNwwObtjCCOzrzAVWjSwN2K9cpyn9o5cZOXMmkAuM85EbNHnJyHhfLLCnPhxJYw9eoIMkyC3l+4ZuY5ig7lW2oYUynDgg+Xrk+++Xe3zSgRYetnyuy+KbfjiB+GAAtZ8HHXmtijZfFFgrujhmOs2qkXvuSV6WqA1WLYqhPHOfsa26rklKFqbAGL2dOIlGurB6LWFVFd/KoBBaYTFYVBs93hZRFlrG5Ex4NVFIJguJVvqnBW2kNNvFGx90YUcSEvyZSMDeZjc0xYlEYy8+hHcWx9YrZOaPPyCGepP5Q34aXnGBr8d1QhSf4yjtiebZqNJfEYl4SY6dDRb8WSguLZW9ZQtBpoW4hX0QMyB2KmsYcOh8HMQxBn288oZ6BXV0GOq/ClKsC6T8g9X3OFKZNkJrYkOx2lEk+KNDy953+wGHXuGGzhGZ+uLK8FVrQkbtKBv+9EztU2sgTCNpvXMdJjqJ4tkdw+x00dPKkZ1QR254x7GQoFmvfakSnL3gCc5nREly2mN2pyTLMacMipNT7YInGU7JzlN2p9N+yinXTirOKEvPUafSWMNDmCf9pIQYaG19DSxKGqvAQ+xg60iabEm5MheUU2n+HxO4TDDbjnw6xxK8QzfhbHXq8pWVqanKysun9s6ztdt7sivGqruqYyuyPS6Hw9XehGt6q+l0dT0jvaFMZjiTuTHo7+vdtHJTb58/2ML+IxHt9/n9vv5owiWKrrbWD+sakKxhKoYzxF5f7y9INxki42QNuYrVFDPfvqxyY83xWNMV+ZxPSMWb62W+wPSCJwkDDl1WZOGW84nAEo4A7HjB/uWmOdayRFnKjazi668u/ajJlUd87aPk048Crlu4j1Oh9gxdL3Z1inNPIt2xvKNlsU4hn54Z5Y6YbTDu9hHOvkcFAb35fU6hNovKOrtQmcvbNV9/Ntfv5xf4atDWOOTX6CSHZ08xujhPs51+f9zvf1YLIGoPPKvxVh0TSLAXzzUBFiXs7GJVB7vH5/PAXznd4+vx4a95h3qI/oYIpIdMkA1kC7kVLS3GhWI5bwj1fIaVKG/Ei5gXWOjhtcJbzFthaMQrwIcIRj0ppvO6yV95icu9j/YPDNySWp7w+kOr95R1RfGpfVlDVhS/2geJ5Umv2mn0rkxBvzvgdisndJXaVF1X5z5jdHGe2n/QnYo8+b2uaMivhowgjYcLnVqnrEpQezsieyVZ6ooETbdJO6ip+cORLpes6BL82/qg8VHbo45B/vch/YQeJX28QvEANR3sQhxh+TcMCEd4l8BKF7uID7KM05tRYlIHHXY63YIi2fXQyj5XSBbcMeewKLpttkJ2Syz33YJfDdJdSYkqHbYb3VHRJgTV8c0TAy67YHeK7htwOKWax5co7Do8Pfh1tKdx1g5j9o6TZeQyMo27FuW3vbYsbY/Op3AG06DMKionRlpgHzCEeMmLU5opRrCyS670RzppZeW5p/iT3jL3lB4O63QS6dzzh8SAtOqwGJK3bv+lGJTWbr++471wsVKMRJCEK5H+cLg/Qp+IDsdqs7HhKD7hMXyyrD/Li8RjRqimHhI7HP2vSDZn9brplySb0L9dgpURSwmSiBFhilrwB8OA9gZ29NkRO/669parW9e7XZDxwvgRu+SE7zgl+xG5p/HtRqJ3cdwSZwsbwTA1WT3jEdyPN0sWxvDGy+xovIzHosnwc9LePf9tywun0fMkWaFYZbB4oovRq8VyKYUBkMVXqVhBHSylQ0wanvla3+rQ1XbR8ZzstYOo2Mf7vjk8ftcGDWxdSdXx0cAVveHg1TZFtEOn8ntBBFs11V++vuLUQ5qz+U6d/oUjpGIdNjOQhJXNqn5YCS1Yy5PofLGEs6Js2yOKe2yyOLxtaGjbt7cNIURCEDdWfaQ6lurtRYbePCuItv1iUNxvE4Vdw2zQ0LZhdv2fxjHp5uAmdlBpopHXoJGU8e6BRc0yi+PztkaHTRRrW1m2hcfFLlEUzzD+DGczjEVCg9jEQZhFcdAL2DjD+DPiSWQzjM2I89g5RXdxfECS+CIWy1hTGmFs6EIbkv/pbtkfU3aPrZ+4c2Lizn07qufym/L5TTdtyuU2/We3HPeDsjtb3bGPSSfW31aX3LQpX/d9sL7fWYpRJPBbCJavYjrFjj0rT2GWCZjf6Ytffr8beXl/HYeyGwJiIK8FLDHbfo65xGz7YCSRqCQSkbbHI5eUU5X4sjj+zrU9aHnRlEnrd7YGptd0x2Jf/RbH9PAiovadckSnEsJ661OgPFuH9B4O6e202vIN0h9xHXSJh1wRP5Vqv1uI6Wn9Gxmrwzqrii1gqhEscJanuAlGas+s2/uzvetgS72NpHZ6aHbZstmh/wPq1seEeJxjYGRgYADi31ySEvH8Nl8ZuJlfAEUYalQ3NCLo/6+ZpzLdAnI5GJhAogAiBgraeJxjYGRgYA76nwUkXzAAAfNUBkYGVKALAFb4A3EAAAB4nGNgYGBgfjG0MAAMzihlAAAAAABOAJoA6AEKASwBTgFwAZoBxAHuAhoCnALoBJoEvATWBPIFDgUqBXoF0AX+BkQGlga4BwgHagfiCGoIpAi8CVAJmAoQCiwKVgqQCtYLGAtOC4gL6AwuDFR4nGNgZGBg0GVMYRBlAAEmIOYCQgaG/2A+AwAYygG+AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjuduwzAMhH2NnTqOk+6993TfSZFY24giGZTVon36eiRFf5SAiO/A05HBWtBXEvxfGdYwQIgIQ6wjxggJxkgxwRQb2MQWtrGDXexhHwc4xBGOcYJTnOEcF7jEFa5xg1vc4R4PeMQTnvGCV2R4C1Khy9xkkkxNnPRC03s97pHLvKgTYXJNmbKfZom9o8POEffsq0Qw28+ltcPe2uHS2rGvRjPBmSwE1+GMtI6l0GSU4JEsSM4XgudpQx9sTRf3K9rAyUr0962UryKprZwPpM0jyda5uP2qrVBjxSLPCmGUplixrdpBSKqsI2oO4gF9Udq8TJVOzDSpcEHGR4vSeJdaVsSkMl26OqoKa6jttQ0rLb6a5l3YjO2QqV01YXLlNy2XDR0JlkXojbJTb/5GDX3V+kPviIPgB9AUks0AAAA=)
1523
+ 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==)
1511
1524
  format('woff');
1512
1525
  font-weight: normal;
1513
1526
  font-style: normal;
@@ -1537,33 +1550,31 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1537
1550
  --lumo-icons-cog: '\\ea15';
1538
1551
  --lumo-icons-cross: '\\ea16';
1539
1552
  --lumo-icons-download: '\\ea17';
1540
- --lumo-icons-drag-handle: '\\ea18';
1541
- --lumo-icons-dropdown: '\\ea19';
1542
- --lumo-icons-edit: '\\ea1a';
1543
- --lumo-icons-error: '\\ea1b';
1544
- --lumo-icons-eye: '\\ea1c';
1545
- --lumo-icons-eye-disabled: '\\ea1d';
1546
- --lumo-icons-menu: '\\ea1e';
1547
- --lumo-icons-minus: '\\ea1f';
1548
- --lumo-icons-ordered-list: '\\ea20';
1549
- --lumo-icons-phone: '\\ea21';
1550
- --lumo-icons-photo: '\\ea22';
1551
- --lumo-icons-play: '\\ea23';
1552
- --lumo-icons-plus: '\\ea24';
1553
- --lumo-icons-redo: '\\ea25';
1554
- --lumo-icons-reload: '\\ea26';
1555
- --lumo-icons-resize-handle: '\\ea27';
1556
- --lumo-icons-search: '\\ea28';
1557
- --lumo-icons-undo: '\\ea29';
1558
- --lumo-icons-unordered-list: '\\ea2a';
1559
- --lumo-icons-upload: '\\ea2b';
1560
- --lumo-icons-user: '\\ea2c';
1561
- }
1562
- `;wt("font-icons",bd);/**
1553
+ --lumo-icons-dropdown: '\\ea18';
1554
+ --lumo-icons-edit: '\\ea19';
1555
+ --lumo-icons-error: '\\ea1a';
1556
+ --lumo-icons-eye: '\\ea1b';
1557
+ --lumo-icons-eye-disabled: '\\ea1c';
1558
+ --lumo-icons-menu: '\\ea1d';
1559
+ --lumo-icons-minus: '\\ea1e';
1560
+ --lumo-icons-ordered-list: '\\ea1f';
1561
+ --lumo-icons-phone: '\\ea20';
1562
+ --lumo-icons-photo: '\\ea21';
1563
+ --lumo-icons-play: '\\ea22';
1564
+ --lumo-icons-plus: '\\ea23';
1565
+ --lumo-icons-redo: '\\ea24';
1566
+ --lumo-icons-reload: '\\ea25';
1567
+ --lumo-icons-search: '\\ea26';
1568
+ --lumo-icons-undo: '\\ea27';
1569
+ --lumo-icons-unordered-list: '\\ea28';
1570
+ --lumo-icons-upload: '\\ea29';
1571
+ --lumo-icons-user: '\\ea2a';
1572
+ }
1573
+ `;xt("font-icons",vh);/**
1563
1574
  * @license
1564
1575
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1565
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */const Us=F`
1577
+ */const Ys=F`
1567
1578
  [part$='button'] {
1568
1579
  flex: none;
1569
1580
  width: 1em;
@@ -1590,11 +1601,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1590
1601
  font-family: 'lumo-icons';
1591
1602
  display: block;
1592
1603
  }
1593
- `;Q("",Us,{moduleId:"lumo-field-button"});/**
1604
+ `;Q("",Ys,{moduleId:"lumo-field-button"});/**
1594
1605
  * @license
1595
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1596
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
- */const vd=F`
1608
+ */const yh=F`
1598
1609
  :host {
1599
1610
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1600
1611
  }
@@ -1654,7 +1665,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1654
1665
  * @license
1655
1666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1656
1667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1657
- */const js=F`
1668
+ */const Gs=F`
1658
1669
  [part='label'] {
1659
1670
  align-self: flex-start;
1660
1671
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1766,11 +1777,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1766
1777
  margin-left: 0;
1767
1778
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1768
1779
  }
1769
- `;Q("",js,{moduleId:"lumo-required-field"});/**
1780
+ `;Q("",Gs,{moduleId:"lumo-required-field"});/**
1770
1781
  * @license
1771
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1772
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1773
- */const yd=F`
1784
+ */const xh=F`
1774
1785
  :host {
1775
1786
  --lumo-text-field-size: var(--lumo-size-m);
1776
1787
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1901,7 +1912,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1901
1912
  [part='clear-button']::before {
1902
1913
  content: var(--lumo-icons-cross);
1903
1914
  }
1904
- `,Vs=[js,Us,vd,yd];Q("",Vs,{moduleId:"lumo-input-field-shared-styles"});const xd=F`
1915
+ `,Ws=[Gs,Ys,yh,xh];Q("",Ws,{moduleId:"lumo-input-field-shared-styles"});const wh=F`
1905
1916
  [part='toggle-button']::before {
1906
1917
  content: var(--lumo-icons-calendar);
1907
1918
  }
@@ -1923,7 +1934,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
1923
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1924
1935
  --_lumo-text-field-overflow-mask-image: none;
1925
1936
  }
1926
- `;Q("vaadin-date-picker",[Vs,xd],{moduleId:"lumo-date-picker"});/**
1937
+ `;Q("vaadin-date-picker",[Ws,wh],{moduleId:"lumo-date-picker"});/**
1927
1938
  @license
1928
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1929
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1939,7 +1950,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1939
1950
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1940
1951
  Code distributed by Google as part of the polymer project is also
1941
1952
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1942
- */let wd=/(url\()([^)]*)(\))/g,Ed=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ti,_e;function Bt(t,i){if(t&&Ed.test(t)||t==="//")return t;if(ti===void 0){ti=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ti=e.href==="http://a/c%20d"}catch(e){}}if(i||(i=document.baseURI||window.location.href),ti)try{return new URL(t,i).href}catch(e){return t}return _e||(_e=document.implementation.createHTMLDocument("temp"),_e.base=_e.createElement("base"),_e.head.appendChild(_e.base),_e.anchor=_e.createElement("a"),_e.body.appendChild(_e.anchor)),_e.base.href=i,_e.anchor.href=t,_e.anchor.href||t}function tn(t,i){return t.replace(wd,function(e,r,n,o){return r+"'"+Bt(n.replace(/["']/g,""),i)+"'"+o})}function rn(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
1953
+ */let Eh=/(url\()([^)]*)(\))/g,Sh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ei,_e;function Lt(t,i){if(t&&Sh.test(t)||t==="//")return t;if(ei===void 0){ei=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ei=e.href==="http://a/c%20d"}catch(e){}}if(i||(i=document.baseURI||window.location.href),ei)try{return new URL(t,i).href}catch(e){return t}return _e||(_e=document.implementation.createHTMLDocument("temp"),_e.base=_e.createElement("base"),_e.head.appendChild(_e.base),_e.anchor=_e.createElement("a"),_e.body.appendChild(_e.anchor)),_e.base.href=i,_e.anchor.href=t,_e.anchor.href||t}function nn(t,i){return t.replace(Eh,function(e,r,n,o){return r+"'"+Lt(n.replace(/["']/g,""),i)+"'"+o})}function on(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
1943
1954
  @license
1944
1955
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1945
1956
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1947,7 +1958,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1947
1958
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1948
1959
  Code distributed by Google as part of the polymer project is also
1949
1960
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1950
- */const Ys=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Sd=Ys&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[t],i.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Ad=window.Polymer&&window.Polymer.rootPath||rn(document.baseURI||window.location.href),bi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let vi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Cd=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Gs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ws=window.Polymer&&window.Polymer.legacyWarnings||!1,Td=window.Polymer&&window.Polymer.syncInitialRender||!1,Tr=window.Polymer&&window.Polymer.legacyUndefined||!1,Pd=window.Polymer&&window.Polymer.orderedComputed||!1,no=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Dd=window.Polymer&&window.Polymer.fastDomIf||!1,oo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let kd=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1961
+ */const qs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Ah=qs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const i=document.createElement("div");return i.attachShadow({mode:"open"}),i.shadowRoot.adoptedStyleSheets=[t],i.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Ch=window.Polymer&&window.Polymer.rootPath||on(document.baseURI||window.location.href),gi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let bi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Th=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Xs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ks=window.Polymer&&window.Polymer.legacyWarnings||!1,Ph=window.Polymer&&window.Polymer.syncInitialRender||!1,Tr=window.Polymer&&window.Polymer.legacyUndefined||!1,Dh=window.Polymer&&window.Polymer.orderedComputed||!1,ao=window.Polymer&&window.Polymer.removeNestedTemplates||!1,kh=window.Polymer&&window.Polymer.fastDomIf||!1,lo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Mh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1951
1962
  @license
1952
1963
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1953
1964
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1955,7 +1966,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1955
1966
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1956
1967
  Code distributed by Google as part of the polymer project is also
1957
1968
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1958
- */let Md=0;const te=function(t){let i=t.__mixinApplications;i||(i=new WeakMap,t.__mixinApplications=i);let e=Md++;function r(n){let o=n.__mixinSet;if(o&&o[e])return n;let s=i,a=s.get(n);if(!a){a=t(n),s.set(n,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1969
+ */let Oh=0;const te=function(t){let i=t.__mixinApplications;i||(i=new WeakMap,t.__mixinApplications=i);let e=Oh++;function r(n){let o=n.__mixinSet;if(o&&o[e])return n;let s=i,a=s.get(n);if(!a){a=t(n),s.set(n,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
1959
1970
  @license
1960
1971
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1961
1972
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1963,7 +1974,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1963
1974
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1964
1975
  Code distributed by Google as part of the polymer project is also
1965
1976
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1966
- */let nn={},qs={};function so(t,i){nn[t]=qs[t.toLowerCase()]=i}function ao(t){return nn[t]||qs[t.toLowerCase()]}function Od(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Vt extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,e){if(i){let r=ao(i);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(i,e,r,n){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Bt(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=rn(e)}return this.__assetpath}register(i){if(i=i||this.id,i){if(vi&&ao(i)!==void 0)throw so(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,so(i,this),Od(this)}}}Vt.prototype.modules=nn;customElements.define("dom-module",Vt);/**
1977
+ */let sn={},Js={};function uo(t,i){sn[t]=Js[t.toLowerCase()]=i}function co(t){return sn[t]||Js[t.toLowerCase()]}function Ih(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Ut extends HTMLElement{static get observedAttributes(){return["id"]}static import(i,e){if(i){let r=co(i);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(i,e,r,n){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Lt(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=on(e)}return this.__assetpath}register(i){if(i=i||this.id,i){if(bi&&co(i)!==void 0)throw uo(i,null),new Error(`strictTemplatePolicy: dom-module ${i} re-registered`);this.id=i,uo(i,this),Ih(this)}}}Ut.prototype.modules=sn;customElements.define("dom-module",Ut);/**
1967
1978
  @license
1968
1979
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1969
1980
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1971,7 +1982,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1971
1982
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1972
1983
  Code distributed by Google as part of the polymer project is also
1973
1984
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1974
- */const Id="link[rel=import][type~=css]",Nd="include",lo="shady-unscoped";function Xs(t){return Vt.import(t)}function uo(t){let i=t.body?t.body:t;const e=tn(i.textContent,t.baseURI),r=document.createElement("style");return r.textContent=e,r}function Hd(t){const i=t.trim().split(/\s+/),e=[];for(let r=0;r<i.length;r++)e.push(...Ld(i[r]));return e}function Ld(t){const i=Xs(t);if(!i)return console.warn("Could not find style data in module named",t),[];if(i._styles===void 0){const e=[];e.push(...Js(i));const r=i.querySelector("template");r&&e.push(...Ks(r,i.assetpath)),i._styles=e}return i._styles}function Ks(t,i){if(!t._styles){const e=[],r=t.content.querySelectorAll("style");for(let n=0;n<r.length;n++){let o=r[n],s=o.getAttribute(Nd);s&&e.push(...Hd(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(o.textContent=tn(o.textContent,i)),e.push(o)}t._styles=e}return t._styles}function Bd(t){let i=Xs(t);return i?Js(i):[]}function Js(t){const i=[],e=t.querySelectorAll(Id);for(let r=0;r<e.length;r++){let n=e[r];if(n.import){const o=n.import,s=n.hasAttribute(lo);if(s&&!o._unscopedStyle){const a=uo(o);a.setAttribute(lo,""),o._unscopedStyle=a}else o._style||(o._style=uo(o));i.push(s?o._unscopedStyle:o._style)}}return i}/**
1985
+ */const Nh="link[rel=import][type~=css]",Lh="include",ho="shady-unscoped";function Zs(t){return Ut.import(t)}function fo(t){let i=t.body?t.body:t;const e=nn(i.textContent,t.baseURI),r=document.createElement("style");return r.textContent=e,r}function Hh(t){const i=t.trim().split(/\s+/),e=[];for(let r=0;r<i.length;r++)e.push(...$h(i[r]));return e}function $h(t){const i=Zs(t);if(!i)return console.warn("Could not find style data in module named",t),[];if(i._styles===void 0){const e=[];e.push(...ea(i));const r=i.querySelector("template");r&&e.push(...Qs(r,i.assetpath)),i._styles=e}return i._styles}function Qs(t,i){if(!t._styles){const e=[],r=t.content.querySelectorAll("style");for(let n=0;n<r.length;n++){let o=r[n],s=o.getAttribute(Lh);s&&e.push(...Hh(s).filter(function(a,l,u){return u.indexOf(a)===l})),i&&(o.textContent=nn(o.textContent,i)),e.push(o)}t._styles=e}return t._styles}function Bh(t){let i=Zs(t);return i?ea(i):[]}function ea(t){const i=[],e=t.querySelectorAll(Nh);for(let r=0;r<e.length;r++){let n=e[r];if(n.import){const o=n.import,s=n.hasAttribute(ho);if(s&&!o._unscopedStyle){const a=fo(o);a.setAttribute(ho,""),o._unscopedStyle=a}else o._style||(o._style=fo(o));i.push(s?o._unscopedStyle:o._style)}}return i}/**
1975
1986
  @license
1976
1987
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1977
1988
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1987,7 +1998,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1987
1998
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1988
1999
  Code distributed by Google as part of the polymer project is also
1989
2000
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1990
- */function Pr(t){return t.indexOf(".")>=0}function Ke(t){let i=t.indexOf(".");return i===-1?t:t.slice(0,i)}function Zs(t,i){return t.indexOf(i+".")===0}function Yt(t,i){return i.indexOf(t+".")===0}function Gt(t,i,e){return i+e.slice(t.length)}function $d(t,i){return t===i||Zs(t,i)||Yt(t,i)}function Mt(t){if(Array.isArray(t)){let i=[];for(let e=0;e<t.length;e++){let r=t[e].toString().split(".");for(let n=0;n<r.length;n++)i.push(r[n])}return i.join(".")}else return t}function Qs(t){return Array.isArray(t)?Mt(t).split("."):t.toString().split(".")}function fe(t,i,e){let r=t,n=Qs(i);for(let o=0;o<n.length;o++){if(!r)return;let s=n[o];r=r[s]}return e&&(e.path=n.join(".")),r}function co(t,i,e){let r=t,n=Qs(i),o=n[n.length-1];if(n.length>1){for(let s=0;s<n.length-1;s++){let a=n[s];if(r=r[a],!r)return}r[o]=e}else r[i]=e;return n.join(".")}/**
2001
+ */function Pr(t){return t.indexOf(".")>=0}function Xe(t){let i=t.indexOf(".");return i===-1?t:t.slice(0,i)}function ta(t,i){return t.indexOf(i+".")===0}function jt(t,i){return i.indexOf(t+".")===0}function Vt(t,i,e){return i+e.slice(t.length)}function Fh(t,i){return t===i||ta(t,i)||jt(t,i)}function kt(t){if(Array.isArray(t)){let i=[];for(let e=0;e<t.length;e++){let r=t[e].toString().split(".");for(let n=0;n<r.length;n++)i.push(r[n])}return i.join(".")}else return t}function ia(t){return Array.isArray(t)?kt(t).split("."):t.toString().split(".")}function fe(t,i,e){let r=t,n=ia(i);for(let o=0;o<n.length;o++){if(!r)return;let s=n[o];r=r[s]}return e&&(e.path=n.join(".")),r}function po(t,i,e){let r=t,n=ia(i),o=n[n.length-1];if(n.length>1){for(let s=0;s<n.length-1;s++){let a=n[s];if(r=r[a],!r)return}r[o]=e}else r[i]=e;return n.join(".")}/**
1991
2002
  @license
1992
2003
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1993
2004
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1995,7 +2006,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1995
2006
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1996
2007
  Code distributed by Google as part of the polymer project is also
1997
2008
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1998
- */const yi={},Fd=/-[a-z]/g,Rd=/([A-Z])/g;function ea(t){return yi[t]||(yi[t]=t.indexOf("-")<0?t:t.replace(Fd,i=>i[1].toUpperCase()))}function ki(t){return yi[t]||(yi[t]=t.replace(Rd,"-$1").toLowerCase())}/**
2009
+ */const vi={},Rh=/-[a-z]/g,zh=/([A-Z])/g;function ra(t){return vi[t]||(vi[t]=t.indexOf("-")<0?t:t.replace(Rh,i=>i[1].toUpperCase()))}function Di(t){return vi[t]||(vi[t]=t.replace(zh,"-$1").toLowerCase())}/**
1999
2010
  @license
2000
2011
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2001
2012
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2003,7 +2014,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2003
2014
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2004
2015
  Code distributed by Google as part of the polymer project is also
2005
2016
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2006
- */let zd=0,ta=0,at=[],Ud=0,Dr=!1,ia=document.createTextNode("");new window.MutationObserver(jd).observe(ia,{characterData:!0});function jd(){Dr=!1;const t=at.length;for(let i=0;i<t;i++){let e=at[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}at.splice(0,t),ta+=t}const Vd={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},ra={run(t){return Dr||(Dr=!0,ia.textContent=Ud++),at.push(t),zd++},cancel(t){const i=t-ta;if(i>=0){if(!at[i])throw new Error("invalid async handle: "+t);at[i]=null}}};/**
2017
+ */let Uh=0,na=0,st=[],jh=0,Dr=!1,oa=document.createTextNode("");new window.MutationObserver(Vh).observe(oa,{characterData:!0});function Vh(){Dr=!1;const t=st.length;for(let i=0;i<t;i++){let e=st[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}st.splice(0,t),na+=t}const Yh={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},sa={run(t){return Dr||(Dr=!0,oa.textContent=jh++),st.push(t),Uh++},cancel(t){const i=t-na;if(i>=0){if(!st[i])throw new Error("invalid async handle: "+t);st[i]=null}}};/**
2007
2018
  @license
2008
2019
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2009
2020
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2011,7 +2022,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2011
2022
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2012
2023
  Code distributed by Google as part of the polymer project is also
2013
2024
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2014
- */const Yd=ra,na=te(t=>{class i extends t{static createProperties(r){const n=this.prototype;for(let o in r)o in n||n._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,n){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,n))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[r];return n||(n=this.constructor.attributeNameForProperty(r),this.__dataAttributes[n]=r),n}_definePropertyAccessor(r,n){Object.defineProperty(this,r,{get(){return this.__data[r]},set:n?function(){}:function(o){this._setPendingProperty(r,o,!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,n){this._setPendingProperty(r,n)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,n,o){let s=this.__data[r],a=this._shouldPropertyChange(r,n,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=n,this.__dataPending[r]=n),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Yd.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,n=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,n,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,n,o)),this.__dataCounter--}_shouldPropertiesChange(r,n,o){return!!n}_propertiesChanged(r,n,o){}_shouldPropertyChange(r,n,o){return o!==n&&(o===o||n===n)}attributeChangedCallback(r,n,o,s){n!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,n,o,s)}_attributeToProperty(r,n,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(n,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,n,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,n||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,n,o){const s=this._serializeValue(n);(o==="class"||o==="name"||o==="slot")&&(r=se(r)),s===void 0?r.removeAttribute(o):r.setAttribute(o,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,n){switch(n){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2025
+ */const Gh=sa,aa=te(t=>{class i extends t{static createProperties(r){const n=this.prototype;for(let o in r)o in n||n._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,n){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,n))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[r];return n||(n=this.constructor.attributeNameForProperty(r),this.__dataAttributes[n]=r),n}_definePropertyAccessor(r,n){Object.defineProperty(this,r,{get(){return this.__data[r]},set:n?function(){}:function(o){this._setPendingProperty(r,o,!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,n){this._setPendingProperty(r,n)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,n,o){let s=this.__data[r],a=this._shouldPropertyChange(r,n,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=n,this.__dataPending[r]=n),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Gh.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,n=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,n,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,n,o)),this.__dataCounter--}_shouldPropertiesChange(r,n,o){return!!n}_propertiesChanged(r,n,o){}_shouldPropertyChange(r,n,o){return o!==n&&(o===o||n===n)}attributeChangedCallback(r,n,o,s){n!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,n,o,s)}_attributeToProperty(r,n,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(n,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,n,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,n||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,n,o){const s=this._serializeValue(n);(o==="class"||o==="name"||o==="slot")&&(r=se(r)),s===void 0?r.removeAttribute(o):r.setAttribute(o,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,n){switch(n){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return i});/**
2015
2026
  @license
2016
2027
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2017
2028
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2019,7 +2030,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2019
2030
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2020
2031
  Code distributed by Google as part of the polymer project is also
2021
2032
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2022
- */const oa={};let ii=HTMLElement.prototype;for(;ii;){let t=Object.getOwnPropertyNames(ii);for(let i=0;i<t.length;i++)oa[t[i]]=!0;ii=Object.getPrototypeOf(ii)}const Gd=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function Wd(t,i){if(!oa[i]){let e=t[i];e!==void 0&&(t.__data?t._setPendingProperty(i,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[i]=e))}}const qd=te(t=>{const i=na(t);class e extends i{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let o=0;o<n.length;o++)this.prototype._createPropertyAccessor(ea(n[o]))}static attributeNameForProperty(n){return ki(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let o in n)this._setProperty(o,n[o])}_ensureAttribute(n,o){const s=this;s.hasAttribute(n)||this._valueToNodeAttribute(s,o,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(Gd(n))return n;try{return JSON.stringify(n)}catch(o){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,o){let s;switch(o){case Object:try{s=JSON.parse(n)}catch(a){s=n}break;case Array:try{s=JSON.parse(n)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:s=isNaN(n)?String(n):Number(n),s=new Date(s);break;default:s=super._deserializeValue(n,o);break}return s}_definePropertyAccessor(n,o){Wd(this,n),super._definePropertyAccessor(n,o)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return e});/**
2033
+ */const la={};let ti=HTMLElement.prototype;for(;ti;){let t=Object.getOwnPropertyNames(ti);for(let i=0;i<t.length;i++)la[t[i]]=!0;ti=Object.getPrototypeOf(ti)}const Wh=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function qh(t,i){if(!la[i]){let e=t[i];e!==void 0&&(t.__data?t._setPendingProperty(i,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[i]=e))}}const Xh=te(t=>{const i=aa(t);class e extends i{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let o=0;o<n.length;o++)this.prototype._createPropertyAccessor(ra(n[o]))}static attributeNameForProperty(n){return Di(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let o in n)this._setProperty(o,n[o])}_ensureAttribute(n,o){const s=this;s.hasAttribute(n)||this._valueToNodeAttribute(s,o,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(Wh(n))return n;try{return JSON.stringify(n)}catch(o){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,o){let s;switch(o){case Object:try{s=JSON.parse(n)}catch(a){s=n}break;case Array:try{s=JSON.parse(n)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:s=isNaN(n)?String(n):Number(n),s=new Date(s);break;default:s=super._deserializeValue(n,o);break}return s}_definePropertyAccessor(n,o){qh(this,n),super._definePropertyAccessor(n,o)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return e});/**
2023
2034
  @license
2024
2035
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2025
2036
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2027,7 +2038,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2027
2038
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2028
2039
  Code distributed by Google as part of the polymer project is also
2029
2040
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2030
- */const Xd={"dom-if":!0,"dom-repeat":!0};let ho=!1,fo=!1;function Kd(){if(!ho){ho=!0;const t=document.createElement("textarea");t.placeholder="a",fo=t.placeholder===t.textContent}return fo}function Jd(t){Kd()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Zd=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,e,r)=>{const n=e.getAttribute(r);if(t&&r.startsWith("on-")){i.setAttribute(r,t.createScript(n,r));return}i.setAttribute(r,n)}})();function Qd(t){let i=t.getAttribute("is");if(i&&Xd[i]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(i),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];Zd(t,e,r),e.removeAttribute(r)}}return t}function sa(t,i){let e=i.parentInfo&&sa(t,i.parentInfo);if(e){for(let r=e.firstChild,n=0;r;r=r.nextSibling)if(i.parentIndex===n++)return r}else return t}function eh(t,i,e,r){r.id&&(i[r.id]=e)}function th(t,i,e){if(e.events&&e.events.length)for(let r=0,n=e.events,o;r<n.length&&(o=n[r]);r++)t._addMethodEventListenerToNode(i,o.name,o.value,t)}function ih(t,i,e,r){e.templateInfo&&(i._templateInfo=e.templateInfo,i._parentTemplateInfo=r)}function rh(t,i,e){return t=t._methodHost||t,function(n){t[e]?t[e](n,n.detail):console.warn("listener method `"+e+"` not defined")}}const nh=te(t=>{class i extends t{static _parseTemplate(r,n){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!n,o.stripWhiteSpace=n&&n.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,n,o){return this._parseTemplateNode(r.content,n,o)}static _parseTemplateNode(r,n,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,n,o)||s:a.localName==="slot"&&(n.hasInsertionPoint=!0),Jd(a),a.firstChild&&this._parseTemplateChildNodes(a,n,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,n,o)||s),s||o.noted}static _parseTemplateChildNodes(r,n,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Qd(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(n.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,n,u)&&(u.infoIndex=n.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,n,o){let s=r,a=this._parseTemplate(s,n);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,n,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,n,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,n,o,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:a}),!0):s==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let n=r._templateInfo;return n&&n.content||r.content}_stampTemplate(r,n){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),n=n||this.constructor._parseTemplate(r);let o=n.nodeInfoList,s=n.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!n.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,d;u<c&&(d=o[u]);u++){let h=l[u]=sa(a,d);eh(this,a.$,h,d),ih(this,h,d,n),th(this,h,d)}return a=a,a}_addMethodEventListenerToNode(r,n,o,s){s=s||r;let a=rh(s,n,o);return this._addEventListenerToNode(r,n,a),a}_addEventListenerToNode(r,n,o){r.addEventListener(n,o)}_removeEventListenerFromNode(r,n,o){r.removeEventListener(n,o)}}return i});/**
2041
+ */const Kh={"dom-if":!0,"dom-repeat":!0};let mo=!1,_o=!1;function Jh(){if(!mo){mo=!0;const t=document.createElement("textarea");t.placeholder="a",_o=t.placeholder===t.textContent}return _o}function Zh(t){Jh()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Qh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:i=>i});return(i,e,r)=>{const n=e.getAttribute(r);if(t&&r.startsWith("on-")){i.setAttribute(r,t.createScript(n,r));return}i.setAttribute(r,n)}})();function ed(t){let i=t.getAttribute("is");if(i&&Kh[i]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(i),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];Qh(t,e,r),e.removeAttribute(r)}}return t}function ua(t,i){let e=i.parentInfo&&ua(t,i.parentInfo);if(e){for(let r=e.firstChild,n=0;r;r=r.nextSibling)if(i.parentIndex===n++)return r}else return t}function td(t,i,e,r){r.id&&(i[r.id]=e)}function id(t,i,e){if(e.events&&e.events.length)for(let r=0,n=e.events,o;r<n.length&&(o=n[r]);r++)t._addMethodEventListenerToNode(i,o.name,o.value,t)}function rd(t,i,e,r){e.templateInfo&&(i._templateInfo=e.templateInfo,i._parentTemplateInfo=r)}function nd(t,i,e){return t=t._methodHost||t,function(n){t[e]?t[e](n,n.detail):console.warn("listener method `"+e+"` not defined")}}const od=te(t=>{class i extends t{static _parseTemplate(r,n){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!n,o.stripWhiteSpace=n&&n.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,n,o){return this._parseTemplateNode(r.content,n,o)}static _parseTemplateNode(r,n,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,n,o)||s:a.localName==="slot"&&(n.hasInsertionPoint=!0),Zh(a),a.firstChild&&this._parseTemplateChildNodes(a,n,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,n,o)||s),s||o.noted}static _parseTemplateChildNodes(r,n,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=ed(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(n.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,n,u)&&(u.infoIndex=n.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,n,o){let s=r,a=this._parseTemplate(s,n);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,n,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,n,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,n,o,s,a){return s.slice(0,3)==="on-"?(r.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:a}),!0):s==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let n=r._templateInfo;return n&&n.content||r.content}_stampTemplate(r,n){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),n=n||this.constructor._parseTemplate(r);let o=n.nodeInfoList,s=n.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!n.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,h;u<c&&(h=o[u]);u++){let d=l[u]=ua(a,h);td(this,a.$,d,h),rd(this,d,h,n),id(this,d,h)}return a=a,a}_addMethodEventListenerToNode(r,n,o,s){s=s||r;let a=nd(s,n,o);return this._addEventListenerToNode(r,n,a),a}_addEventListenerToNode(r,n,o){r.addEventListener(n,o)}_removeEventListenerFromNode(r,n,o){r.removeEventListener(n,o)}}return i});/**
2031
2042
  * @fileoverview
2032
2043
  * @suppress {checkPrototypalTypes}
2033
2044
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2037,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2037
2048
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2038
2049
  * Google as part of the polymer project is also subject to an additional IP
2039
2050
  * rights grant found at http://polymer.github.io/PATENTS.txt
2040
- */let Wt=0;const qt=[],U={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},aa="__computeInfo",oh=/[A-Z]/;function Xi(t,i,e){let r=t[i];if(!r)r=t[i]={};else if(!t.hasOwnProperty(i)&&(r=t[i]=Object.create(t[i]),e))for(let n in r){let o=r[n],s=r[n]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function Ot(t,i,e,r,n,o){if(i){let s=!1;const a=Wt++;for(let l in e){let u=n?Ke(l):l,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==a)&&(!n||on(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,r,f.info,n,o),s=!0)}return s}return!1}function sh(t,i,e,r,n,o,s,a){let l=!1,u=s?Ke(r):r,c=i[u];if(c)for(let d=0,h=c.length,f;d<h&&(f=c[d]);d++)(!f.info||f.info.lastRun!==e)&&(!s||on(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,r,n,o,f.info,s,a),l=!0);return l}function on(t,i){if(i){let e=i.name;return e==t||!!(i.structured&&Zs(e,t))||!!(i.wildcard&&Yt(e,t))}else return!0}function po(t,i,e,r,n){let o=typeof n.method=="string"?t[n.method]:n.method,s=n.property;o?o.call(t,t.__data[s],r[s]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function ah(t,i,e,r,n){let o=t[U.NOTIFY],s,a=Wt++;for(let u in i)i[u]&&(o&&sh(t,o,a,u,e,r,n)||n&&lh(t,u,e))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function lh(t,i,e){let r=Ke(i);if(r!==i){let n=ki(r)+"-changed";return la(t,n,e[i],i),!0}return!1}function la(t,i,e,r){let n={value:e,queueProperty:!0};r&&(n.path=r),se(t).dispatchEvent(new CustomEvent(i,{detail:n}))}function uh(t,i,e,r,n,o){let a=(o?Ke(i):i)!=i?i:null,l=a?fe(t,a):t.__data[i];a&&l===void 0&&(l=e[i]),la(t,n.eventName,l,a)}function ch(t,i,e,r,n){let o,s=t.detail,a=s&&s.path;a?(r=Gt(e,r,a),o=s&&s.value):o=t.currentTarget[e],o=n?!o:o,(!i[U.READ_ONLY]||!i[U.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function dh(t,i,e,r,n){let o=t.__data[i];bi&&(o=bi(o,n.attrName,"attribute",t)),t._propertyToAttribute(i,n.attrName,o)}function hh(t,i,e,r){let n=t[U.COMPUTE];if(n)if(Pd){Wt++;const o=ph(t),s=[];for(let l in i)mo(l,n,s,o,r);let a;for(;a=s.shift();)ua(t,"",i,e,a)&&mo(a.methodInfo,n,s,o,r);Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let o=i;for(;Ot(t,n,o,e,r);)Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const fh=(t,i,e)=>{let r=0,n=i.length-1,o=-1;for(;r<=n;){const s=r+n>>1,a=e.get(i[s].methodInfo)-e.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)n=s-1;else{o=s;break}}o<0&&(o=n+1),i.splice(o,0,t)},mo=(t,i,e,r,n)=>{const o=n?Ke(t):t,s=i[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Wt&&(!n||on(t,l.trigger))&&(l.info.lastRun=Wt,fh(l.info,e,r))}};function ph(t){let i=t.constructor.__orderedComputedDeps;if(!i){i=new Map;const e=t[U.COMPUTE];let{counts:r,ready:n,total:o}=mh(t),s;for(;s=n.shift();){i.set(s,i.size);const a=e[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&n.push(u)})}o!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=i}return i}function mh(t){const i=t[aa],e={},r=t[U.COMPUTE],n=[];let o=0;for(let s in i){const a=i[s];o+=e[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||n.push(s);return{counts:e,ready:n,total:o}}function ua(t,i,e,r,n){let o=kr(t,i,e,r,n);if(o===qt)return!1;let s=n.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function _h(t,i,e){let r=t.__dataLinkedPaths;if(r){let n;for(let o in r){let s=r[o];Yt(o,i)?(n=Gt(o,s,i),t._setPendingPropertyOrPath(n,e,!0,!0)):Yt(s,i)&&(n=Gt(s,o,i),t._setPendingPropertyOrPath(n,e,!0,!0))}}}function Ki(t,i,e,r,n,o,s){e.bindings=e.bindings||[];let a={kind:r,target:n,parts:o,literal:s,isCompound:o.length!==1};if(e.bindings.push(a),xh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||ki(n)+"-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,gh(t,i,a,c,l)}}function gh(t,i,e,r,n){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:n,binding:e,part:r,evaluator:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=da(l),l.wildcard=!0),t._addTemplatePropertyEffect(i,l.rootProperty,{fn:bh,info:s,trigger:l})}}}function bh(t,i,e,r,n,o,s){let a=s[n.index],l=n.binding,u=n.part;if(o&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[i];i=Gt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&t._enqueueClient(a)}else{let c=n.evaluator._evaluateBinding(t,u,i,e,r,o);c!==qt&&vh(t,a,l,u,c)}}function vh(t,i,e,r,n){if(n=yh(i,n,e,r),bi&&(n=bi(n,e.target,e.kind,i)),e.kind=="attribute")t._valueToNodeAttribute(i,n,e.target);else{let o=e.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[o]?(!i[U.READ_ONLY]||!i[U.READ_ONLY][o])&&i._setPendingProperty(o,n)&&t._enqueueClient(i):t._setUnmanagedPropertyToNode(i,o,n)}}function yh(t,i,e,r){if(e.isCompound){let n=t.__dataCompoundStorage[e.target];n[r.compoundIndex]=i,i=n.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(i=i==null?"":i),i}function xh(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function wh(t,i){let{nodeList:e,nodeInfoList:r}=i;if(r.length)for(let n=0;n<r.length;n++){let o=r[n],s=e[n],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Eh(s,u),Sh(s,t,u)}s.__dataHost=t}}function Eh(t,i){if(i.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=i.parts,n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=r[s].literal;let o=i.target;e[o]=n,i.literal&&i.kind=="property"&&(o==="className"&&(t=se(t)),t[o]=i.literal)}}function Sh(t,i,e){if(e.listenerEvent){let r=e.parts[0];t.addEventListener(e.listenerEvent,function(n){ch(n,i,e.target,r.source,r.negate)})}}function _o(t,i,e,r,n,o){o=i.static||o&&(typeof o!="object"||o[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:n,dynamicFn:o};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:r,info:s,trigger:l});return o&&t._addPropertyEffect(i.methodName,e,{fn:r,info:s}),s}function kr(t,i,e,r,n){let o=t._methodHost||t,s=o[n.methodName];if(s){let a=t._marshalArgs(n.args,i,e);return a===qt?qt:s.apply(o,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const Ah=[],ca="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ch="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Th="(?:'(?:[^'\\\\]|\\\\.)*')",Ph='(?:"(?:[^"\\\\]|\\\\.)*")',Dh="(?:"+Th+"|"+Ph+")",go="(?:("+ca+"|"+Ch+"|"+Dh+")\\s*)",kh="(?:"+go+"(?:,\\s*"+go+")*)",Mh="(?:\\(\\s*(?:"+kh+"?)\\)\\s*)",Oh="("+ca+"\\s*"+Mh+"?)",Ih="(\\[\\[|{{)\\s*",Nh="(?:]]|}})",Hh="(?:(!)\\s*)?",Lh=Ih+Hh+Oh+Nh,bo=new RegExp(Lh,"g");function vo(t){let i="";for(let e=0;e<t.length;e++){let r=t[e].literal;i+=r||""}return i}function Ji(t){let i=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:Ah};if(i[2].trim()){let n=i[2].replace(/\\,/g,"&comma;").split(",");return Bh(n,r)}else return r}return null}function Bh(t,i){return i.args=t.map(function(e){let r=da(e);return r.literal||(i.static=!1),r},this),i}function da(t){let i=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=i.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(i),e.literal=!0;break}return e.literal||(e.rootProperty=Ke(i),e.structured=Pr(i),e.structured&&(e.wildcard=i.slice(-2)==".*",e.wildcard&&(e.name=i.slice(0,-2)))),e}function yo(t,i,e){let r=fe(t,e);return r===void 0&&(r=i[e]),r}function ha(t,i,e,r){const n={indexSplices:r};Tr&&!t._overrideLegacyUndefined&&(i.splices=n),t.notifyPath(e+".splices",n),t.notifyPath(e+".length",i.length),Tr&&!t._overrideLegacyUndefined&&(n.indexSplices=[])}function Pt(t,i,e,r,n,o){ha(t,i,e,[{index:r,addedCount:n,removed:o,object:i,type:"splice"}])}function $h(t){return t[0].toUpperCase()+t.substring(1)}const sn=te(t=>{const i=nh(qd(t));class e 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(Dt.length){let n=Dt[Dt.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let o=this[U.READ_ONLY];for(let s in n)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=n[s])}_addPropertyEffect(n,o,s){this._createPropertyAccessor(n,o==U.READ_ONLY);let a=Xi(this,o,!0)[n];a||(a=this[o][n]=[]),a.push(s)}_removePropertyEffect(n,o,s){let a=Xi(this,o,!0)[n],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,o){let s=this[o];return!!(s&&s[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,U.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,U.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,U.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,U.COMPUTE)}_setPendingPropertyOrPath(n,o,s,a){if(a||Ke(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=fe(this,n);if(n=co(this,n,o),!n||!super._shouldPropertyChange(n,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,o,s))return _h(this,n,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,o,s);this[n]=o}return!1}_setUnmanagedPropertyToNode(n,o,s){(s!==n[o]||typeof s=="object")&&(o==="className"&&(n=se(n)),n[o]=s)}_setPendingProperty(n,o,s){let a=this.__dataHasPaths&&Pr(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,o,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=o:this.__data[n]=o,this.__dataPending[n]=o,(a||this[U.NOTIFY]&&this[U.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=s),!0):!1}_setProperty(n,o){this._setPendingProperty(n,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let o=0;o<n.length;o++){let s=n[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,o){for(let s in n)(o||!this[U.READ_ONLY]||!this[U.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,n[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;hh(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Ot(this,this[U.REFLECT],o,s,a),Ot(this,this[U.OBSERVE],o,s,a),l&&ah(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,o,s){this[U.PROPAGATE]&&Ot(this,this[U.PROPAGATE],n,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,o,s)}_runEffectsForTemplate(n,o,s,a){const l=(u,c)=>{Ot(this,n.propertyEffects,u,s,c,n.nodeList);for(let d=n.firstChild;d;d=d.nextSibling)this._runEffectsForTemplate(d,u,s,c)};n.runEffects?n.runEffects(l,o,a):l(o,a)}linkPaths(n,o){n=Mt(n),o=Mt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=o}unlinkPaths(n){n=Mt(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,o){let s={path:""},a=fe(this,n,s);ha(this,a,s.path,o)}get(n,o){return fe(o||this,n)}set(n,o,s){s?co(s,n,o):(!this[U.READ_ONLY]||!this[U.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o,!0)&&this._invalidateProperties()}push(n,...o){let s={path:""},a=fe(this,n,s),l=a.length,u=a.push(...o);return o.length&&Pt(this,a,s.path,l,o.length,[]),u}pop(n){let o={path:""},s=fe(this,n,o),a=!!s.length,l=s.pop();return a&&Pt(this,s,o.path,s.length,0,[l]),l}splice(n,o,s,...a){let l={path:""},u=fe(this,n,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,s,...a),(a.length||c.length)&&Pt(this,u,l.path,o,a.length,c),c}shift(n){let o={path:""},s=fe(this,n,o),a=!!s.length,l=s.shift();return a&&Pt(this,s,o.path,0,0,[l]),l}unshift(n,...o){let s={path:""},a=fe(this,n,s),l=a.unshift(...o);return o.length&&Pt(this,a,s.path,0,o.length,[]),l}notifyPath(n,o){let s;if(arguments.length==1){let a={path:""};o=fe(this,n,a),s=a.path}else Array.isArray(n)?s=Mt(n):s=n;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,o){this._addPropertyEffect(n,U.READ_ONLY),o&&(this["_set"+$h(n)]=function(s){this._setProperty(n,s)})}_createPropertyObserver(n,o,s){let a={property:n,method:o,dynamicFn:!!s};this._addPropertyEffect(n,U.OBSERVE,{fn:po,info:a,trigger:{name:n}}),s&&this._addPropertyEffect(o,U.OBSERVE,{fn:po,info:a,trigger:{name:o}})}_createMethodObserver(n,o){let s=Ji(n);if(!s)throw new Error("Malformed observer expression '"+n+"'");_o(this,s,U.OBSERVE,kr,null,o)}_createNotifyingProperty(n){this._addPropertyEffect(n,U.NOTIFY,{fn:uh,info:{eventName:ki(n)+"-changed",property:n}})}_createReflectedProperty(n){let o=this.constructor.attributeNameForProperty(n);o[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,U.REFLECT,{fn:dh,info:{attrName:o}})}_createComputedProperty(n,o,s){let a=Ji(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=_o(this,a,U.COMPUTE,ua,n,s);Xi(this,aa)[n]=l}_marshalArgs(n,o,s){const a=this.__data,l=[];for(let u=0,c=n.length;u<c;u++){let{name:d,structured:h,wildcard:f,value:p,literal:v}=n[u];if(!v)if(f){const P=Yt(d,o),I=yo(a,s,P?o:d);p={path:P?o:d,value:I,base:P?fe(a,d):I}}else p=h?yo(a,s,d):a[d];if(Tr&&!this._overrideLegacyUndefined&&p===void 0&&n.length>1)return qt;l[u]=p}return l}static addPropertyEffect(n,o,s){this.prototype._addPropertyEffect(n,o,s)}static createPropertyObserver(n,o,s){this.prototype._createPropertyObserver(n,o,s)}static createMethodObserver(n,o){this.prototype._createMethodObserver(n,o)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,o){this.prototype._createReadOnlyProperty(n,o)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,o,s){this.prototype._createComputedProperty(n,o,s)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,o){let s=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(o)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=n._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(n,o,s){let a=n.hostProps=n.hostProps||{};a[o]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(n,o){o=o||this._bindTemplate(n,!0),Dt.push(this);let s=super._stampTemplate(n,o);if(Dt.pop(),o.nodeList=s.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=o,wh(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(n){const o=n.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=o;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let d=u[c];se(se(d).parentNode).removeChild(d)}}static _parseTemplateNode(n,o,s){let a=i._parseTemplateNode.call(this,n,o,s);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,o);l&&(n.textContent=vo(l)||" ",Ki(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,o,s,a,l){let u=this._parseBindings(l,o);if(u){let c=a,d="property";oh.test(a)?d="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),d="attribute");let h=vo(u);return h&&d=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(h+=" "+n.getAttribute(a)),n.setAttribute(a,h)),d=="attribute"&&c=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&c==="value"&&n.setAttribute(c,""),n.removeAttribute(c),d==="property"&&(a=ea(a)),Ki(this,o,s,d,a,u,h),!0}else return i._parseTemplateNodeAttribute.call(this,n,o,s,a,l)}static _parseTemplateNestedTemplate(n,o,s){let a=i._parseTemplateNestedTemplate.call(this,n,o,s);const l=n.parentNode,u=s.templateInfo,c=l.localName==="dom-if",d=l.localName==="dom-repeat";no&&(c||d)&&(l.removeChild(n),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(Dd&&c)h&&(o.hostProps=Object.assign(o.hostProps||{},h),no||(s.parentInfo.noted=!0));else{let f="{";for(let p in h){let v=[{mode:f,source:p,dependencies:[p],hostProp:!0}];Ki(this,o,s,"property","_host_"+p,v)}}return a}static _parseBindings(n,o){let s=[],a=0,l;for(;(l=bo.exec(n))!==null;){l.index>a&&s.push({literal:n.slice(a,l.index)});let u=l[1][0],c=!!l[2],d=l[3].trim(),h=!1,f="",p=-1;u=="{"&&(p=d.indexOf("::"))>0&&(f=d.substring(p+2),d=d.substring(0,p),h=!0);let v=Ji(d),P=[];if(v){let{args:I,methodName:k}=v;for(let L=0;L<I.length;L++){let M=I[L];M.literal||P.push(M)}let R=o.dynamicFns;(R&&R[k]||v.static)&&(P.push(k),v.dynamicFn=!0)}else P.push(d);s.push({source:d,mode:u,negate:c,customEvent:h,signature:v,dependencies:P,event:f}),a=bo.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(n,o,s,a,l,u){let c;return o.signature?c=kr(n,s,a,l,o.signature):s!=o.source?c=fe(n,o.source):u&&Pr(s)?c=fe(n,s):c=n.__data[s],o.negate&&(c=!c),c}}return e}),Dt=[];/**
2051
+ */let Yt=0;const Gt=[],U={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ca="__computeInfo",sd=/[A-Z]/;function Xi(t,i,e){let r=t[i];if(!r)r=t[i]={};else if(!t.hasOwnProperty(i)&&(r=t[i]=Object.create(t[i]),e))for(let n in r){let o=r[n],s=r[n]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function Mt(t,i,e,r,n,o){if(i){let s=!1;const a=Yt++;for(let l in e){let u=n?Xe(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)&&(!n||an(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,r,f.info,n,o),s=!0)}return s}return!1}function ad(t,i,e,r,n,o,s,a){let l=!1,u=s?Xe(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!==e)&&(!s||an(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,r,n,o,f.info,s,a),l=!0);return l}function an(t,i){if(i){let e=i.name;return e==t||!!(i.structured&&ta(e,t))||!!(i.wildcard&&jt(e,t))}else return!0}function go(t,i,e,r,n){let o=typeof n.method=="string"?t[n.method]:n.method,s=n.property;o?o.call(t,t.__data[s],r[s]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function ld(t,i,e,r,n){let o=t[U.NOTIFY],s,a=Yt++;for(let u in i)i[u]&&(o&&ad(t,o,a,u,e,r,n)||n&&ud(t,u,e))&&(s=!0);let l;s&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ud(t,i,e){let r=Xe(i);if(r!==i){let n=Di(r)+"-changed";return ha(t,n,e[i],i),!0}return!1}function ha(t,i,e,r){let n={value:e,queueProperty:!0};r&&(n.path=r),se(t).dispatchEvent(new CustomEvent(i,{detail:n}))}function cd(t,i,e,r,n,o){let a=(o?Xe(i):i)!=i?i:null,l=a?fe(t,a):t.__data[i];a&&l===void 0&&(l=e[i]),ha(t,n.eventName,l,a)}function hd(t,i,e,r,n){let o,s=t.detail,a=s&&s.path;a?(r=Vt(e,r,a),o=s&&s.value):o=t.currentTarget[e],o=n?!o:o,(!i[U.READ_ONLY]||!i[U.READ_ONLY][r])&&i._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&i._invalidateProperties()}function dd(t,i,e,r,n){let o=t.__data[i];gi&&(o=gi(o,n.attrName,"attribute",t)),t._propertyToAttribute(i,n.attrName,o)}function fd(t,i,e,r){let n=t[U.COMPUTE];if(n)if(Dh){Yt++;const o=md(t),s=[];for(let l in i)bo(l,n,s,o,r);let a;for(;a=s.shift();)da(t,"",i,e,a)&&bo(a.methodInfo,n,s,o,r);Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let o=i;for(;Mt(t,n,o,e,r);)Object.assign(e,t.__dataOld),Object.assign(i,t.__dataPending),o=t.__dataPending,t.__dataPending=null}}const pd=(t,i,e)=>{let r=0,n=i.length-1,o=-1;for(;r<=n;){const s=r+n>>1,a=e.get(i[s].methodInfo)-e.get(t.methodInfo);if(a<0)r=s+1;else if(a>0)n=s-1;else{o=s;break}}o<0&&(o=n+1),i.splice(o,0,t)},bo=(t,i,e,r,n)=>{const o=n?Xe(t):t,s=i[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Yt&&(!n||an(t,l.trigger))&&(l.info.lastRun=Yt,pd(l.info,e,r))}};function md(t){let i=t.constructor.__orderedComputedDeps;if(!i){i=new Map;const e=t[U.COMPUTE];let{counts:r,ready:n,total:o}=_d(t),s;for(;s=n.shift();){i.set(s,i.size);const a=e[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&n.push(u)})}o!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=i}return i}function _d(t){const i=t[ca],e={},r=t[U.COMPUTE],n=[];let o=0;for(let s in i){const a=i[s];o+=e[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)i[s]||n.push(s);return{counts:e,ready:n,total:o}}function da(t,i,e,r,n){let o=kr(t,i,e,r,n);if(o===Gt)return!1;let s=n.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[s]?t._setPendingProperty(s,o,!0):(t[s]=o,!1)}function gd(t,i,e){let r=t.__dataLinkedPaths;if(r){let n;for(let o in r){let s=r[o];jt(o,i)?(n=Vt(o,s,i),t._setPendingPropertyOrPath(n,e,!0,!0)):jt(s,i)&&(n=Vt(s,o,i),t._setPendingPropertyOrPath(n,e,!0,!0))}}}function Ki(t,i,e,r,n,o,s){e.bindings=e.bindings||[];let a={kind:r,target:n,parts:o,literal:s,isCompound:o.length!==1};if(e.bindings.push(a),wd(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Di(n)+"-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,bd(t,i,a,c,l)}}function bd(t,i,e,r,n){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:n,binding:e,part:r,evaluator:t};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=pa(l),l.wildcard=!0),t._addTemplatePropertyEffect(i,l.rootProperty,{fn:vd,info:s,trigger:l})}}}function vd(t,i,e,r,n,o,s){let a=s[n.index],l=n.binding,u=n.part;if(o&&u.source&&i.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[i];i=Vt(u.source,l.target,i),a._setPendingPropertyOrPath(i,c,!1,!0)&&t._enqueueClient(a)}else{let c=n.evaluator._evaluateBinding(t,u,i,e,r,o);c!==Gt&&yd(t,a,l,u,c)}}function yd(t,i,e,r,n){if(n=xd(i,n,e,r),gi&&(n=gi(n,e.target,e.kind,i)),e.kind=="attribute")t._valueToNodeAttribute(i,n,e.target);else{let o=e.target;i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[o]?(!i[U.READ_ONLY]||!i[U.READ_ONLY][o])&&i._setPendingProperty(o,n)&&t._enqueueClient(i):t._setUnmanagedPropertyToNode(i,o,n)}}function xd(t,i,e,r){if(e.isCompound){let n=t.__dataCompoundStorage[e.target];n[r.compoundIndex]=i,i=n.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(i=i==null?"":i),i}function wd(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Ed(t,i){let{nodeList:e,nodeInfoList:r}=i;if(r.length)for(let n=0;n<r.length;n++){let o=r[n],s=e[n],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Sd(s,u),Ad(s,t,u)}s.__dataHost=t}}function Sd(t,i){if(i.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=i.parts,n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=r[s].literal;let o=i.target;e[o]=n,i.literal&&i.kind=="property"&&(o==="className"&&(t=se(t)),t[o]=i.literal)}}function Ad(t,i,e){if(e.listenerEvent){let r=e.parts[0];t.addEventListener(e.listenerEvent,function(n){hd(n,i,e.target,r.source,r.negate)})}}function vo(t,i,e,r,n,o){o=i.static||o&&(typeof o!="object"||o[i.methodName]);let s={methodName:i.methodName,args:i.args,methodInfo:n,dynamicFn:o};for(let a=0,l;a<i.args.length&&(l=i.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:r,info:s,trigger:l});return o&&t._addPropertyEffect(i.methodName,e,{fn:r,info:s}),s}function kr(t,i,e,r,n){let o=t._methodHost||t,s=o[n.methodName];if(s){let a=t._marshalArgs(n.args,i,e);return a===Gt?Gt:s.apply(o,a)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const Cd=[],fa="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Td="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Pd="(?:'(?:[^'\\\\]|\\\\.)*')",Dd='(?:"(?:[^"\\\\]|\\\\.)*")',kd="(?:"+Pd+"|"+Dd+")",yo="(?:("+fa+"|"+Td+"|"+kd+")\\s*)",Md="(?:"+yo+"(?:,\\s*"+yo+")*)",Od="(?:\\(\\s*(?:"+Md+"?)\\)\\s*)",Id="("+fa+"\\s*"+Od+"?)",Nd="(\\[\\[|{{)\\s*",Ld="(?:]]|}})",Hd="(?:(!)\\s*)?",$d=Nd+Hd+Id+Ld,xo=new RegExp($d,"g");function wo(t){let i="";for(let e=0;e<t.length;e++){let r=t[e].literal;i+=r||""}return i}function Ji(t){let i=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(i){let r={methodName:i[1],static:!0,args:Cd};if(i[2].trim()){let n=i[2].replace(/\\,/g,"&comma;").split(",");return Bd(n,r)}else return r}return null}function Bd(t,i){return i.args=t.map(function(e){let r=pa(e);return r.literal||(i.static=!1),r},this),i}function pa(t){let i=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:i,value:"",literal:!1},r=i[0];switch(r==="-"&&(r=i[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=i.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(i),e.literal=!0;break}return e.literal||(e.rootProperty=Xe(i),e.structured=Pr(i),e.structured&&(e.wildcard=i.slice(-2)==".*",e.wildcard&&(e.name=i.slice(0,-2)))),e}function Eo(t,i,e){let r=fe(t,e);return r===void 0&&(r=i[e]),r}function ma(t,i,e,r){const n={indexSplices:r};Tr&&!t._overrideLegacyUndefined&&(i.splices=n),t.notifyPath(e+".splices",n),t.notifyPath(e+".length",i.length),Tr&&!t._overrideLegacyUndefined&&(n.indexSplices=[])}function Ct(t,i,e,r,n,o){ma(t,i,e,[{index:r,addedCount:n,removed:o,object:i,type:"splice"}])}function Fd(t){return t[0].toUpperCase()+t.substring(1)}const ln=te(t=>{const i=od(Xh(t));class e 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(Tt.length){let n=Tt[Tt.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let o=this[U.READ_ONLY];for(let s in n)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=n[s])}_addPropertyEffect(n,o,s){this._createPropertyAccessor(n,o==U.READ_ONLY);let a=Xi(this,o,!0)[n];a||(a=this[o][n]=[]),a.push(s)}_removePropertyEffect(n,o,s){let a=Xi(this,o,!0)[n],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(n,o){let s=this[o];return!!(s&&s[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,U.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,U.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,U.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,U.COMPUTE)}_setPendingPropertyOrPath(n,o,s,a){if(a||Xe(Array.isArray(n)?n[0]:n)!==n){if(!a){let l=fe(this,n);if(n=po(this,n,o),!n||!super._shouldPropertyChange(n,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,o,s))return gd(this,n,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,o,s);this[n]=o}return!1}_setUnmanagedPropertyToNode(n,o,s){(s!==n[o]||typeof s=="object")&&(o==="className"&&(n=se(n)),n[o]=s)}_setPendingProperty(n,o,s){let a=this.__dataHasPaths&&Pr(n),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,o,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),a?this.__dataTemp[n]=o:this.__data[n]=o,this.__dataPending[n]=o,(a||this[U.NOTIFY]&&this[U.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=s),!0):!1}_setProperty(n,o){this._setPendingProperty(n,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let o=0;o<n.length;o++){let s=n[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,o){for(let s in n)(o||!this[U.READ_ONLY]||!this[U.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,n[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;fd(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Mt(this,this[U.REFLECT],o,s,a),Mt(this,this[U.OBSERVE],o,s,a),l&&ld(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,o,s){this[U.PROPAGATE]&&Mt(this,this[U.PROPAGATE],n,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,o,s)}_runEffectsForTemplate(n,o,s,a){const l=(u,c)=>{Mt(this,n.propertyEffects,u,s,c,n.nodeList);for(let h=n.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,s,c)};n.runEffects?n.runEffects(l,o,a):l(o,a)}linkPaths(n,o){n=kt(n),o=kt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=o}unlinkPaths(n){n=kt(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,o){let s={path:""},a=fe(this,n,s);ma(this,a,s.path,o)}get(n,o){return fe(o||this,n)}set(n,o,s){s?po(s,n,o):(!this[U.READ_ONLY]||!this[U.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o,!0)&&this._invalidateProperties()}push(n,...o){let s={path:""},a=fe(this,n,s),l=a.length,u=a.push(...o);return o.length&&Ct(this,a,s.path,l,o.length,[]),u}pop(n){let o={path:""},s=fe(this,n,o),a=!!s.length,l=s.pop();return a&&Ct(this,s,o.path,s.length,0,[l]),l}splice(n,o,s,...a){let l={path:""},u=fe(this,n,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,s,...a),(a.length||c.length)&&Ct(this,u,l.path,o,a.length,c),c}shift(n){let o={path:""},s=fe(this,n,o),a=!!s.length,l=s.shift();return a&&Ct(this,s,o.path,0,0,[l]),l}unshift(n,...o){let s={path:""},a=fe(this,n,s),l=a.unshift(...o);return o.length&&Ct(this,a,s.path,0,o.length,[]),l}notifyPath(n,o){let s;if(arguments.length==1){let a={path:""};o=fe(this,n,a),s=a.path}else Array.isArray(n)?s=kt(n):s=n;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,o){this._addPropertyEffect(n,U.READ_ONLY),o&&(this["_set"+Fd(n)]=function(s){this._setProperty(n,s)})}_createPropertyObserver(n,o,s){let a={property:n,method:o,dynamicFn:!!s};this._addPropertyEffect(n,U.OBSERVE,{fn:go,info:a,trigger:{name:n}}),s&&this._addPropertyEffect(o,U.OBSERVE,{fn:go,info:a,trigger:{name:o}})}_createMethodObserver(n,o){let s=Ji(n);if(!s)throw new Error("Malformed observer expression '"+n+"'");vo(this,s,U.OBSERVE,kr,null,o)}_createNotifyingProperty(n){this._addPropertyEffect(n,U.NOTIFY,{fn:cd,info:{eventName:Di(n)+"-changed",property:n}})}_createReflectedProperty(n){let o=this.constructor.attributeNameForProperty(n);o[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,U.REFLECT,{fn:dd,info:{attrName:o}})}_createComputedProperty(n,o,s){let a=Ji(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=vo(this,a,U.COMPUTE,da,n,s);Xi(this,ca)[n]=l}_marshalArgs(n,o,s){const a=this.__data,l=[];for(let u=0,c=n.length;u<c;u++){let{name:h,structured:d,wildcard:f,value:p,literal:v}=n[u];if(!v)if(f){const P=jt(h,o),I=Eo(a,s,P?o:h);p={path:P?o:h,value:I,base:P?fe(a,h):I}}else p=d?Eo(a,s,h):a[h];if(Tr&&!this._overrideLegacyUndefined&&p===void 0&&n.length>1)return Gt;l[u]=p}return l}static addPropertyEffect(n,o,s){this.prototype._addPropertyEffect(n,o,s)}static createPropertyObserver(n,o,s){this.prototype._createPropertyObserver(n,o,s)}static createMethodObserver(n,o){this.prototype._createMethodObserver(n,o)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,o){this.prototype._createReadOnlyProperty(n,o)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,o,s){this.prototype._createComputedProperty(n,o,s)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,o){let s=this.constructor._parseTemplate(n),a=this.__preBoundTemplateInfo==s;if(!a)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(o)if(s=Object.create(s),s.wasPreBound=a,!this.__templateInfo)this.__templateInfo=s;else{const l=n._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(n,o,s){let a=n.hostProps=n.hostProps||{};a[o]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(n,o){o=o||this._bindTemplate(n,!0),Tt.push(this);let s=super._stampTemplate(n,o);if(Tt.pop(),o.nodeList=s.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)a.push(l)}return s.templateInfo=o,Ed(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(n){const o=n.templateInfo,{previousSibling:s,nextSibling:a,parent:l}=o;s?s.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=s:l&&(l.lastChild=s),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let h=u[c];se(se(h).parentNode).removeChild(h)}}static _parseTemplateNode(n,o,s){let a=i._parseTemplateNode.call(this,n,o,s);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,o);l&&(n.textContent=wo(l)||" ",Ki(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(n,o,s,a,l){let u=this._parseBindings(l,o);if(u){let c=a,h="property";sd.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=wo(u);return d&&h=="attribute"&&(a=="class"&&n.hasAttribute("class")&&(d+=" "+n.getAttribute(a)),n.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&n.setAttribute(a,""),n.localName==="input"&&c==="value"&&n.setAttribute(c,""),n.removeAttribute(c),h==="property"&&(a=ra(a)),Ki(this,o,s,h,a,u,d),!0}else return i._parseTemplateNodeAttribute.call(this,n,o,s,a,l)}static _parseTemplateNestedTemplate(n,o,s){let a=i._parseTemplateNestedTemplate.call(this,n,o,s);const l=n.parentNode,u=s.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";ao&&(c||h)&&(l.removeChild(n),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let d=u.hostProps;if(kh&&c)d&&(o.hostProps=Object.assign(o.hostProps||{},d),ao||(s.parentInfo.noted=!0));else{let f="{";for(let p in d){let v=[{mode:f,source:p,dependencies:[p],hostProp:!0}];Ki(this,o,s,"property","_host_"+p,v)}}return a}static _parseBindings(n,o){let s=[],a=0,l;for(;(l=xo.exec(n))!==null;){l.index>a&&s.push({literal:n.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 v=Ji(h),P=[];if(v){let{args:I,methodName:k}=v;for(let H=0;H<I.length;H++){let M=I[H];M.literal||P.push(M)}let R=o.dynamicFns;(R&&R[k]||v.static)&&(P.push(k),v.dynamicFn=!0)}else P.push(h);s.push({source:h,mode:u,negate:c,customEvent:d,signature:v,dependencies:P,event:f}),a=xo.lastIndex}if(a&&a<n.length){let u=n.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(n,o,s,a,l,u){let c;return o.signature?c=kr(n,s,a,l,o.signature):s!=o.source?c=fe(n,o.source):u&&Pr(s)?c=fe(n,s):c=n.__data[s],o.negate&&(c=!c),c}}return e}),Tt=[];/**
2041
2052
  @license
2042
2053
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2043
2054
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2053,7 +2064,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2053
2064
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2054
2065
  Code distributed by Google as part of the polymer project is also
2055
2066
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2056
- */function Fh(t){const i={};for(let e in t){const r=t[e];i[e]=typeof r=="function"?{type:r}:r}return i}const Rh=te(t=>{const i=na(t);function e(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof n?s:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let s=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(s=Fh(a))}o.__ownProperties=s}return o.__ownProperties}class n 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=e(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=e(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 n});/**
2067
+ */function Rd(t){const i={};for(let e in t){const r=t[e];i[e]=typeof r=="function"?{type:r}:r}return i}const zd=te(t=>{const i=aa(t);function e(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof n?s:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let s=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(s=Rd(a))}o.__ownProperties=s}return o.__ownProperties}class n 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=e(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=e(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 n});/**
2057
2068
  * @fileoverview
2058
2069
  * @suppress {checkPrototypalTypes}
2059
2070
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2063,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2063
2074
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2064
2075
  * Google as part of the polymer project is also subject to an additional IP
2065
2076
  * rights grant found at http://polymer.github.io/PATENTS.txt
2066
- */const zh="3.5.2",xo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Uh=te(t=>{const i=Rh(sn(t));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let d=u[c];"value"in d&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=d)}}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 n(l,u,c,d){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,d)),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,d[c.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,c,d){if(!xo){const h=u.content.querySelectorAll("style"),f=Ks(u),p=Bd(c),v=u.content.firstElementChild;for(let I=0;I<p.length;I++){let k=p[I];k.textContent=l._processStyleText(k.textContent,d),u.content.insertBefore(k,v)}let P=0;for(let I=0;I<f.length;I++){let k=f[I],R=h[P];R!==k?(k=k.cloneNode(!0),R.parentNode.insertBefore(k,R)):P++,k.textContent=l._processStyleText(k.textContent,d)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),kd&&xo&&Sd){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).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&&(!vi||Cd)&&(u=Vt.import(l,"template"),vi&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends i{static get polymerElementVersion(){return zh}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):Gs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)n(this.prototype,c,u[c],u)}static createObservers(u,c){const d=this.prototype;for(let h=0;h<u.length;h++)d._createMethodObserver(u[h],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=rn(u.url);else{const c=Vt.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=Ad,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let d=u[c];if(this._canApplyPropertyDefault(c)){let h=typeof d.value=="function"?d.value.call(this):d.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return tn(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const d=this.importPath,h=d?Bt(d):"";o(this,c,u,h),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const c=se(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])),Td&&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=Bt(this.importPath)),Bt(u,c)}static _parseTemplateContent(u,c,d){return c.dynamicFns=c.dynamicFns||this._properties,i._parseTemplateContent.call(this,u,c,d)}static _addTemplatePropertyEffect(u,c,d){return Ws&&!(c in this._properties)&&!(d.info.part.signature&&d.info.part.signature.static)&&!d.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,d)}}return a});/**
2077
+ */const Ud="3.5.2",So=window.ShadyCSS&&window.ShadyCSS.cssBuild,jd=te(t=>{const i=zd(ln(t));function e(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 n(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 o(l,u,c,h){if(!So){const d=u.content.querySelectorAll("style"),f=Qs(u),p=Bh(c),v=u.content.firstElementChild;for(let I=0;I<p.length;I++){let k=p[I];k.textContent=l._processStyleText(k.textContent,h),u.content.insertBefore(k,v)}let P=0;for(let I=0;I<f.length;I++){let k=f[I],R=d[P];R!==k?(k=k.cloneNode(!0),R.parentNode.insertBefore(k,R)):P++,k.textContent=l._processStyleText(k.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),Mh&&So&&Ah){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||Th)&&(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 Ud}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):Xs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)n(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=on(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=Ch,this.importPath=this.constructor.importPath;let u=e(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 nn(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Lt(h):"";o(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=se(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])),Ph&&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=Lt(this.importPath)),Lt(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 Ks&&!(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});/**
2067
2078
  @license
2068
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2069
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2071,7 +2082,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2071
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2072
2083
  Code distributed by Google as part of the polymer project is also
2073
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2074
- */const wo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class fa{constructor(i,e){ma(i,e);const r=e.reduce((n,o,s)=>n+pa(o)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function pa(t){if(t instanceof fa)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function jh(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof fa)return pa(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Je=function(i,...e){ma(i,e);const r=document.createElement("template");let n=e.reduce((o,s,a)=>o+jh(s)+i[a+1],i[0]);return wo&&(n=wo.createHTML(n)),r.innerHTML=n,r},ma=(t,i)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||i.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2085
+ */const Ao=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class _a{constructor(i,e){ba(i,e);const r=e.reduce((n,o,s)=>n+ga(o)+i[s+1],i[0]);this.value=r.toString()}toString(){return this.value}}function ga(t){if(t instanceof _a)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function Vd(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof _a)return ga(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const Ke=function(i,...e){ba(i,e);const r=document.createElement("template");let n=e.reduce((o,s,a)=>o+Vd(s)+i[a+1],i[0]);return Ao&&(n=Ao.createHTML(n)),r.innerHTML=n,r},ba=(t,i)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||i.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2075
2086
  @license
2076
2087
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2077
2088
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2079,19 +2090,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2079
2090
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2080
2091
  Code distributed by Google as part of the polymer project is also
2081
2092
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2082
- */const Re=Uh(HTMLElement);/**
2093
+ */const Fe=jd(HTMLElement);/**
2083
2094
  * @license
2084
2095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2085
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2086
- */const Me=[];function Mr(t,i,e=t.getAttribute("dir")){i?t.setAttribute("dir",i):e!=null&&t.removeAttribute("dir")}function Or(){return document.documentElement.getAttribute("dir")}function Vh(){const t=Or();Me.forEach(i=>{Mr(i,t)})}const Yh=new MutationObserver(Vh);Yh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Mi=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Mr(this,Or(),null))}attributeChangedCallback(e,r,n){if(super.attributeChangedCallback(e,r,n),e!=="dir")return;const o=Or(),s=n===o&&Me.indexOf(this)===-1,a=!n&&r&&Me.indexOf(this)===-1;s||a?(this.__subscribe(),Mr(this,o,n)):n!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,n){n==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,n)}_attributeToProperty(e,r,n){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,n)}__subscribe(){Me.includes(this)||Me.push(this)}__unsubscribe(){Me.includes(this)&&Me.splice(Me.indexOf(this),1)}};/**
2097
+ */const De=[];function Mr(t,i,e=t.getAttribute("dir")){i?t.setAttribute("dir",i):e!=null&&t.removeAttribute("dir")}function Or(){return document.documentElement.getAttribute("dir")}function Yd(){const t=Or();De.forEach(i=>{Mr(i,t)})}const Gd=new MutationObserver(Yd);Gd.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ki=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Mr(this,Or(),null))}attributeChangedCallback(e,r,n){if(super.attributeChangedCallback(e,r,n),e!=="dir")return;const o=Or(),s=n===o&&De.indexOf(this)===-1,a=!n&&r&&De.indexOf(this)===-1;s||a?(this.__subscribe(),Mr(this,o,n)):n!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=De.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,n){n==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,n)}_attributeToProperty(e,r,n){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,n)}__subscribe(){De.includes(this)||De.push(this)}__unsubscribe(){De.includes(this)&&De.splice(De.indexOf(this),1)}};/**
2087
2098
  * @license
2088
2099
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2089
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2090
- */const Gh=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2101
+ */const Wd=t=>class extends t{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2091
2102
  * @license
2092
2103
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2093
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2094
- */const Wh=F`
2105
+ */const qd=F`
2095
2106
  :host {
2096
2107
  display: flex;
2097
2108
  align-items: center;
@@ -2160,15 +2171,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2160
2171
  * @license
2161
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2162
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2163
- */Q("vaadin-input-container",Wh,{moduleId:"vaadin-input-container-styles"});class qh extends Gh(Xe(Mi(Re))){static get is(){return"vaadin-input-container"}static get template(){return Je`
2174
+ */Q("vaadin-input-container",qd,{moduleId:"vaadin-input-container-styles"});class Xd extends Wd(qe(ki(Fe))){static get is(){return"vaadin-input-container"}static get template(){return Ke`
2164
2175
  <slot name="prefix"></slot>
2165
2176
  <slot></slot>
2166
2177
  <slot name="suffix"></slot>
2167
- `}}De(qh);/**
2178
+ `}}Pe(Xd);/**
2168
2179
  * @license
2169
2180
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2170
2181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2171
- */const Xh=F`
2182
+ */const Kd=F`
2172
2183
  :host {
2173
2184
  z-index: 200;
2174
2185
  position: fixed;
@@ -2231,7 +2242,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2231
2242
  * @license
2232
2243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2233
2244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2234
- */let an=!1;window.addEventListener("keydown",()=>{an=!0},{capture:!0});window.addEventListener("mousedown",()=>{an=!1},{capture:!0});function Ir(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ln(){return an}function Kh(t){const i=t.style;if(i.visibility==="hidden"||i.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Jh(t,i){const e=Math.max(t.tabIndex,0),r=Math.max(i.tabIndex,0);return e===0||r===0?r>e:e>r}function Zh(t,i){const e=[];for(;t.length>0&&i.length>0;)Jh(t[0],i[0])?e.push(i.shift()):e.push(t.shift());return e.concat(t,i)}function Nr(t){const i=t.length;if(i<2)return t;const e=Math.ceil(i/2),r=Nr(t.slice(0,e)),n=Nr(t.slice(e));return Zh(r,n)}function _a(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Qh(t){return t.getRootNode().activeElement===t}function ef(t){if(!_a(t))return-1;const i=t.getAttribute("tabindex")||0;return Number(i)}function ga(t,i){if(t.nodeType!==Node.ELEMENT_NODE||Kh(t))return!1;const e=t,r=ef(e);let n=r>0;r>=0&&i.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(s=>{n=ga(s,i)||n}),n}function tf(t){const i=[];return ga(t,i)?Nr(i):i}/**
2245
+ */let un=!1;window.addEventListener("keydown",()=>{un=!0},{capture:!0});window.addEventListener("mousedown",()=>{un=!1},{capture:!0});function Ir(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function cn(){return un}function Jd(t){const i=t.style;if(i.visibility==="hidden"||i.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function Zd(t,i){const e=Math.max(t.tabIndex,0),r=Math.max(i.tabIndex,0);return e===0||r===0?r>e:e>r}function Qd(t,i){const e=[];for(;t.length>0&&i.length>0;)Zd(t[0],i[0])?e.push(i.shift()):e.push(t.shift());return e.concat(t,i)}function Nr(t){const i=t.length;if(i<2)return t;const e=Math.ceil(i/2),r=Nr(t.slice(0,e)),n=Nr(t.slice(e));return Qd(r,n)}function va(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function ef(t){return t.getRootNode().activeElement===t}function tf(t){if(!va(t))return-1;const i=t.getAttribute("tabindex")||0;return Number(i)}function ya(t,i){if(t.nodeType!==Node.ELEMENT_NODE||Jd(t))return!1;const e=t,r=tf(e);let n=r>0;r>=0&&i.push(e);let o=[];return e.localName==="slot"?o=e.assignedNodes({flatten:!0}):o=(e.shadowRoot||e).children,[...o].forEach(s=>{n=ya(s,i)||n}),n}function rf(t){const i=[];return ya(t,i)?Nr(i):i}/**
2235
2246
  @license
2236
2247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2237
2248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2239,63 +2250,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2239
2250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2240
2251
  Code distributed by Google as part of the polymer project is also
2241
2252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2242
- */let Hr=!1,rf=[],ba=[];function nf(){Hr=!0,requestAnimationFrame(function(){Hr=!1,of(rf),setTimeout(function(){sf(ba)})})}function of(t){for(;t.length;)va(t.shift())}function sf(t){for(let i=0,e=t.length;i<e;i++)va(t.shift())}function va(t){const i=t[0],e=t[1],r=t[2];try{e.apply(i,r)}catch(n){setTimeout(()=>{throw n})}}function ya(t,i,e){Hr||nf(),ba.push([t,i,e])}/**
2253
+ */let Lr=!1,nf=[],xa=[];function of(){Lr=!0,requestAnimationFrame(function(){Lr=!1,sf(nf),setTimeout(function(){af(xa)})})}function sf(t){for(;t.length;)wa(t.shift())}function af(t){for(let i=0,e=t.length;i<e;i++)wa(t.shift())}function wa(t){const i=t[0],e=t[1],r=t[2];try{e.apply(i,r)}catch(n){setTimeout(()=>{throw n})}}function Ea(t,i,e){Lr||of(),xa.push([t,i,e])}/**
2243
2254
  * @license
2244
2255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2245
2256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2246
- */const Oi=t=>t.test(navigator.userAgent),Lr=t=>t.test(navigator.platform),af=t=>t.test(navigator.vendor);Oi(/Android/u);Oi(/Chrome/u)&&af(/Google Inc/u);Oi(/Firefox/u);const lf=Lr(/^iPad/u)||Lr(/^Mac/u)&&navigator.maxTouchPoints>1,uf=Lr(/^iPhone/u),xa=uf||lf;Oi(/^((?!chrome|android).)*safari/iu);const cf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
2257
+ */const Mi=t=>t.test(navigator.userAgent),Hr=t=>t.test(navigator.platform),lf=t=>t.test(navigator.vendor);Mi(/Android/u);Mi(/Chrome/u)&&lf(/Google Inc/u);Mi(/Firefox/u);const uf=Hr(/^iPad/u)||Hr(/^Mac/u)&&navigator.maxTouchPoints>1,cf=Hr(/^iPhone/u),Sa=cf||uf;Mi(/^((?!chrome|android).)*safari/iu);const hf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
2247
2258
  * @license
2248
2259
  * Copyright (c) 2017 Anton Korzunov
2249
2260
  * SPDX-License-Identifier: MIT
2250
- */let tt=new WeakMap,ri=new WeakMap,ni={},Zi=0;const Eo=t=>t&&t.nodeType===Node.ELEMENT_NODE,Qi=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},df=(t,i)=>Eo(t)?i.map(e=>{if(!Eo(e))return Qi(e,"is not a valid element"),null;let r=e;for(;r&&r!==t;){if(t.contains(r))return e;r=r.getRootNode().host}return Qi(e,"is not contained inside",t),null}).filter(e=>!!e):(Qi(t,"is not a valid element"),[]),hf=(t,i,e,r)=>{const n=df(i,Array.isArray(t)?t:[t]);ni[e]||(ni[e]=new WeakMap);const o=ni[e],s=[],a=new Set,l=new Set(n),u=d=>{if(!d||a.has(d))return;a.add(d);const h=d.assignedSlot;h&&u(h),u(d.parentNode||d.host)};n.forEach(u);const c=d=>{if(!d||l.has(d))return;const h=d.shadowRoot;(h?[...d.children,...h.children]:[...d.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const v=p.getAttribute(r),P=v!==null&&v!=="false",I=(tt.get(p)||0)+1,k=(o.get(p)||0)+1;tt.set(p,I),o.set(p,k),s.push(p),I===1&&P&&ri.set(p,!0),k===1&&p.setAttribute(e,"true"),P||p.setAttribute(r,"true")}})};return c(i),a.clear(),Zi+=1,()=>{s.forEach(d=>{const h=tt.get(d)-1,f=o.get(d)-1;tt.set(d,h),o.set(d,f),h||(ri.has(d)?ri.delete(d):d.removeAttribute(r)),f||d.removeAttribute(e)}),Zi-=1,Zi||(tt=new WeakMap,tt=new WeakMap,ri=new WeakMap,ni={})}},wa=(t,i=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),hf(r,i,e,"aria-hidden")};/**
2261
+ */let et=new WeakMap,ii=new WeakMap,ri={},Zi=0;const Co=t=>t&&t.nodeType===Node.ELEMENT_NODE,Qi=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},df=(t,i)=>Co(t)?i.map(e=>{if(!Co(e))return Qi(e,"is not a valid element"),null;let r=e;for(;r&&r!==t;){if(t.contains(r))return e;r=r.getRootNode().host}return Qi(e,"is not contained inside",t),null}).filter(e=>!!e):(Qi(t,"is not a valid element"),[]),ff=(t,i,e,r)=>{const n=df(i,Array.isArray(t)?t:[t]);ri[e]||(ri[e]=new WeakMap);const o=ri[e],s=[],a=new Set,l=new Set(n),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};n.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 v=p.getAttribute(r),P=v!==null&&v!=="false",I=(et.get(p)||0)+1,k=(o.get(p)||0)+1;et.set(p,I),o.set(p,k),s.push(p),I===1&&P&&ii.set(p,!0),k===1&&p.setAttribute(e,"true"),P||p.setAttribute(r,"true")}})};return c(i),a.clear(),Zi+=1,()=>{s.forEach(h=>{const d=et.get(h)-1,f=o.get(h)-1;et.set(h,d),o.set(h,f),d||(ii.has(h)?ii.delete(h):h.removeAttribute(r)),f||h.removeAttribute(e)}),Zi-=1,Zi||(et=new WeakMap,et=new WeakMap,ii=new WeakMap,ri={})}},Aa=(t,i=document.body,e="data-aria-hidden")=>{const r=Array.from(Array.isArray(t)?t:[t]);return i&&r.push(...Array.from(i.querySelectorAll("[aria-live]"))),ff(r,i,e,"aria-hidden")};/**
2251
2262
  * @license
2252
2263
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2253
2264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2254
- */class ff{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=wa(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2265
+ */class pf{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=Aa(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2255
2266
  * @license
2256
2267
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2257
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2258
- */class pf{saveFocus(i){this.focusNode=i||Ir()}restoreFocus(i){const e=this.focusNode;if(!e)return;const r=i?i.preventScroll:!1;Ir()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
2269
+ */class mf{saveFocus(i){this.focusNode=i||Ir()}restoreFocus(i){const e=this.focusNode;if(!e)return;const r=i?i.preventScroll:!1;Ir()===document.body?setTimeout(()=>e.focus({preventScroll:r})):e.focus({preventScroll:r}),this.focusNode=null}}/**
2259
2270
  * @license
2260
2271
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2261
2272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2262
- */const er=[];class mf{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return tf(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(Qh).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.");er.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,er.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(er).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,r=i?-1:1,n=this.__focusedElementIndex,o=(e.length+n+r)%e.length,s=e[o];s.focus(),s.localName==="input"&&s.select()}}/**
2273
+ */const er=[];class _f{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return rf(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(ef).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.");er.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,er.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(er).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,r=i?-1:1,n=this.__focusedElementIndex,o=(e.length+n+r)%e.length,s=e[o];s.focus(),s.localName==="input"&&s.select()}}/**
2263
2274
  * @license
2264
2275
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2265
2276
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2266
- */const Et=te(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2277
+ */const wt=te(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2267
2278
  * @license
2268
2279
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2269
2280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2270
- */const _f=t=>class extends Et(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ff(this),this.__focusTrapController=new mf(this),this.__focusRestorationController=new pf}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!ln();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Ir();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const n=e.ownerDocument;for(;r&&r!==n&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2281
+ */const gf=t=>class extends wt(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new pf(this),this.__focusTrapController=new _f(this),this.__focusRestorationController=new mf}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!cn();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=Ir();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let r=e;const n=e.ownerDocument;for(;r&&r!==n&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2271
2282
  * @license
2272
2283
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2273
2284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2274
- */const Ea=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,i)=>t.__zIndex-i.__zIndex||0),Br=()=>Ea().filter(t=>t.$.overlay),gf=t=>t===Br().pop(),bf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return gf(this)}bringToFront(){let e="";const r=Ea().filter(n=>n!==this).pop();r&&(e=r.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Br().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Br();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2285
+ */const Ca=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,i)=>t.__zIndex-i.__zIndex||0),$r=()=>Ca().filter(t=>t.$.overlay),bf=t=>t===$r().pop(),vf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return bf(this)}bringToFront(){let e="";const r=Ca().filter(n=>n!==this).pop();r&&(e=r.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),$r().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=$r();let r;for(;(r=e.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2275
2286
  * @license
2276
2287
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2277
2288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2278
- */const vf=t=>class extends _f(bf(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!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),xa&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,n=window.innerWidth>e,o=document.documentElement.clientHeight;n&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,r,n,o){const s=this._oldOwner!==r||this._oldModel!==n;this._oldModel=n,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),ya(this,()=>{this._trapFocus();const n=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(n)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const n=`__${e}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[n])};this[n]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const r=`__${e}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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
2289
+ */const yf=t=>class extends gf(vf(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Sa&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,n=window.innerWidth>e,o=document.documentElement.clientHeight;n&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,r,n,o){const s=this._oldOwner!==r||this._oldModel!==n;this._oldModel=n,this._oldOwner=r;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,r){e?(this._saveFocus(),this._animatedOpening(),Ea(this,()=>{this._trapFocus();const n=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(n)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),r=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(e,r){const n=`__${e}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[n])};this[n]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const r=`__${e}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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(e)}}};/**
2279
2290
  * @license
2280
2291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2281
2292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2282
- */function yf(t){const i=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){i.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return i}function un(t){return t?new Set(t.split(" ")):new Set}function Ii(t){return t?[...t].join(" "):""}function Sa(t,i,e){const r=un(t.getAttribute(i));r.add(e),t.setAttribute(i,Ii(r))}function xf(t,i,e){const r=un(t.getAttribute(i));if(r.delete(e),r.size===0){t.removeAttribute(i);return}t.setAttribute(i,Ii(r))}function wf(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2293
+ */function xf(t){const i=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){i.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return i}function hn(t){return t?new Set(t.split(" ")):new Set}function Oi(t){return t?[...t].join(" "):""}function Ta(t,i,e){const r=hn(t.getAttribute(i));r.add(e),t.setAttribute(i,Oi(r))}function wf(t,i,e){const r=hn(t.getAttribute(i));if(r.delete(e),r.size===0){t.removeAttribute(i);return}t.setAttribute(i,Oi(r))}function Ef(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2283
2294
  * @license
2284
2295
  * Copyright (c) 2024 Vaadin Ltd.
2285
2296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2286
- */function Ef(t,i){let e=null;const r=document.documentElement;function n(){e&&e.disconnect(),e=null}function o(s=!1,a=1){n();const{left:l,top:u,width:c,height:d}=t.getBoundingClientRect();if(s||i(),!c||!d)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+c)),p=Math.floor(r.clientHeight-(u+d)),v=Math.floor(l),I={rootMargin:`${-h}px ${-f}px ${-p}px ${-v}px`,threshold:Math.max(0,Math.min(1,a))||1};let k=!0;function R(L){let M=L[0].intersectionRatio;if(M!==a){if(!k)return o();M===0&&(M=1e-7),o(!1,M)}k=!1}e=new IntersectionObserver(R,I),e.observe(t)}return o(!0),n}/**
2297
+ */function Sf(t,i){let e=null;const r=document.documentElement;function n(){e&&e.disconnect(),e=null}function o(s=!1,a=1){n();const{left:l,top:u,width:c,height:h}=t.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)),v=Math.floor(l),I={rootMargin:`${-d}px ${-f}px ${-p}px ${-v}px`,threshold:Math.max(0,Math.min(1,a))||1};let k=!0;function R(H){let M=H[0].intersectionRatio;if(M!==a){if(!k)return o();M===0&&(M=1e-7),o(!1,M)}k=!1}e=new IntersectionObserver(R,I),e.observe(t)}return o(!0),n}/**
2287
2298
  * @license
2288
2299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2289
2300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2290
- */const tr={start:"top",end:"bottom"},ir={start:"left",end:"right"},So=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),Sf=t=>class extends t{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=yf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Ef(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,So.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,So.observe(r))),e){const n=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(n[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const n=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,n),s=!n&&o||n&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,tr,this,r),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,ir,this,o);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(e,r){const n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,n,o,this.__margins,s,this.noHorizontalOverlap,ir)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,n,this.__margins,o,this.noVerticalOverlap,tr)}__shouldAlignStart(e,r,n,o,s,a,l){const u=n-e[a?l.end:l.start]-o[l.end],c=e[a?l.start:l.end]-o[l.start],d=s?u:c,f=d>(s?c:u)||d>r;return s===f}__adjustBottomProperty(e,r,n){let o;if(e===r.end){if(r.end===tr.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(n>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=n-a}this.__oldViewportHeight=s}if(r.end===ir.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(n>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=n-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(e,r,n,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),d=this.__adjustBottomProperty(l,o,c),h=r[a?o.start:o.end]-e[n===a?o.end:o.start],f=d?`${d}px`:`${c+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2301
+ */const tr={start:"top",end:"bottom"},ir={start:"left",end:"right"},To=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),Af=t=>class extends t{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=xf(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Sf(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,To.unobserve(r),e&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,To.observe(r))),e){const n=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(n[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(e);this.style.justifyContent=r?"flex-start":"flex-end";const n=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,n),s=!n&&o||n&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,tr,this,r),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,ir,this,o);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(e,r){const n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!r&&this.horizontalAlign==="start"||r&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,n,o,this.__margins,s,this.noHorizontalOverlap,ir)}__shouldAlignStartVertically(e){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,r,n,this.__margins,o,this.noVerticalOverlap,tr)}__shouldAlignStart(e,r,n,o,s,a,l){const u=n-e[a?l.end:l.start]-o[l.end],c=e[a?l.start:l.end]-o[l.start],h=s?u:c,f=h>(s?c:u)||h>r;return s===f}__adjustBottomProperty(e,r,n){let o;if(e===r.end){if(r.end===tr.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(n>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=n-a}this.__oldViewportHeight=s}if(r.end===ir.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(n>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=n-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(e,r,n,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(s.style[l]||getComputedStyle(s)[l]),h=this.__adjustBottomProperty(l,o,c),d=r[a?o.start:o.end]-e[n===a?o.end:o.start],f=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2291
2302
  * @license
2292
2303
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2293
2304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2294
- */const Af=t=>class extends Sf(vf(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!_a(e.composedPath()[0])&&e.preventDefault()}};/**
2305
+ */const Cf=t=>class extends Af(yf(t)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!va(e.composedPath()[0])&&e.preventDefault()}};/**
2295
2306
  * @license
2296
2307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2297
2308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2298
- */const Cf=F`
2309
+ */const Tf=F`
2299
2310
  [part='overlay'] {
2300
2311
  display: flex;
2301
2312
  flex: auto;
@@ -2314,14 +2325,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2314
2325
  * @license
2315
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2316
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2317
- */Q("vaadin-date-picker-overlay",[Xh,Cf],{moduleId:"vaadin-date-picker-overlay-styles"});class Tf extends Af(Mi(Xe(Re))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Je`
2328
+ */Q("vaadin-date-picker-overlay",[Kd,Tf],{moduleId:"vaadin-date-picker-overlay-styles"});class Pf extends Cf(ki(qe(Fe))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ke`
2318
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2319
2330
  <div part="overlay" id="overlay">
2320
2331
  <div part="content" id="content">
2321
2332
  <slot></slot>
2322
2333
  </div>
2323
2334
  </div>
2324
- `}}De(Tf);const Pf=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,di=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Df(){function t(){return!0}return Aa(t)}function kf(){try{return Mf()?!0:Of()?di?!If():!Df():!1}catch(t){return!1}}function Mf(){return localStorage.getItem("vaadin.developmentmode.force")}function Of(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function If(){return!!(di&&Object.keys(di).map(i=>di[i]).filter(i=>i.productionMode).length>0)}function Aa(t,i){if(typeof t!="function")return;const e=Pf.exec(t.toString());if(e)try{t=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(i)}window.Vaadin=window.Vaadin||{};const Ao=function(t,i){if(window.Vaadin.developmentMode)return Aa(t,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=kf());function Nf(){/*! vaadin-dev-mode:start
2335
+ `}}Pe(Pf);const Df=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ci=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function kf(){function t(){return!0}return Pa(t)}function Mf(){try{return Of()?!0:If()?ci?!Nf():!kf():!1}catch(t){return!1}}function Of(){return localStorage.getItem("vaadin.developmentmode.force")}function If(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Nf(){return!!(ci&&Object.keys(ci).map(i=>ci[i]).filter(i=>i.productionMode).length>0)}function Pa(t,i){if(typeof t!="function")return;const e=Df.exec(t.toString());if(e)try{t=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return t(i)}window.Vaadin=window.Vaadin||{};const Po=function(t,i){if(window.Vaadin.developmentMode)return Pa(t,i)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Mf());function Lf(){/*! vaadin-dev-mode:start
2325
2336
  (function () {
2326
2337
  'use strict';
2327
2338
 
@@ -2799,7 +2810,7 @@ try {
2799
2810
 
2800
2811
  }());
2801
2812
 
2802
- vaadin-dev-mode:end **/}const Hf=function(){if(typeof Ao=="function")return Ao(Nf)};/**
2813
+ vaadin-dev-mode:end **/}const Hf=function(){if(typeof Po=="function")return Po(Lf)};/**
2803
2814
  * @license
2804
2815
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2805
2816
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2807,7 +2818,7 @@ try {
2807
2818
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2808
2819
  * Code distributed by Google as part of the polymer project is also
2809
2820
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2810
- */let Co=0,Ca=0;const lt=[];let $r=!1;function Lf(){$r=!1;const t=lt.length;for(let i=0;i<t;i++){const e=lt[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}lt.splice(0,t),Ca+=t}const xi={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},Bf={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},$f={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Ff={run(t){$r||($r=!0,queueMicrotask(()=>Lf())),lt.push(t);const i=Co;return Co+=1,i},cancel(t){const i=t-Ca;if(i>=0){if(!lt[i])throw new Error(`invalid async handle: ${t}`);lt[i]=null}}};/**
2821
+ */let Do=0,Da=0;const at=[];let Br=!1;function $f(){Br=!1;const t=at.length;for(let i=0;i<t;i++){const e=at[i];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}at.splice(0,t),Da+=t}const yi={after(t){return{run(i){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}}},run(t,i){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}},Bf={run(t){return window.requestAnimationFrame(t)},cancel(t){window.cancelAnimationFrame(t)}},Ff={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Rf={run(t){Br||(Br=!0,queueMicrotask(()=>$f())),at.push(t);const i=Do;return Do+=1,i},cancel(t){const i=t-Da;if(i>=0){if(!at[i])throw new Error(`invalid async handle: ${t}`);at[i]=null}}};/**
2811
2822
  @license
2812
2823
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2813
2824
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2815,31 +2826,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2815
2826
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2816
2827
  Code distributed by Google as part of the polymer project is also
2817
2828
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2818
- */const Fr=new Set;let _t=class Rr{static debounce(i,e,r){return i instanceof Rr?i._cancelAsync():i=new Rr,i.setConfig(e,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Fr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fr.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 Rf(t){Fr.add(t)}/**
2829
+ */const Fr=new Set;let mt=class Rr{static debounce(i,e,r){return i instanceof Rr?i._cancelAsync():i=new Rr,i.setConfig(e,r),i}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Fr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fr.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 zf(t){Fr.add(t)}/**
2819
2830
  * @license
2820
2831
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2821
2832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2822
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Hf()};let rr;const To=new Set,Ta=t=>class extends Mi(t){static finalize(){super.finalize();const{is:e}=this;e&&!To.has(e)&&(window.Vaadin.registrations.push(this),To.add(e),window.Vaadin.developmentModeCallback&&(rr=_t.debounce(rr,$f,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Rf(rr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2833
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Hf()};let rr;const ko=new Set,ka=t=>class extends ki(t){static finalize(){super.finalize();const{is:e}=this;e&&!ko.has(e)&&(window.Vaadin.registrations.push(this),ko.add(e),window.Vaadin.developmentModeCallback&&(rr=mt.debounce(rr,Ff,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),zf(rr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2823
2834
  * @license
2824
2835
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2825
2836
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2826
- */class zf{constructor(i,e){this.slot=i,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const i=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],n=[];i.length&&(e=i.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=i.indexOf(o);a===-1?r.push(o):a!==s&&n.push(o)}),(e.length||r.length||n.length)&&this.callback({addedNodes:e,currentNodes:i,movedNodes:n,removedNodes:r}),this._storedNodes=i}}/**
2837
+ */class Uf{constructor(i,e){this.slot=i,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const i=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],n=[];i.length&&(e=i.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=i.indexOf(o);a===-1?r.push(o):a!==s&&n.push(o)}),(e.length||r.length||n.length)&&this.callback({addedNodes:e,currentNodes:i,movedNodes:n,removedNodes:r}),this._storedNodes=i}}/**
2827
2838
  * @license
2828
2839
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2829
2840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2830
- */let Uf=0;function Pa(){return Uf++}/**
2841
+ */let jf=0;function Ma(){return jf++}/**
2831
2842
  * @license
2832
2843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2833
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2834
- */class Ve extends EventTarget{static generateId(i,e="default"){return`${e}-${i.localName}-${Pa()}`}constructor(i,e,r,n={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=n;this.host=i,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=o,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||e))}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 e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=i,i.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:i,slotName:e,tagName:r}=this;let n=this.defaultNode;return!n&&r&&(n=document.createElement(r),n instanceof Element&&(e!==""&&n.setAttribute("slot",e),this.defaultNode=n)),n&&(this.node=n,i.appendChild(n)),n}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===i||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:e}=this;e&&e(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,e=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new zf(r,({addedNodes:n,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=n.filter(l=>!wf(l)&&!s.includes(l));o.length&&(this.nodes=s.filter(l=>!o.includes(l)),o.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)))})}}/**
2845
+ */class je extends EventTarget{static generateId(i,e="default"){return`${e}-${i.localName}-${Ma()}`}constructor(i,e,r,n={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=n;this.host=i,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=o,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(i,u||e))}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 e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=i,i.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:i,slotName:e,tagName:r}=this;let n=this.defaultNode;return!n&&r&&(n=document.createElement(r),n instanceof Element&&(e!==""&&n.setAttribute("slot",e),this.defaultNode=n)),n&&(this.node=n,i.appendChild(n)),n}getSlotChildren(){const{slotName:i}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===i||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&i==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(i){const{slotInitializer:e}=this;e&&e(i,this.host)}initCustomNode(i){}teardownNode(i){}initAddedNode(i){i!==this.defaultNode&&(this.initCustomNode(i),this.initNode(i))}observeSlot(){const{slotName:i}=this,e=i===""?"slot:not([name])":`slot[name=${i}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Uf(r,({addedNodes:n,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=n.filter(l=>!Ef(l)&&!s.includes(l));o.length&&(this.nodes=s.filter(l=>!o.includes(l)),o.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)))})}}/**
2835
2846
  * @license
2836
2847
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2837
2848
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2838
- */class Da 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 e=this.node;e&&(e.ariaTarget=i)}setContext(i){this.context=i;const e=this.node;e&&(e.context=i)}setManual(i){this.manual=i;const e=this.node;e&&(e.manual=i)}setOpened(i){this.opened=i;const e=this.node;e&&(e.opened=i)}setPosition(i){this.position=i;const e=this.node;e&&(e._position=i)}setShouldShow(i){this.shouldShow=i;const e=this.node;e&&(e.shouldShow=i)}setTarget(i){this.target=i;const e=this.node;e&&(e.target=i)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2849
+ */class Oa extends je{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 e=this.node;e&&(e.ariaTarget=i)}setContext(i){this.context=i;const e=this.node;e&&(e.context=i)}setManual(i){this.manual=i;const e=this.node;e&&(e.manual=i)}setOpened(i){this.opened=i;const e=this.node;e&&(e.opened=i)}setPosition(i){this.position=i;const e=this.node;e&&(e._position=i)}setShouldShow(i){this.shouldShow=i;const e=this.node;e&&(e.shouldShow=i)}setTarget(i){this.target=i;const e=this.node;e&&(e.target=i)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2839
2850
  * @license
2840
2851
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2841
2852
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2842
- */const jf=F`
2853
+ */const Vf=F`
2843
2854
  :host {
2844
2855
  display: inline-block;
2845
2856
  position: relative;
@@ -2899,7 +2910,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2899
2910
  outline-color: GrayText;
2900
2911
  }
2901
2912
  }
2902
- `,Vf=t=>t`
2913
+ `,Yf=t=>t`
2903
2914
  <div class="vaadin-button-container">
2904
2915
  <span part="prefix" aria-hidden="true">
2905
2916
  <slot name="prefix"></slot>
@@ -2920,39 +2931,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2920
2931
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2921
2932
  Code distributed by Google as part of the polymer project is also
2922
2933
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2923
- */const Yf=t=>t,ka=typeof document.head.style.touchAction=="string",zr="__polymerGestures",nr="__polymerGesturesHandled",Ur="__polymerGesturesTouchAction",Po=25,Do=5,Gf=2,Wf=["mousedown","mousemove","mouseup","click"],qf=[0,1,4,2],Xf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function cn(t){return Wf.indexOf(t)>-1}let Kf=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Kf=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function Jf(t){cn(t)}const Zf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Qf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ge(t){const i=t.type;if(!cn(i))return!1;if(i==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!Xf&&(r=qf[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function ep(t){if(t.type==="click"){if(t.detail===0)return!0;const i=Fe(t);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const e=i.getBoundingClientRect(),r=t.pageX,n=t.pageY;return!(r>=e.left&&r<=e.right&&n>=e.top&&n<=e.bottom)}return!1}const Oe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function tp(t){let i="auto";const e=Oa(t);for(let r=0,n;r<e.length;r++)if(n=e[r],n[Ur]){i=n[Ur];break}return i}function Ma(t,i,e){t.movefn=i,t.upfn=e,document.addEventListener("mousemove",i),document.addEventListener("mouseup",e)}function ut(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Oa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],dn={},Ye=[];function ip(t,i){let e=document.elementFromPoint(t,i),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(t,i),n===r)break;r&&(e=r)}return e}function Fe(t){const i=Oa(t);return i.length>0?i[0]:t.target}function rp(t){const i=t.type,r=t.currentTarget[zr];if(!r)return;const n=r[i];if(!n)return;if(!t[nr]&&(t[nr]={},i.startsWith("touch"))){const s=t.changedTouches[0];if(i==="touchstart"&&t.touches.length===1&&(Oe.touch.id=s.identifier),Oe.touch.id!==s.identifier)return;ka||(i==="touchstart"||i==="touchmove")&&np(t)}const o=t[nr];if(!o.skip){for(let s=0,a;s<Ye.length;s++)a=Ye[s],n[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Ye.length;s++)a=Ye[s],n[a.name]&&!o[a.name]&&(o[a.name]=!0,a[i](t))}}function np(t){const i=t.changedTouches[0],e=t.type;if(e==="touchstart")Oe.touch.x=i.clientX,Oe.touch.y=i.clientY,Oe.touch.scrollDecided=!1;else if(e==="touchmove"){if(Oe.touch.scrollDecided)return;Oe.touch.scrollDecided=!0;const r=tp(t);let n=!1;const o=Math.abs(Oe.touch.x-i.clientX),s=Math.abs(Oe.touch.y-i.clientY);t.cancelable&&(r==="none"?n=!0:r==="pan-x"?n=s>o:r==="pan-y"&&(n=o>s)),n?t.preventDefault():wi("track")}}function Pe(t,i,e){return dn[i]?(op(t,i,e),!0):!1}function op(t,i,e){const r=dn[i],n=r.deps,o=r.name;let s=t[zr];s||(t[zr]=s={});for(let a=0,l,u;a<n.length;a++)l=n[a],!(Zf&&cn(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,rp,Jf(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);t.addEventListener(i,e),r.touchAction&&Ia(t,r.touchAction)}function hn(t){Ye.push(t),t.emits.forEach(i=>{dn[i]=t})}function sp(t){for(let i=0,e;i<Ye.length;i++){e=Ye[i];for(let r=0,n;r<e.emits.length;r++)if(n=e.emits[r],n===t)return e}return null}function Ia(t,i){ka&&t instanceof HTMLElement&&Ff.run(()=>{t.style.touchAction=i}),t[Ur]=i}function fn(t,i,e){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Yf(t).dispatchEvent(r),r.defaultPrevented){const n=e.preventer||e.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function wi(t){const i=sp(t);i.info&&(i.info.prevent=!0)}hn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ut(this.info)},mousedown(t){if(!Ge(t))return;const i=Fe(t),e=this,r=o=>{Ge(o)||(kt("up",i,o),ut(e.info))},n=o=>{Ge(o)&&kt("up",i,o),ut(e.info)};Ma(this.info,r,n),kt("down",i,t)},touchstart(t){kt("down",Fe(t),t.changedTouches[0],t)},touchend(t){kt("up",Fe(t),t.changedTouches[0],t)}});function kt(t,i,e,r){i&&fn(i,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(n){return wi(n)}})}hn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>Gf&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ut(this.info)},mousedown(t){if(!Ge(t))return;const i=Fe(t),e=this,r=o=>{const s=o.clientX,a=o.clientY;ko(e.info,s,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&wi("tap"),e.info.addMove({x:s,y:a}),Ge(o)||(e.info.state="end",ut(e.info)),i&&or(e.info,i,o),e.info.started=!0)},n=o=>{e.info.started&&r(o),ut(e.info)};Ma(this.info,r,n),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(t){const i=Fe(t),e=t.changedTouches[0],r=e.clientX,n=e.clientY;ko(this.info,r,n)&&(this.info.state==="start"&&wi("tap"),this.info.addMove({x:r,y:n}),or(this.info,i,e),this.info.state="track",this.info.started=!0)},touchend(t){const i=Fe(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),or(this.info,i,e))}});function ko(t,i,e){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-i),n=Math.abs(t.y-e);return r>=Do||n>=Do}function or(t,i,e){if(!i)return;const r=t.moves[t.moves.length-2],n=t.moves[t.moves.length-1],o=n.x-t.x,s=n.y-t.y;let a,l=0;r&&(a=n.x-r.x,l=n.y-r.y),fn(i,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:e,hover(){return ip(e.clientX,e.clientY)}})}hn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Ge(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ge(t)&&Mo(this.info,t)},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(t){Mo(this.info,t.changedTouches[0],t)}});function Mo(t,i,e){const r=Math.abs(i.clientX-t.x),n=Math.abs(i.clientY-t.y),o=Fe(e||i);!o||Qf[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=Po&&n<=Po||ep(i))&&(t.prevent||fn(o,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:e}))}/**
2934
+ */const Gf=!1,Wf=t=>t,dn=typeof document.head.style.touchAction=="string",zr="__polymerGestures",nr="__polymerGesturesHandled",Ur="__polymerGesturesTouchAction",Mo=25,Oo=5,qf=2,Xf=["mousedown","mousemove","mouseup","click"],Kf=[0,1,4,2],Jf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function fn(t){return Xf.indexOf(t)>-1}let Ia=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){Ia=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function Zf(t){if(!(fn(t)||t==="touchend")&&dn&&Ia&&Gf)return{passive:!0}}const Qf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ep={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ye(t){const i=t.type;if(!fn(i))return!1;if(i==="mousemove"){let r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!Jf&&(r=Kf[t.which]||0),!!(r&1)}return(t.button===void 0?0:t.button)===0}function tp(t){if(t.type==="click"){if(t.detail===0)return!0;const i=Be(t);if(!i.nodeType||i.nodeType!==Node.ELEMENT_NODE)return!0;const e=i.getBoundingClientRect(),r=t.pageX,n=t.pageY;return!(r>=e.left&&r<=e.right&&n>=e.top&&n<=e.bottom)}return!1}const ke={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ip(t){let i="auto";const e=La(t);for(let r=0,n;r<e.length;r++)if(n=e[r],n[Ur]){i=n[Ur];break}return i}function Na(t,i,e){t.movefn=i,t.upfn=e,document.addEventListener("mousemove",i),document.addEventListener("mouseup",e)}function lt(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const La=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],pn={},Ve=[];function rp(t,i){let e=document.elementFromPoint(t,i),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(t,i),n===r)break;r&&(e=r)}return e}function Be(t){const i=La(t);return i.length>0?i[0]:t.target}function np(t){const i=t.type,r=t.currentTarget[zr];if(!r)return;const n=r[i];if(!n)return;if(!t[nr]&&(t[nr]={},i.startsWith("touch"))){const s=t.changedTouches[0];if(i==="touchstart"&&t.touches.length===1&&(ke.touch.id=s.identifier),ke.touch.id!==s.identifier)return;dn||(i==="touchstart"||i==="touchmove")&&op(t)}const o=t[nr];if(!o.skip){for(let s=0,a;s<Ve.length;s++)a=Ve[s],n[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Ve.length;s++)a=Ve[s],n[a.name]&&!o[a.name]&&(o[a.name]=!0,a[i](t))}}function op(t){const i=t.changedTouches[0],e=t.type;if(e==="touchstart")ke.touch.x=i.clientX,ke.touch.y=i.clientY,ke.touch.scrollDecided=!1;else if(e==="touchmove"){if(ke.touch.scrollDecided)return;ke.touch.scrollDecided=!0;const r=ip(t);let n=!1;const o=Math.abs(ke.touch.x-i.clientX),s=Math.abs(ke.touch.y-i.clientY);t.cancelable&&(r==="none"?n=!0:r==="pan-x"?n=s>o:r==="pan-y"&&(n=o>s)),n?t.preventDefault():xi("track")}}function Te(t,i,e){return pn[i]?(sp(t,i,e),!0):!1}function sp(t,i,e){const r=pn[i],n=r.deps,o=r.name;let s=t[zr];s||(t[zr]=s={});for(let a=0,l,u;a<n.length;a++)l=n[a],!(Qf&&fn(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&t.addEventListener(l,np,Zf(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);t.addEventListener(i,e),r.touchAction&&Ha(t,r.touchAction)}function mn(t){Ve.push(t),t.emits.forEach(i=>{pn[i]=t})}function ap(t){for(let i=0,e;i<Ve.length;i++){e=Ve[i];for(let r=0,n;r<e.emits.length;r++)if(n=e.emits[r],n===t)return e}return null}function Ha(t,i){dn&&t instanceof HTMLElement&&Rf.run(()=>{t.style.touchAction=i}),t[Ur]=i}function _n(t,i,e){const r=new Event(i,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Wf(t).dispatchEvent(r),r.defaultPrevented){const n=e.preventer||e.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function xi(t){const i=ap(t);i.info&&(i.info.prevent=!0)}mn({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(t){if(!Ye(t))return;const i=Be(t),e=this,r=o=>{Ye(o)||(Pt("up",i,o),lt(e.info))},n=o=>{Ye(o)&&Pt("up",i,o),lt(e.info)};Na(this.info,r,n),Pt("down",i,t)},touchstart(t){Pt("down",Be(t),t.changedTouches[0],t)},touchend(t){Pt("up",Be(t),t.changedTouches[0],t)}});function Pt(t,i,e,r){i&&_n(i,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(n){return xi(n)}})}mn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>qf&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,lt(this.info)},mousedown(t){if(!Ye(t))return;const i=Be(t),e=this,r=o=>{const s=o.clientX,a=o.clientY;Io(e.info,s,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&xi("tap"),e.info.addMove({x:s,y:a}),Ye(o)||(e.info.state="end",lt(e.info)),i&&or(e.info,i,o),e.info.started=!0)},n=o=>{e.info.started&&r(o),lt(e.info)};Na(this.info,r,n),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchmove(t){const i=Be(t),e=t.changedTouches[0],r=e.clientX,n=e.clientY;Io(this.info,r,n)&&(this.info.state==="start"&&xi("tap"),this.info.addMove({x:r,y:n}),or(this.info,i,e),this.info.state="track",this.info.started=!0)},touchend(t){const i=Be(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),or(this.info,i,e))}});function Io(t,i,e){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-i),n=Math.abs(t.y-e);return r>=Oo||n>=Oo}function or(t,i,e){if(!i)return;const r=t.moves[t.moves.length-2],n=t.moves[t.moves.length-1],o=n.x-t.x,s=n.y-t.y;let a,l=0;r&&(a=n.x-r.x,l=n.y-r.y),_n(i,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:e,hover(){return rp(e.clientX,e.clientY)}})}mn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Ye(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Ye(t)&&No(this.info,t)},touchstart(t){const i=t.changedTouches[0];this.info.x=i.clientX,this.info.y=i.clientY},touchend(t){No(this.info,t.changedTouches[0],t)}});function No(t,i,e){const r=Math.abs(i.clientX-t.x),n=Math.abs(i.clientY-t.y),o=Be(e||i);!o||ep[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=Mo&&n<=Mo||tp(i))&&(t.prevent||_n(o,"tap",{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:e}))}/**
2924
2935
  * @license
2925
2936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2926
2937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2927
- */const Na=te(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2938
+ */const $a=te(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2928
2939
  * @license
2929
2940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2930
2941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2931
- */const Ni=te(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2942
+ */const Ii=te(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2932
2943
  * @license
2933
2944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2934
2945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2935
- */const ap=t=>class extends Na(Ni(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Pe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Pe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2946
+ */const lp=t=>class extends $a(Ii(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Te(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Te(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2936
2947
  * @license
2937
2948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2938
2949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2939
- */const pn=te(t=>class extends t{get _keyboardActive(){return ln()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2950
+ */const gn=te(t=>class extends t{get _keyboardActive(){return cn()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2940
2951
  * @license
2941
2952
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2942
2953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2943
- */const Ha=t=>class extends Na(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2954
+ */const Ba=t=>class extends $a(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2944
2955
  * @license
2945
2956
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2946
2957
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2947
- */const lp=t=>class extends ap(Ha(pn(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2958
+ */const up=t=>class extends lp(Ba(gn(t))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
2948
2959
  * @license
2949
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2950
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2951
- */Q("vaadin-button",jf,{moduleId:"vaadin-button-styles"});class up extends lp(Ta(Xe(Et(Re)))){static get is(){return"vaadin-button"}static get template(){return Vf(Je)}ready(){super.ready(),this._tooltipController=new Da(this),this.addController(this._tooltipController)}}De(up);/**
2962
+ */Q("vaadin-button",Vf,{moduleId:"vaadin-button-styles"});class cp extends up(ka(qe(wt(Fe)))){static get is(){return"vaadin-button"}static get template(){return Yf(Ke)}ready(){super.ready(),this._tooltipController=new Oa(this),this.addController(this._tooltipController)}}Pe(cp);/**
2952
2963
  * @license
2953
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2954
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2955
- */function cp(t){let i=t.getDay();i===0&&(i=7);const e=4-i,r=new Date(t.getTime()+e*24*3600*1e3),n=new Date(0,0);n.setFullYear(r.getFullYear());const o=r.getTime()-n.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function jr(t){const i=new Date(t);return i.setHours(0,0,0,0),i}function Ee(t,i,e=jr){return t instanceof Date&&i instanceof Date&&e(t).getTime()===e(i).getTime()}function mn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function gt(t,i,e,r){let n=!1;if(typeof r=="function"&&t){const o=mn(t);n=r(o)}return(!i||t>=i)&&(!e||t<=e)&&!n}function La(t,i){return i.filter(e=>e!==void 0).reduce((e,r)=>{if(!r)return e;if(!e)return r;const n=Math.abs(t.getTime()-r.getTime()),o=Math.abs(e.getTime()-t.getTime());return n<o?r:e})}function Ba(t){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(t)+i.getMonth()),e}function dp(t,i,e=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 n=i+Math.floor(t.getFullYear()/100)*100;return t<new Date(n-50,e,r)?n-=100:t>new Date(n+50,e,r)&&(n+=100),n}function It(t){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}function hp(t){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",r="0000",n=t.year;n<0?(n=-n,e="-",r="000000"):t.year>=1e4&&(e="+",r="000000");const o=e+i(n,r),s=i(t.month+1),a=i(t.day);return[o,s,a].join("-")}function fp(t){return t instanceof Date?hp({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}/**
2966
+ */function hp(t){let i=t.getDay();i===0&&(i=7);const e=4-i,r=new Date(t.getTime()+e*24*3600*1e3),n=new Date(0,0);n.setFullYear(r.getFullYear());const o=r.getTime()-n.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function jr(t){const i=new Date(t);return i.setHours(0,0,0,0),i}function Ie(t,i,e=jr){return t instanceof Date&&i instanceof Date&&e(t).getTime()===e(i).getTime()}function bn(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function _t(t,i,e,r){let n=!1;if(typeof r=="function"&&t){const o=bn(t);n=r(o)}return(!i||t>=i)&&(!e||t<=e)&&!n}function Fa(t,i){return i.filter(e=>e!==void 0).reduce((e,r)=>{if(!r)return e;if(!e)return r;const n=Math.abs(t.getTime()-r.getTime()),o=Math.abs(e.getTime()-t.getTime());return n<o?r:e})}function Ra(t){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(t)+i.getMonth()),e}function dp(t,i,e=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 n=i+Math.floor(t.getFullYear()/100)*100;return t<new Date(n-50,e,r)?n-=100:t>new Date(n+50,e,r)&&(n+=100),n}function Dt(t){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}function fp(t){const i=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",r="0000",n=t.year;n<0?(n=-n,e="-",r="000000"):t.year>=1e4&&(e="+",r="000000");const o=e+i(n,r),s=i(t.month+1),a=i(t.day);return[o,s,a].join("-")}function pp(t){return t instanceof Date?fp({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}/**
2956
2967
  @license
2957
2968
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2958
2969
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2960,7 +2971,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2960
2971
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2961
2972
  Code distributed by Google as part of the polymer project is also
2962
2973
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2963
- */class Ei{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Xt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Xt.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,e,r){return i instanceof Ei?i._cancelAsync():i=new Ei,i.setConfig(e,r),i}}let Xt=new Set;const pp=function(t){Xt.add(t)},mp=function(){const t=!!Xt.size;return Xt.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
2974
+ */class wi{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Wt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Wt.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,e,r){return i instanceof wi?i._cancelAsync():i=new wi,i.setConfig(e,r),i}}let Wt=new Set;const mp=function(t){Wt.add(t)},_p=function(){const t=!!Wt.size;return Wt.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
2964
2975
  @license
2965
2976
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2966
2977
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2968,11 +2979,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2968
2979
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2969
2980
  Code distributed by Google as part of the polymer project is also
2970
2981
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2971
- */const _n=function(){let t,i;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=mp();while(t||i)};/**
2982
+ */const vn=function(){let t,i;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=_p();while(t||i)};/**
2972
2983
  * @license
2973
2984
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2974
2985
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2975
- */const $a=document.createElement("template");$a.innerHTML=`
2986
+ */const za=document.createElement("template");za.innerHTML=`
2976
2987
  <style>
2977
2988
  :host {
2978
2989
  display: block;
@@ -3022,11 +3033,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3022
3033
  <div class="buffer"></div>
3023
3034
  <div id="fullHeight"></div>
3024
3035
  </div>
3025
- `;class Fa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild($a.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"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),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`)}disconnectedCallback(){this._debouncerScrollFinish&&this._debouncerScrollFinish.cancel(),this._debouncerUpdateClones&&this._debouncerUpdateClones.cancel(),this.__pendingFinishInit&&cancelAnimationFrame(this.__pendingFinishInit)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),_n()}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+e,n=i<this._buffers[0].translateY+e;(r||n)&&(this._translateBuffer(n),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,xi.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(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,xi.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let r=0;r<this.bufferSize;r++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const o=`vaadin-infinite-scroller-item-content-${Pa()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=n,e.appendChild(s),n.setAttribute("slot",o),this.appendChild(n),this._isVisible(n,i)&&this._ensureStampedInstance(n)}}),this.__pendingFinishInit=requestAnimationFrame(()=>{this._finishInit(),this.__pendingFinishInit=null})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),i.instance.performUpdate&&i.instance.performUpdate(),Object.keys(e).forEach(r=>{i.instance[r]=e[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,n)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*n;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,e))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(i,e){const r=i.getBoundingClientRect();return r.bottom>e.top&&r.top<e.bottom}}/**
3036
+ `;class Ua extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(za.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"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),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()),vn()}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,r=i>this._buffers[1].translateY+e,n=i<this._buffers[0].translateY+e;(r||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=mt.debounce(this._debouncerScrollFinish,yi.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(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=mt.debounce(this._debouncerUpdateClones,yi.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let r=0;r<this.bufferSize;r++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const o=`vaadin-infinite-scroller-item-content-${Ma()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=n,e.appendChild(s),n.setAttribute("slot",o),this.appendChild(n),this._isVisible(n,i)&&this._ensureStampedInstance(n)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(e).forEach(r=>{i.instance[r]=e[r]})}_updateClones(i){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,n)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*n;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!i||this._isVisible(l,e))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(i,e){const r=i.getBoundingClientRect();return r.bottom>e.top&&r.top<e.bottom}}/**
3026
3037
  * @license
3027
3038
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3028
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3029
- */const Ra=document.createElement("template");Ra.innerHTML=`
3040
+ */const ja=document.createElement("template");ja.innerHTML=`
3030
3041
  <style>
3031
3042
  :host {
3032
3043
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3038,11 +3049,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3038
3049
  height: 100%;
3039
3050
  }
3040
3051
  </style>
3041
- `;class _p extends Fa{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ra.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=Ba(e)}}De(_p);/**
3052
+ `;class gp extends Ua{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ja.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=Ra(e)}}Pe(gp);/**
3042
3053
  * @license
3043
3054
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3044
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3045
- */const za=document.createElement("template");za.innerHTML=`
3056
+ */const Va=document.createElement("template");Va.innerHTML=`
3046
3057
  <style>
3047
3058
  :host {
3048
3059
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3076,15 +3087,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3076
3087
  border-left-color: #000;
3077
3088
  }
3078
3089
  </style>
3079
- `;class gp extends Fa{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(za.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,r=new Date(e);return r.setFullYear(parseInt(i)+e.getFullYear()),r.getFullYear()}}De(gp);/**
3090
+ `;class bp extends Ua{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Va.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,r=new Date(e);return r.setFullYear(parseInt(i)+e.getFullYear()),r.getFullYear()}}Pe(bp);/**
3080
3091
  * @license
3081
3092
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3082
3093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3083
- */const bp=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,r){this.toggleAttribute("selected",r&&r.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3094
+ */const vp=t=>class extends t{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,r){this.toggleAttribute("selected",r&&r.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3084
3095
  * @license
3085
3096
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3086
3097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3087
- */class vp extends Xe(bp(Re)){static get is(){return"vaadin-date-picker-year"}static get template(){return Je`
3098
+ */class yp extends qe(vp(Fe)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ke`
3088
3099
  <style>
3089
3100
  :host {
3090
3101
  display: block;
@@ -3093,7 +3104,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3093
3104
  </style>
3094
3105
  <div part="year-number">[[year]]</div>
3095
3106
  <div part="year-separator" aria-hidden="true"></div>
3096
- `}}De(vp);/**
3107
+ `}}Pe(yp);/**
3097
3108
  @license
3098
3109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3099
3110
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3101,7 +3112,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3101
3112
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3102
3113
  Code distributed by Google as part of the polymer project is also
3103
3114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3104
- */function gn(t,i,e,r,n){let o;n&&(o=typeof e=="object"&&e!==null,o&&(r=t.__dataTemp[i]));let s=r!==e&&(r===r||e===e);return o&&s&&(t.__dataTemp[i]=e),s}const bn=te(t=>{class i extends t{_shouldPropertyChange(r,n,o){return gn(this,r,n,o,!0)}}return i}),yp=te(t=>{class i extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,n,o){return gn(this,r,n,o,this.mutableData)}}return i});bn._mutablePropertyChange=gn;/**
3115
+ */function yn(t,i,e,r,n){let o;n&&(o=typeof e=="object"&&e!==null,o&&(r=t.__dataTemp[i]));let s=r!==e&&(r===r||e===e);return o&&s&&(t.__dataTemp[i]=e),s}const xn=te(t=>{class i extends t{_shouldPropertyChange(r,n,o){return yn(this,r,n,o,!0)}}return i}),xp=te(t=>{class i extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,n,o){return yn(this,r,n,o,this.mutableData)}}return i});xn._mutablePropertyChange=yn;/**
3105
3116
  @license
3106
3117
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3107
3118
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3109,7 +3120,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3109
3120
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3110
3121
  Code distributed by Google as part of the polymer project is also
3111
3122
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3112
- */let Vr=null;function Yr(){return Vr}Yr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Yr,writable:!0}});const Ua=sn(Yr),xp=bn(Ua);function wp(t,i){Vr=t,Object.setPrototypeOf(t,i.prototype),new i,Vr=null}const Ep=sn(class{});function Sp(t,i){for(let e=0;e<i.length;e++){let r=i[e];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),se(se(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const n=r.__polymerReplaced__;n&&se(se(n).parentNode).replaceChild(r,n)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class ze extends Ep{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let n=this.root.firstChild;n;n=n.nextSibling)e.push(n),n.__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,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,n=>{n.model=this,r(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(i,e,r)}}_showHideChildren(i){Sp(i,this.children)}_setUnmanagedPropertyToNode(i,e,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,e,r)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}ze.prototype.__dataHost;ze.prototype.__templatizeOptions;ze.prototype._methodHost;ze.prototype.__templatizeOwner;ze.prototype.__hostProps;const Ap=bn(ze);function Oo(t){let i=t.__dataHost;return i&&i._methodHost||i}function Cp(t,i,e){let r=e.mutableData?Ap:ze;Gr.mixin&&(r=Gr.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=e,n.prototype._bindTemplate(t),Dp(n,t,i,e),n}function Tp(t,i,e,r){let n=e.forwardHostProp;if(n&&i.hasHostProps){const o=t.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(o){let l=e.mutableData?xp:Ua;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=t.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:Pp(l,n)}),s.prototype._createNotifyingProperty("_host_"+l);Ws&&r&&Op(i,e,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),o)wp(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Pp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,n.substring(6),o[n])}}function Dp(t,i,e,r){let n=e.hostProps||{};for(let o in r.instanceProps){delete n[o];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:kp(o,s)})}if(r.forwardHostProp&&i.__dataHost)for(let o in n)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Mp()})}function kp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,r,n,o[n])}}function Mp(){return function(i,e,r){i.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function Gr(t,i,e){if(vi&&!Oo(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=i;let n=(i?i.constructor:ze)._parseTemplate(t),o=n.templatizeInstanceClass;o||(o=Cp(t,n,e),n.templatizeInstanceClass=o);const s=Oo(t);Tp(t,n,e,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=n.hostProps,a=a,a}function Op(t,i,e){const r=e.constructor._properties,{propertyEffects:n}=t,{instanceProps:o}=i;for(let s in n)if(!r[s]&&!(o&&o[s])){const a=n[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 Ip(t,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=t)i=e.__dataHost;else return e;else i=se(i).parentNode;return null}/**
3123
+ */let Vr=null;function Yr(){return Vr}Yr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Yr,writable:!0}});const Ya=ln(Yr),wp=xn(Ya);function Ep(t,i){Vr=t,Object.setPrototypeOf(t,i.prototype),new i,Vr=null}const Sp=ln(class{});function Ap(t,i){for(let e=0;e<i.length;e++){let r=i[e];if(!!t!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),se(se(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const n=r.__polymerReplaced__;n&&se(se(n).parentNode).replaceChild(r,n)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}class Re extends Sp{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let n=this.root.firstChild;n;n=n.nextSibling)e.push(n),n.__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,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,n=>{n.model=this,r(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(i,e,r)}}_showHideChildren(i){Ap(i,this.children)}_setUnmanagedPropertyToNode(i,e,r){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(i,e,r)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.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 Cp=xn(Re);function Lo(t){let i=t.__dataHost;return i&&i._methodHost||i}function Tp(t,i,e){let r=e.mutableData?Cp:Re;Gr.mixin&&(r=Gr.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=e,n.prototype._bindTemplate(t),kp(n,t,i,e),n}function Pp(t,i,e,r){let n=e.forwardHostProp;if(n&&i.hasHostProps){const o=t.localName=="template";let s=i.templatizeTemplateClass;if(!s){if(o){let l=e.mutableData?wp:Ya;class u extends l{}s=i.templatizeTemplateClass=u}else{const l=t.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:Dp(l,n)}),s.prototype._createNotifyingProperty("_host_"+l);Ks&&r&&Ip(i,e,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),o)Ep(t,s),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,s.prototype);const a=i.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function Dp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,n.substring(6),o[n])}}function kp(t,i,e,r){let n=e.hostProps||{};for(let o in r.instanceProps){delete n[o];let s=r.notifyInstanceProp;s&&t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Mp(o,s)})}if(r.forwardHostProp&&i.__dataHost)for(let o in n)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Op()})}function Mp(t,i){return function(r,n,o){i.call(r.__templatizeOwner,r,n,o[n])}}function Op(){return function(i,e,r){i.__dataHost._setPendingPropertyOrPath("_host_"+e,r[e],!0,!0)}}function Gr(t,i,e){if(bi&&!Lo(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=i;let n=(i?i.constructor:Re)._parseTemplate(t),o=n.templatizeInstanceClass;o||(o=Tp(t,n,e),n.templatizeInstanceClass=o);const s=Lo(t);Pp(t,n,e,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=i,a.prototype.__hostProps=n.hostProps,a=a,a}function Ip(t,i,e){const r=e.constructor._properties,{propertyEffects:n}=t,{instanceProps:o}=i;for(let s in n)if(!r[s]&&!(o&&o[s])){const a=n[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 Np(t,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=t)i=e.__dataHost;else return e;else i=se(i).parentNode;return null}/**
3113
3124
  @license
3114
3125
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3115
3126
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3117,7 +3128,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3117
3128
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3118
3129
  Code distributed by Google as part of the polymer project is also
3119
3130
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3120
- */let Io=!1;function Np(){if(Gs&&!Ys){if(!Io){Io=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3131
+ */let Ho=!1;function Lp(){if(Xs&&!qs){if(!Ho){Ho=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3121
3132
  @license
3122
3133
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3123
3134
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3125,11 +3136,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3125
3136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3126
3137
  Code distributed by Google as part of the polymer project is also
3127
3138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3128
- */const Hp=yp(Re);class No extends Hp{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:!oo,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(),Np()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=se(se(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i:this.querySelector("template");if(!e){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Gr(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(n,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(n,o)},notifyInstanceProp:function(n,o,s){if($d(this.as,o)){let a=n[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Gt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,r=this.__getMethodHost();return function(){return r[e].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 e=this.__observePaths;for(let r=0;r<e.length;r++)i.indexOf(e[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,e=0){this.__renderDebouncer=Ei.debounce(this.__renderDebouncer,e>0?Vd.after(e):ra,i.bind(this)),pp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),_n()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),r=this.__calculateLimit(e.length);this.__updateInstances(i,r,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!oo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let r=0;r<i.length;r++)e[r]=r;return this.__filterFn&&(e=e.filter((r,n,o)=>this.__filterFn(i[r],n,o))),this.__sortFn&&e.sort((r,n)=>this.__sortFn(i[r],i[n])),e}__calculateLimit(i){let e=i;const r=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),n=Math.max(e-r,0),this.__chunkCount=n||1):(n=Math.min(Math.max(i-r,0),this.__chunkCount),e=Math.min(r+n,i)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,r){const n=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let s=this.__instances[o],a=r[o],l=i[a];n[a]=o,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,o,a)}for(let s=this.__instances.length-1;s>=o;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let e=this.__instances[i];const r=se(e.root);for(let n=0;n<e.children.length;n++){let o=e.children[n];r.appendChild(o)}return e}__attachInstance(i,e){let r=this.__instances[i];e.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,r){let n={};return n[this.as]=i,n[this.indexAs]=e,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(i,e,r){const n=this.__stampInstance(i,e,r);let o=this.__instances[e+1],s=o?o.children[0]:this;return se(se(this).parentNode).insertBefore(n.root,s),this.__instances[e]=n,n}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let r=i.slice(6),n=r.indexOf("."),o=n<0?r:r.substring(0,n);if(o==parseInt(o,10)){let s=n<0?"":r.substring(n+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return Ip(this.template,i)}}customElements.define(No.is,No);/**
3139
+ */const Hp=xp(Fe);class $o extends Hp{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:!lo,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(),Lp()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=se(se(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i:this.querySelector("template");if(!e){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Gr(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(n,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(n,o)},notifyInstanceProp:function(n,o,s){if(Fh(this.as,o)){let a=n[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Vt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,r=this.__getMethodHost();return function(){return r[e].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 e=this.__observePaths;for(let r=0;r<e.length;r++)i.indexOf(e[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,e=0){this.__renderDebouncer=wi.debounce(this.__renderDebouncer,e>0?Yh.after(e):sa,i.bind(this)),mp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),vn()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),r=this.__calculateLimit(e.length);this.__updateInstances(i,r,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!lo||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let r=0;r<i.length;r++)e[r]=r;return this.__filterFn&&(e=e.filter((r,n,o)=>this.__filterFn(i[r],n,o))),this.__sortFn&&e.sort((r,n)=>this.__sortFn(i[r],i[n])),e}__calculateLimit(i){let e=i;const r=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),n=Math.max(e-r,0),this.__chunkCount=n||1):(n=Math.min(Math.max(i-r,0),this.__chunkCount),e=Math.min(r+n,i)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,r){const n=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let s=this.__instances[o],a=r[o],l=i[a];n[a]=o,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,a),s._flushProperties()):this.__insertInstance(l,o,a)}for(let s=this.__instances.length-1;s>=o;s--)this.__detachAndRemoveInstance(s)}__detachInstance(i){let e=this.__instances[i];const r=se(e.root);for(let n=0;n<e.children.length;n++){let o=e.children[n];r.appendChild(o)}return e}__attachInstance(i,e){let r=this.__instances[i];e.insertBefore(r.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,r){let n={};return n[this.as]=i,n[this.indexAs]=e,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(i,e,r){const n=this.__stampInstance(i,e,r);let o=this.__instances[e+1],s=o?o.children[0]:this;return se(se(this).parentNode).insertBefore(n.root,s),this.__instances[e]=n,n}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let r=i.slice(6),n=r.indexOf("."),o=n<0?r:r.substring(0,n);if(o==parseInt(o,10)){let s=n<0?"":r.substring(n+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return Np(this.template,i)}}customElements.define($o.is,$o);/**
3129
3140
  * @license
3130
3141
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3131
3142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3132
- */const Lp=t=>class extends pn(t){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},enteredDate:{type:Date},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean},__hasFocus:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Ee(e.date,this.focusedDate))}ready(){super.ready(),Pe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_setFocused(e){super._setFocused(e),this.__hasFocus=e}_isDisabled(e,r,n){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),r&&n&&r.getMonth()===n.getMonth()&&r.getMonth()===e.getMonth()&&n.getDate()-r.getDate()>=0?!1:!gt(o,r,n)&&!gt(s,r,n)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:n,weekdaysShort:o,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(n,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(n=>Ee(n,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return Ee(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const n=new Date(0,0);for(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);n.getDay()!==r.firstDayOfWeek;)this._dateAdd(n,-1);const o=[],s=n.getMonth(),a=e.getMonth();for(;n.getMonth()===a||n.getMonth()===s;)o.push(n.getMonth()===a?new Date(n.getTime()):null),this._dateAdd(n,1);return o}_getWeeks(e){return e.reduce((r,n,o)=>(o%7===0&&r.push([]),r[r.length-1].push(n),r),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const r=e.reduce((n,o)=>!n&&o?o:n);return cp(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
3143
+ */const $p=t=>class extends gn(t){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Ie(e.date,this.focusedDate))}ready(){super.ready(),Te(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,r,n){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),r&&n&&r.getMonth()===n.getMonth()&&r.getMonth()===e.getMonth()&&n.getDate()-r.getDate()>=0?!1:!_t(o,r,n)&&!_t(s,r,n)}_getTitle(e,r){if(!(e===void 0||r===void 0))return r.formatTitle(r.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,r){e.setDate(e.getDate()+r)}_applyFirstDayOfWeek(e,r){if(!(e===void 0||r===void 0))return e.slice(r).concat(e.slice(0,r))}_getWeekDayNames(e,r){if(e===void 0||r===void 0)return[];const{weekdays:n,weekdaysShort:o,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(n,s).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,r){Array.isArray(r)&&r.some(n=>Ie(n,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,r){return e&&r&&r.firstDayOfWeek===1}_isToday(e){return Ie(new Date,e)}_getDays(e,r){if(e===void 0||r===void 0)return[];const n=new Date(0,0);for(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);n.getDay()!==r.firstDayOfWeek;)this._dateAdd(n,-1);const o=[],s=n.getMonth(),a=e.getMonth();for(;n.getMonth()===a||n.getMonth()===s;)o.push(n.getMonth()===a?new Date(n.getTime()):null),this._dateAdd(n,1);return o}_getWeeks(e){return e.reduce((r,n,o)=>(o%7===0&&r.push([]),r[r.length-1].push(n),r),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const r=e.reduce((n,o)=>!n&&o?o:n);return hp(r)}__getDayAriaLabel(e){if(!e)return"";let r=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(r+=`, ${this.i18n.today}`),r}};/**
3133
3144
  * @license
3134
3145
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3135
3146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3193,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3193
3204
  * @license
3194
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3195
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3196
- */Q("vaadin-month-calendar",Bp,{moduleId:"vaadin-month-calendar-styles"});class $p extends Lp(Xe(Re)){static get template(){return Je`
3207
+ */Q("vaadin-month-calendar",Bp,{moduleId:"vaadin-month-calendar-styles"});class Fp extends $p(qe(Fe)){static get template(){return Ke`
3197
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3198
3209
  <table
3199
3210
  id="monthGrid"
@@ -3221,7 +3232,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3221
3232
  <template is="dom-repeat" items="[[week]]">
3222
3233
  <td
3223
3234
  role="gridcell"
3224
- part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled, enteredDate, __hasFocus)]]"
3235
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled)]]"
3225
3236
  date="[[item]]"
3226
3237
  tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3227
3238
  disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
@@ -3235,19 +3246,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3235
3246
  </template>
3236
3247
  </tbody>
3237
3248
  </table>
3238
- `}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,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,r,n,o,s,a,l){const u=["date"],c=i>jr(new Date),d=i<jr(new Date);return this.__isDayDisabled(i,n,o,s)&&u.push("disabled"),Ee(i,e)&&(l||Ee(i,a))&&u.push("focused"),this.__isDaySelected(i,r)&&u.push("selected"),this._isToday(i)&&u.push("today"),d&&u.push("past"),c&&u.push("future"),u.join(" ")}__isDaySelected(i,e){return Ee(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,r,n){return!gt(i,e,r,n)}__getDayAriaDisabled(i,e,r,n){if(!(i===void 0||e===void 0&&r===void 0&&n===void 0)&&this.__isDayDisabled(i,e,r,n))return"true"}__getDayTabindex(i,e){return Ee(i,e)?"0":"-1"}}De($p);/**
3249
+ `}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,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,r,n,o,s){const a=["date"],l=i>jr(new Date),u=i<jr(new Date);return this.__isDayDisabled(i,n,o,s)&&a.push("disabled"),this.__isDayFocused(i,e)&&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,e){return Ie(i,e)}__isDaySelected(i,e){return Ie(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,r,n){return!_t(i,e,r,n)}__getDayAriaDisabled(i,e,r,n){if(!(i===void 0||e===void 0&&r===void 0&&n===void 0)&&this.__isDayDisabled(i,e,r,n))return"true"}__getDayTabindex(i,e){return this.__isDayFocused(i,e)?"0":"-1"}}Pe(Fp);/**
3239
3250
  * @license
3240
3251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3241
3252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3242
- */class ja{constructor(i,e){this.query=i,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
3253
+ */class Ga{constructor(i,e){this.query=i,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
3243
3254
  * @license
3244
3255
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3245
3256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3246
- */const Fp=t=>class extends t{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",sync:!0},_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},enteredDate:{type:Date,sync:!0},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, enteredDate)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ia(this.$.scrollers,"pan-y"),Pe(this.$.scrollers,"track",this._track.bind(this)),Pe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Pe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Pe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ja(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ve(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Pe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ve(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Pe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,r){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+n,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ve(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(n=>{n.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ve(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Pe(e,"tap",r=>{this._onYearTap(r)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,n,o,s){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(n,o,s))}__updateCalendars(e,r,n,o,s,a,l,u,c,d,h){e&&e.length&&e.forEach(f=>{f.i18n=r,f.minDate=n,f.maxDate=o,f.isDateDisabled=d,f.focusedDate=a,f.selectedDate=s,f.showWeekNumbers=l,f.ignoreTaps=u,f.enteredDate=h,c?f.setAttribute("theme",c):f.removeAttribute("theme")})}__updateYears(e,r,n){e&&e.length&&e.forEach(o=>{o.selectedDate=r,n?o.setAttribute("theme",n):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,r=!0){if(!e)return;const n=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(n+u,r);return}const o=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;o?this._scrollToPosition(n,r):l&&this._scrollToPosition(n-a+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let n=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=_t.debounce(this._debouncer,xi.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,n){return e&&r&&typeof r.formatDate=="function"?r.formatDate(mn(e)):n}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const n=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(e,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let n;this._revealPromise=new Promise(u=>{n=u});const o=(u,c,d,h)=>(u/=h/2,u<1?d/2*u*u+c:(u-=1,-d/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 d=o(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=d,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,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,r){return Math.min(r.max,Math.max(r.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ba(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Ee(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.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(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&Ee(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(e,r){return At(this,null,function*(){const n=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,r||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return At(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{ya(this,()=>{_n(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(La(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,n){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,n):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+e),r&&n.setDate(this.focusedDate.getDate()+r),n}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),n=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==n&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const n=new Date(0,0);n.setFullYear(e.getFullYear()),r==="minDate"?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(e)?this.focusDate(this[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,n=this.maxDate,o=this.isDateDisabled){return gt(e,r,n,o)}_isTodayAllowed(e,r,n){return this._dateAllowed(this._getTodayMidnight(),e,r,n)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
3257
+ */const Rp=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ha(this.$.scrollers,"pan-y"),Te(this.$.scrollers,"track",this._track.bind(this)),Te(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Te(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Te(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ga(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new je(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),Te(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new je(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),Te(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,r){const n=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+n,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new je(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),e.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(n=>{n.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new je(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Te(e,"tap",r=>{this._onYearTap(r)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,r){e&&(e.textContent=r&&r.cancel)}__updateTodayButton(e,r,n,o,s){e&&(e.textContent=r&&r.today,e.disabled=!this._isTodayAllowed(n,o,s))}__updateCalendars(e,r,n,o,s,a,l,u,c,h){e&&e.length&&e.forEach(d=>{d.i18n=r,d.minDate=n,d.maxDate=o,d.isDateDisabled=h,d.focusedDate=a,d.selectedDate=s,d.showWeekNumbers=l,d.ignoreTaps=u,c?d.setAttribute("theme",c):d.removeAttribute("theme")})}__updateYears(e,r,n){e&&e.length&&e.forEach(o=>{o.selectedDate=r,n?o.setAttribute("theme",n):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,r=!0){if(!e)return;const n=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(n+u,r);return}const o=this._monthScroller.position>n,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<n;o?this._scrollToPosition(n,r):l&&this._scrollToPosition(n-a+1,r)}_calculateWeekScrollOffset(e){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);let n=0;for(;r.getDate()<e.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(n+=1);return n/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=mt.debounce(this._debouncer,yi.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,r,n){return e&&r&&typeof r.formatDate=="function"?r.formatDate(bn(e)):n}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const n=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+n*12,!0)}}_scrollToPosition(e,r){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!r){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let n;this._revealPromise=new Promise(u=>{n=u});const o=(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=o(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,n(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,r){return Math.min(r.max,Math.max(r.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+e.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ra(e).getFullYear()}_differenceInMonths(e,r){return(e.getFullYear()-r.getFullYear())*12-r.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Ie(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let r=!1;switch(e.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(e.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}r&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,r){switch(e.stopPropagation(),r){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&Ie(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(e,r){return Et(this,null,function*(){const n=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=n,r||(this._focusedMonthDate=n.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Et(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{Ea(this,()=>{vn(),r()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Fa(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,r,n){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,n):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,r){const n=new Date(0,0);return n.setFullYear(this.focusedDate.getFullYear()),n.setMonth(this.focusedDate.getMonth()+e),r&&n.setDate(this.focusedDate.getDate()+r),n}_moveFocusByDays(e){const r=this._getDateDiff(0,e);this._focusAllowedDate(r,e,!1)}_moveFocusByMonths(e){const r=this._getDateDiff(e),n=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==n&&r.setDate(0),this._focusAllowedDate(r,e,!0)}_moveFocusInsideMonth(e,r){const n=new Date(0,0);n.setFullYear(e.getFullYear()),r==="minDate"?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n)?this.focusDate(n):this._dateAllowed(e)?this.focusDate(this[r]):this._focusClosestDate(e)}_dateAllowed(e,r=this.minDate,n=this.maxDate,o=this.isDateDisabled){return _t(e,r,n,o)}_isTodayAllowed(e,r,n){return this._dateAllowed(this._getTodayMidnight(),e,r,n)}_getTodayMidnight(){const e=new Date,r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}};/**
3247
3258
  * @license
3248
3259
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3249
3260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3250
- */const Rp=F`
3261
+ */const zp=F`
3251
3262
  :host {
3252
3263
  display: flex;
3253
3264
  flex-direction: column;
@@ -3311,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3311
3322
  * @license
3312
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3313
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3314
- */Q("vaadin-date-picker-overlay-content",Rp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class zp extends Fp(Et(Xe(Mi(Re)))){static get template(){return Je`
3325
+ */Q("vaadin-date-picker-overlay-content",zp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Up extends Rp(wt(qe(ki(Fe)))){static get template(){return Ke`
3315
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3316
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3317
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3331,92 +3342,92 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3331
3342
  <slot name="today-button"></slot>
3332
3343
  <slot name="cancel-button"></slot>
3333
3344
  </div>
3334
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}De(zp);/**
3345
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Pe(Up);/**
3335
3346
  * @license
3336
3347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3337
3348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3338
- */const Va=te(t=>class extends pn(Ha(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,r){super._disabledChanged(e,r),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3349
+ */const Wa=te(t=>class extends gn(Ba(t)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,r){super._disabledChanged(e,r),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3339
3350
  * @license
3340
3351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3341
3352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3342
- */const sr=new WeakMap;function Up(t){return sr.has(t)||sr.set(t,new Set),sr.get(t)}function jp(t,i){const e=document.createElement("style");e.textContent=t,i===document?document.head.appendChild(e):i.insertBefore(e,i.firstChild)}const Vp=te(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=Up(e);this.slotStyles.forEach(n=>{r.has(n)||(jp(n,e),r.add(n))})}});/**
3353
+ */const sr=new WeakMap;function jp(t){return sr.has(t)||sr.set(t,new Set),sr.get(t)}function Vp(t,i){const e=document.createElement("style");e.textContent=t,i===document?document.head.appendChild(e):i.insertBefore(e,i.firstChild)}const Yp=te(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),r=jp(e);this.slotStyles.forEach(n=>{r.has(n)||(Vp(n,e),r.add(n))})}});/**
3343
3354
  * @license
3344
3355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3345
3356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3346
- */const Ya=te(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e),this._hasInputValue=e&&e.length>0}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3357
+ */const qa=te(t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3347
3358
  * @license
3348
3359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3349
3360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3350
- */const Yp=t=>class extends Ya(Ni(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),cf||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3361
+ */const Gp=t=>class extends qa(Ii(t)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),hf||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3351
3362
  * @license
3352
3363
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3353
3364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3354
- */const ar=new Map;function vn(t){return ar.has(t)||ar.set(t,new WeakMap),ar.get(t)}function Ga(t,i){t&&t.removeAttribute(i)}function Wa(t,i){if(!t||!i)return;const e=vn(i);if(e.has(t))return;const r=un(t.getAttribute(i));e.set(t,new Set(r))}function Gp(t,i){if(!t)return;const e=vn(i),r=e.get(t);!r||r.size===0?t.removeAttribute(i):Sa(t,i,Ii(r)),e.delete(t)}function lr(t,i,e={newId:null,oldId:null,fromUser:!1}){if(!t||!i)return;const{newId:r,oldId:n,fromUser:o}=e,s=vn(i),a=s.get(t);if(!o&&a){n&&a.delete(n),r&&a.add(r);return}o&&(a?r||s.delete(t):Wa(t,i),Ga(t,i)),xf(t,i,n);const l=r||Ii(a);l&&Sa(t,i,l)}function Wp(t,i){Wa(t,i),Ga(t,i)}/**
3365
+ */const ar=new Map;function wn(t){return ar.has(t)||ar.set(t,new WeakMap),ar.get(t)}function Xa(t,i){t&&t.removeAttribute(i)}function Ka(t,i){if(!t||!i)return;const e=wn(i);if(e.has(t))return;const r=hn(t.getAttribute(i));e.set(t,new Set(r))}function Wp(t,i){if(!t||!i)return;const e=wn(i),r=e.get(t);!r||r.size===0?t.removeAttribute(i):Ta(t,i,Oi(r)),e.delete(t)}function lr(t,i,e={newId:null,oldId:null,fromUser:!1}){if(!t||!i)return;const{newId:r,oldId:n,fromUser:o}=e,s=wn(i),a=s.get(t);if(!o&&a){n&&a.delete(n),r&&a.add(r);return}o&&(a?r||s.delete(t):Ka(t,i),Xa(t,i)),wf(t,i,n);const l=r||Oi(a);l&&Ta(t,i,l)}function qp(t,i){Ka(t,i),Xa(t,i)}/**
3355
3366
  * @license
3356
3367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3357
3368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3358
- */class qp{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,e=!1){const r=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,e),e?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?(Wp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Gp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,e,r){lr(this.__target,"aria-labelledby",{newId:i,oldId:e,fromUser:r})}__setErrorIdToAriaAttribute(i,e){lr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(i,e){lr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3369
+ */class Xp{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,e=!1){const r=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(i,r,e),e?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?(qp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",i)):this.__label&&(Wp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(i,e,r){lr(this.__target,"aria-labelledby",{newId:i,oldId:e,fromUser:r})}__setErrorIdToAriaAttribute(i,e){lr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(i,e){lr(this.__target,"aria-describedby",{newId:i,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(i){this.__target&&(["input","textarea"].includes(this.__target.localName)||(i?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3359
3370
  * @license
3360
3371
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3361
3372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3362
- */const Ce=document.createElement("div");Ce.style.position="fixed";Ce.style.clip="rect(0px, 0px, 0px, 0px)";Ce.setAttribute("aria-live","polite");document.body.appendChild(Ce);let oi;function Xp(t,i={}){const e=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;e==="alert"?(Ce.removeAttribute("aria-live"),Ce.removeAttribute("role"),oi=_t.debounce(oi,Bf,()=>{Ce.setAttribute("role","alert")})):(oi&&oi.cancel(),Ce.removeAttribute("role"),Ce.setAttribute("aria-live",e)),Ce.textContent="",setTimeout(()=>{Ce.textContent=t},r)}/**
3373
+ */const Ae=document.createElement("div");Ae.style.position="fixed";Ae.style.clip="rect(0px, 0px, 0px, 0px)";Ae.setAttribute("aria-live","polite");document.body.appendChild(Ae);let ni;function Kp(t,i={}){const e=i.mode||"polite",r=i.timeout===void 0?150:i.timeout;e==="alert"?(Ae.removeAttribute("aria-live"),Ae.removeAttribute("role"),ni=mt.debounce(ni,Bf,()=>{Ae.setAttribute("role","alert")})):(ni&&ni.cancel(),Ae.removeAttribute("role"),Ae.setAttribute("aria-live",e)),Ae.textContent="",setTimeout(()=>{Ae.textContent=t},r)}/**
3363
3374
  * @license
3364
3375
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3365
3376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3366
- */class yn extends Ve{constructor(i,e,r,n={}){super(i,e,r,Zt(St({},n),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(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(e=>{e.forEach(r=>{const n=r.target,o=n===this.node;r.type==="attributes"?o&&this.__updateNodeId(n):(o||n.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 e=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!i.id&&(i.id=this.defaultId)}}/**
3377
+ */class En extends je{constructor(i,e,r,n={}){super(i,e,r,Jt(Kt({},n),{useUniqueId:!0}))}initCustomNode(i){this.__updateNodeId(i),this.__notifyChange(i)}teardownNode(i){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(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(e=>{e.forEach(r=>{const n=r.target,o=n===this.node;r.type==="attributes"?o&&this.__updateNodeId(n):(o||n.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 e=!this.nodes||i===this.nodes[0];i.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!i.id&&(i.id=this.defaultId)}}/**
3367
3378
  * @license
3368
3379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3369
3380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3370
- */class Kp extends yn{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:e,invalid:r}=this,n=!!(r&&e&&e.trim()!=="");i&&(i.textContent=n?e:"",i.hidden=!n,n&&Xp(e,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3381
+ */class Jp extends En{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:e,invalid:r}=this,n=!!(r&&e&&e.trim()!=="");i&&(i.textContent=n?e:"",i.hidden=!n,n&&Kp(e,{mode:"assertive"})),super.updateDefaultNode(i)}}/**
3371
3382
  * @license
3372
3383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3373
3384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3374
- */class Jp extends yn{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 e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3385
+ */class Zp extends En{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 e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.helperText),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3375
3386
  * @license
3376
3387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3377
3388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3378
- */class Zp extends yn{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 e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3389
+ */class Qp extends En{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 e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(i){i&&(i.textContent=this.label),super.updateDefaultNode(i)}initCustomNode(i){super.initCustomNode(i),this.observeNode(i)}}/**
3379
3390
  * @license
3380
3391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3381
3392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
- */const Qp=te(t=>class extends Et(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Zp(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3393
+ */const em=te(t=>class extends wt(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Qp(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3383
3394
  * @license
3384
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3385
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3386
- */const qa=te(t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}_requestValidation(){this.manualValidation||this.validate()}});/**
3397
+ */const Ja=te(t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3387
3398
  * @license
3388
3399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3389
3400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3390
- */const em=t=>class extends qa(Qp(Et(t))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new qp(this),this._helperController=new Jp(this),this._errorController=new Kp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:n}=e.detail;this.__labelChanged(r,n)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:n}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,n)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3401
+ */const tm=t=>class extends Ja(em(wt(t))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Xp(this),this._helperController=new Zp(this),this._errorController=new Jp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:n}=e.detail;this.__labelChanged(r,n)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:r,node:n}=e.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,n)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3391
3402
  * @license
3392
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3393
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3394
- */const tm=te(t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((r,n)=>{this._delegateAttribute(r,e[n])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,n)=>{this._delegateProperty(r,e[n])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
3405
+ */const im=te(t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((r,n)=>{this._delegateAttribute(r,e[n])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,n)=>{this._delegateProperty(r,e[n])})}_delegateAttribute(e,r){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){this.stateTarget&&(this.stateTarget[e]=r)}});/**
3395
3406
  * @license
3396
3407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3397
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3398
- */const Xa=te(t=>class extends tm(qa(Ya(t))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const n=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!n;(this._hasValue||this.invalid)&&n?this._requestValidation():o&&!this.manualValidation&&this._setInvalid(!1),this.__previousHasConstraints=n}_onChange(e){e.stopPropagation(),this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3409
+ */const Za=te(t=>class extends im(Ja(qa(t))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...r){if(!e)return;const n=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!n;(this._hasValue||this.invalid)&&n?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=n}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3399
3410
  * @license
3400
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3401
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3402
- */const im=t=>class extends Vp(Va(Xa(em(Yp(Ni(t)))))){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[`
3413
+ */const rm=t=>class extends Yp(Wa(Za(tm(Gp(Ii(t)))))){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[`
3403
3414
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3404
3415
  font: inherit;
3405
3416
  color: inherit;
3406
3417
  }
3407
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=_t.debounce(this._preventInputDebouncer,xi.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
3418
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=mt.debounce(this._preventInputDebouncer,yi.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const r=e.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const r=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(r){console.error(r)}}};/**
3408
3419
  * @license
3409
3420
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3410
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3411
- */class rm extends Ve{constructor(i,e,r={}){const{uniqueIdPrefix:n}=r;super(i,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:n})}}/**
3422
+ */class nm extends je{constructor(i,e,r={}){const{uniqueIdPrefix:n}=r;super(i,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0,uniqueIdPrefix:n})}}/**
3412
3423
  * @license
3413
3424
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3414
3425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3415
- */class nm{constructor(i,e){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3426
+ */class om{constructor(i,e){this.input=i,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(i){i&&(i.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&i.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const i=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",i)};this.input.addEventListener("click",i)}}/**
3416
3427
  * @license
3417
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3418
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3419
- */const om=F`
3430
+ */const sm=F`
3420
3431
  [part='clear-button'] {
3421
3432
  display: none;
3422
3433
  cursor: default;
@@ -3433,7 +3444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3433
3444
  * @license
3434
3445
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3435
3446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3436
- */const sm=F`
3447
+ */const am=F`
3437
3448
  :host {
3438
3449
  display: inline-flex;
3439
3450
  outline: none;
@@ -3471,7 +3482,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3471
3482
  * @license
3472
3483
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3473
3484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3474
- */const am=F`
3485
+ */const lm=F`
3475
3486
  [class$='container'] {
3476
3487
  display: flex;
3477
3488
  flex-direction: column;
@@ -3483,19 +3494,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3483
3494
  * @license
3484
3495
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3485
3496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3486
- */const lm=[sm,am,om];/**
3497
+ */const um=[am,lm,sm];/**
3487
3498
  * @license
3488
3499
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3489
3500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3490
- */const um=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:n}=r;if(this.__initialClasses||(this.__initialClasses=new Set(n)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&n.remove(...s)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&n.add(...o),this.__previousClasses=o}};/**
3501
+ */const cm=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,r){if(!r||e===void 0)return;const{classList:n}=r;if(this.__initialClasses||(this.__initialClasses=new Set(n)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&n.remove(...s)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&n.add(...o),this.__previousClasses=o}};/**
3491
3502
  * @license
3492
3503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3493
3504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3494
- */class cm{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")}}/**
3505
+ */class hm{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")}}/**
3495
3506
  * @license
3496
3507
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3497
3508
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3498
- */const dm=Object.freeze({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 i=String(t.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[t.month+1,t.day,i].join("/")},parseDate(t){const i=t.split("/"),e=new Date;let r,n=e.getMonth(),o=e.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),o=parseInt(i[2]),i[2].length<3&&o>=0){const s=this.referenceDate?It(this.referenceDate):new Date;o=dp(s,o,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:o}},formatTitle:(t,i)=>`${t} ${i}`}),hm=t=>class extends um(Et(Va(Xa(Ni(t))))){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:{type:Boolean,sync:!0},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:()=>St({},dm)},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:xa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e;const r=this.__parseDate(e);this.__setEnteredDate(r)}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ln()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ja(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new cm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",n=>{this.__commitDate(n.detail.date),this._close()}),r.addEventListener("date-selected",n=>{this.__commitDate(n.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value}),r.addEventListener("click",n=>n.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=It(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(mn(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),n=!this._selectedDate||gt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&this.inputElement.checkValidity&&(o=this.inputElement.checkValidity()),r&&n&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,r,n,o,s,a){return!e||r&&(!a||s)||n&&s||!o.parseDate}_formatISO(e){return fp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const n=It(e);if(e&&!n){this.value=r;return}e?Ee(this._selectedDate,n)||(this._selectedDate=n,r!==void 0&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,n,o,s,a,l,u,c,d){e&&(e.i18n=r,e.label=n,e.minDate=o,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c,e.enteredDate=d)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const n=e.focusedDate||r;e.scrollToDate(n),this._ignoreFocusedDateChange=!0,e.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=wa(s)}_getInitialPosition(){const e=It(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||gt(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?La(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);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._requestValidation()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open();const e=this.__parseDate(this._inputElementValue||"");e&&(this._ignoreFocusedDateChange=!0,Ee(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(e)}__setEnteredDate(e){e?Ee(this.__enteredDate,e)||(this.__enteredDate=e):this.__enteredDate!=null&&(this.__enteredDate=null)}__computeMinOrMaxDate(e){return It(e)}};/**
3509
+ */const dm=t=>class extends cm(wt(Wa(Za(Ii(t))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const r=String(e.year).replace(/\d+/u,n=>"0000".substr(n.length)+n);return[e.month+1,e.day,r].join("/")},parseDate(e){const r=e.split("/"),n=new Date;let o,s=n.getMonth(),a=n.getFullYear();if(r.length===3){if(s=parseInt(r[0])-1,o=parseInt(r[1]),a=parseInt(r[2]),r[2].length<3&&a>=0){const l=this.referenceDate?Dt(this.referenceDate):new Date;a=dp(l,a,s,o)}}else r.length===2?(s=parseInt(r[0])-1,o=parseInt(r[1])):r.length===1&&(o=parseInt(r[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(e,r)=>`${e} ${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:Sa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!cn()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ga(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new hm(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",n=>{this.__commitDate(n.detail.date),this._close()}),r.addEventListener("date-selected",n=>{this.__commitDate(n.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",n=>{this._shouldRemoveFocus(n)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",n=>{this._focusedDate=n.detail.value}),r.addEventListener("click",n=>n.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(e);if(r&&(r=Dt(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(bn(e))}checkValidity(){const e=this._inputElementValue,r=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),n=!this._selectedDate||_t(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),r&&n&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:r}=e;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,r,n,o,s,a){return!e||r&&(!a||s)||n&&s||!o.parseDate}_formatISO(e){return pp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,r){e===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,r){e===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,r){const n=Dt(e);if(e&&!n){this.value=r;return}e?Ie(this._selectedDate,n)||(this._selectedDate=n,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,r,n,o,s,a,l,u,c){e&&(e.i18n=r,e.label=n,e.minDate=o,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c)}__updateOverlayContentTheme(e,r){e&&(r?e.setAttribute("theme",r):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,r){e&&e.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const r=this._getInitialPosition();e.initialPosition=r;const n=e.focusedDate||r;e.scrollToDate(n),this._ignoreFocusedDateChange=!0,e.focusedDate=n,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=Aa(s)}_getInitialPosition(){const e=Dt(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||_t(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?Fa(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",r=this.__parseDate(e);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(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,r)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Ie(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Dt(e)}};/**
3499
3510
  * @license
3500
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3501
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3516,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3516
3527
  * @license
3517
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3518
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3519
- */Q("vaadin-date-picker",[lm,fm],{moduleId:"vaadin-date-picker-styles"});class pm extends hm(im(Xe(Ta(Re)))){static get is(){return"vaadin-date-picker"}static get template(){return Je`
3530
+ */Q("vaadin-date-picker",[um,fm],{moduleId:"vaadin-date-picker-styles"});class pm extends dm(rm(qe(ka(Fe)))){static get is(){return"vaadin-date-picker"}static get template(){return Ke`
3520
3531
  <div class="vaadin-date-picker-container">
3521
3532
  <div part="label">
3522
3533
  <slot name="label"></slot>
@@ -3558,4 +3569,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3558
3569
  ></vaadin-date-picker-overlay>
3559
3570
 
3560
3571
  <slot name="tooltip"></slot>
3561
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new rm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new nm(this.inputElement,this._labelController)),this._tooltipController=new Da(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(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}}De(pm);function mm(t){nl(t,"svelte-1n3apnn",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{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, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{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}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{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, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown 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}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Ho(t,i,e){const r=t.slice();return r[48]=i[e],r}function _m(t){let i,e,r,n,o=t[20]("titleSelfExclusion")+"",s,a,l,u,c=t[20]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",d,h,f=t[20]("selfExclusionEmailText")+"",p,v,P,I,k,R,L,M,J,le=t[20](`${t[13]}`)+"",de,ie,O,N,he,Ae,w,b,_,y,g,S,E,B=t[20]("save")+"",V,Y,q,ne,be,ve,ue=t[21]&&bm(t),ae=An(t[9]),z=[];for(let T=0;T<ae.length;T+=1)z[T]=Lo(Ho(t,ae,T));let G=t[16]&&Bo(t);function x(T,Z){return T[15]?xm:T[17]?vm:ym}let ee=x(t),X=ee(t),Te=t[22]&&wm(t);return{c(){i=C("div"),e=C("form"),ue&&ue.c(),r=K(),n=C("h2"),s=pe(o),a=K(),l=C("div"),u=C("p"),d=K(),h=C("p"),p=pe(f),v=K(),P=C("a"),I=pe(t[2]),R=K(),L=C("div"),M=C("div"),J=C("p"),de=pe(le),ie=K(),O=Ie("svg"),N=Ie("g"),he=Ie("path"),Ae=K(),w=C("div");for(let T=0;T<z.length;T+=1)z[T].c();b=K(),G&&G.c(),_=K(),y=C("div"),X.c(),g=K(),S=C("div"),E=C("button"),V=pe(B),ne=K(),Te&&Te.c(),A(n,"class","PlayerSelfExclusionTitle "+(t[21]?"PlayerSelfExclusionTitleNone":"")),A(u,"class","SelfExclusionDescriptionText"),A(P,"href",k="mailto:"+t[2]),A(h,"class","SelfExclusionDescriptionText"),A(l,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(he,"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"),A(he,"stroke-linecap","round"),A(O,"xmlns","http://www.w3.org/2000/svg"),A(O,"xmlns:xlink","http://www.w3.org/1999/xlink"),A(O,"version","1.1"),A(O,"viewBox","0 0 100 100"),A(O,"xml:space","preserve"),A(O,"class","SelfExclusionConfigIcon"),Ze(O,"active",t[18]),A(M,"class","SelfExclusionConfigLabel"),A(w,"class","SelfExclusionDropDown"),Ze(w,"active",t[18]),A(L,"class","SelfExclusionConfigWrapper "+(t[21]?"SelfExclusionConfigWrapperMobile":"")),Ze(L,"active",t[18]),A(y,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(E,"class",Y="SelfExclusionSave "+(t[17]?"active":"")),E.disabled=q=!t[17],A(S,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(T,Z){ge(T,i,Z),m(i,e),ue&&ue.m(e,null),m(e,r),m(e,n),m(n,s),m(e,a),m(e,l),m(l,u),u.innerHTML=c,m(l,d),m(l,h),m(h,p),m(h,v),m(h,P),m(P,I),m(e,R),m(e,L),m(L,M),m(M,J),m(J,de),m(M,ie),m(M,O),m(O,N),m(N,he),m(L,Ae),m(L,w);for(let oe=0;oe<z.length;oe+=1)z[oe]&&z[oe].m(w,null);m(e,b),G&&G.m(e,null),m(e,_),m(e,y),X.m(y,null),m(e,g),m(e,S),m(S,E),m(E,V),m(i,ne),Te&&Te.m(i,null),be||(ve=[hi(M,"click",t[31]),hi(E,"click",t[34])],be=!0)},p(T,Z){if(T[21]&&ue.p(T,Z),Z[0]&1048576&&o!==(o=T[20]("titleSelfExclusion")+"")&&we(s,o),Z[0]&1048587&&c!==(c=T[20]("selfExclusionText",{values:{operatorname:T[1],baseurl:T[3],lang:T[0]}})+"")&&(u.innerHTML=c),Z[0]&1048576&&f!==(f=T[20]("selfExclusionEmailText")+"")&&we(p,f),Z[0]&4&&we(I,T[2]),Z[0]&4&&k!==(k="mailto:"+T[2])&&A(P,"href",k),Z[0]&1056768&&le!==(le=T[20](`${T[13]}`)+"")&&we(de,le),Z[0]&262144&&Ze(O,"active",T[18]),Z[0]&17826304){ae=An(T[9]);let oe;for(oe=0;oe<ae.length;oe+=1){const xn=Ho(T,ae,oe);z[oe]?z[oe].p(xn,Z):(z[oe]=Lo(xn),z[oe].c(),z[oe].m(w,null))}for(;oe<z.length;oe+=1)z[oe].d(1);z.length=ae.length}Z[0]&262144&&Ze(w,"active",T[18]),Z[0]&262144&&Ze(L,"active",T[18]),T[16]?G?G.p(T,Z):(G=Bo(T),G.c(),G.m(e,_)):G&&(G.d(1),G=null),ee===(ee=x(T))&&X?X.p(T,Z):(X.d(1),X=ee(T),X&&(X.c(),X.m(y,null))),Z[0]&1048576&&B!==(B=T[20]("save")+"")&&we(V,B),Z[0]&131072&&Y!==(Y="SelfExclusionSave "+(T[17]?"active":""))&&A(E,"class",Y),Z[0]&131072&&q!==(q=!T[17])&&(E.disabled=q),T[22]&&Te.p(T,Z)},d(T){T&&me(i),ue&&ue.d(),al(z,T),G&&G.d(),X.d(),Te&&Te.d(),be=!1,bt(ve)}}}function gm(t){let i,e,r,n,o,s,a,l,u,c,d,h,f,p,v,P,I,k,R,L,M;function J(ie,O){return ie[21]?Sm:Em}let de=J(t)(t);return{c(){i=C("div"),e=C("div"),de.c(),r=K(),n=C("div"),o=C("ui-skeleton"),s=K(),a=C("div"),l=K(),u=C("ui-skeleton"),c=K(),d=C("div"),h=K(),f=C("div"),p=C("ui-skeleton"),v=K(),P=C("div"),I=K(),k=C("ui-skeleton"),R=K(),L=C("div"),M=C("ui-skeleton"),D(o,"structure","text"),D(o,"height",t[21]?"15px":"20px"),D(o,"rows","6"),D(o,"width","100%"),Li(a,"height",t[21]?"10px":"20px"),D(u,"structure","text"),D(u,"height",t[21]?"15px":"20px"),D(u,"width","30%"),Li(d,"height","10px"),A(n,"class","SelfExclusionDescription"),D(p,"structure","rectangle"),D(p,"width",t[21]?"100%":"50%"),D(p,"height",t[21]?"30px":"44px"),Li(P,"height",t[21]?"15px":"20px"),D(k,"structure","text"),D(k,"height",t[21]?"15px":"20px"),D(k,"width","30%"),A(f,"class","SelfExclusionConfig"),D(M,"structure","rectangle"),D(M,"width","100%"),D(M,"height",t[21]?"35px":"50px"),A(L,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(ie,O){ge(ie,i,O),m(i,e),de.m(e,null),m(e,r),m(e,n),m(n,o),m(n,s),m(n,a),m(n,l),m(n,u),m(n,c),m(n,d),m(e,h),m(e,f),m(f,p),m(f,v),m(f,P),m(f,I),m(f,k),m(e,R),m(e,L),m(L,M)},p:Se,d(ie){ie&&me(i),de.d()}}}function bm(t){let i,e,r,n,o,s,a,l,u,c,d=t[20]("titleSelfExclusion")+"",h,f,p;return{c(){i=C("div"),e=Ie("svg"),r=Ie("defs"),n=Ie("style"),o=pe(".aaa{fill:var(--emw--color-primary, #22B04E);}"),s=Ie("g"),a=Ie("g"),l=Ie("path"),u=K(),c=C("h2"),h=pe(d),A(l,"class","aaa"),A(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),A(l,"transform","translate(15 15) rotate(180)"),A(a,"transform","translate(20 158)"),A(s,"transform","translate(-20 -158)"),A(e,"xmlns","http://www.w3.org/2000/svg"),A(e,"width","15"),A(e,"height","15"),A(e,"viewBox","0 0 15 15"),A(c,"class","PlayerSelfExclusionTitleMobile"),A(i,"class","MenuReturnButton")},m(v,P){ge(v,i,P),m(i,e),m(e,r),m(r,n),m(n,o),m(e,s),m(s,a),m(a,l),m(i,u),m(i,c),m(c,h),f||(p=hi(i,"click",t[30]),f=!0)},p(v,P){P[0]&1048576&&d!==(d=v[20]("titleSelfExclusion")+"")&&we(h,d)},d(v){v&&me(i),f=!1,p()}}}function Lo(t){let i,e=t[20](`${t[48].key}`)+"",r,n,o;function s(){return t[32](t[48])}return{c(){i=C("div"),r=pe(e)},m(a,l){ge(a,i,l),m(i,r),n||(o=hi(i,"click",s),n=!0)},p(a,l){t=a,l[0]&1049088&&e!==(e=t[20](`${t[48].key}`)+"")&&we(r,e)},d(a){a&&me(i),n=!1,o()}}}function Bo(t){let i,e,r=t[20]("duration")+"",n,o,s,a=t[20]("dateInstructions")+"",l,u,c,d,h;return{c(){i=C("div"),e=C("label"),n=pe(r),o=K(),s=C("span"),l=pe(a),u=K(),c=C("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",d=K(),h=C("vaadin-date-picker"),A(e,"for","SelfExclusionDate"),A(s,"class","SelfExclusionDateInstructions"),D(h,"min",t[10]),D(h,"max",t[11]),D(h,"value",t[10]),A(i,"class","SelfExclusionDateWrapper "+(t[21]?"SelfExclusionDateWrapperMobile":""))},m(f,p){ge(f,i,p),m(i,e),m(e,n),m(i,o),m(i,s),m(s,l),m(s,u),m(s,c),m(i,d),m(i,h),t[33](h)},p(f,p){p[0]&1048576&&r!==(r=f[20]("duration")+"")&&we(n,r),p[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&we(l,a),p[0]&1024&&D(h,"min",f[10]),p[0]&2048&&D(h,"max",f[11]),p[0]&1024&&D(h,"value",f[10])},d(f){f&&me(i),t[33](null)}}}function vm(t){let i,e,r=t[20]("temporarySelfExclusion",{values:{date:t[12]}})+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1052672&&r!==(r=o[20]("temporarySelfExclusion",{values:{date:o[12]}})+"")&&we(n,r)},d(o){o&&me(i)}}}function ym(t){let i,e,r=t[20]("noPeriodSelected")+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1048576&&r!==(r=o[20]("noPeriodSelected")+"")&&we(n,r)},d(o){o&&me(i)}}}function xm(t){let i,e,r=t[20]("permanentSelfExclusion")+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1048576&&r!==(r=o[20]("permanentSelfExclusion")+"")&&we(n,r)},d(o){o&&me(i)}}}function wm(t){let i,e,r,n;return{c(){i=C("player-account-modal"),e=C("player-account-general-confirmation-modal"),D(e,"modaltitle",r=t[20]("confirmationModalTitle")),D(e,"modaltext",t[14]),D(e,"hascancelbutton",!1),D(e,"modalconfirmevent",n={type:"SetSelfExclusion",selfExclusionPeriod:t[13],selfExclusionExpiryDate:t[12]}),D(e,"mbsource",t[6]),D(e,"lang",t[0]),D(i,"clientstyling",t[4]),D(i,"clientstylingurl",t[5]),D(i,"mbsource",t[6]),D(i,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,s){ge(o,i,s),m(i,e)},p(o,s){s[0]&1048576&&r!==(r=o[20]("confirmationModalTitle"))&&D(e,"modaltitle",r),s[0]&16384&&D(e,"modaltext",o[14]),s[0]&12288&&n!==(n={type:"SetSelfExclusion",selfExclusionPeriod:o[13],selfExclusionExpiryDate:o[12]})&&D(e,"modalconfirmevent",n),s[0]&64&&D(e,"mbsource",o[6]),s[0]&1&&D(e,"lang",o[0]),s[0]&16&&D(i,"clientstyling",o[4]),s[0]&32&&D(i,"clientstylingurl",o[5]),s[0]&64&&D(i,"mbsource",o[6])},d(o){o&&me(i)}}}function Em(t){let i;return{c(){i=C("ui-skeleton"),D(i,"structure","title"),D(i,"width","100px"),D(i,"margin-top","20px"),D(i,"margin-bottom","20px")},m(e,r){ge(e,i,r)},d(e){e&&me(i)}}}function Sm(t){let i;return{c(){i=C("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>',A(i,"class","MenuReturnButton")},m(e,r){ge(e,i,r)},d(e){e&&me(i)}}}function Am(t){let i;function e(o,s){return o[19]?gm:_m}let r=e(t),n=r(t);return{c(){i=C("div"),n.c()},m(o,s){ge(o,i,s),n.m(i,null),t[35](i)},p(o,s){r===(r=e(o))&&n?n.p(o,s):(n.d(1),n=r(o),n&&(n.c(),n.m(i,null)))},i:Se,o:Se,d(o){o&&me(i),n.d(),t[35](null)}}}function Cm(t,i,e){let r;rl(t,Cc,x=>e(20,r=x));let{endpoint:n="",lang:o="en",operator:s="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:u="",clientstylingurl:c="",mbsource:d,translationurl:h="",hasconfirmationmodal:f="false"}=i,p,v,P=[],I=window.navigator.userAgent,k,R,L="",M="",J="selectAPeriod",le="",de=Tc(I)!=="PC",ie=!1,O=!1,N=!1,he=!1,Ae=f==="true",w=!0;const b=()=>{fetch(h).then(ee=>ee.json()).then(ee=>{Object.keys(ee).forEach(X=>{Gn(X,ee[X])})}).catch(ee=>{console.log(ee)})};Object.keys(Wn).forEach(x=>{Gn(x,Wn[x])});const _=()=>{let x=new URL(`${n}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(X=>y(X)).then(X=>{e(9,P=X.periods)}).catch(X=>{console.log(X)}).finally(()=>{e(19,w=!1)})},y=x=>{if(x.status>=300)throw new Error("There was an error fetching the config");return x.json()},g=()=>{e(18,he=!he)},S=x=>{switch(M=x.text,e(13,J=x.key),e(17,N=!0),e(18,he=!1),e(15,ie=!1),e(16,O=!1),M){case"Until":e(16,O=!0),e(10,k=Vi().add(6,"months").format("YYYY-MM-DD")),e(11,R=Vi().add(5,"years").format("YYYY-MM-DD")),e(12,L=k);break;case"Permanent":e(15,ie=!ie);break;default:const[ee,X]=M.split(" "),Te=X.includes("Day")?"days":X.includes("Month")?"months":X.includes("Year")?"years":null;if(!Te)return;e(12,L=Vi().add(Number(ee),Te).format("YYYY-MM-DD"));break}Ae&&E()},E=()=>{if(!Ae){e(14,le="");return}e(14,le=O?r("confirmationModalTextUntil",{values:{date:L}}):r("confirmationModalTextPeriod",{values:{period:r(M)}}))},B=x=>{x.preventDefault(),Ae?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:J,selfExclusionExpiryDate:L},window.location.href)},V=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:de},window.location.href)},Y=x=>{e(12,L=x.target.value)},q=()=>{v.addEventListener("change",Y,!1)};dl(()=>()=>{v.removeEventListener("change",Y)});const ne=()=>{Dc(o)},be=()=>V(),ve=()=>g(),ue=x=>S(x);function ae(x){fi[x?"unshift":"push"](()=>{v=x,e(8,v)})}const z=x=>B(x);function G(x){fi[x?"unshift":"push"](()=>{p=x,e(7,p)})}return t.$$set=x=>{"endpoint"in x&&e(27,n=x.endpoint),"lang"in x&&e(0,o=x.lang),"operator"in x&&e(1,s=x.operator),"supportemail"in x&&e(2,a=x.supportemail),"baseurl"in x&&e(3,l=x.baseurl),"clientstyling"in x&&e(4,u=x.clientstyling),"clientstylingurl"in x&&e(5,c=x.clientstylingurl),"mbsource"in x&&e(6,d=x.mbsource),"translationurl"in x&&e(28,h=x.translationurl),"hasconfirmationmodal"in x&&e(29,f=x.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&256&&v&&q(),t.$$.dirty[0]&134217728&&n&&_(),t.$$.dirty[0]&1&&o&&ne(),t.$$.dirty[0]&144&&u&&p&&kc(p,u),t.$$.dirty[0]&160&&c&&p&&Mc(p,c),t.$$.dirty[0]&192&&d&&p&&Oc(p,`${d}.Style`),t.$$.dirty[0]&268435456&&h&&b()},Ae&&E(),[o,s,a,l,u,c,d,p,v,P,k,R,L,J,le,ie,O,N,he,w,r,de,Ae,g,S,B,V,n,h,f,be,ve,ue,ae,z,G]}class Ka extends El{constructor(i){super(),xl(this,i,Cm,Am,Go,{endpoint:27,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:28,hasconfirmationmodal:29},mm,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(i){this.$$set({endpoint:i}),xe()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),xe()}get operator(){return this.$$.ctx[1]}set operator(i){this.$$set({operator:i}),xe()}get supportemail(){return this.$$.ctx[2]}set supportemail(i){this.$$set({supportemail:i}),xe()}get baseurl(){return this.$$.ctx[3]}set baseurl(i){this.$$set({baseurl:i}),xe()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(i){this.$$set({clientstyling:i}),xe()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),xe()}get mbsource(){return this.$$.ctx[6]}set mbsource(i){this.$$set({mbsource:i}),xe()}get translationurl(){return this.$$.ctx[28]}set translationurl(i){this.$$set({translationurl:i}),xe()}get hasconfirmationmodal(){return this.$$.ctx[29]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),xe()}}wl(Ka,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=Ka;
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new nm(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new om(this.inputElement,this._labelController)),this._tooltipController=new Oa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(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}}Pe(pm);function mm(t){al(t,"svelte-1n3apnn",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{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, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{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}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{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, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown 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}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Bo(t,i,e){const r=t.slice();return r[48]=i[e],r}function _m(t){let i,e,r,n,o=t[20]("titleSelfExclusion")+"",s,a,l,u,c=t[20]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",h,d,f=t[20]("selfExclusionEmailText")+"",p,v,P,I,k,R,H,M,J,le=t[20](`${t[13]}`)+"",he,ie,O,N,de,Se,w,b,_,y,g,S,E,$=t[20]("save")+"",V,Y,q,ne,be,ve,ue=t[21]&&bm(t),ae=Pn(t[9]),z=[];for(let T=0;T<ae.length;T+=1)z[T]=Fo(Bo(t,ae,T));let G=t[16]&&Ro(t);function x(T,Z){return T[15]?xm:T[17]?vm:ym}let ee=x(t),X=ee(t),Ce=t[22]&&wm(t);return{c(){i=C("div"),e=C("form"),ue&&ue.c(),r=K(),n=C("h2"),s=pe(o),a=K(),l=C("div"),u=C("p"),h=K(),d=C("p"),p=pe(f),v=K(),P=C("a"),I=pe(t[2]),R=K(),H=C("div"),M=C("div"),J=C("p"),he=pe(le),ie=K(),O=Me("svg"),N=Me("g"),de=Me("path"),Se=K(),w=C("div");for(let T=0;T<z.length;T+=1)z[T].c();b=K(),G&&G.c(),_=K(),y=C("div"),X.c(),g=K(),S=C("div"),E=C("button"),V=pe($),ne=K(),Ce&&Ce.c(),A(n,"class","PlayerSelfExclusionTitle "+(t[21]?"PlayerSelfExclusionTitleNone":"")),A(u,"class","SelfExclusionDescriptionText"),A(P,"href",k="mailto:"+t[2]),A(d,"class","SelfExclusionDescriptionText"),A(l,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(de,"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"),A(de,"stroke-linecap","round"),A(O,"xmlns","http://www.w3.org/2000/svg"),A(O,"xmlns:xlink","http://www.w3.org/1999/xlink"),A(O,"version","1.1"),A(O,"viewBox","0 0 100 100"),A(O,"xml:space","preserve"),A(O,"class","SelfExclusionConfigIcon"),Je(O,"active",t[18]),A(M,"class","SelfExclusionConfigLabel"),A(w,"class","SelfExclusionDropDown"),Je(w,"active",t[18]),A(H,"class","SelfExclusionConfigWrapper "+(t[21]?"SelfExclusionConfigWrapperMobile":"")),Je(H,"active",t[18]),A(y,"class","SelfExclusionDescription "+(t[21]?"SelfExclusionDescriptionMobile":"")),A(E,"class",Y="SelfExclusionSave "+(t[17]?"active":"")),E.disabled=q=!t[17],A(S,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(T,Z){ge(T,i,Z),m(i,e),ue&&ue.m(e,null),m(e,r),m(e,n),m(n,s),m(e,a),m(e,l),m(l,u),u.innerHTML=c,m(l,h),m(l,d),m(d,p),m(d,v),m(d,P),m(P,I),m(e,R),m(e,H),m(H,M),m(M,J),m(J,he),m(M,ie),m(M,O),m(O,N),m(N,de),m(H,Se),m(H,w);for(let oe=0;oe<z.length;oe+=1)z[oe]&&z[oe].m(w,null);m(e,b),G&&G.m(e,null),m(e,_),m(e,y),X.m(y,null),m(e,g),m(e,S),m(S,E),m(E,V),m(i,ne),Ce&&Ce.m(i,null),be||(ve=[hi(M,"click",t[31]),hi(E,"click",t[34])],be=!0)},p(T,Z){if(T[21]&&ue.p(T,Z),Z[0]&1048576&&o!==(o=T[20]("titleSelfExclusion")+"")&&we(s,o),Z[0]&1048587&&c!==(c=T[20]("selfExclusionText",{values:{operatorname:T[1],baseurl:T[3],lang:T[0]}})+"")&&(u.innerHTML=c),Z[0]&1048576&&f!==(f=T[20]("selfExclusionEmailText")+"")&&we(p,f),Z[0]&4&&we(I,T[2]),Z[0]&4&&k!==(k="mailto:"+T[2])&&A(P,"href",k),Z[0]&1056768&&le!==(le=T[20](`${T[13]}`)+"")&&we(he,le),Z[0]&262144&&Je(O,"active",T[18]),Z[0]&17826304){ae=Pn(T[9]);let oe;for(oe=0;oe<ae.length;oe+=1){const Sn=Bo(T,ae,oe);z[oe]?z[oe].p(Sn,Z):(z[oe]=Fo(Sn),z[oe].c(),z[oe].m(w,null))}for(;oe<z.length;oe+=1)z[oe].d(1);z.length=ae.length}Z[0]&262144&&Je(w,"active",T[18]),Z[0]&262144&&Je(H,"active",T[18]),T[16]?G?G.p(T,Z):(G=Ro(T),G.c(),G.m(e,_)):G&&(G.d(1),G=null),ee===(ee=x(T))&&X?X.p(T,Z):(X.d(1),X=ee(T),X&&(X.c(),X.m(y,null))),Z[0]&1048576&&$!==($=T[20]("save")+"")&&we(V,$),Z[0]&131072&&Y!==(Y="SelfExclusionSave "+(T[17]?"active":""))&&A(E,"class",Y),Z[0]&131072&&q!==(q=!T[17])&&(E.disabled=q),T[22]&&Ce.p(T,Z)},d(T){T&&me(i),ue&&ue.d(),cl(z,T),G&&G.d(),X.d(),Ce&&Ce.d(),be=!1,gt(ve)}}}function gm(t){let i,e,r,n,o,s,a,l,u,c,h,d,f,p,v,P,I,k,R,H,M;function J(ie,O){return ie[21]?Sm:Em}let he=J(t)(t);return{c(){i=C("div"),e=C("div"),he.c(),r=K(),n=C("div"),o=C("ui-skeleton"),s=K(),a=C("div"),l=K(),u=C("ui-skeleton"),c=K(),h=C("div"),d=K(),f=C("div"),p=C("ui-skeleton"),v=K(),P=C("div"),I=K(),k=C("ui-skeleton"),R=K(),H=C("div"),M=C("ui-skeleton"),D(o,"structure","text"),D(o,"height",t[21]?"15px":"20px"),D(o,"rows","6"),D(o,"width","100%"),Li(a,"height",t[21]?"10px":"20px"),D(u,"structure","text"),D(u,"height",t[21]?"15px":"20px"),D(u,"width","30%"),Li(h,"height","10px"),A(n,"class","SelfExclusionDescription"),D(p,"structure","rectangle"),D(p,"width",t[21]?"100%":"50%"),D(p,"height",t[21]?"30px":"44px"),Li(P,"height",t[21]?"15px":"20px"),D(k,"structure","text"),D(k,"height",t[21]?"15px":"20px"),D(k,"width","30%"),A(f,"class","SelfExclusionConfig"),D(M,"structure","rectangle"),D(M,"width","100%"),D(M,"height",t[21]?"35px":"50px"),A(H,"class","SelfExclusionActionButtons "+(t[21]?"SelfExclusionActionButtonsMobile":"")),A(e,"class","SelfExclusionWrapper "+(t[21]?"SelfExclusionWrapperMobile":"")),A(i,"class","SelfExclusionContainer")},m(ie,O){ge(ie,i,O),m(i,e),he.m(e,null),m(e,r),m(e,n),m(n,o),m(n,s),m(n,a),m(n,l),m(n,u),m(n,c),m(n,h),m(e,d),m(e,f),m(f,p),m(f,v),m(f,P),m(f,I),m(f,k),m(e,R),m(e,H),m(H,M)},p:Ee,d(ie){ie&&me(i),he.d()}}}function bm(t){let i,e,r,n,o,s,a,l,u,c,h=t[20]("titleSelfExclusion")+"",d,f,p;return{c(){i=C("div"),e=Me("svg"),r=Me("defs"),n=Me("style"),o=pe(".aaa{fill:var(--emw--color-primary, #22B04E);}"),s=Me("g"),a=Me("g"),l=Me("path"),u=K(),c=C("h2"),d=pe(h),A(l,"class","aaa"),A(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),A(l,"transform","translate(15 15) rotate(180)"),A(a,"transform","translate(20 158)"),A(s,"transform","translate(-20 -158)"),A(e,"xmlns","http://www.w3.org/2000/svg"),A(e,"width","15"),A(e,"height","15"),A(e,"viewBox","0 0 15 15"),A(c,"class","PlayerSelfExclusionTitleMobile"),A(i,"class","MenuReturnButton")},m(v,P){ge(v,i,P),m(i,e),m(e,r),m(r,n),m(n,o),m(e,s),m(s,a),m(a,l),m(i,u),m(i,c),m(c,d),f||(p=hi(i,"click",t[30]),f=!0)},p(v,P){P[0]&1048576&&h!==(h=v[20]("titleSelfExclusion")+"")&&we(d,h)},d(v){v&&me(i),f=!1,p()}}}function Fo(t){let i,e=t[20](`${t[48].key}`)+"",r,n,o;function s(){return t[32](t[48])}return{c(){i=C("div"),r=pe(e)},m(a,l){ge(a,i,l),m(i,r),n||(o=hi(i,"click",s),n=!0)},p(a,l){t=a,l[0]&1049088&&e!==(e=t[20](`${t[48].key}`)+"")&&we(r,e)},d(a){a&&me(i),n=!1,o()}}}function Ro(t){let i,e,r=t[20]("duration")+"",n,o,s,a=t[20]("dateInstructions")+"",l,u,c,h,d;return{c(){i=C("div"),e=C("label"),n=pe(r),o=K(),s=C("span"),l=pe(a),u=K(),c=C("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=K(),d=C("vaadin-date-picker"),A(e,"for","SelfExclusionDate"),A(s,"class","SelfExclusionDateInstructions"),D(d,"min",t[10]),D(d,"max",t[11]),D(d,"value",t[10]),A(i,"class","SelfExclusionDateWrapper "+(t[21]?"SelfExclusionDateWrapperMobile":""))},m(f,p){ge(f,i,p),m(i,e),m(e,n),m(i,o),m(i,s),m(s,l),m(s,u),m(s,c),m(i,h),m(i,d),t[33](d)},p(f,p){p[0]&1048576&&r!==(r=f[20]("duration")+"")&&we(n,r),p[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&we(l,a),p[0]&1024&&D(d,"min",f[10]),p[0]&2048&&D(d,"max",f[11]),p[0]&1024&&D(d,"value",f[10])},d(f){f&&me(i),t[33](null)}}}function vm(t){let i,e,r=t[20]("temporarySelfExclusion",{values:{date:t[12]}})+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1052672&&r!==(r=o[20]("temporarySelfExclusion",{values:{date:o[12]}})+"")&&we(n,r)},d(o){o&&me(i)}}}function ym(t){let i,e,r=t[20]("noPeriodSelected")+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1048576&&r!==(r=o[20]("noPeriodSelected")+"")&&we(n,r)},d(o){o&&me(i)}}}function xm(t){let i,e,r=t[20]("permanentSelfExclusion")+"",n;return{c(){i=C("p"),e=C("strong"),n=pe(r),A(i,"class","SelfExclusionDescriptionText")},m(o,s){ge(o,i,s),m(i,e),m(e,n)},p(o,s){s[0]&1048576&&r!==(r=o[20]("permanentSelfExclusion")+"")&&we(n,r)},d(o){o&&me(i)}}}function wm(t){let i,e,r,n;return{c(){i=C("player-account-modal"),e=C("player-account-general-confirmation-modal"),D(e,"modaltitle",r=t[20]("confirmationModalTitle")),D(e,"modaltext",t[14]),D(e,"hascancelbutton",!1),D(e,"modalconfirmevent",n={type:"SetSelfExclusion",selfExclusionPeriod:t[13],selfExclusionExpiryDate:t[12]}),D(e,"mbsource",t[6]),D(e,"lang",t[0]),D(i,"clientstyling",t[4]),D(i,"clientstylingurl",t[5]),D(i,"mbsource",t[6]),D(i,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(o,s){ge(o,i,s),m(i,e)},p(o,s){s[0]&1048576&&r!==(r=o[20]("confirmationModalTitle"))&&D(e,"modaltitle",r),s[0]&16384&&D(e,"modaltext",o[14]),s[0]&12288&&n!==(n={type:"SetSelfExclusion",selfExclusionPeriod:o[13],selfExclusionExpiryDate:o[12]})&&D(e,"modalconfirmevent",n),s[0]&64&&D(e,"mbsource",o[6]),s[0]&1&&D(e,"lang",o[0]),s[0]&16&&D(i,"clientstyling",o[4]),s[0]&32&&D(i,"clientstylingurl",o[5]),s[0]&64&&D(i,"mbsource",o[6])},d(o){o&&me(i)}}}function Em(t){let i;return{c(){i=C("ui-skeleton"),D(i,"structure","title"),D(i,"width","100px"),D(i,"margin-top","20px"),D(i,"margin-bottom","20px")},m(e,r){ge(e,i,r)},d(e){e&&me(i)}}}function Sm(t){let i;return{c(){i=C("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>',A(i,"class","MenuReturnButton")},m(e,r){ge(e,i,r)},d(e){e&&me(i)}}}function Am(t){let i;function e(o,s){return o[19]?gm:_m}let r=e(t),n=r(t);return{c(){i=C("div"),n.c()},m(o,s){ge(o,i,s),n.m(i,null),t[35](i)},p(o,s){r===(r=e(o))&&n?n.p(o,s):(n.d(1),n=r(o),n&&(n.c(),n.m(i,null)))},i:Ee,o:Ee,d(o){o&&me(i),n.d(),t[35](null)}}}function Cm(t,i,e){let r;sl(t,Pc,x=>e(20,r=x));let{endpoint:n="",lang:o="en",operator:s="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:u="",clientstylingurl:c="",mbsource:h,translationurl:d="",hasconfirmationmodal:f="false"}=i,p,v,P=[],I=window.navigator.userAgent,k,R,H="",M="",J="selectAPeriod",le="",he=Dc(I)!=="PC",ie=!1,O=!1,N=!1,de=!1,Se=f==="true",w=!0;const b=()=>{fetch(d).then(ee=>ee.json()).then(ee=>{Object.keys(ee).forEach(X=>{Xn(X,ee[X])})}).catch(ee=>{console.log(ee)})};Object.keys(Kn).forEach(x=>{Xn(x,Kn[x])});const _=()=>{let x=new URL(`${n}/v1/player/selfExclusionSettings`);fetch(x,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(X=>y(X)).then(X=>{e(9,P=X.periods)}).catch(X=>{console.log(X)}).finally(()=>{e(19,w=!1)})},y=x=>{if(x.status>=300)throw new Error("There was an error fetching the config");return x.json()},g=()=>{e(18,de=!de)},S=x=>{switch(M=x.text,e(13,J=x.key),e(17,N=!0),e(18,de=!1),e(15,ie=!1),e(16,O=!1),M){case"Until":e(16,O=!0),e(10,k=Vi().add(6,"months").format("YYYY-MM-DD")),e(11,R=Vi().add(5,"years").format("YYYY-MM-DD")),e(12,H=k);break;case"Permanent":e(15,ie=!ie);break;default:const[ee,X]=M.split(" "),Ce=X.includes("Day")?"days":X.includes("Month")?"months":X.includes("Year")?"years":null;if(!Ce)return;e(12,H=Vi().add(Number(ee),Ce).format("YYYY-MM-DD"));break}Se&&E()},E=()=>{if(!Se){e(14,le="");return}e(14,le=O?r("confirmationModalTextUntil",{values:{date:H}}):r("confirmationModalTextPeriod",{values:{period:r(M)}}))},$=x=>{x.preventDefault(),Se?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:J,selfExclusionExpiryDate:H},window.location.href)},V=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:he},window.location.href)},Y=x=>{e(12,H=x.target.value)},q=()=>{v.addEventListener("change",Y,!1)};pl(()=>()=>{v.removeEventListener("change",Y)});const ne=()=>{Mc(o)},be=()=>V(),ve=()=>g(),ue=x=>S(x);function ae(x){di[x?"unshift":"push"](()=>{v=x,e(8,v)})}const z=x=>$(x);function G(x){di[x?"unshift":"push"](()=>{p=x,e(7,p)})}return t.$$set=x=>{"endpoint"in x&&e(27,n=x.endpoint),"lang"in x&&e(0,o=x.lang),"operator"in x&&e(1,s=x.operator),"supportemail"in x&&e(2,a=x.supportemail),"baseurl"in x&&e(3,l=x.baseurl),"clientstyling"in x&&e(4,u=x.clientstyling),"clientstylingurl"in x&&e(5,c=x.clientstylingurl),"mbsource"in x&&e(6,h=x.mbsource),"translationurl"in x&&e(28,d=x.translationurl),"hasconfirmationmodal"in x&&e(29,f=x.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&256&&v&&q(),t.$$.dirty[0]&134217728&&n&&_(),t.$$.dirty[0]&1&&o&&ne(),t.$$.dirty[0]&144&&u&&p&&Oc(p,u),t.$$.dirty[0]&160&&c&&p&&Ic(p,c),t.$$.dirty[0]&192&&h&&p&&Nc(p,`${h}.Style`),t.$$.dirty[0]&268435456&&d&&b()},Se&&E(),[o,s,a,l,u,c,h,p,v,P,k,R,H,J,le,ie,O,N,de,w,r,he,Se,g,S,$,V,n,d,f,be,ve,ue,ae,z,G]}class Qa extends Cl{constructor(i){super(),Sl(this,i,Cm,Am,qo,{endpoint:27,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:28,hasconfirmationmodal:29},mm,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(i){this.$$set({endpoint:i}),xe()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),xe()}get operator(){return this.$$.ctx[1]}set operator(i){this.$$set({operator:i}),xe()}get supportemail(){return this.$$.ctx[2]}set supportemail(i){this.$$set({supportemail:i}),xe()}get baseurl(){return this.$$.ctx[3]}set baseurl(i){this.$$set({baseurl:i}),xe()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(i){this.$$set({clientstyling:i}),xe()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),xe()}get mbsource(){return this.$$.ctx[6]}set mbsource(i){this.$$set({mbsource:i}),xe()}get translationurl(){return this.$$.ctx[28]}set translationurl(i){this.$$set({translationurl:i}),xe()}get hasconfirmationmodal(){return this.$$.ctx[29]}set hasconfirmationmodal(i){this.$$set({hasconfirmationmodal:i}),xe()}}Al(Qa,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=Qa;