@everymatrix/casino-bonuses-controller 1.94.102 → 1.94.104

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,6 +1,6 @@
1
- "use strict";var Fd=Object.defineProperty,Ud=Object.defineProperties;var zd=Object.getOwnPropertyDescriptors;var Qn=Object.getOwnPropertySymbols;var Zo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable;var li=(n,e,t)=>e in n?Fd(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ft=(n,e)=>{for(var t in e||(e={}))Zo.call(e,t)&&li(n,t,e[t]);if(Qn)for(var t of Qn(e))Ko.call(e,t)&&li(n,t,e[t]);return n},er=(n,e)=>Ud(n,zd(e));var Jo=(n,e)=>{var t={};for(var r in n)Zo.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Qn)for(var r of Qn(n))e.indexOf(r)<0&&Ko.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(li(n,typeof e!="symbol"?e+"":e,t),t);var ze=(n,e,t)=>new Promise((r,i)=>{var o=l=>{try{a(t.next(l))}catch(u){i(u)}},s=l=>{try{a(t.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((t=t.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Me(){}function k(n,e){for(const t in e)n[t]=e[t];return n}function vl(n){return n()}function Qo(){return Object.create(null)}function qe(n){n.forEach(vl)}function Un(n){return typeof n=="function"}function zn(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let tr;function es(n,e){return n===e?!0:(tr||(tr=document.createElement("a")),tr.href=e,n===tr.href)}function $d(n){return Object.keys(n).length===0}function yl(n,...e){if(n==null){for(const r of e)r(void 0);return Me}const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function wl(n,e,t){n.$$.on_destroy.push(yl(e,t))}function $n(n,e,t,r){if(n){const i=Cl(n,e,t,r);return n[0](i)}}function Cl(n,e,t,r){return n[1]&&r?k(t.ctx.slice(),n[1](r(e))):t.ctx}function Vn(n,e,t,r){if(n[2]&&r){const i=n[2](r(t));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function Wn(n,e,t,r,i,o){if(i){const s=Cl(e,t,r,o);n.p(s,i)}}function jn(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let r=0;r<t;r++)e[r]=-1;return e}return-1}function Vd(n){return n&&Un(n.destroy)?n.destroy:Me}const Wd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Ir(n,e,t){const r=jd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,Gd(r,i)}}function jd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Gd(n,e){return p(n.head||n,e),e.sheet}function N(n,e,t){n.insertBefore(e,t||null)}function I(n){n.parentNode&&n.parentNode.removeChild(n)}function vt(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function E(n){return document.createElement(n)}function te(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function D(n){return document.createTextNode(n)}function z(){return D(" ")}function nt(){return D("")}function Pe(n,e,t,r){return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function m(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}const Yd=["width","height"];function T(n,e){const t=Object.getOwnPropertyDescriptors(n.__proto__);for(const r in e)e[r]==null?n.removeAttribute(r):r==="style"?n.style.cssText=e[r]:r==="__value"?n.value=n[r]=e[r]:t[r]&&t[r].set&&Yd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function El(n,e){for(const t in e)m(n,t,e[t])}function Ve(n,e,t){const r=e.toLowerCase();r in n?n[r]=typeof n[r]=="boolean"&&t===""?!0:t:e in n?n[e]=typeof n[e]=="boolean"&&t===""?!0:t:m(n,e,t)}function xl(n){return n===""?null:+n}function qd(n){return Array.from(n.childNodes)}function pe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Xd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~Wd.indexOf(t)?Xd(n,e):pe(n,e)}function gr(n,e){n.value=e==null?"":e}function ts(n,e,t,r){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,"")}function le(n,e,t){n.classList.toggle(e,!!t)}function Zd(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Sn;function En(n){Sn=n}function Kd(){if(!Sn)throw new Error("Function called outside component initialization");return Sn}function Nr(n){Kd().$$.on_mount.push(n)}const Wt=[],st=[];let Yt=[];const ns=[],Jd=Promise.resolve();let Li=!1;function Qd(){Li||(Li=!0,Jd.then(ue))}function Hi(n){Yt.push(n)}const ui=new Set;let Ut=0;function ue(){if(Ut!==0)return;const n=Sn;do{try{for(;Ut<Wt.length;){const e=Wt[Ut];Ut++,En(e),ec(e.$$)}}catch(e){throw Wt.length=0,Ut=0,e}for(En(null),Wt.length=0,Ut=0;st.length;)st.pop()();for(let e=0;e<Yt.length;e+=1){const t=Yt[e];ui.has(t)||(ui.add(t),t())}Yt.length=0}while(Wt.length);for(;ns.length;)ns.pop()();Li=!1,ui.clear(),En(n)}function ec(n){if(n.fragment!==null){n.update(),qe(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Hi)}}function tc(n){const e=[],t=[];Yt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Yt=e}const dr=new Set;let Pt;function Al(){Pt={r:0,c:[],p:Pt}}function Tl(){Pt.r||qe(Pt.c),Pt=Pt.p}function Ze(n,e){n&&n.i&&(dr.delete(n),n.i(e))}function ut(n,e,t,r){if(n&&n.o){if(dr.has(n))return;dr.add(n),Pt.c.push(()=>{dr.delete(n),r&&(t&&n.d(1),r())}),n.o(e)}else r&&r()}function Fe(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function ke(n,e){const t={},r={},i={$$scope:1};let o=n.length;for(;o--;){const s=n[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);n[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in t||(t[s]=void 0);return t}function nc(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),Hi(()=>{const o=n.$$.on_mount.map(vl).filter(Un);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach(Hi)}function rc(n,e){const t=n.$$;t.fragment!==null&&(tc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ic(n,e){n.$$.dirty[0]===-1&&(Wt.push(n),Qd(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Lr(n,e,t,r,i,o,s=null,a=[-1]){const l=Sn;En(n);const u=n.$$={fragment:null,ctx:[],props:o,update:Me,not_equal:i,bound:Qo(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Qo(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=t?t(n,e.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&ic(n,c)),h}):[],u.update(),d=!0,qe(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=qd(e.target);u.fragment&&u.fragment.l(c),c.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),nc(n,e.target,e.anchor),ue()}En(l)}let Pl;typeof HTMLElement=="function"&&(Pl=class extends HTMLElement{constructor(e,t,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=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}connectedCallback(){return ze(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){N(u,s,d)},d:function(u){u&&I(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Zd(this);for(const o of this.$$s)o in r&&(t[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=cr(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:er(ft({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{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=cr(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(i),i();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(e,t,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=cr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function cr(n,e,t,r){var o;const i=(o=t[n])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Hr(n,e,t,r,i,o){let s=class extends Pl{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).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=cr(a,l,e),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]}})}),n.element=s,s}class Rr{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){rc(this,1),this.$destroy=Me}$on(e,t){if(!Un(t))return Me;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!$d(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oc);const zt=[];function sc(n,e){return{subscribe:Fr(n,e).subscribe}}function Fr(n,e=Me){let t;const r=new Set;function i(a){if(zn(n,a)&&(n=a,t)){const l=!zt.length;for(const u of r)u[1](),zt.push(u,n);if(l){for(let u=0;u<zt.length;u+=2)zt[u][0](zt[u+1]);zt.length=0}}}function o(a){i(a(n))}function s(a,l=Me){const u=[a,l];return r.add(u),r.size===1&&(t=e(i,o)||Me),a(n),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function an(n,e,t){const r=!Array.isArray(n),i=r?[n]:n;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return sc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=Un(b)?b:Me},f=i.map((b,_)=>yl(b,C=>{u[_]=C,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function ac(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lc=function(e){return uc(e)&&!dc(e)};function uc(n){return!!n&&typeof n=="object"}function dc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||fc(n)}var cc=typeof Symbol=="function"&&Symbol.for,hc=cc?Symbol.for("react.element"):60103;function fc(n){return n.$$typeof===hc}function pc(n){return Array.isArray(n)?[]:{}}function kn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Jt(pc(n),n,e):n}function mc(n,e,t){return n.concat(e).map(function(r){return kn(r,t)})}function _c(n,e){if(!e.customMerge)return Jt;var t=e.customMerge(n);return typeof t=="function"?t:Jt}function gc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function rs(n){return Object.keys(n).concat(gc(n))}function Sl(n,e){try{return e in n}catch(t){return!1}}function bc(n,e){return Sl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function vc(n,e,t){var r={};return t.isMergeableObject(n)&&rs(n).forEach(function(i){r[i]=kn(n[i],t)}),rs(e).forEach(function(i){bc(n,i)||(Sl(n,i)&&t.isMergeableObject(e[i])?r[i]=_c(i,t)(n[i],e[i],t):r[i]=kn(e[i],t))}),r}function Jt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||mc,t.isMergeableObject=t.isMergeableObject||lc,t.cloneUnlessOtherwiseSpecified=kn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):vc(n,e,t):kn(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Jt(r,i,t)},{})};var yc=Jt,wc=yc;const Cc=ac(wc);var Ri=function(n,e){return Ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Ri(n,e)};function Ur(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ri(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Ec(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function di(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function ci(n,e){var t=e&&e.cache?e.cache:Dc,r=e&&e.serializer?e.serializer:Sc,i=e&&e.strategy?e.strategy:Tc;return i(n,{cache:t,serializer:r})}function xc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Ac(n,e,t,r){var i=xc(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function kl(n,e,t){var r=Array.prototype.slice.call(arguments,3),i=t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.apply(this,r),e.set(i,o)),o}function Dl(n,e,t,r,i){return t.bind(e,n,r,i)}function Tc(n,e){var t=n.length===1?Ac:kl;return Dl(n,this,t,e.cache.create(),e.serializer)}function Pc(n,e){return Dl(n,this,kl,e.cache.create(),e.serializer)}var Sc=function(){return JSON.stringify(arguments)},kc=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(e){return this.cache[e]},n.prototype.set=function(e,t){this.cache[e]=t},n}(),Dc={create:function(){return new kc}},hi={variadic:Pc},br=function(){return br=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},br.apply(this,arguments)};var ce;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var Ee;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(Ee||(Ee={}));var Qt;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Qt||(Qt={}));function is(n){return n.type===Ee.literal}function Mc(n){return n.type===Ee.argument}function Ml(n){return n.type===Ee.number}function Bl(n){return n.type===Ee.date}function Ol(n){return n.type===Ee.time}function Il(n){return n.type===Ee.select}function Nl(n){return n.type===Ee.plural}function Bc(n){return n.type===Ee.pound}function Ll(n){return n.type===Ee.tag}function Hl(n){return!!(n&&typeof n=="object"&&n.type===Qt.number)}function Fi(n){return!!(n&&typeof n=="object"&&n.type===Qt.dateTime)}var Rl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Oc=/(?:[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 Ic(n){var e={};return n.replace(Oc,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.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":e.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":e.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":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.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":e.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""}),e}var Se=function(){return Se=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Se.apply(this,arguments)};var Nc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Lc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Nc).filter(function(h){return h.length>0}),t=[],r=0,i=e;r<i.length;r++){var o=i[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,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Hc(n){return n.replace(/^(.*?)-/,"")}var os=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fl=/^(@+)?(\+|#+)?[rs]?$/g,Rc=/(\*)(0+)|(#+)(0+)|(0+)/g,Ul=/^(0+)$/;function ss(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Fl,function(t,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function zl(n){switch(n){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 Fc(n){var e;if(n[0]==="E"&&n[1]==="E"?(e={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(e={notation:"scientific"},n=n.slice(1)),e){var t=n.slice(0,2);if(t==="+!"?(e.signDisplay="always",n=n.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",n=n.slice(2)),!Ul.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function as(n){var e={},t=zl(n);return t||e}function Uc(n){for(var e={},t=0,r=n;t<r.length;t++){var i=r[t];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Hc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Se(Se(Se({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Se(Se({},l),as(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),as(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Rc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&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(Ul.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(os.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(os,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Se(Se({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Se(Se({},e),ss(o)));continue}if(Fl.test(i.stem)){e=Se(Se({},e),ss(i.stem));continue}var s=zl(i.stem);s&&(e=Se(Se({},e),s));var a=Fc(i.stem);a&&(e=Se(Se({},e),a))}return e}var nr={"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 zc(n,e){for(var t="",r=0;r<n.length;r++){var i=n.charAt(r);if(i==="j"){for(var o=0;r+1<n.length&&n.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=$c(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else i==="J"?t+="H":t+=i}return t}function $c(n){var e=n.hourCycle;if(e===void 0&&n.hourCycles&&n.hourCycles.length&&(e=n.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=n.language,r;t!=="root"&&(r=n.maximize().region);var i=nr[r||""]||nr[t||""]||nr["".concat(t,"-001")]||nr["001"];return i[0]}var fi,Vc=new RegExp("^".concat(Rl.source,"*")),Wc=new RegExp("".concat(Rl.source,"*$"));function fe(n,e){return{start:n,end:e}}var jc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gc=!!String.fromCodePoint,Yc=!!Object.fromEntries,qc=!!String.prototype.codePointAt,Xc=!!String.prototype.trimStart,Zc=!!String.prototype.trimEnd,Kc=!!Number.isSafeInteger,Jc=Kc?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Ui=!0;try{var Qc=Vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ui=((fi=Qc.exec("a"))===null||fi===void 0?void 0:fi[0])==="a"}catch(n){Ui=!1}var ls=jc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},zi=Gc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[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},us=Yc?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];t[s]=a}return t},$l=qc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var i=e.charCodeAt(t),o;return i<55296||i>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},eh=Xc?function(e){return e.trimStart()}:function(e){return e.replace(Vc,"")},th=Zc?function(e){return e.trimEnd()}:function(e){return e.replace(Wc,"")};function Vl(n,e){return new RegExp(n,e)}var $i;if(Ui){var ds=Vl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=function(e,t){var r;ds.lastIndex=t;var i=ds.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else $i=function(e,t){for(var r=[];;){var i=$l(e,t);if(i===void 0||Wl(i)||oh(i))break;r.push(i),t+=i>=65536?2:1}return zi.apply(void 0,r)};var nh=function(){function n(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:fe(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Vi(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:fe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Vi(this.char()))return this.error(ce.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:fe(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,fe(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,fe(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ih(this.char());)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(t);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=fe(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!rh(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return zi.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),zi(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,fe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:fe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$i(this.message,t),i=t+r.length;this.bumpTo(i);var o=this.clonePosition(),s=fe(e,o);return{value:r,location:s}},n.prototype.parseArgumentOptions=function(e,t,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,fe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=th(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=fe(i,this.clonePosition());if(u&&ls(u==null?void 0:u.style,"::",0)){var C=eh(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(C,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(C.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var v=C;this.locale&&(v=zc(C,this.locale));var h={type:Qt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ic(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(A,br({},A)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,t,y);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var F=fe(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:us(x.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:us(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,fe(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Lc(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Uc(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,t,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=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=fe(i,this.clonePosition());return o?(s*=r,Jc(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=$l(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},n.prototype.bumpIf=function(e){if(ls(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&Wl(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},n}();function Vi(n){return n>=97&&n<=122||n>=65&&n<=90}function rh(n){return Vi(n)||n===47}function ih(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function Wl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function oh(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function Wi(n){n.forEach(function(e){if(delete e.location,Il(e)||Nl(e))for(var t in e.options)delete e.options[t].location,Wi(e.options[t].value);else Ml(e)&&Hl(e.style)||(Bl(e)||Ol(e))&&Fi(e.style)?delete e.style.location:Ll(e)&&Wi(e.children)})}function sh(n,e){e===void 0&&(e={}),e=br({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new nh(n,e).parse();if(t.err){var r=SyntaxError(ce[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Wi(t.val),t.val}var en;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(en||(en={}));var zr=function(n){Ur(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),cs=function(n){Ur(e,n);function e(t,r,i,o){return n.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),en.INVALID_VALUE,o)||this}return e}(zr),ah=function(n){Ur(e,n);function e(t,r,i){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),en.INVALID_VALUE,i)||this}return e}(zr),lh=function(n){Ur(e,n);function e(t,r){return n.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),en.MISSING_VALUE,r)||this}return e}(zr),$e;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})($e||($e={}));function uh(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==$e.literal||t.type!==$e.literal?e.push(t):r.value+=t.value,e},[])}function dh(n){return typeof n=="function"}function hr(n,e,t,r,i,o,s){if(n.length===1&&is(n[0]))return[{type:$e.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(is(d)){a.push({type:$e.literal,value:d.value});continue}if(Bc(d)){typeof o=="number"&&a.push({type:$e.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new lh(c,s);var h=i[c];if(Mc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?$e.literal:$e.object,value:h});continue}if(Bl(d)){var f=typeof d.style=="string"?r.date[d.style]:Fi(d.style)?d.style.parsedOptions:void 0;a.push({type:$e.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ol(d)){var f=typeof d.style=="string"?r.time[d.style]:Fi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:$e.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ml(d)){var f=typeof d.style=="string"?r.number[d.style]:Hl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:$e.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(Ll(d)){var b=d.children,_=d.value,C=i[_];if(!dh(C))throw new ah(_,"function",s);var v=hr(b,e,t,r,i,o),g=C(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?$e.literal:$e.object,value:S}}))}if(Il(d)){var A=d.options[h]||d.options.other;if(!A)throw new cs(d.value,h,Object.keys(d.options),s);a.push.apply(a,hr(A.value,e,t,r,i));continue}if(Nl(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new zr(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var Ud=Object.defineProperty,zd=Object.defineProperties;var $d=Object.getOwnPropertyDescriptors;var tr=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable;var di=(n,e,t)=>e in n?Ud(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pt=(n,e)=>{for(var t in e||(e={}))Ko.call(e,t)&&di(n,t,e[t]);if(tr)for(var t of tr(e))Jo.call(e,t)&&di(n,t,e[t]);return n},nr=(n,e)=>zd(n,$d(e));var Qo=(n,e)=>{var t={};for(var r in n)Ko.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&tr)for(var r of tr(n))e.indexOf(r)<0&&Jo.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(di(n,typeof e!="symbol"?e+"":e,t),t);var Ue=(n,e,t)=>new Promise((r,i)=>{var o=l=>{try{a(t.next(l))}catch(u){i(u)}},s=l=>{try{a(t.throw(l))}catch(u){i(u)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((t=t.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Me(){}function k(n,e){for(const t in e)n[t]=e[t];return n}function yl(n){return n()}function es(){return Object.create(null)}function qe(n){n.forEach(yl)}function zn(n){return typeof n=="function"}function $n(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let rr;function ts(n,e){return n===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,n===rr.href)}function Vd(n){return Object.keys(n).length===0}function wl(n,...e){if(n==null){for(const r of e)r(void 0);return Me}const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Cl(n,e,t){n.$$.on_destroy.push(wl(e,t))}function Vn(n,e,t,r){if(n){const i=El(n,e,t,r);return n[0](i)}}function El(n,e,t,r){return n[1]&&r?k(t.ctx.slice(),n[1](r(e))):t.ctx}function Wn(n,e,t,r){if(n[2]&&r){const i=n[2](r(t));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(e.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function jn(n,e,t,r,i,o){if(i){const s=El(e,t,r,o);n.p(s,i)}}function Gn(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let r=0;r<t;r++)e[r]=-1;return e}return-1}function Wd(n){return n&&zn(n.destroy)?n.destroy:Me}const jd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Lr(n,e,t){const r=Gd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,Yd(r,i)}}function Gd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Yd(n,e){return p(n.head||n,e),e.sheet}function N(n,e,t){n.insertBefore(e,t||null)}function I(n){n.parentNode&&n.parentNode.removeChild(n)}function yt(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function E(n){return document.createElement(n)}function te(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function D(n){return document.createTextNode(n)}function z(){return D(" ")}function nt(){return D("")}function Pe(n,e,t,r){return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function m(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}const qd=["width","height"];function T(n,e){const t=Object.getOwnPropertyDescriptors(n.__proto__);for(const r in e)e[r]==null?n.removeAttribute(r):r==="style"?n.style.cssText=e[r]:r==="__value"?n.value=n[r]=e[r]:t[r]&&t[r].set&&qd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function xl(n,e){for(const t in e)m(n,t,e[t])}function $e(n,e,t){const r=e.toLowerCase();r in n?n[r]=typeof n[r]=="boolean"&&t===""?!0:t:e in n?n[e]=typeof n[e]=="boolean"&&t===""?!0:t:m(n,e,t)}function Al(n){return n===""?null:+n}function Xd(n){return Array.from(n.childNodes)}function pe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Zd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~jd.indexOf(t)?Zd(n,e):pe(n,e)}function vr(n,e){n.value=e==null?"":e}function ns(n,e,t,r){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,"")}function le(n,e,t){n.classList.toggle(e,!!t)}function Kd(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let kn;function xn(n){kn=n}function Jd(){if(!kn)throw new Error("Function called outside component initialization");return kn}function Hr(n){Jd().$$.on_mount.push(n)}const Wt=[],st=[];let Yt=[];const rs=[],Qd=Promise.resolve();let Ri=!1;function ec(){Ri||(Ri=!0,Qd.then(ue))}function Fi(n){Yt.push(n)}const ci=new Set;let Ut=0;function ue(){if(Ut!==0)return;const n=kn;do{try{for(;Ut<Wt.length;){const e=Wt[Ut];Ut++,xn(e),tc(e.$$)}}catch(e){throw Wt.length=0,Ut=0,e}for(xn(null),Wt.length=0,Ut=0;st.length;)st.pop()();for(let e=0;e<Yt.length;e+=1){const t=Yt[e];ci.has(t)||(ci.add(t),t())}Yt.length=0}while(Wt.length);for(;rs.length;)rs.pop()();Ri=!1,ci.clear(),xn(n)}function tc(n){if(n.fragment!==null){n.update(),qe(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Fi)}}function nc(n){const e=[],t=[];Yt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Yt=e}const hr=new Set;let Pt;function Tl(){Pt={r:0,c:[],p:Pt}}function Pl(){Pt.r||qe(Pt.c),Pt=Pt.p}function Ze(n,e){n&&n.i&&(hr.delete(n),n.i(e))}function ut(n,e,t,r){if(n&&n.o){if(hr.has(n))return;hr.add(n),Pt.c.push(()=>{hr.delete(n),r&&(t&&n.d(1),r())}),n.o(e)}else r&&r()}function Re(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function ke(n,e){const t={},r={},i={$$scope:1};let o=n.length;for(;o--;){const s=n[o],a=e[o];if(a){for(const l in s)l in a||(r[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);n[o]=a}else for(const l in s)i[l]=1}for(const s in r)s in t||(t[s]=void 0);return t}function rc(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),Fi(()=>{const o=n.$$.on_mount.map(yl).filter(zn);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach(Fi)}function ic(n,e){const t=n.$$;t.fragment!==null&&(nc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function oc(n,e){n.$$.dirty[0]===-1&&(Wt.push(n),ec(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Rr(n,e,t,r,i,o,s=null,a=[-1]){const l=kn;xn(n);const u=n.$$={fragment:null,ctx:[],props:o,update:Me,not_equal:i,bound:es(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:es(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let d=!1;if(u.ctx=t?t(n,e.props||{},(c,h,...f)=>{const b=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=b)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](b),d&&oc(n,c)),h}):[],u.update(),d=!0,qe(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const c=Xd(e.target);u.fragment&&u.fragment.l(c),c.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),rc(n,e.target,e.anchor),ue()}xn(l)}let Sl;typeof HTMLElement=="function"&&(Sl=class extends HTMLElement{constructor(e,t,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=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}connectedCallback(){return Ue(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&m(s,"name",o)},m:function(u,d){N(u,s,d)},d:function(u){u&&I(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Kd(this);for(const o of this.$$s)o in r&&(t[o]=[e(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=fr(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:nr(pt({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{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=fr(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(i),i();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(e,t,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=fr(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function fr(n,e,t,r){var o;const i=(o=t[n])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!t[n])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Fr(n,e,t,r,i,o){let s=class extends Sl{constructor(){super(n,t,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).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=fr(a,l,e),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]}})}),n.element=s,s}class Ur{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){ic(this,1),this.$destroy=Me}$on(e,t){if(!zn(t))return Me;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Vd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const sc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sc);const zt=[];function ac(n,e){return{subscribe:zr(n,e).subscribe}}function zr(n,e=Me){let t;const r=new Set;function i(a){if($n(n,a)&&(n=a,t)){const l=!zt.length;for(const u of r)u[1](),zt.push(u,n);if(l){for(let u=0;u<zt.length;u+=2)zt[u][0](zt[u+1]);zt.length=0}}}function o(a){i(a(n))}function s(a,l=Me){const u=[a,l];return r.add(u),r.size===1&&(t=e(i,o)||Me),a(n),()=>{r.delete(u),r.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function an(n,e,t){const r=!Array.isArray(n),i=r?[n]:n;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return ac(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const b=e(r?u[0]:u,s,a);o?s(b):c=zn(b)?b:Me},f=i.map((b,_)=>wl(b,C=>{u[_]=C,d&=~(1<<_),l&&h()},()=>{d|=1<<_}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function lc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var uc=function(e){return dc(e)&&!cc(e)};function dc(n){return!!n&&typeof n=="object"}function cc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||pc(n)}var hc=typeof Symbol=="function"&&Symbol.for,fc=hc?Symbol.for("react.element"):60103;function pc(n){return n.$$typeof===fc}function mc(n){return Array.isArray(n)?[]:{}}function Dn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Jt(mc(n),n,e):n}function _c(n,e,t){return n.concat(e).map(function(r){return Dn(r,t)})}function gc(n,e){if(!e.customMerge)return Jt;var t=e.customMerge(n);return typeof t=="function"?t:Jt}function bc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function is(n){return Object.keys(n).concat(bc(n))}function kl(n,e){try{return e in n}catch(t){return!1}}function vc(n,e){return kl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function yc(n,e,t){var r={};return t.isMergeableObject(n)&&is(n).forEach(function(i){r[i]=Dn(n[i],t)}),is(e).forEach(function(i){vc(n,i)||(kl(n,i)&&t.isMergeableObject(e[i])?r[i]=gc(i,t)(n[i],e[i],t):r[i]=Dn(e[i],t))}),r}function Jt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||_c,t.isMergeableObject=t.isMergeableObject||uc,t.cloneUnlessOtherwiseSpecified=Dn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):yc(n,e,t):Dn(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Jt(r,i,t)},{})};var wc=Jt,Cc=wc;const Ec=lc(Cc);var Ui=function(n,e){return Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Ui(n,e)};function $r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ui(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var tt=function(){return tt=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function xc(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function hi(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||Array.prototype.slice.call(e))}function fi(n,e){var t=e&&e.cache?e.cache:Mc,r=e&&e.serializer?e.serializer:kc,i=e&&e.strategy?e.strategy:Pc;return i(n,{cache:t,serializer:r})}function Ac(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Tc(n,e,t,r){var i=Ac(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function Dl(n,e,t){var r=Array.prototype.slice.call(arguments,3),i=t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.apply(this,r),e.set(i,o)),o}function Ml(n,e,t,r,i){return t.bind(e,n,r,i)}function Pc(n,e){var t=n.length===1?Tc:Dl;return Ml(n,this,t,e.cache.create(),e.serializer)}function Sc(n,e){return Ml(n,this,Dl,e.cache.create(),e.serializer)}var kc=function(){return JSON.stringify(arguments)},Dc=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(e){return this.cache[e]},n.prototype.set=function(e,t){this.cache[e]=t},n}(),Mc={create:function(){return new Dc}},pi={variadic:Sc},yr=function(){return yr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yr.apply(this,arguments)};var ce;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ce||(ce={}));var Ee;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(Ee||(Ee={}));var Qt;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Qt||(Qt={}));function os(n){return n.type===Ee.literal}function Bc(n){return n.type===Ee.argument}function Bl(n){return n.type===Ee.number}function Ol(n){return n.type===Ee.date}function Il(n){return n.type===Ee.time}function Nl(n){return n.type===Ee.select}function Ll(n){return n.type===Ee.plural}function Oc(n){return n.type===Ee.pound}function Hl(n){return n.type===Ee.tag}function Rl(n){return!!(n&&typeof n=="object"&&n.type===Qt.number)}function zi(n){return!!(n&&typeof n=="object"&&n.type===Qt.dateTime)}var Fl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ic=/(?:[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 Nc(n){var e={};return n.replace(Ic,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.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":e.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":e.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":e.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][r-1];break;case"s":e.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":e.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""}),e}var Se=function(){return Se=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Se.apply(this,arguments)};var Lc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Hc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Lc).filter(function(h){return h.length>0}),t=[],r=0,i=e;r<i.length;r++){var o=i[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,d=l;u<d.length;u++){var c=d[u];if(c.length===0)throw new Error("Invalid number skeleton")}t.push({stem:a,options:l})}return t}function Rc(n){return n.replace(/^(.*?)-/,"")}var ss=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ul=/^(@+)?(\+|#+)?[rs]?$/g,Fc=/(\*)(0+)|(#+)(0+)|(0+)/g,zl=/^(0+)$/;function as(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Ul,function(t,r,i){return typeof i!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):i==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),e}function $l(n){switch(n){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 Uc(n){var e;if(n[0]==="E"&&n[1]==="E"?(e={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(e={notation:"scientific"},n=n.slice(1)),e){var t=n.slice(0,2);if(t==="+!"?(e.signDisplay="always",n=n.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",n=n.slice(2)),!zl.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function ls(n){var e={},t=$l(n);return t||e}function zc(n){for(var e={},t=0,r=n;t<r.length;t++){var i=r[t];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=Rc(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Se(Se(Se({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Se(Se({},l),ls(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),ls(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fc,function(l,u,d,c,h,f){if(u)e.minimumIntegerDigits=d.length;else{if(c&&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(zl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ss.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ss,function(l,u,d,c,h,f){return d==="*"?e.minimumFractionDigits=u.length:c&&c[0]==="#"?e.maximumFractionDigits=c.length:h&&f?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+f.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?e=Se(Se({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Se(Se({},e),as(o)));continue}if(Ul.test(i.stem)){e=Se(Se({},e),as(i.stem));continue}var s=$l(i.stem);s&&(e=Se(Se({},e),s));var a=Uc(i.stem);a&&(e=Se(Se({},e),a))}return e}var ir={"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 $c(n,e){for(var t="",r=0;r<n.length;r++){var i=n.charAt(r);if(i==="j"){for(var o=0;r+1<n.length&&n.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=Vc(e);for((u=="H"||u=="k")&&(a=0);a-- >0;)t+=l;for(;s-- >0;)t=u+t}else i==="J"?t+="H":t+=i}return t}function Vc(n){var e=n.hourCycle;if(e===void 0&&n.hourCycles&&n.hourCycles.length&&(e=n.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=n.language,r;t!=="root"&&(r=n.maximize().region);var i=ir[r||""]||ir[t||""]||ir["".concat(t,"-001")]||ir["001"];return i[0]}var mi,Wc=new RegExp("^".concat(Fl.source,"*")),jc=new RegExp("".concat(Fl.source,"*$"));function fe(n,e){return{start:n,end:e}}var Gc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Yc=!!String.fromCodePoint,qc=!!Object.fromEntries,Xc=!!String.prototype.codePointAt,Zc=!!String.prototype.trimStart,Kc=!!String.prototype.trimEnd,Jc=!!Number.isSafeInteger,Qc=Jc?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},$i=!0;try{var eh=Wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=((mi=eh.exec("a"))===null||mi===void 0?void 0:mi[0])==="a"}catch(n){$i=!1}var us=Gc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Vi=Yc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",i=e.length,o=0,s;i>o;){if(s=e[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},ds=qc?Object.fromEntries:function(e){for(var t={},r=0,i=e;r<i.length;r++){var o=i[r],s=o[0],a=o[1];t[s]=a}return t},Vl=Xc?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var i=e.charCodeAt(t),o;return i<55296||i>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},th=Zc?function(e){return e.trimStart()}:function(e){return e.replace(Wc,"")},nh=Kc?function(e){return e.trimEnd()}:function(e){return e.replace(jc,"")};function Wl(n,e){return new RegExp(n,e)}var Wi;if($i){var cs=Wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wi=function(e,t){var r;cs.lastIndex=t;var i=cs.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else Wi=function(e,t){for(var r=[];;){var i=Vl(e,t);if(i===void 0||jl(i)||sh(i))break;r.push(i),t+=i>=65536?2:1}return Vi.apply(void 0,r)};var rh=function(){function n(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(e,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Ee.pound,location:fe(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,fe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&ji(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ee.literal,value:"<".concat(i,"/>"),location:fe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ji(this.char()))return this.error(ce.INVALID_TAG,fe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,fe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:fe(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,fe(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,fe(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,fe(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&oh(this.char());)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(t);if(o){i+=o;continue}var s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=fe(r,this.clonePosition());return{val:{type:Ee.literal,value:i,location:l},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ih(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(e){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(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return Vi.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),Vi(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,fe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:fe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,fe(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Wi(this.message,t),i=t+r.length;this.bumpTo(i);var o=this.clonePosition(),s=fe(e,o);return{value:r,location:s}},n.prototype.parseArgumentOptions=function(e,t,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,fe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=nh(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,fe(this.clonePosition(),this.clonePosition()));var f=fe(d,this.clonePosition());u={style:h,styleLocation:f}}var b=this.tryParseArgumentClose(i);if(b.err)return b;var _=fe(i,this.clonePosition());if(u&&us(u==null?void 0:u.style,"::",0)){var C=th(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(C,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:_,style:c.val},err:null}}else{if(C.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,_);var v=C;this.locale&&(v=$c(C,this.locale));var h={type:Qt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Nc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:_,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:_,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,fe(A,yr({},A)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),y=this.parseIdentifierIfPossible(),S=c.val}var x=this.tryParsePluralOrSelectOptions(e,a,t,y);if(x.err)return x;var b=this.tryParseArgumentClose(i);if(b.err)return b;var F=fe(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ds(x.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:ds(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ce.INVALID_ARGUMENT_TYPE,fe(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,fe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,fe(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=Hc(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?zc(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,d=i.location;;){if(u.length===0){var c=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=fe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,fe(this.clonePosition(),this.clonePosition()));var b=this.parseMessage(e+1,t,r);if(b.err)return b;var _=this.tryParseArgumentClose(f);if(_.err)return _;a.push([u,{value:b.val,location:fe(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,d=o.location}return a.length===0?this.error(t==="select"?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,fe(this.clonePosition(),this.clonePosition())):{val:a,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,i=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=fe(i,this.clonePosition());return o?(s*=r,Qc(s)?{val:s,err:null}:this.error(t,l)):this.error(e,l)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Vl(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},n.prototype.bumpIf=function(e){if(us(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&jl(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r!=null?r:null},n}();function ji(n){return n>=97&&n<=122||n>=65&&n<=90}function ih(n){return ji(n)||n===47}function oh(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function jl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function sh(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function Gi(n){n.forEach(function(e){if(delete e.location,Nl(e)||Ll(e))for(var t in e.options)delete e.options[t].location,Gi(e.options[t].value);else Bl(e)&&Rl(e.style)||(Ol(e)||Il(e))&&zi(e.style)?delete e.style.location:Hl(e)&&Gi(e.children)})}function ah(n,e){e===void 0&&(e={}),e=yr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new rh(n,e).parse();if(t.err){var r=SyntaxError(ce[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Gi(t.val),t.val}var en;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(en||(en={}));var Vr=function(n){$r(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.code=r,o.originalMessage=i,o}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),hs=function(n){$r(e,n);function e(t,r,i,o){return n.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),en.INVALID_VALUE,o)||this}return e}(Vr),lh=function(n){$r(e,n);function e(t,r,i){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),en.INVALID_VALUE,i)||this}return e}(Vr),uh=function(n){$r(e,n);function e(t,r){return n.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),en.MISSING_VALUE,r)||this}return e}(Vr),ze;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(ze||(ze={}));function dh(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==ze.literal||t.type!==ze.literal?e.push(t):r.value+=t.value,e},[])}function ch(n){return typeof n=="function"}function pr(n,e,t,r,i,o,s){if(n.length===1&&os(n[0]))return[{type:ze.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(os(d)){a.push({type:ze.literal,value:d.value});continue}if(Oc(d)){typeof o=="number"&&a.push({type:ze.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new uh(c,s);var h=i[c];if(Bc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?ze.literal:ze.object,value:h});continue}if(Ol(d)){var f=typeof d.style=="string"?r.date[d.style]:zi(d.style)?d.style.parsedOptions:void 0;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Il(d)){var f=typeof d.style=="string"?r.time[d.style]:zi(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:ze.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Bl(d)){var f=typeof d.style=="string"?r.number[d.style]:Rl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:ze.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(Hl(d)){var b=d.children,_=d.value,C=i[_];if(!ch(C))throw new lh(_,"function",s);var v=pr(b,e,t,r,i,o),g=C(v.map(function(S){return S.value}));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map(function(S){return{type:typeof S=="string"?ze.literal:ze.object,value:S}}))}if(Nl(d)){var A=d.options[h]||d.options.other;if(!A)throw new hs(d.value,h,Object.keys(d.options),s);a.push.apply(a,pr(A.value,e,t,r,i));continue}if(Ll(d)){var A=d.options["=".concat(h)];if(!A){if(!Intl.PluralRules)throw new Vr(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,en.MISSING_INTL_API,s);var y=t.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[y]||d.options.other}if(!A)throw new cs(d.value,h,Object.keys(d.options),s);a.push.apply(a,hr(A.value,e,t,r,i,h-(d.offset||0)));continue}}return uh(a)}function ch(n,e){return e?tt(tt(tt({},n||{}),e||{}),Object.keys(n).reduce(function(t,r){return t[r]=tt(tt({},n[r]),e[r]||{}),t},{})):n}function hh(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=ch(n[r],e[r]),t},tt({},n)):n}function pi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function fh(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.number),strategy:hi.variadic}),getDateTimeFormat:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.dateTime),strategy:hi.variadic}),getPluralRules:ci(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,di([void 0],t,!1)))},{cache:pi(n.pluralRules),strategy:hi.variadic})}}var ph=function(){function n(e,t,r,i){t===void 0&&(t=n.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 d=u.reduce(function(c,h){return!c.length||h.type!==$e.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return hr(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=t,this.resolvedLocale=n.resolveLocale(t),typeof e=="string"){if(this.message=e,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Ec(s,["formatters"]);this.ast=n.__parse(e,tt(tt({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hh(n.formats,r),this.formatters=i&&i.formatters||fh(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},n.__parse=sh,n.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"}}},n}();function mh(n,e){if(e==null)return;if(e in n)return n[e];const t=e.split(".");let r=n;for(let i=0;i<t.length;i++)if(typeof r=="object"){if(i>0){const o=t.slice(i,t.length).join(".");if(o in r){r=r[o];break}}r=r[t[i]]}else r=void 0;return r}const _t={},_h=(n,e,t)=>t&&(e in _t||(_t[e]={}),n in _t[e]||(_t[e][n]=t),t),jl=(n,e)=>{if(e==null)return;if(e in _t&&n in _t[e])return _t[e][n];const t=$r(e);for(let r=0;r<t.length;r++){const i=t[r],o=bh(i,n);if(o)return _h(n,e,o)}};let Eo;const Gn=Fr({});function gh(n){return Eo[n]||null}function Gl(n){return n in Eo}function bh(n,e){if(!Gl(n))return null;const t=gh(n);return mh(t,e)}function vh(n){if(n==null)return;const e=$r(n);for(let t=0;t<e.length;t++){const r=e[t];if(Gl(r))return r}}function Yl(n,...e){delete _t[n],Gn.update(t=>(t[n]=Cc.all([t[n]||{},...e]),t))}an([Gn],([n])=>Object.keys(n));Gn.subscribe(n=>Eo=n);const fr={};function yh(n,e){fr[n].delete(e),fr[n].size===0&&delete fr[n]}function ql(n){return fr[n]}function wh(n){return $r(n).map(e=>{const t=ql(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function ji(n){return n==null?!1:$r(n).some(e=>{var t;return(t=ql(e))==null?void 0:t.size})}function Ch(n,e){return Promise.all(e.map(r=>(yh(n,r),r().then(i=>i.default||i)))).then(r=>Yl(n,...r))}const fn={};function Xl(n){if(!ji(n))return n in fn?fn[n]:Promise.resolve();const e=wh(n);return fn[n]=Promise.all(e.map(([t,r])=>Ch(t,r))).then(()=>{if(ji(n))return Xl(n);delete fn[n]}),fn[n]}const Eh={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"}}},xh={fallbackLocale:null,loadingDelay:200,formats:Eh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ah=xh;function tn(){return Ah}const mi=Fr(!1);var Th=Object.defineProperty,Ph=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,kh=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,fs=(n,e,t)=>e in n?Th(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Mh=(n,e)=>{for(var t in e||(e={}))kh.call(e,t)&&fs(n,t,e[t]);if(hs)for(var t of hs(e))Dh.call(e,t)&&fs(n,t,e[t]);return n},Bh=(n,e)=>Ph(n,Sh(e));let Gi;const vr=Fr(null);function ps(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function $r(n,e=tn().fallbackLocale){const t=ps(n);return e?[...new Set([...t,...ps(e)])]:t}function It(){return Gi!=null?Gi:void 0}vr.subscribe(n=>{Gi=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Oh=n=>{if(n&&vh(n)&&ji(n)){const{loadingDelay:e}=tn();let t;return typeof window!="undefined"&&It()!=null&&e?t=window.setTimeout(()=>mi.set(!0),e):mi.set(!0),Xl(n).then(()=>{vr.set(n)}).finally(()=>{clearTimeout(t),mi.set(!1)})}return vr.set(n)},ln=Bh(Mh({},vr),{set:Oh}),Vr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Ih=Object.defineProperty,yr=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,ms=(n,e,t)=>e in n?Ih(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,xo=(n,e)=>{for(var t in e||(e={}))Zl.call(e,t)&&ms(n,t,e[t]);if(yr)for(var t of yr(e))Kl.call(e,t)&&ms(n,t,e[t]);return n},un=(n,e)=>{var t={};for(var r in n)Zl.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&yr)for(var r of yr(n))e.indexOf(r)<0&&Kl.call(n,r)&&(t[r]=n[r]);return t};const Dn=(n,e)=>{const{formats:t}=tn();if(n in t&&e in t[n])return t[n][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${n} format.`)},Nh=Vr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Dn("number",r)),new Intl.NumberFormat(t,i)}),Lh=Vr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Dn("date",r):Object.keys(i).length===0&&(i=Dn("date","short")),new Intl.DateTimeFormat(t,i)}),Hh=Vr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Dn("time",r):Object.keys(i).length===0&&(i=Dn("time","short")),new Intl.DateTimeFormat(t,i)}),Rh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Nh(xo({locale:t},r))},Fh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Lh(xo({locale:t},r))},Uh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Hh(xo({locale:t},r))},zh=Vr((n,e=It())=>new ph(n,e,tn().formats,{ignoreTag:tn().ignoreTag})),$h=(n,e={})=>{var t,r,i,o;let s=e;typeof n=="object"&&(s=n,n=s.id);const{values:a,locale:l=It(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=jl(n,l);if(!d)d=(o=(i=(r=(t=tn()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:n,defaultValue:u}))!=null?i:u)!=null?o:n;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${n}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=zh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},Vh=(n,e)=>Uh(e).format(n),Wh=(n,e)=>Fh(e).format(n),jh=(n,e)=>Rh(e).format(n),Gh=(n,e=It())=>jl(n,e),Jl=an([ln,Gn],()=>$h);an([ln],()=>Vh);an([ln],()=>Wh);an([ln],()=>jh);an([ln,Gn],()=>Gh);function wr(n,e){Yl(n,e)}function Ql(n){ln.set(n)}/*! *****************************************************************************
3
+ `,en.MISSING_INTL_API,s);var y=t.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));A=d.options[y]||d.options.other}if(!A)throw new hs(d.value,h,Object.keys(d.options),s);a.push.apply(a,pr(A.value,e,t,r,i,h-(d.offset||0)));continue}}return dh(a)}function hh(n,e){return e?tt(tt(tt({},n||{}),e||{}),Object.keys(n).reduce(function(t,r){return t[r]=tt(tt({},n[r]),e[r]||{}),t},{})):n}function fh(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=hh(n[r],e[r]),t},tt({},n)):n}function _i(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function ph(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.number),strategy:pi.variadic}),getDateTimeFormat:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.dateTime),strategy:pi.variadic}),getPluralRules:fi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,hi([void 0],t,!1)))},{cache:_i(n.pluralRules),strategy:pi.variadic})}}var mh=function(){function n(e,t,r,i){t===void 0&&(t=n.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 d=u.reduce(function(c,h){return!c.length||h.type!==ze.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(l){return pr(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=t,this.resolvedLocale=n.resolveLocale(t),typeof e=="string"){if(this.message=e,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=xc(s,["formatters"]);this.ast=n.__parse(e,tt(tt({},a),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=fh(n.formats,r),this.formatters=i&&i.formatters||ph(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},n.__parse=ah,n.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"}}},n}();function _h(n,e){if(e==null)return;if(e in n)return n[e];const t=e.split(".");let r=n;for(let i=0;i<t.length;i++)if(typeof r=="object"){if(i>0){const o=t.slice(i,t.length).join(".");if(o in r){r=r[o];break}}r=r[t[i]]}else r=void 0;return r}const gt={},gh=(n,e,t)=>t&&(e in gt||(gt[e]={}),n in gt[e]||(gt[e][n]=t),t),Gl=(n,e)=>{if(e==null)return;if(e in gt&&n in gt[e])return gt[e][n];const t=Wr(e);for(let r=0;r<t.length;r++){const i=t[r],o=vh(i,n);if(o)return gh(n,e,o)}};let Ao;const Yn=zr({});function bh(n){return Ao[n]||null}function Yl(n){return n in Ao}function vh(n,e){if(!Yl(n))return null;const t=bh(n);return _h(t,e)}function yh(n){if(n==null)return;const e=Wr(n);for(let t=0;t<e.length;t++){const r=e[t];if(Yl(r))return r}}function ql(n,...e){delete gt[n],Yn.update(t=>(t[n]=Ec.all([t[n]||{},...e]),t))}an([Yn],([n])=>Object.keys(n));Yn.subscribe(n=>Ao=n);const mr={};function wh(n,e){mr[n].delete(e),mr[n].size===0&&delete mr[n]}function Xl(n){return mr[n]}function Ch(n){return Wr(n).map(e=>{const t=Xl(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Yi(n){return n==null?!1:Wr(n).some(e=>{var t;return(t=Xl(e))==null?void 0:t.size})}function Eh(n,e){return Promise.all(e.map(r=>(wh(n,r),r().then(i=>i.default||i)))).then(r=>ql(n,...r))}const pn={};function Zl(n){if(!Yi(n))return n in pn?pn[n]:Promise.resolve();const e=Ch(n);return pn[n]=Promise.all(e.map(([t,r])=>Eh(t,r))).then(()=>{if(Yi(n))return Zl(n);delete pn[n]}),pn[n]}const xh={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"}}},Ah={fallbackLocale:null,loadingDelay:200,formats:xh,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Th=Ah;function tn(){return Th}const gi=zr(!1);var Ph=Object.defineProperty,Sh=Object.defineProperties,kh=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,Dh=Object.prototype.hasOwnProperty,Mh=Object.prototype.propertyIsEnumerable,ps=(n,e,t)=>e in n?Ph(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Bh=(n,e)=>{for(var t in e||(e={}))Dh.call(e,t)&&ps(n,t,e[t]);if(fs)for(var t of fs(e))Mh.call(e,t)&&ps(n,t,e[t]);return n},Oh=(n,e)=>Sh(n,kh(e));let qi;const wr=zr(null);function ms(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Wr(n,e=tn().fallbackLocale){const t=ms(n);return e?[...new Set([...t,...ms(e)])]:t}function It(){return qi!=null?qi:void 0}wr.subscribe(n=>{qi=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Ih=n=>{if(n&&yh(n)&&Yi(n)){const{loadingDelay:e}=tn();let t;return typeof window!="undefined"&&It()!=null&&e?t=window.setTimeout(()=>gi.set(!0),e):gi.set(!0),Zl(n).then(()=>{wr.set(n)}).finally(()=>{clearTimeout(t),gi.set(!1)})}return wr.set(n)},ln=Oh(Bh({},wr),{set:Ih}),jr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Nh=Object.defineProperty,Cr=Object.getOwnPropertySymbols,Kl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,_s=(n,e,t)=>e in n?Nh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,To=(n,e)=>{for(var t in e||(e={}))Kl.call(e,t)&&_s(n,t,e[t]);if(Cr)for(var t of Cr(e))Jl.call(e,t)&&_s(n,t,e[t]);return n},un=(n,e)=>{var t={};for(var r in n)Kl.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Cr)for(var r of Cr(n))e.indexOf(r)<0&&Jl.call(n,r)&&(t[r]=n[r]);return t};const Mn=(n,e)=>{const{formats:t}=tn();if(n in t&&e in t[n])return t[n][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${n} format.`)},Lh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Mn("number",r)),new Intl.NumberFormat(t,i)}),Hh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Mn("date",r):Object.keys(i).length===0&&(i=Mn("date","short")),new Intl.DateTimeFormat(t,i)}),Rh=jr(n=>{var e=n,{locale:t,format:r}=e,i=un(e,["locale","format"]);if(t==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Mn("time",r):Object.keys(i).length===0&&(i=Mn("time","short")),new Intl.DateTimeFormat(t,i)}),Fh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Lh(To({locale:t},r))},Uh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Hh(To({locale:t},r))},zh=(n={})=>{var e=n,{locale:t=It()}=e,r=un(e,["locale"]);return Rh(To({locale:t},r))},$h=jr((n,e=It())=>new mh(n,e,tn().formats,{ignoreTag:tn().ignoreTag})),Vh=(n,e={})=>{var t,r,i,o;let s=e;typeof n=="object"&&(s=n,n=s.id);const{values:a,locale:l=It(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Gl(n,l);if(!d)d=(o=(i=(r=(t=tn()).handleMissingMessage)==null?void 0:r.call(t,{locale:l,id:n,defaultValue:u}))!=null?i:u)!=null?o:n;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${n}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!a)return d;let c=d;try{c=$h(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},Wh=(n,e)=>zh(e).format(n),jh=(n,e)=>Uh(e).format(n),Gh=(n,e)=>Fh(e).format(n),Yh=(n,e=It())=>Gl(n,e),Ql=an([ln,Yn],()=>Vh);an([ln],()=>Wh);an([ln],()=>jh);an([ln],()=>Gh);an([ln,Yn],()=>Yh);function Er(n,e){ql(n,e)}function eu(n){ln.set(n)}/*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
5
5
 
6
6
  Permission to use, copy, modify, and/or distribute this software for any
@@ -13,9 +13,9 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
13
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */var Yi=function(n,e){return Yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Yi(n,e)};function Yn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Yi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function qi(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xi(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function Zi(n,e,t){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||e)}function at(n){return typeof n=="function"}function eu(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var _i=eu(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
16
+ ***************************************************************************** */var Xi=function(n,e){return Xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Xi(n,e)};function qn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Zi(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function Ji(n,e,t){if(arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return n.concat(o||e)}function at(n){return typeof n=="function"}function tu(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var bi=tu(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
17
17
  `+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=t}});function Ki(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Wr=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=qi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){o=_ instanceof _i?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=qi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{_s(b)}catch(_){o=o!=null?o:[],_ instanceof _i?o=Zi(Zi([],Xi(o)),Xi(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new _i(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)_s(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ki(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Ki(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),tu=Wr.EMPTY;function nu(n){return n instanceof Wr||n&&"closed"in n&&at(n.remove)&&at(n.add)&&at(n.unsubscribe)}function _s(n){at(n)?n():n.unsubscribe()}var Yh={Promise:void 0},qh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Zi([n,e],Xi(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Xh(n){qh.setTimeout(function(){throw n})}function gs(){}function pr(n){n()}var ru=function(n){Yn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,nu(t)&&t.add(r)):r.destination=Jh,r}return e.create=function(t,r,i){return new Ji(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Wr),Zh=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){rr(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){rr(r)}else rr(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){rr(t)}},n}(),Ji=function(n){Yn(e,n);function e(t,r,i){var o=n.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=t,o.destination=new Zh(s),o}return e}(ru);function rr(n){Xh(n)}function Kh(n){throw n}var Jh={closed:!0,next:gs,error:Kh,complete:gs},Qh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ef(n){return n}function tf(n){return n.length===0?ef:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var bs=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=rf(e)?e:new Ji(e,t,r);return pr(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=vs(t),new t(function(i,o){var s=new Ji({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[Qh]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=vs(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function vs(n){var e;return(e=n!=null?n:Yh.Promise)!==null&&e!==void 0?e:Promise}function nf(n){return n&&at(n.next)&&at(n.error)&&at(n.complete)}function rf(n){return n&&n instanceof ru||nf(n)&&nu(n)}var of=eu(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),iu=function(n){Yn(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new ys(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new of},e.prototype.next=function(t){var r=this;pr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=qi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;pr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;pr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?tu:(this.currentObservers=null,a.push(t),new Wr(function(){r.currentObservers=null,Ki(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new bs;return t.source=this,t},e.create=function(t,r){return new ys(t,r)},e}(bs),ys=function(n){Yn(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:tu},e}(iu),ou={now:function(){return(ou.delegate||Date).now()},delegate:void 0},sf=function(n){Yn(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=ou);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+l)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(iu);const ws=[],Cs={},af=(n,e=0)=>{if(ws.indexOf(n)==-1){const t=new sf(e);Cs[n]=t,ws.push(n)}return Cs[n]};window.emWidgets={topic:af};const su=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const Cr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},jt="__WIDGET_GLOBAL_STYLE_CACHE__";function jr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function Gr(n,e){if(!n||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,n&&n.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Yr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=lf(n,e),t;window[jt]||(window[jt]={}),t=uf(n,e);const o=t.unsubscribe.bind(t),s=()=>{if(window[jt][e]){const a=window[jt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[jt][e]}o()};return t.unsubscribe=s,t}function lf(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function uf(n,e){return window.emMessageBus.subscribe(e,t=>{if(!n)return;const r=n.getRootNode(),i=window[jt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function Er(n){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(n)}function dt(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function He(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Ke(n){He(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Er(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function df(n,e){He(2,arguments);var t=Ke(n),r=dt(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),o=new Date(t.getTime());o.setMonth(t.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(t.setFullYear(o.getFullYear(),o.getMonth(),i),t)}function cf(n,e){He(2,arguments);var t=Ke(n).getTime(),r=dt(e);return new Date(t+r)}var hf={};function qr(){return hf}function ff(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function pf(n){return He(1,arguments),n instanceof Date||Er(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function mf(n){if(He(1,arguments),!pf(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function _f(n,e){He(2,arguments);var t=dt(e);return cf(n,-t)}var gf=864e5;function bf(n){He(1,arguments);var e=Ke(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/gf)+1}function xr(n){He(1,arguments);var e=1,t=Ke(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function au(n){He(1,arguments);var e=Ke(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=xr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=xr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function vf(n){He(1,arguments);var e=au(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=xr(t);return r}var yf=6048e5;function wf(n){He(1,arguments);var e=Ke(n),t=xr(e).getTime()-vf(e).getTime();return Math.round(t/yf)+1}function Ar(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=qr(),c=dt((t=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ke(n),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function lu(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=Ke(n),c=d.getUTCFullYear(),h=qr(),f=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=Ar(b,e),C=new Date(0);C.setUTCFullYear(c,0,f),C.setUTCHours(0,0,0,0);var v=Ar(C,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function Cf(n,e){var t,r,i,o,s,a,l,u;He(1,arguments);var d=qr(),c=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=lu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=Ar(f,e);return b}var Ef=6048e5;function xf(n,e){He(1,arguments);var t=Ke(n),r=Ar(t,e).getTime()-Cf(t,e).getTime();return Math.round(r/Ef)+1}function ye(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var pt={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ye(r+1,2)},d:function(e,t){return ye(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return ye(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ye(e.getUTCHours(),t.length)},m:function(e,t){return ye(e.getUTCMinutes(),t.length)},s:function(e,t){return ye(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ye(o,t.length)}},$t={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Af={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return pt.y(e,t)},Y:function(e,t,r,i){var o=lu(e,i),s=o>0?o:1-o;if(t==="YY"){var a=s%100;return ye(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,t.length)},R:function(e,t){var r=au(e);return ye(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ye(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return ye(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return ye(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return pt.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return ye(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var o=xf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,t.length)},I:function(e,t,r){var i=wf(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):pt.d(e,t)},D:function(e,t,r){var i=bf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ye(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ye(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return ye(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),o;switch(i===12?o=$t.noon:i===0?o=$t.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),o;switch(i>=17?o=$t.evening:i>=12?o=$t.afternoon:i>=4?o=$t.morning:o=$t.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return pt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):pt.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):pt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pt.s(e,t)},S:function(e,t){return pt.S(e,t)},X:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return xs(s);case"XXXX":case"XX":return Tt(s);case"XXXXX":case"XXX":default:return Tt(s,":")}},x:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return xs(s);case"xxxx":case"xx":return Tt(s);case"xxxxx":case"xxx":default:return Tt(s,":")}},O:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Es(s,":");case"OOOO":default:return"GMT"+Tt(s,":")}},z:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Es(s,":");case"zzzz":default:return"GMT"+Tt(s,":")}},t:function(e,t,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ye(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,t.length)}};function Es(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),o=r%60;if(o===0)return t+String(i);var s=e;return t+String(i)+s+ye(o,2)}function xs(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ye(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+t+s}var As=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},uu=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Tf=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return As(e,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",As(i,t)).replace("{{time}}",uu(o,t))},Pf={p:uu,P:Tf},Sf=["D","DD"],kf=["YY","YYYY"];function Df(n){return Sf.indexOf(n)!==-1}function Mf(n){return kf.indexOf(n)!==-1}function Ts(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Bf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Of=function(e,t,r){var i,o=Bf[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function gi(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var If={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hf={date:gi({formats:If,defaultWidth:"full"}),time:gi({formats:Nf,defaultWidth:"full"}),dateTime:gi({formats:Lf,defaultWidth:"full"})},Rf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ff=function(e,t,r,i){return Rf[e]};function pn(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&n.formattingValues){var o=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):o;i=n.formattingValues[s]||n.formattingValues[o]}else{var a=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[l]||n.values[a]}var u=n.argumentCallback?n.argumentCallback(e):e;return i[u]}}var Uf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$f={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Vf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Wf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gf=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Yf={ordinalNumber:Gf,era:pn({values:Uf,defaultWidth:"wide"}),quarter:pn({values:zf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pn({values:$f,defaultWidth:"wide"}),day:pn({values:Vf,defaultWidth:"wide"}),dayPeriod:pn({values:Wf,defaultWidth:"wide",formattingValues:jf,defaultFormattingWidth:"wide"})};function mn(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Xf(a,function(c){return c.test(s)}):qf(a,function(c){return c.test(s)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function qf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Xf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function Zf(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Kf=/^(\d+)(th|st|nd|rd)?/i,Jf=/\d+/i,Qf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ep={any:[/^b/i,/^(a|c)/i]},tp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},np={any:[/1/i,/2/i,/3/i,/4/i]},rp={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ip={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},op={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sp={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ap={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lp={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},up={ordinalNumber:Zf({matchPattern:Kf,parsePattern:Jf,valueCallback:function(e){return parseInt(e,10)}}),era:mn({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:ep,defaultParseWidth:"any"}),quarter:mn({matchPatterns:tp,defaultMatchWidth:"wide",parsePatterns:np,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mn({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any"}),day:mn({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:ap,defaultMatchWidth:"any",parsePatterns:lp,defaultParseWidth:"any"})},dp={code:"en-US",formatDistance:Of,formatLong:Hf,formatRelative:Ff,localize:Yf,match:up,options:{weekStartsOn:0,firstWeekContainsDate:1}},cp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fp=/^'([^]*?)'?$/,pp=/''/g,mp=/[a-zA-Z]/;function xn(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,b,_,C;He(2,arguments);var v=String(e),g=qr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:dp,y=dt((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=dt((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(C=_.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=Ke(n);if(!mf(x))throw new RangeError("Invalid time value");var F=ff(x),j=_f(x,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:A,_originalDate:x},R=v.match(hp).map(function(B){var V=B[0];if(V==="p"||V==="P"){var Q=Pf[V];return Q(B,A.formatLong)}return B}).join("").match(cp).map(function(B){if(B==="''")return"'";var V=B[0];if(V==="'")return _p(B);var Q=Af[V];if(Q)return Mf(B)&&Ts(B,e,String(n)),Df(B)&&Ts(B,e,String(n)),Q(j,B,A.localize,G);if(V.match(mp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return B}).join("");return R}function _p(n){var e=n.match(fp);return e?e[1].replace(pp,"'"):n}function Ps(n,e){He(2,arguments);var t=dt(e);return df(n,-t)}/**
18
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function Qi(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Gr=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Zi(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(_){e={error:_}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var d=this.initialTeardown;if(at(d))try{d()}catch(_){o=_ instanceof bi?_.errors:[_]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Zi(c),f=h.next();!f.done;f=h.next()){var b=f.value;try{gs(b)}catch(_){o=o!=null?o:[],_ instanceof bi?o=Ji(Ji([],Ki(o)),Ki(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new bi(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)gs(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Qi(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&Qi(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),nu=Gr.EMPTY;function ru(n){return n instanceof Gr||n&&"closed"in n&&at(n.remove)&&at(n.add)&&at(n.unsubscribe)}function gs(n){at(n)?n():n.unsubscribe()}var qh={Promise:void 0},Xh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Ji([n,e],Ki(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Zh(n){Xh.setTimeout(function(){throw n})}function bs(){}function _r(n){n()}var iu=function(n){qn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,ru(t)&&t.add(r)):r.destination=Qh,r}return e.create=function(t,r,i){return new eo(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Gr),Kh=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){or(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){or(r)}else or(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){or(t)}},n}(),eo=function(n){qn(e,n);function e(t,r,i){var o=n.call(this)||this,s;return at(t)||!t?s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=t,o.destination=new Kh(s),o}return e}(iu);function or(n){Zh(n)}function Jh(n){throw n}var Qh={closed:!0,next:bs,error:Jh,complete:bs},ef=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function tf(n){return n}function nf(n){return n.length===0?tf:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var vs=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=of(e)?e:new eo(e,t,r);return _r(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=ys(t),new t(function(i,o){var s=new eo({next:function(a){try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[ef]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=ys(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();function ys(n){var e;return(e=n!=null?n:qh.Promise)!==null&&e!==void 0?e:Promise}function rf(n){return n&&at(n.next)&&at(n.error)&&at(n.complete)}function of(n){return n&&n instanceof iu||rf(n)&&ru(n)}var sf=tu(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ou=function(n){qn(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new ws(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new sf},e.prototype.next=function(t){var r=this;_r(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Zi(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;_r(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;_r(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?nu:(this.currentObservers=null,a.push(t),new Gr(function(){r.currentObservers=null,Qi(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new vs;return t.source=this,t},e.create=function(t,r){return new ws(t,r)},e}(vs),ws=function(n){qn(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:nu},e}(ou),su={now:function(){return(su.delegate||Date).now()},delegate:void 0},af=function(n){qn(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=su);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,l=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+l)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!t.closed;l+=o?1:2)t.next(a[l]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,d=1;d<o.length&&o[d]<=l;d+=2)u=d;u&&o.splice(0,u+1)}},e}(ou);const Cs=[],Es={},lf=(n,e=0)=>{if(Cs.indexOf(n)==-1){const t=new af(e);Es[n]=t,Cs.push(n)}return Es[n]};window.emWidgets={topic:lf};const au=n=>!!(n.toLowerCase().match(/android/i)||n.toLowerCase().match(/blackberry|bb/i)||n.toLowerCase().match(/iphone|ipad|ipod/i)||n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const xr={en:{bonus:{bonusCode:"Do you have a bonus code",placeholder:"Enter your bonus code here",claim:"Claim Bonus",from:"From",to:"to",noBonus:"No bonuses found",filter:"Filter",error:"Error",forfeit:"Forfeit",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitMessage:"Are you sure want to forfeit bonus?",forfeitConfirm:"Confirm",forfeitCancel:"Cancel",claimSuccessMessage:"Bonus claimed!",canlendarTitle:"Select the period"},bonusType:{standard:"Bonus Money",freeBet:"Free Bet",freeRound:"Free Spins",wagering:"Wagering Challenge",cashBack:"Cash Back",oddsBoost:"Odds Boost",stakeBack:"Stake Back",tournamentTicket:"Ticket"},bonusCard:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE",rewards:"Rewards",join:"Join",forfeit:"Forfeit",terms:"Terms and Conditions",bonusType:"Bonus Type",levels:"Levels",validity:"Validity",bonusStatus:"Bonus Status",bonusAmount:"Bonus Amount",wagered:"Wagered",wageredAmount:"Wagered Amount",roundNumber:"Number of freespins",game:"Game",validUntil:"Valid Until",wageringType:"Wagering Type",remaining:"Remaining",money:"Money Wagering",betCount:"Bet Count",allRewards:"All Rewards",error:"Join failed, please try again.",playNow:"Play Now",active:"Active",expired:"Expired",forfeited:"Forfeited",released:"Released",closed:"Closed",completed:"Completed",claimable:"Claimable",wageringRequirement:"Wagering Requirement",show:"Show",days:"days",day:"day",infinite:"Infinite",upTo:"up to",enrollTo:"Enroll to {name}",freeSpins:"{count} Free Spins"}}},jt="__WIDGET_GLOBAL_STYLE_CACHE__";function Yr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function qr(n,e){if(!n||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,n&&n.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Xr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=uf(n,e),t;window[jt]||(window[jt]={}),t=df(n,e);const o=t.unsubscribe.bind(t),s=()=>{if(window[jt][e]){const a=window[jt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[jt][e]}o()};return t.unsubscribe=s,t}function uf(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function df(n,e){return window.emMessageBus.subscribe(e,t=>{if(!n)return;const r=n.getRootNode(),i=window[jt];let o=i[e]&&i[e].sheet;o?i[e].refCount=i[e].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),i[e]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}function Ar(n){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(n)}function dt(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Le(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Ke(n){Le(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Ar(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function cf(n,e){Le(2,arguments);var t=Ke(n),r=dt(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),o=new Date(t.getTime());o.setMonth(t.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(t.setFullYear(o.getFullYear(),o.getMonth(),i),t)}function hf(n,e){Le(2,arguments);var t=Ke(n).getTime(),r=dt(e);return new Date(t+r)}var ff={};function Zr(){return ff}function pf(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function mf(n){return Le(1,arguments),n instanceof Date||Ar(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function _f(n){if(Le(1,arguments),!mf(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function gf(n,e){Le(2,arguments);var t=dt(e);return hf(n,-t)}var bf=864e5;function vf(n){Le(1,arguments);var e=Ke(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/bf)+1}function Tr(n){Le(1,arguments);var e=1,t=Ke(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function lu(n){Le(1,arguments);var e=Ke(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Tr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=Tr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function yf(n){Le(1,arguments);var e=lu(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Tr(t);return r}var wf=6048e5;function Cf(n){Le(1,arguments);var e=Ke(n),t=Tr(e).getTime()-yf(e).getTime();return Math.round(t/wf)+1}function Pr(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Zr(),c=dt((t=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ke(n),f=h.getUTCDay(),b=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-b),h.setUTCHours(0,0,0,0),h}function uu(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Ke(n),c=d.getUTCFullYear(),h=Zr(),f=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var _=Pr(b,e),C=new Date(0);C.setUTCFullYear(c,0,f),C.setUTCHours(0,0,0,0);var v=Pr(C,e);return d.getTime()>=_.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function Ef(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Zr(),c=dt((t=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),h=uu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var b=Pr(f,e);return b}var xf=6048e5;function Af(n,e){Le(1,arguments);var t=Ke(n),r=Pr(t,e).getTime()-Ef(t,e).getTime();return Math.round(r/xf)+1}function ye(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var mt={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return ye(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ye(r+1,2)},d:function(e,t){return ye(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return ye(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ye(e.getUTCHours(),t.length)},m:function(e,t){return ye(e.getUTCMinutes(),t.length)},s:function(e,t){return ye(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ye(o,t.length)}},$t={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Tf={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return mt.y(e,t)},Y:function(e,t,r,i){var o=uu(e,i),s=o>0?o:1-o;if(t==="YY"){var a=s%100;return ye(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ye(s,t.length)},R:function(e,t){var r=lu(e);return ye(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ye(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return ye(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return ye(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return mt.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return ye(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var o=Af(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,t.length)},I:function(e,t,r){var i=Cf(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ye(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):mt.d(e,t)},D:function(e,t,r){var i=vf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ye(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ye(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var o=e.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ye(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),o=i===0?7:i;switch(t){case"i":return String(o);case"ii":return ye(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),o;switch(i===12?o=$t.noon:i===0?o=$t.midnight:o=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),o;switch(i>=17?o=$t.evening:i>=12?o=$t.afternoon:i>=4?o=$t.morning:o=$t.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return mt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mt.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ye(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):mt.s(e,t)},S:function(e,t){return mt.S(e,t)},X:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return As(s);case"XXXX":case"XX":return Tt(s);case"XXXXX":case"XXX":default:return Tt(s,":")}},x:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return As(s);case"xxxx":case"xx":return Tt(s);case"xxxxx":case"xxx":default:return Tt(s,":")}},O:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xs(s,":");case"OOOO":default:return"GMT"+Tt(s,":")}},z:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xs(s,":");case"zzzz":default:return"GMT"+Tt(s,":")}},t:function(e,t,r,i){var o=i._originalDate||e,s=Math.floor(o.getTime()/1e3);return ye(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ye(s,t.length)}};function xs(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),o=r%60;if(o===0)return t+String(i);var s=e;return t+String(i)+s+ye(o,2)}function As(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ye(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ye(Math.floor(i/60),2),s=ye(i%60,2);return r+o+t+s}var Ts=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},du=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pf=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ts(e,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Ts(i,t)).replace("{{time}}",du(o,t))},Sf={p:du,P:Pf},kf=["D","DD"],Df=["YY","YYYY"];function Mf(n){return kf.indexOf(n)!==-1}function Bf(n){return Df.indexOf(n)!==-1}function Ps(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Of={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},If=function(e,t,r){var i,o=Of[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function vi(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var Nf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Hf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rf={date:vi({formats:Nf,defaultWidth:"full"}),time:vi({formats:Lf,defaultWidth:"full"}),dateTime:vi({formats:Hf,defaultWidth:"full"})},Ff={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uf=function(e,t,r,i){return Ff[e]};function mn(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&n.formattingValues){var o=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):o;i=n.formattingValues[s]||n.formattingValues[o]}else{var a=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[l]||n.values[a]}var u=n.argumentCallback?n.argumentCallback(e):e;return i[u]}}var zf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$f={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Gf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Yf=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},qf={ordinalNumber:Yf,era:mn({values:zf,defaultWidth:"wide"}),quarter:mn({values:$f,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:mn({values:Vf,defaultWidth:"wide"}),day:mn({values:Wf,defaultWidth:"wide"}),dayPeriod:mn({values:jf,defaultWidth:"wide",formattingValues:Gf,defaultFormattingWidth:"wide"})};function _n(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],o=e.match(i);if(!o)return null;var s=o[0],a=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?Zf(a,function(c){return c.test(s)}):Xf(a,function(c){return c.test(s)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var d=e.slice(s.length);return{value:u,rest:d}}}function Xf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Zf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function Kf(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],o=e.match(n.parsePattern);if(!o)return null;var s=n.valueCallback?n.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var a=e.slice(i.length);return{value:s,rest:a}}}var Jf=/^(\d+)(th|st|nd|rd)?/i,Qf=/\d+/i,ep={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tp={any:[/^b/i,/^(a|c)/i]},np={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rp={any:[/1/i,/2/i,/3/i,/4/i]},ip={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},op={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ap={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lp={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},up={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},dp={ordinalNumber:Kf({matchPattern:Jf,parsePattern:Qf,valueCallback:function(e){return parseInt(e,10)}}),era:_n({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:tp,defaultParseWidth:"any"}),quarter:_n({matchPatterns:np,defaultMatchWidth:"wide",parsePatterns:rp,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_n({matchPatterns:ip,defaultMatchWidth:"wide",parsePatterns:op,defaultParseWidth:"any"}),day:_n({matchPatterns:sp,defaultMatchWidth:"wide",parsePatterns:ap,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:lp,defaultMatchWidth:"any",parsePatterns:up,defaultParseWidth:"any"})},cp={code:"en-US",formatDistance:If,formatLong:Rf,formatRelative:Uf,localize:qf,match:dp,options:{weekStartsOn:0,firstWeekContainsDate:1}},hp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pp=/^'([^]*?)'?$/,mp=/''/g,_p=/[a-zA-Z]/;function An(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,b,_,C;Le(2,arguments);var v=String(e),g=Zr(),A=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:cp,y=dt((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:g.firstWeekContainsDate)!==null&&s!==void 0?s:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=dt((c=(h=(f=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(_=g.locale)===null||_===void 0||(C=_.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&c!==void 0?c:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=Ke(n);if(!_f(x))throw new RangeError("Invalid time value");var F=pf(x),j=gf(x,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:A,_originalDate:x},R=v.match(fp).map(function(B){var V=B[0];if(V==="p"||V==="P"){var Q=Sf[V];return Q(B,A.formatLong)}return B}).join("").match(hp).map(function(B){if(B==="''")return"'";var V=B[0];if(V==="'")return gp(B);var Q=Tf[V];if(Q)return Bf(B)&&Ps(B,e,String(n)),Mf(B)&&Ps(B,e,String(n)),Q(j,B,A.localize,G);if(V.match(_p))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return B}).join("");return R}function gp(n){var e=n.match(pp);return e?e[1].replace(mp,"'"):n}function Ss(n,e){Le(2,arguments);var t=dt(e);return cf(n,-t)}/**
19
19
  * @license
20
20
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
21
21
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -23,43 +23,43 @@ PERFORMANCE OF THIS SOFTWARE.
23
23
  * @license
24
24
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
25
25
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
26
- */class gp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(gp);/**
26
+ */class bp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(bp);/**
27
27
  * @license
28
28
  * Copyright 2019 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
- */const mr=globalThis,Ao=mr.ShadowRoot&&(mr.ShadyCSS===void 0||mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,To=Symbol(),Ss=new WeakMap;let Po=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==To)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ao&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Ss.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ss.set(t,e))}return e}toString(){return this.cssText}};const bp=n=>new Po(typeof n=="string"?n:n+"",void 0,To),me=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,i,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.")})(i)+n[o+1],n[0]);return new Po(t,n,To)},du=(n,e)=>{if(Ao)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=mr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},ks=Ao?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return bp(t)})(n):n;/**
30
+ */const gr=globalThis,Po=gr.ShadowRoot&&(gr.ShadyCSS===void 0||gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,So=Symbol(),ks=new WeakMap;let ko=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==So)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Po&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=ks.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(t,e))}return e}toString(){return this.cssText}};const vp=n=>new ko(typeof n=="string"?n:n+"",void 0,So),me=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,i,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.")})(i)+n[o+1],n[0]);return new ko(t,n,So)},cu=(n,e)=>{if(Po)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=gr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},Ds=Po?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return vp(t)})(n):n;/**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */const{is:vp,defineProperty:yp,getOwnPropertyDescriptor:wp,getOwnPropertyNames:Cp,getOwnPropertySymbols:Ep,getPrototypeOf:xp}=Object,gt=globalThis,Ds=gt.trustedTypes,Ap=Ds?Ds.emptyScript:"",bi=gt.reactiveElementPolyfillSupport,An=(n,e)=>n,Qi={toAttribute(n,e){switch(e){case Boolean:n=n?Ap:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch(r){t=null}}return t}},cu=(n,e)=>!vp(n,e),Ms={attribute:!0,type:String,converter:Qi,reflect:!1,useDefault:!1,hasChanged:cu};var fl,pl;(fl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(pl=gt.litPropertyMetadata)!=null||(gt.litPropertyMetadata=new WeakMap);let Gt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ms){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&yp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=wp(this.prototype,e))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ms}static _$Ei(){if(this.hasOwnProperty(An("elementProperties")))return;const e=xp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(An("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(An("properties"))){const t=this.properties,r=[...Cp(t),...Ep(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(ks(i))}else e!==void 0&&t.push(ks(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return du(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var o;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Qi).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,t){var o,s,a;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=r.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:Qi;this._$Em=i;const d=u.fromAttribute(t,l.type);this[i]=(a=d!=null?d:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:d,this._$Em=null}}requestUpdate(e,t,r,i=!1,o){var s,a;if(e!==void 0){const l=this.constructor;if(i===!1&&(o=this[e]),r!=null||(r=l.getPropertyOptions(e)),!(((s=r.hasChanged)!=null?s:cu)(o,t)||r.useDefault&&r.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:o},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return ze(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;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){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var ml;Gt.elementStyles=[],Gt.shadowRootOptions={mode:"open"},Gt[An("elementProperties")]=new Map,Gt[An("finalized")]=new Map,bi==null||bi({ReactiveElement:Gt}),((ml=gt.reactiveElementVersions)!=null?ml:gt.reactiveElementVersions=[]).push("2.1.2");/**
34
+ */const{is:yp,defineProperty:wp,getOwnPropertyDescriptor:Cp,getOwnPropertyNames:Ep,getOwnPropertySymbols:xp,getPrototypeOf:Ap}=Object,bt=globalThis,Ms=bt.trustedTypes,Tp=Ms?Ms.emptyScript:"",yi=bt.reactiveElementPolyfillSupport,Tn=(n,e)=>n,to={toAttribute(n,e){switch(e){case Boolean:n=n?Tp:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch(r){t=null}}return t}},hu=(n,e)=>!yp(n,e),Bs={attribute:!0,type:String,converter:to,reflect:!1,useDefault:!1,hasChanged:hu};var pl,ml;(pl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(ml=bt.litPropertyMetadata)!=null||(bt.litPropertyMetadata=new WeakMap);let Gt=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Bs){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(e,r,t);i!==void 0&&wp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=Cp(this.prototype,e))!=null?s:{get(){return this[t]},set(a){this[t]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Bs}static _$Ei(){if(this.hasOwnProperty(Tn("elementProperties")))return;const e=Ap(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Tn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tn("properties"))){const t=this.properties,r=[...Ep(t),...xp(t)];for(const i of r)this.createProperty(i,t[i])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,i]of t)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const i=this._$Eu(t,r);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(Ds(i))}else e!==void 0&&t.push(Ds(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return cu(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var o;const r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(i!==void 0&&r.reflect===!0){const s=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:to).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,t){var o,s,a;const r=this.constructor,i=r._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=r.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:to;this._$Em=i;const d=u.fromAttribute(t,l.type);this[i]=(a=d!=null?d:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:d,this._$Em=null}}requestUpdate(e,t,r,i=!1,o){var s,a;if(e!==void 0){const l=this.constructor;if(i===!1&&(o=this[e]),r!=null||(r=l.getPropertyOptions(e)),!(((s=r.hasChanged)!=null?s:hu)(o,t)||r.useDefault&&r.reflect&&o===((a=this._$Ej)==null?void 0:a.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:o},s){var a,l,u;r&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:t)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return Ue(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;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){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};var _l;Gt.elementStyles=[],Gt.shadowRootOptions={mode:"open"},Gt[Tn("elementProperties")]=new Map,Gt[Tn("finalized")]=new Map,yi==null||yi({ReactiveElement:Gt}),((_l=bt.reactiveElementVersions)!=null?_l:bt.reactiveElementVersions=[]).push("2.1.2");/**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const Tn=globalThis,Bs=n=>n,Tr=Tn.trustedTypes,Os=Tr?Tr.createPolicy("lit-html",{createHTML:n=>n}):void 0,hu="$lit$",mt=`lit$${Math.random().toFixed(9).slice(2)}$`,fu="?"+mt,Tp=`<${fu}>`,Ot=document,Mn=()=>Ot.createComment(""),Bn=n=>n===null||typeof n!="object"&&typeof n!="function",So=Array.isArray,Pp=n=>So(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",vi=`[
39
- \f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Is=/-->/g,Ns=/>/g,At=RegExp(`>|${vi}(?:([^\\s"'>=/]+)(${vi}*=${vi}*(?:[^
40
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ls=/'/g,Hs=/"/g,pu=/^(?:script|style|textarea|title)$/i,nn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Rs=new WeakMap,St=Ot.createTreeWalker(Ot,129);function mu(n,e){if(!So(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Os!==void 0?Os.createHTML(e):e}const Sp=(n,e)=>{const t=n.length-1,r=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=_n;for(let a=0;a<t;a++){const l=n[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===_n?d[1]==="!--"?s=Is:d[1]!==void 0?s=Ns:d[2]!==void 0?(pu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=At):d[3]!==void 0&&(s=At):s===At?d[0]===">"?(s=i!=null?i:_n,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?At:d[3]==='"'?Hs:Ls):s===Hs||s===Ls?s=At:s===Is||s===Ns?s=_n:(s=At,i=void 0);const f=s===At&&n[a+1].startsWith("/>")?" ":"";o+=s===_n?l+Tp:c>=0?(r.push(u),l.slice(0,c)+hu+l.slice(c)+mt+f):l+mt+(c===-2?a:f)}return[mu(n,o+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class On{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,d]=Sp(e,t);if(this.el=On.createElement(u,r),St.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=St.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(hu)){const h=d[s++],f=i.getAttribute(c).split(mt),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?Dp:b[1]==="?"?Mp:b[1]==="@"?Bp:Xr}),i.removeAttribute(c)}else c.startsWith(mt)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(pu.test(i.tagName)){const c=i.textContent.split(mt),h=c.length-1;if(h>0){i.textContent=Tr?Tr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Mn()),St.nextNode(),l.push({type:2,index:++o});i.append(c[h],Mn())}}}else if(i.nodeType===8)if(i.data===fu)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(mt,c+1))!==-1;)l.push({type:7,index:o}),c+=mt.length-1}o++}}static createElement(e,t){const r=Ot.createElement("template");return r.innerHTML=e,r}}function rn(n,e,t=n,r){var s,a,l;if(e===nn)return e;let i=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const o=Bn(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=i:t._$Cl=i),i!==void 0&&(e=rn(n,i._$AS(n,e.values),i,r)),e}class kp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:r}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:Ot).importNode(t,!0);St.currentNode=i;let o=St.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new qn(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Op(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=St.nextNode(),s++)}return St.currentNode=Ot,i}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class qn{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,i){var o;this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=rn(this,e,t),Bn(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==nn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Pp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&Bn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ot.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=On.createElement(mu(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(t);else{const s=new kp(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=Rs.get(e.strings);return t===void 0&&Rs.set(e.strings,t=new On(e)),t}k(e){So(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const o of e)i===t.length?t.push(r=new qn(this.O(Mn()),this.O(Mn()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const i=Bs(e).nextSibling;Bs(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Xr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,o){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,i){const o=this.strings;let s=!1;if(o===void 0)e=rn(this,e,t,0),s=!Bn(e)||e!==this._$AH&&e!==nn,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=rn(this,a[r+l],t,l),u===nn&&(u=this._$AH[l]),s||(s=!Bn(u)||u!==this._$AH[l]),u===Ie?e=Ie:e!==Ie&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Dp extends Xr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Mp extends Xr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Bp extends Xr{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=rn(this,e,t,0))!=null?s:Ie)===nn)return;const r=this._$AH,i=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Ie&&(r===Ie||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Op{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){rn(this,e)}}const yi=Tn.litHtmlPolyfillSupport;var _l;yi==null||yi(On,qn),((_l=Tn.litHtmlVersions)!=null?_l:Tn.litHtmlVersions=[]).push("3.3.3");const Ip=(n,e,t)=>{var o,s;const r=(o=t==null?void 0:t.renderBefore)!=null?o:e;let i=r._$litPart$;if(i===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=i=new qn(e.insertBefore(Mn(),a),a,void 0,t!=null?t:{})}return i._$AI(n),i};/**
38
+ */const Pn=globalThis,Os=n=>n,Sr=Pn.trustedTypes,Is=Sr?Sr.createPolicy("lit-html",{createHTML:n=>n}):void 0,fu="$lit$",_t=`lit$${Math.random().toFixed(9).slice(2)}$`,pu="?"+_t,Pp=`<${pu}>`,Ot=document,Bn=()=>Ot.createComment(""),On=n=>n===null||typeof n!="object"&&typeof n!="function",Do=Array.isArray,Sp=n=>Do(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",wi=`[
39
+ \f\r]`,gn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ns=/-->/g,Ls=/>/g,At=RegExp(`>|${wi}(?:([^\\s"'>=/]+)(${wi}*=${wi}*(?:[^
40
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Rs=/"/g,mu=/^(?:script|style|textarea|title)$/i,nn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Fs=new WeakMap,St=Ot.createTreeWalker(Ot,129);function _u(n,e){if(!Do(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Is!==void 0?Is.createHTML(e):e}const kp=(n,e)=>{const t=n.length-1,r=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=gn;for(let a=0;a<t;a++){const l=n[a];let u,d,c=-1,h=0;for(;h<l.length&&(s.lastIndex=h,d=s.exec(l),d!==null);)h=s.lastIndex,s===gn?d[1]==="!--"?s=Ns:d[1]!==void 0?s=Ls:d[2]!==void 0?(mu.test(d[2])&&(i=RegExp("</"+d[2],"g")),s=At):d[3]!==void 0&&(s=At):s===At?d[0]===">"?(s=i!=null?i:gn,c=-1):d[1]===void 0?c=-2:(c=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?At:d[3]==='"'?Rs:Hs):s===Rs||s===Hs?s=At:s===Ns||s===Ls?s=gn:(s=At,i=void 0);const f=s===At&&n[a+1].startsWith("/>")?" ":"";o+=s===gn?l+Pp:c>=0?(r.push(u),l.slice(0,c)+fu+l.slice(c)+_t+f):l+_t+(c===-2?a:f)}return[_u(n,o+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class In{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,d]=kp(e,t);if(this.el=In.createElement(u,r),St.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=St.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(fu)){const h=d[s++],f=i.getAttribute(c).split(_t),b=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:b[2],strings:f,ctor:b[1]==="."?Mp:b[1]==="?"?Bp:b[1]==="@"?Op:Kr}),i.removeAttribute(c)}else c.startsWith(_t)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(mu.test(i.tagName)){const c=i.textContent.split(_t),h=c.length-1;if(h>0){i.textContent=Sr?Sr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Bn()),St.nextNode(),l.push({type:2,index:++o});i.append(c[h],Bn())}}}else if(i.nodeType===8)if(i.data===pu)l.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_t,c+1))!==-1;)l.push({type:7,index:o}),c+=_t.length-1}o++}}static createElement(e,t){const r=Ot.createElement("template");return r.innerHTML=e,r}}function rn(n,e,t=n,r){var s,a,l;if(e===nn)return e;let i=r!==void 0?(s=t._$Co)==null?void 0:s[r]:t._$Cl;const o=On(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,t,r)),r!==void 0?((l=t._$Co)!=null?l:t._$Co=[])[r]=i:t._$Cl=i),i!==void 0&&(e=rn(n,i._$AS(n,e.values),i,r)),e}class Dp{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:r}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:Ot).importNode(t,!0);St.currentNode=i;let o=St.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Xn(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Ip(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=St.nextNode(),s++)}return St.currentNode=Ot,i}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Xn{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,i){var o;this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=rn(this,e,t),On(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==nn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&On(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ot.createTextNode(e)),this._$AH=e}$(e){var o;const{values:t,_$litType$:r}=e,i=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=In.createElement(_u(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(t);else{const s=new Dp(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=Fs.get(e.strings);return t===void 0&&Fs.set(e.strings,t=new In(e)),t}k(e){Do(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const o of e)i===t.length?t.push(r=new Xn(this.O(Bn()),this.O(Bn()),this,this.options)):r=t[i],r._$AI(o),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const i=Os(e).nextSibling;Os(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Kr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,o){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Ie}_$AI(e,t=this,r,i){const o=this.strings;let s=!1;if(o===void 0)e=rn(this,e,t,0),s=!On(e)||e!==this._$AH&&e!==nn,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=rn(this,a[r+l],t,l),u===nn&&(u=this._$AH[l]),s||(s=!On(u)||u!==this._$AH[l]),u===Ie?e=Ie:e!==Ie&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Mp extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Bp extends Kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Op extends Kr{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=rn(this,e,t,0))!=null?s:Ie)===nn)return;const r=this._$AH,i=e===Ie&&r!==Ie||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==Ie&&(r===Ie||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Ip{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){rn(this,e)}}const Ci=Pn.litHtmlPolyfillSupport;var gl;Ci==null||Ci(In,Xn),((gl=Pn.litHtmlVersions)!=null?gl:Pn.litHtmlVersions=[]).push("3.3.3");const Np=(n,e,t)=>{var o,s;const r=(o=t==null?void 0:t.renderBefore)!=null?o:e;let i=r._$litPart$;if(i===void 0){const a=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=i=new Xn(e.insertBefore(Bn(),a),a,void 0,t!=null?t:{})}return i._$AI(n),i};/**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
- */const Mt=globalThis;class qt extends Gt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ip(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return nn}}var gl;qt._$litElement$=!0,qt.finalized=!0,(gl=Mt.litElementHydrateSupport)==null||gl.call(Mt,{LitElement:qt});const wi=Mt.litElementPolyfillSupport;wi==null||wi({LitElement:qt});var bl;((bl=Mt.litElementVersions)!=null?bl:Mt.litElementVersions=[]).push("4.2.2");/**
44
+ */const Mt=globalThis;class qt extends Gt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Np(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return nn}}var bl;qt._$litElement$=!0,qt.finalized=!0,(bl=Mt.litElementHydrateSupport)==null||bl.call(Mt,{LitElement:qt});const Ei=Mt.litElementPolyfillSupport;Ei==null||Ei({LitElement:qt});var vl;((vl=Mt.litElementVersions)!=null?vl:Mt.litElementVersions=[]).push("4.2.2");/**
45
45
  * @license
46
46
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
47
47
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
- */const Np=n=>class extends n{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,i){super.attributeChangedCallback(t,r,i),t==="theme"&&this._set_theme(i)}};/**
48
+ */const Lp=n=>class extends n{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,r,i){super.attributeChangedCallback(t,r,i),t==="theme"&&this._set_theme(i)}};/**
49
49
  * @license
50
50
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
51
51
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
- */const _u=[],eo=new Set,ko=new Set;function gu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Lp(n){return gu(customElements.get(n))}function Hp(n=[]){return[n].flat(1/0).filter(e=>e instanceof Po?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function bu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function vu(n){return n.map(e=>e.cssText).join(`
53
- `)}const Pr="vaadin-themable-mixin-style";function Rp(n,e){const t=document.createElement("style");t.id=Pr,t.textContent=vu(n),e.content.appendChild(t)}function Fp(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof qt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),du(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(Pr),r=e.prototype._template;t.textContent=r.content.getElementById(Pr).textContent}}function Up(n){eo.forEach(e=>{const t=e.deref();t instanceof n?Fp(t):t||eo.delete(e)})}function yu(n){if(n.prototype instanceof qt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(Pr).textContent=vu(n.getStylesForThis())}ko.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&yu(t)})}function zp(n,e){const t=n.__themes;return!t||!e?!1:t.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function De(n,e,t={}){e=Hp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):_u.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&ko.forEach(r=>{if(bu(n,r)&&Lp(r)){const i=customElements.get(r);zp(i,e)?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".`),yu(i),Up(i)}})}function to(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():_u}function $p(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function wu(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=to().find(i=>i.moduleId===t);r?e.push(...wu(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function Vp(n){const e=`${n}-default-theme`,t=to().filter(r=>r.moduleId!==e&&bu(r.themeFor,n)).map(r=>er(ft({},r),{styles:[...wu(r),...r.styles],includePriority:$p(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:to().filter(r=>r.moduleId===e)}const Nt=n=>class extends Np(n){constructor(){super(),eo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&ko.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||gu(this)||Rp(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=n.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...i,...Vp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
52
+ */const gu=[],no=new Set,Mo=new Set;function bu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Hp(n){return bu(customElements.get(n))}function Rp(n=[]){return[n].flat(1/0).filter(e=>e instanceof ko?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function vu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function yu(n){return n.map(e=>e.cssText).join(`
53
+ `)}const kr="vaadin-themable-mixin-style";function Fp(n,e){const t=document.createElement("style");t.id=kr,t.textContent=yu(n),e.content.appendChild(t)}function Up(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof qt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),cu(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(kr),r=e.prototype._template;t.textContent=r.content.getElementById(kr).textContent}}function zp(n){no.forEach(e=>{const t=e.deref();t instanceof n?Up(t):t||no.delete(e)})}function wu(n){if(n.prototype instanceof qt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(kr).textContent=yu(n.getStylesForThis())}Mo.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&wu(t)})}function $p(n,e){const t=n.__themes;return!t||!e?!1:t.some(r=>r.styles.some(i=>e.some(o=>o.cssText===i.cssText)))}function De(n,e,t={}){e=Rp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):gu.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&Mo.forEach(r=>{if(vu(n,r)&&Hp(r)){const i=customElements.get(r);$p(i,e)?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".`),wu(i),zp(i)}})}function ro(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():gu}function Vp(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function Cu(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=ro().find(i=>i.moduleId===t);r?e.push(...Cu(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function Wp(n){const e=`${n}-default-theme`,t=ro().filter(r=>r.moduleId!==e&&vu(r.themeFor,n)).map(r=>nr(pt({},r),{styles:[...Cu(r),...r.styles],includePriority:Vp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:ro().filter(r=>r.moduleId===e)}const Nt=n=>class extends Lp(n){constructor(){super(),no.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Mo.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||bu(this)||Fp(this.getStylesForThis(),t)}static finalizeStyles(t){const r=this.getStylesForThis();return t?[...[t].flat(1/0),...r]:r}static getStylesForThis(){const t=n.__themes||[],r=Object.getPrototypeOf(this.prototype),i=(r?r.constructor.__themes:[])||[];this.__themes=[...t,...i,...Wp(this.is)];const o=this.__themes.flatMap(s=>s.styles);return o.filter((s,a)=>a===o.lastIndexOf(s))}};/**
54
54
  * @license
55
55
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
56
56
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
57
- */const Wp=(n,...e)=>{const t=document.createElement("style");t.id=n,t.textContent=e.map(r=>r.toString()).join(`
58
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dn=(n,...e)=>{Wp(`lumo-${n}`,e)};/**
57
+ */const jp=(n,...e)=>{const t=document.createElement("style");t.id=n,t.textContent=e.map(r=>r.toString()).join(`
58
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},dn=(n,...e)=>{jp(`lumo-${n}`,e)};/**
59
59
  * @license
60
60
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
61
61
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
62
- */const jp=me`
62
+ */const Gp=me`
63
63
  :host {
64
64
  --lumo-size-xs: 1.625rem;
65
65
  --lumo-size-s: 1.875rem;
@@ -74,11 +74,11 @@ PERFORMANCE OF THIS SOFTWARE.
74
74
  /* For backwards compatibility */
75
75
  --lumo-icon-size: var(--lumo-icon-size-m);
76
76
  }
77
- `;dn("sizing-props",jp);/**
77
+ `;dn("sizing-props",Gp);/**
78
78
  * @license
79
79
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
80
80
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
81
- */const Gp=me`
81
+ */const Yp=me`
82
82
  :host {
83
83
  /* Square */
84
84
  --lumo-space-xs: 0.25rem;
@@ -101,11 +101,11 @@ PERFORMANCE OF THIS SOFTWARE.
101
101
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
102
102
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
103
103
  }
104
- `;dn("spacing-props",Gp);/**
104
+ `;dn("spacing-props",Yp);/**
105
105
  * @license
106
106
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
107
107
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
108
- */const Yp=me`
108
+ */const qp=me`
109
109
  :host {
110
110
  /* Border radius */
111
111
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -205,11 +205,11 @@ PERFORMANCE OF THIS SOFTWARE.
205
205
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
206
206
  --vaadin-input-field-value-font-weight: 500;
207
207
  }
208
- `;dn("style-props",Yp);/**
208
+ `;dn("style-props",qp);/**
209
209
  * @license
210
210
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
211
211
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
212
- */const qp=me`
212
+ */const Xp=me`
213
213
  :host {
214
214
  /* Base (background) */
215
215
  --lumo-base-color: #fff;
@@ -294,7 +294,7 @@ PERFORMANCE OF THIS SOFTWARE.
294
294
  --lumo-disabled-text-color: GrayText;
295
295
  }
296
296
  }
297
- `;dn("color-props",qp);const Xp=me`
297
+ `;dn("color-props",Xp);const Zp=me`
298
298
  [theme~='dark'] {
299
299
  /* Base (background) */
300
300
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -412,11 +412,11 @@ PERFORMANCE OF THIS SOFTWARE.
412
412
  pre code {
413
413
  background: transparent;
414
414
  }
415
- `;De("",Xp,{moduleId:"lumo-color"});/**
415
+ `;De("",Zp,{moduleId:"lumo-color"});/**
416
416
  * @license
417
417
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
418
418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
419
- */const Zp=me`
419
+ */const Kp=me`
420
420
  :host {
421
421
  /* prettier-ignore */
422
422
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -436,7 +436,7 @@ PERFORMANCE OF THIS SOFTWARE.
436
436
  --lumo-line-height-s: 1.375;
437
437
  --lumo-line-height-m: 1.625;
438
438
  }
439
- `,Kp=me`
439
+ `,Jp=me`
440
440
  body,
441
441
  :host {
442
442
  font-family: var(--lumo-font-family);
@@ -528,11 +528,11 @@ PERFORMANCE OF THIS SOFTWARE.
528
528
  border-left: none;
529
529
  border-right: 2px solid var(--lumo-contrast-30pct);
530
530
  }
531
- `;De("",Kp,{moduleId:"lumo-typography"});dn("typography-props",Zp);/**
531
+ `;De("",Jp,{moduleId:"lumo-typography"});dn("typography-props",Kp);/**
532
532
  * @license
533
533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
534
534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
535
- */const Cu=me`
535
+ */const Eu=me`
536
536
  :host {
537
537
  top: var(--lumo-space-m);
538
538
  right: var(--lumo-space-m);
@@ -597,11 +597,11 @@ PERFORMANCE OF THIS SOFTWARE.
597
597
  opacity: 1;
598
598
  }
599
599
  }
600
- `;De("",Cu,{moduleId:"lumo-overlay"});/**
600
+ `;De("",Eu,{moduleId:"lumo-overlay"});/**
601
601
  * @license
602
602
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
603
603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
604
- */const Eu=me`
604
+ */const xu=me`
605
605
  :host([opening]),
606
606
  :host([closing]) {
607
607
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -631,7 +631,7 @@ PERFORMANCE OF THIS SOFTWARE.
631
631
  opacity: 0;
632
632
  }
633
633
  }
634
- `;De("",Eu,{moduleId:"lumo-menu-overlay-core"});const Jp=me`
634
+ `;De("",xu,{moduleId:"lumo-menu-overlay-core"});const Qp=me`
635
635
  /* Small viewport (bottom sheet) styles */
636
636
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
637
637
  @media (max-width: 450px), (max-height: 450px) {
@@ -693,7 +693,7 @@ PERFORMANCE OF THIS SOFTWARE.
693
693
  transform: translateY(150%);
694
694
  }
695
695
  }
696
- `,xu=[Cu,Eu,Jp];De("",xu,{moduleId:"lumo-menu-overlay"});const Qp=me`
696
+ `,Au=[Eu,xu,Qp];De("",Au,{moduleId:"lumo-menu-overlay"});const em=me`
697
697
  [part='overlay'] {
698
698
  /*
699
699
  Width:
@@ -738,7 +738,7 @@ PERFORMANCE OF THIS SOFTWARE.
738
738
  max-height: 70vh;
739
739
  }
740
740
  }
741
- `;De("vaadin-date-picker-overlay",[xu,Qp],{moduleId:"lumo-date-picker-overlay"});const em=me`
741
+ `;De("vaadin-date-picker-overlay",[Au,em],{moduleId:"lumo-date-picker-overlay"});const tm=me`
742
742
  :host {
743
743
  /* Sizing */
744
744
  --lumo-button-size: var(--lumo-size-m);
@@ -1014,7 +1014,7 @@ PERFORMANCE OF THIS SOFTWARE.
1014
1014
  margin-left: 0;
1015
1015
  margin-right: 0;
1016
1016
  }
1017
- `;De("vaadin-button",em,{moduleId:"lumo-button"});De("vaadin-date-picker-year",me`
1017
+ `;De("vaadin-button",tm,{moduleId:"lumo-button"});De("vaadin-date-picker-year",me`
1018
1018
  :host([current]) [part='year-number'] {
1019
1019
  color: var(--lumo-primary-text-color);
1020
1020
  }
@@ -1517,7 +1517,7 @@ PERFORMANCE OF THIS SOFTWARE.
1517
1517
  * @license
1518
1518
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1519
1519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1520
- */const tm=me`
1520
+ */const nm=me`
1521
1521
  @font-face {
1522
1522
  font-family: 'lumo-icons';
1523
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==)
@@ -1570,11 +1570,11 @@ PERFORMANCE OF THIS SOFTWARE.
1570
1570
  --lumo-icons-upload: '\\ea29';
1571
1571
  --lumo-icons-user: '\\ea2a';
1572
1572
  }
1573
- `;dn("font-icons",tm);/**
1573
+ `;dn("font-icons",nm);/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
- */const Au=me`
1577
+ */const Tu=me`
1578
1578
  [part$='button'] {
1579
1579
  flex: none;
1580
1580
  width: 1em;
@@ -1601,11 +1601,11 @@ PERFORMANCE OF THIS SOFTWARE.
1601
1601
  font-family: 'lumo-icons';
1602
1602
  display: block;
1603
1603
  }
1604
- `;De("",Au,{moduleId:"lumo-field-button"});/**
1604
+ `;De("",Tu,{moduleId:"lumo-field-button"});/**
1605
1605
  * @license
1606
1606
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1607
1607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1608
- */const nm=me`
1608
+ */const rm=me`
1609
1609
  :host {
1610
1610
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1611
1611
  }
@@ -1665,7 +1665,7 @@ PERFORMANCE OF THIS SOFTWARE.
1665
1665
  * @license
1666
1666
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1667
1667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1668
- */const Tu=me`
1668
+ */const Pu=me`
1669
1669
  [part='label'] {
1670
1670
  align-self: flex-start;
1671
1671
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1777,11 +1777,11 @@ PERFORMANCE OF THIS SOFTWARE.
1777
1777
  margin-left: 0;
1778
1778
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1779
1779
  }
1780
- `;De("",Tu,{moduleId:"lumo-required-field"});/**
1780
+ `;De("",Pu,{moduleId:"lumo-required-field"});/**
1781
1781
  * @license
1782
1782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1783
1783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1784
- */const rm=me`
1784
+ */const im=me`
1785
1785
  :host {
1786
1786
  --lumo-text-field-size: var(--lumo-size-m);
1787
1787
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1912,7 +1912,7 @@ PERFORMANCE OF THIS SOFTWARE.
1912
1912
  [part='clear-button']::before {
1913
1913
  content: var(--lumo-icons-cross);
1914
1914
  }
1915
- `,Pu=[Tu,Au,nm,rm];De("",Pu,{moduleId:"lumo-input-field-shared-styles"});const im=me`
1915
+ `,Su=[Pu,Tu,rm,im];De("",Su,{moduleId:"lumo-input-field-shared-styles"});const om=me`
1916
1916
  [part='toggle-button']::before {
1917
1917
  content: var(--lumo-icons-calendar);
1918
1918
  }
@@ -1934,7 +1934,7 @@ PERFORMANCE OF THIS SOFTWARE.
1934
1934
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1935
1935
  --_lumo-text-field-overflow-mask-image: none;
1936
1936
  }
1937
- `;De("vaadin-date-picker",[Pu,im],{moduleId:"lumo-date-picker"});/**
1937
+ `;De("vaadin-date-picker",[Su,om],{moduleId:"lumo-date-picker"});/**
1938
1938
  @license
1939
1939
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1940
1940
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1950,7 +1950,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1950
1950
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1951
1951
  Code distributed by Google as part of the polymer project is also
1952
1952
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1953
- */let om=/(url\()([^)]*)(\))/g,sm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ir,je;function Pn(n,e){if(n&&sm.test(n)||n==="//")return n;if(ir===void 0){ir=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ir=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),ir)try{return new URL(n,e).href}catch(t){return n}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=n,je.anchor.href||n}function Do(n,e){return n.replace(om,function(t,r,i,o){return r+"'"+Pn(i.replace(/["']/g,""),e)+"'"+o})}function Mo(n){return n.substring(0,n.lastIndexOf("/")+1)}/**
1953
+ */let sm=/(url\()([^)]*)(\))/g,am=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,sr,je;function Sn(n,e){if(n&&am.test(n)||n==="//")return n;if(sr===void 0){sr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",sr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),sr)try{return new URL(n,e).href}catch(t){return n}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=n,je.anchor.href||n}function Bo(n,e){return n.replace(sm,function(t,r,i,o){return r+"'"+Sn(i.replace(/["']/g,""),e)+"'"+o})}function Oo(n){return n.substring(0,n.lastIndexOf("/")+1)}/**
1954
1954
  @license
1955
1955
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1956
1956
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1958,7 +1958,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1958
1958
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1959
1959
  Code distributed by Google as part of the polymer project is also
1960
1960
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1961
- */const Su=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const am=Su&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const n=new CSSStyleSheet;n.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[n],e.shadowRoot.adoptedStyleSheets[0]===n}catch(n){return!1}})();let lm=window.Polymer&&window.Polymer.rootPath||Mo(document.baseURI||window.location.href),Sr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let kr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,um=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ku=window.Polymer&&window.Polymer.legacyOptimizations||!1,Du=window.Polymer&&window.Polymer.legacyWarnings||!1,dm=window.Polymer&&window.Polymer.syncInitialRender||!1,no=window.Polymer&&window.Polymer.legacyUndefined||!1,cm=window.Polymer&&window.Polymer.orderedComputed||!1,Fs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,hm=window.Polymer&&window.Polymer.fastDomIf||!1,Us=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let fm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1961
+ */const ku=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const lm=ku&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const n=new CSSStyleSheet;n.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[n],e.shadowRoot.adoptedStyleSheets[0]===n}catch(n){return!1}})();let um=window.Polymer&&window.Polymer.rootPath||Oo(document.baseURI||window.location.href),Dr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Mr=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,dm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Du=window.Polymer&&window.Polymer.legacyOptimizations||!1,Mu=window.Polymer&&window.Polymer.legacyWarnings||!1,cm=window.Polymer&&window.Polymer.syncInitialRender||!1,io=window.Polymer&&window.Polymer.legacyUndefined||!1,hm=window.Polymer&&window.Polymer.orderedComputed||!1,Us=window.Polymer&&window.Polymer.removeNestedTemplates||!1,fm=window.Polymer&&window.Polymer.fastDomIf||!1,zs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let pm=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1962
1962
  @license
1963
1963
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1964
1964
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1966,7 +1966,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1966
1966
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1967
1967
  Code distributed by Google as part of the polymer project is also
1968
1968
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1969
- */let pm=0;const Be=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=pm++;function r(i){let o=i.__mixinSet;if(o&&o[t])return i;let s=e,a=s.get(i);if(!a){a=n(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1969
+ */let mm=0;const Be=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=mm++;function r(i){let o=i.__mixinSet;if(o&&o[t])return i;let s=e,a=s.get(i);if(!a){a=n(i),s.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[t]=!0,a.__mixinSet=l}return a}return r};/**
1970
1970
  @license
1971
1971
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1972
1972
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1974,7 +1974,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1974
1974
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1975
1975
  Code distributed by Google as part of the polymer project is also
1976
1976
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1977
- */let Bo={},Mu={};function zs(n,e){Bo[n]=Mu[n.toLowerCase()]=e}function $s(n){return Bo[n]||Mu[n.toLowerCase()]}function mm(n){n.querySelector("style")&&console.warn("dom-module %s has style outside template",n.id)}class In extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=$s(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Pn(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Mo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(kr&&$s(e)!==void 0)throw zs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,zs(e,this),mm(this)}}}In.prototype.modules=Bo;customElements.define("dom-module",In);/**
1977
+ */let Io={},Bu={};function $s(n,e){Io[n]=Bu[n.toLowerCase()]=e}function Vs(n){return Io[n]||Bu[n.toLowerCase()]}function _m(n){n.querySelector("style")&&console.warn("dom-module %s has style outside template",n.id)}class Nn extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Vs(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,i){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Sn(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Oo(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Mr&&Vs(e)!==void 0)throw $s(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,$s(e,this),_m(this)}}}Nn.prototype.modules=Io;customElements.define("dom-module",Nn);/**
1978
1978
  @license
1979
1979
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1980
1980
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1982,7 +1982,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1982
1982
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1983
1983
  Code distributed by Google as part of the polymer project is also
1984
1984
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1985
- */const _m="link[rel=import][type~=css]",gm="include",Vs="shady-unscoped";function Bu(n){return In.import(n)}function Ws(n){let e=n.body?n.body:n;const t=Do(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function bm(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...vm(e[r]));return t}function vm(n){const e=Bu(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Iu(e));const r=e.querySelector("template");r&&t.push(...Ou(r,e.assetpath)),e._styles=t}return e._styles}function Ou(n,e){if(!n._styles){const t=[],r=n.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(gm);s&&t.push(...bm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Do(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function ym(n){let e=Bu(n);return e?Iu(e):[]}function Iu(n){const e=[],t=n.querySelectorAll(_m);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(Vs);if(s&&!o._unscopedStyle){const a=Ws(o);a.setAttribute(Vs,""),o._unscopedStyle=a}else o._style||(o._style=Ws(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
1985
+ */const gm="link[rel=import][type~=css]",bm="include",Ws="shady-unscoped";function Ou(n){return Nn.import(n)}function js(n){let e=n.body?n.body:n;const t=Bo(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function vm(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...ym(e[r]));return t}function ym(n){const e=Ou(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Nu(e));const r=e.querySelector("template");r&&t.push(...Iu(r,e.assetpath)),e._styles=t}return e._styles}function Iu(n,e){if(!n._styles){const t=[],r=n.content.querySelectorAll("style");for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute(bm);s&&t.push(...vm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Bo(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function wm(n){let e=Ou(n);return e?Nu(e):[]}function Nu(n){const e=[],t=n.querySelectorAll(gm);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(Ws);if(s&&!o._unscopedStyle){const a=js(o);a.setAttribute(Ws,""),o._unscopedStyle=a}else o._style||(o._style=js(o));e.push(s?o._unscopedStyle:o._style)}}return e}/**
1986
1986
  @license
1987
1987
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1988
1988
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1990,7 +1990,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1990
1990
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1991
1991
  Code distributed by Google as part of the polymer project is also
1992
1992
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1993
- */const Le=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?n=>ShadyDOM.patch(n):n=>n;/**
1993
+ */const Ne=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?n=>ShadyDOM.patch(n):n=>n;/**
1994
1994
  @license
1995
1995
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1996
1996
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1998,7 +1998,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1998
1998
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1999
1999
  Code distributed by Google as part of the polymer project is also
2000
2000
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2001
- */function ro(n){return n.indexOf(".")>=0}function Lt(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Nu(n,e){return n.indexOf(e+".")===0}function Nn(n,e){return e.indexOf(n+".")===0}function Ln(n,e,t){return e+t.slice(n.length)}function wm(n,e){return n===e||Nu(n,e)||Nn(n,e)}function wn(n){if(Array.isArray(n)){let e=[];for(let t=0;t<n.length;t++){let r=n[t].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return n}function Lu(n){return Array.isArray(n)?wn(n).split("."):n.toString().split(".")}function We(n,e,t){let r=n,i=Lu(e);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return t&&(t.path=i.join(".")),r}function js(n,e,t){let r=n,i=Lu(e),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=t}else r[e]=t;return i.join(".")}/**
2001
+ */function oo(n){return n.indexOf(".")>=0}function Lt(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Lu(n,e){return n.indexOf(e+".")===0}function Ln(n,e){return e.indexOf(n+".")===0}function Hn(n,e,t){return e+t.slice(n.length)}function Cm(n,e){return n===e||Lu(n,e)||Ln(n,e)}function Cn(n){if(Array.isArray(n)){let e=[];for(let t=0;t<n.length;t++){let r=n[t].toString().split(".");for(let i=0;i<r.length;i++)e.push(r[i])}return e.join(".")}else return n}function Hu(n){return Array.isArray(n)?Cn(n).split("."):n.toString().split(".")}function Ve(n,e,t){let r=n,i=Hu(e);for(let o=0;o<i.length;o++){if(!r)return;let s=i[o];r=r[s]}return t&&(t.path=i.join(".")),r}function Gs(n,e,t){let r=n,i=Hu(e),o=i[i.length-1];if(i.length>1){for(let s=0;s<i.length-1;s++){let a=i[s];if(r=r[a],!r)return}r[o]=t}else r[e]=t;return i.join(".")}/**
2002
2002
  @license
2003
2003
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2004
2004
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2006,7 +2006,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2006
2006
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2007
2007
  Code distributed by Google as part of the polymer project is also
2008
2008
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2009
- */const Dr={},Cm=/-[a-z]/g,Em=/([A-Z])/g;function Hu(n){return Dr[n]||(Dr[n]=n.indexOf("-")<0?n:n.replace(Cm,e=>e[1].toUpperCase()))}function Zr(n){return Dr[n]||(Dr[n]=n.replace(Em,"-$1").toLowerCase())}/**
2009
+ */const Br={},Em=/-[a-z]/g,xm=/([A-Z])/g;function Ru(n){return Br[n]||(Br[n]=n.indexOf("-")<0?n:n.replace(Em,e=>e[1].toUpperCase()))}function Jr(n){return Br[n]||(Br[n]=n.replace(xm,"-$1").toLowerCase())}/**
2010
2010
  @license
2011
2011
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2012
2012
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2014,7 +2014,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2014
2014
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2015
2015
  Code distributed by Google as part of the polymer project is also
2016
2016
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2017
- */let xm=0,Ru=0,Xt=[],Am=0,io=!1,Fu=document.createTextNode("");new window.MutationObserver(Tm).observe(Fu,{characterData:!0});function Tm(){io=!1;const n=Xt.length;for(let e=0;e<n;e++){let t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,n),Ru+=n}const Pm={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},Uu={run(n){return io||(io=!0,Fu.textContent=Am++),Xt.push(n),xm++},cancel(n){const e=n-Ru;if(e>=0){if(!Xt[e])throw new Error("invalid async handle: "+n);Xt[e]=null}}};/**
2017
+ */let Am=0,Fu=0,Xt=[],Tm=0,so=!1,Uu=document.createTextNode("");new window.MutationObserver(Pm).observe(Uu,{characterData:!0});function Pm(){so=!1;const n=Xt.length;for(let e=0;e<n;e++){let t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,n),Fu+=n}const Sm={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},zu={run(n){return so||(so=!0,Uu.textContent=Tm++),Xt.push(n),Am++},cancel(n){const e=n-Fu;if(e>=0){if(!Xt[e])throw new Error("invalid async handle: "+n);Xt[e]=null}}};/**
2018
2018
  @license
2019
2019
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2020
2020
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2022,7 +2022,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2022
2022
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2023
2023
  Code distributed by Google as part of the polymer project is also
2024
2024
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2025
- */const Sm=Uu,zu=Be(n=>{class e extends n{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){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,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?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,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Sm.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,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Le(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,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
2025
+ */const km=zu,$u=Be(n=>{class e extends n{static createProperties(r){const i=this.prototype;for(let o in r)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,i){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,i))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[r];return i||(i=this.constructor.attributeNameForProperty(r),this.__dataAttributes[i]=r),i}_definePropertyAccessor(r,i){Object.defineProperty(this,r,{get(){return this.__data[r]},set:i?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,i){this._setPendingProperty(r,i)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,i,o){let s=this.__data[r],a=this._shouldPropertyChange(r,i,s);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=i,this.__dataPending[r]=i),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,km.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,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,i,o)),this.__dataCounter--}_shouldPropertiesChange(r,i,o){return!!i}_propertiesChanged(r,i,o){}_shouldPropertyChange(r,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(r,i,o,s){i!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,i,o,s)}_attributeToProperty(r,i,o){if(!this.__serializing){const s=this.__dataAttributes,a=s&&s[r]||r;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,i,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,i,o){const s=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(r=Ne(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,i){switch(i){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
2026
2026
  @license
2027
2027
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2028
2028
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2030,7 +2030,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2030
2030
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2031
2031
  Code distributed by Google as part of the polymer project is also
2032
2032
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2033
- */const $u={};let or=HTMLElement.prototype;for(;or;){let n=Object.getOwnPropertyNames(or);for(let e=0;e<n.length;e++)$u[n[e]]=!0;or=Object.getPrototypeOf(or)}const km=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Dm(n,e){if(!$u[e]){let t=n[e];t!==void 0&&(n.__data?n._setPendingProperty(e,t):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[e]=t))}}const Mm=Be(n=>{const e=zu(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Hu(i[o]))}static attributeNameForProperty(i){return Zr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(km(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){Dm(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return t});/**
2033
+ */const Vu={};let ar=HTMLElement.prototype;for(;ar;){let n=Object.getOwnPropertyNames(ar);for(let e=0;e<n.length;e++)Vu[n[e]]=!0;ar=Object.getPrototypeOf(ar)}const Dm=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Mm(n,e){if(!Vu[e]){let t=n[e];t!==void 0&&(n.__data?n._setPendingProperty(e,t):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[e]=t))}}const Bm=Be(n=>{const e=$u(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Ru(i[o]))}static attributeNameForProperty(i){return Jr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const s=this;s.hasAttribute(i)||this._valueToNodeAttribute(s,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(Dm(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let s;switch(o){case Object:try{s=JSON.parse(i)}catch(a){s=i}break;case Array:try{s=JSON.parse(i)}catch(a){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:s=isNaN(i)?String(i):Number(i),s=new Date(s);break;default:s=super._deserializeValue(i,o);break}return s}_definePropertyAccessor(i,o){Mm(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return t});/**
2034
2034
  @license
2035
2035
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2036
2036
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2038,7 +2038,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2038
2038
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2039
2039
  Code distributed by Google as part of the polymer project is also
2040
2040
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2041
- */const Bm={"dom-if":!0,"dom-repeat":!0};let Gs=!1,Ys=!1;function Om(){if(!Gs){Gs=!0;const n=document.createElement("textarea");n.placeholder="a",Ys=n.placeholder===n.textContent}return Ys}function Im(n){Om()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Nm=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const i=t.getAttribute(r);if(n&&r.startsWith("on-")){e.setAttribute(r,n.createScript(i,r));return}e.setAttribute(r,i)}})();function Lm(n){let e=n.getAttribute("is");if(e&&Bm[e]){let t=n;for(t.removeAttribute("is"),n=t.ownerDocument.createElement(e),t.parentNode.replaceChild(n,t),n.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Nm(n,t,r),t.removeAttribute(r)}}return n}function Vu(n,e){let t=e.parentInfo&&Vu(n,e.parentInfo);if(t){for(let r=t.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return n}function Hm(n,e,t,r){r.id&&(e[r.id]=t)}function Rm(n,e,t){if(t.events&&t.events.length)for(let r=0,i=t.events,o;r<i.length&&(o=i[r]);r++)n._addMethodEventListenerToNode(e,o.name,o.value,n)}function Fm(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Um(n,e,t){return n=n._methodHost||n,function(i){n[t]?n[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const zm=Be(n=>{class e extends n{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),Im(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Lm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,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 i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=Vu(a,c);Hm(this,a.$,h,c),Fm(this,h,c,i),Rm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Um(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return e});/**
2041
+ */const Om={"dom-if":!0,"dom-repeat":!0};let Ys=!1,qs=!1;function Im(){if(!Ys){Ys=!0;const n=document.createElement("textarea");n.placeholder="a",qs=n.placeholder===n.textContent}return qs}function Nm(n){Im()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Lm=(()=>{const n=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const i=t.getAttribute(r);if(n&&r.startsWith("on-")){e.setAttribute(r,n.createScript(i,r));return}e.setAttribute(r,i)}})();function Hm(n){let e=n.getAttribute("is");if(e&&Om[e]){let t=n;for(t.removeAttribute("is"),n=t.ownerDocument.createElement(e),t.parentNode.replaceChild(n,t),n.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Lm(n,t,r),t.removeAttribute(r)}}return n}function Wu(n,e){let t=e.parentInfo&&Wu(n,e.parentInfo);if(t){for(let r=t.firstChild,i=0;r;r=r.nextSibling)if(e.parentIndex===i++)return r}else return n}function Rm(n,e,t,r){r.id&&(e[r.id]=t)}function Fm(n,e,t){if(t.events&&t.events.length)for(let r=0,i=t.events,o;r<i.length&&(o=i[r]);r++)n._addMethodEventListenerToNode(e,o.name,o.value,n)}function Um(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function zm(n,e,t){return n=n._methodHost||n,function(i){n[t]?n[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const $m=Be(n=>{class e extends n{static _parseTemplate(r,i){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,i,o){return this._parseTemplateNode(r.content,i,o)}static _parseTemplateNode(r,i,o){let s=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(a,i,o)||s:a.localName==="slot"&&(i.hasInsertionPoint=!0),Nm(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(s=this._parseTemplateNodeAttributes(a,i,o)||s),s||o.noted}static _parseTemplateChildNodes(r,i,o){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,a=0,l;s;s=l){if(s.localName=="template"&&(s=Hm(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)s.textContent+=d.textContent,l=d.nextSibling,r.removeChild(d),d=l;if(i.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(s,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),s.parentNode&&a++}}static _parseTemplateNestedTemplate(r,i,o){let s=r,a=this._parseTemplate(s,i);return(a.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,i,o){let s=!1,a=Array.from(r.attributes);for(let l=a.length-1,u;u=a[l];l--)s=this._parseTemplateNodeAttribute(r,i,o,u.name,u.value)||s;return s}static _parseTemplateNodeAttribute(r,i,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 i=r._templateInfo;return i&&i.content||r.content}_stampTemplate(r,i){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),i=i||this.constructor._parseTemplate(r);let o=i.nodeInfoList,s=i.content||r.content,a=document.importNode(s,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,d=o.length,c;u<d&&(c=o[u]);u++){let h=l[u]=Wu(a,c);Rm(this,a.$,h,c),Um(this,h,c,i),Fm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=zm(s,i,o);return this._addEventListenerToNode(r,i,a),a}_addEventListenerToNode(r,i,o){r.addEventListener(i,o)}_removeEventListenerFromNode(r,i,o){r.removeEventListener(i,o)}}return e});/**
2042
2042
  * @fileoverview
2043
2043
  * @suppress {checkPrototypalTypes}
2044
2044
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2049
2049
  * Google as part of the polymer project is also subject to an additional IP
2050
2050
  * rights grant found at http://polymer.github.io/PATENTS.txt
2051
- */let Hn=0;const Rn=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Wu="__computeInfo",$m=/[A-Z]/;function Ci(n,e,t){let r=n[e];if(!r)r=n[e]={};else if(!n.hasOwnProperty(e)&&(r=n[e]=Object.create(n[e]),t))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function Cn(n,e,t,r,i,o){if(e){let s=!1;const a=Hn++;for(let l in t){let u=i?Lt(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||Oo(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(n,l,t,r,f.info,i,o),s=!0)}return s}return!1}function Vm(n,e,t,r,i,o,s,a){let l=!1,u=s?Lt(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==t)&&(!s||Oo(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function Oo(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Nu(t,n))||!!(e.wildcard&&Nn(t,n))}else return!0}function qs(n,e,t,r,i){let o=typeof i.method=="string"?n[i.method]:i.method,s=i.property;o?o.call(n,n.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Wm(n,e,t,r,i){let o=n[ge.NOTIFY],s,a=Hn++;for(let u in e)e[u]&&(o&&Vm(n,o,a,u,t,r,i)||i&&jm(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function jm(n,e,t){let r=Lt(e);if(r!==e){let i=Zr(r)+"-changed";return ju(n,i,t[e],e),!0}return!1}function ju(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Le(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function Gm(n,e,t,r,i,o){let a=(o?Lt(e):e)!=e?e:null,l=a?We(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),ju(n,i.eventName,l,a)}function Ym(n,e,t,r,i){let o,s=n.detail,a=s&&s.path;a?(r=Ln(t,r,a),o=s&&s.value):o=n.currentTarget[t],o=i?!o:o,(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function qm(n,e,t,r,i){let o=n.__data[e];Sr&&(o=Sr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Xm(n,e,t,r){let i=n[ge.COMPUTE];if(i)if(cm){Hn++;const o=Km(n),s=[];for(let l in e)Xs(l,i,s,o,r);let a;for(;a=s.shift();)Gu(n,"",e,t,a)&&Xs(a.methodInfo,i,s,o,r);Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),n.__dataPending=null}else{let o=e;for(;Cn(n,i,o,t,r);)Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),o=n.__dataPending,n.__dataPending=null}}const Zm=(n,e,t)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=t.get(e[s].methodInfo)-t.get(n.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,n)},Xs=(n,e,t,r,i)=>{const o=i?Lt(n):n,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Hn&&(!i||Oo(n,l.trigger))&&(l.info.lastRun=Hn,Zm(l.info,t,r))}};function Km(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[ge.COMPUTE];let{counts:r,ready:i,total:o}=Jm(n),s;for(;s=i.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${n.localName} incomplete; circular?`),n.constructor.__orderedComputedDeps=e}return e}function Jm(n){const e=n[Wu],t={},r=n[ge.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:t,ready:i,total:o}}function Gu(n,e,t,r,i){let o=oo(n,e,t,r,i);if(o===Rn)return!1;let s=i.methodInfo;return n.__dataHasAccessor&&n.__dataHasAccessor[s]?n._setPendingProperty(s,o,!0):(n[s]=o,!1)}function Qm(n,e,t){let r=n.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Nn(o,e)?(i=Ln(o,s,e),n._setPendingPropertyOrPath(i,t,!0,!0)):Nn(s,e)&&(i=Ln(s,o,e),n._setPendingPropertyOrPath(i,t,!0,!0))}}}function Ei(n,e,t,r,i,o,s){t.bindings=t.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(t.bindings.push(a),i_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Zr(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,e_(n,e,a,d,l)}}function e_(n,e,t,r,i){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:t,part:r,evaluator:n};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=qu(l),l.wildcard=!0),n._addTemplatePropertyEffect(e,l.rootProperty,{fn:t_,info:s,trigger:l})}}}function t_(n,e,t,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Ln(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&n._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(n,u,e,t,r,o);d!==Rn&&n_(n,a,l,u,d)}}function n_(n,e,t,r,i){if(i=r_(e,i,t,r),Sr&&(i=Sr(i,t.target,t.kind,e)),t.kind=="attribute")n._valueToNodeAttribute(e,i,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function r_(n,e,t,r){if(t.isCompound){let i=n.__dataCompoundStorage[t.target];i[r.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(n.localName==="input"||n.localName==="textarea"))&&(e=e==null?"":e),e}function i_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function o_(n,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=t[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];s_(s,u),a_(s,n,u)}s.__dataHost=n}}function s_(n,e){if(e.isCompound){let t=n.__dataCompoundStorage||(n.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;t[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(n=Le(n)),n[o]=e.literal)}}function a_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Ym(i,e,t.target,r.source,r.negate)})}}function Zs(n,e,t,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||n._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return o&&n._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function oo(n,e,t,r,i){let o=n._methodHost||n,s=o[i.methodName];if(s){let a=n._marshalArgs(i.args,e,t);return a===Rn?Rn:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const l_=[],Yu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",u_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",d_="(?:'(?:[^'\\\\]|\\\\.)*')",c_='(?:"(?:[^"\\\\]|\\\\.)*")',h_="(?:"+d_+"|"+c_+")",Ks="(?:("+Yu+"|"+u_+"|"+h_+")\\s*)",f_="(?:"+Ks+"(?:,\\s*"+Ks+")*)",p_="(?:\\(\\s*(?:"+f_+"?)\\)\\s*)",m_="("+Yu+"\\s*"+p_+"?)",__="(\\[\\[|{{)\\s*",g_="(?:]]|}})",b_="(?:(!)\\s*)?",v_=__+b_+m_+g_,Js=new RegExp(v_,"g");function Qs(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function xi(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:l_};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return y_(i,r)}else return r}return null}function y_(n,e){return e.args=n.map(function(t){let r=qu(t);return r.literal||(e.static=!1),r},this),e}function qu(n){let e=n.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Lt(e),t.structured=ro(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ea(n,e,t){let r=We(n,t);return r===void 0&&(r=e[t]),r}function Xu(n,e,t,r){const i={indexSplices:r};no&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),no&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function gn(n,e,t,r,i,o){Xu(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function w_(n){return n[0].toUpperCase()+n.substring(1)}const Io=Be(n=>{const e=zm(Mm(n));class t extends e{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 ge}_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(bn.length){let i=bn[bn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[ge.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==ge.READ_ONLY);let a=Ci(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=Ci(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,ge.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,ge.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,ge.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,ge.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Lt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=We(this,i);if(i=js(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return Qm(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Le(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&ro(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Xm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Cn(this,this[ge.REFLECT],o,s,a),Cn(this,this[ge.OBSERVE],o,s,a),l&&Wm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[ge.PROPAGATE]&&Cn(this,this[ge.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{Cn(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=wn(i),o=wn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=wn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=We(this,i,s);Xu(this,a,s.path,o)}get(i,o){return We(o||this,i)}set(i,o,s){s?js(s,i,o):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=We(this,i,s),l=a.length,u=a.push(...o);return o.length&&gn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=We(this,i,o),a=!!s.length,l=s.pop();return a&&gn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=We(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&gn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=We(this,i,o),a=!!s.length,l=s.shift();return a&&gn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=We(this,i,s),l=a.unshift(...o);return o.length&&gn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=We(this,i,a),s=a.path}else Array.isArray(i)?s=wn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,ge.READ_ONLY),o&&(this["_set"+w_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,ge.OBSERVE,{fn:qs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,ge.OBSERVE,{fn:qs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=xi(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Zs(this,s,ge.OBSERVE,oo,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,ge.NOTIFY,{fn:Gm,info:{eventName:Zr(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" 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(i,ge.REFLECT,{fn:qm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=xi(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Zs(this,a,ge.COMPUTE,Gu,i,s);Ci(this,Wu)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:_}=i[u];if(!_)if(f){const C=Nn(c,o),v=ea(a,s,C?o:c);b={path:C?o:c,value:v,base:C?We(a,c):v}}else b=h?ea(a,s,c):a[c];if(no&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return Rn;l[u]=b}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),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=i._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(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),bn.push(this);let s=super._stampTemplate(i,o);if(bn.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,o_(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.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 d=0;d<u.length;d++){let c=u[d];Le(Le(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=Qs(l)||" ",Ei(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";$m.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=Qs(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Hu(a)),Ei(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Fs&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(hm&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Fs||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Ei(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Js.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let _=xi(c),C=[];if(_){let{args:v,methodName:g}=_;for(let y=0;y<v.length;y++){let S=v[y];S.literal||C.push(S)}let A=o.dynamicFns;(A&&A[g]||_.static)&&(C.push(g),_.dynamicFn=!0)}else C.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:C,event:f}),a=Js.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=oo(i,s,a,l,o.signature):s!=o.source?d=We(i,o.source):u&&ro(s)?d=We(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),bn=[];/**
2051
+ */let Rn=0;const Fn=[],ge={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ju="__computeInfo",Vm=/[A-Z]/;function xi(n,e,t){let r=n[e];if(!r)r=n[e]={};else if(!n.hasOwnProperty(e)&&(r=n[e]=Object.create(n[e]),t))for(let i in r){let o=r[i],s=r[i]=Array(o.length);for(let a=0;a<o.length;a++)s[a]=o[a]}return r}function En(n,e,t,r,i,o){if(e){let s=!1;const a=Rn++;for(let l in t){let u=i?Lt(l):l,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==a)&&(!i||No(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(n,l,t,r,f.info,i,o),s=!0)}return s}return!1}function Wm(n,e,t,r,i,o,s,a){let l=!1,u=s?Lt(r):r,d=e[u];if(d)for(let c=0,h=d.length,f;c<h&&(f=d[c]);c++)(!f.info||f.info.lastRun!==t)&&(!s||No(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function No(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Lu(t,n))||!!(e.wildcard&&Ln(t,n))}else return!0}function Xs(n,e,t,r,i){let o=typeof i.method=="string"?n[i.method]:i.method,s=i.property;o?o.call(n,n.__data[s],r[s]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function jm(n,e,t,r,i){let o=n[ge.NOTIFY],s,a=Rn++;for(let u in e)e[u]&&(o&&Wm(n,o,a,u,t,r,i)||i&&Gm(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Gm(n,e,t){let r=Lt(e);if(r!==e){let i=Jr(r)+"-changed";return Gu(n,i,t[e],e),!0}return!1}function Gu(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Ne(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function Ym(n,e,t,r,i,o){let a=(o?Lt(e):e)!=e?e:null,l=a?Ve(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),Gu(n,i.eventName,l,a)}function qm(n,e,t,r,i){let o,s=n.detail,a=s&&s.path;a?(r=Hn(t,r,a),o=s&&s.value):o=n.currentTarget[t],o=i?!o:o,(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Xm(n,e,t,r,i){let o=n.__data[e];Dr&&(o=Dr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Zm(n,e,t,r){let i=n[ge.COMPUTE];if(i)if(hm){Rn++;const o=Jm(n),s=[];for(let l in e)Zs(l,i,s,o,r);let a;for(;a=s.shift();)Yu(n,"",e,t,a)&&Zs(a.methodInfo,i,s,o,r);Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),n.__dataPending=null}else{let o=e;for(;En(n,i,o,t,r);)Object.assign(t,n.__dataOld),Object.assign(e,n.__dataPending),o=n.__dataPending,n.__dataPending=null}}const Km=(n,e,t)=>{let r=0,i=e.length-1,o=-1;for(;r<=i;){const s=r+i>>1,a=t.get(e[s].methodInfo)-t.get(n.methodInfo);if(a<0)r=s+1;else if(a>0)i=s-1;else{o=s;break}}o<0&&(o=i+1),e.splice(o,0,n)},Zs=(n,e,t,r,i)=>{const o=i?Lt(n):n,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Rn&&(!i||No(n,l.trigger))&&(l.info.lastRun=Rn,Km(l.info,t,r))}};function Jm(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[ge.COMPUTE];let{counts:r,ready:i,total:o}=Qm(n),s;for(;s=i.shift();){e.set(s,e.size);const a=t[s];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--r[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${n.localName} incomplete; circular?`),n.constructor.__orderedComputedDeps=e}return e}function Qm(n){const e=n[ju],t={},r=n[ge.COMPUTE],i=[];let o=0;for(let s in e){const a=e[s];o+=t[s]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let s in r)e[s]||i.push(s);return{counts:t,ready:i,total:o}}function Yu(n,e,t,r,i){let o=ao(n,e,t,r,i);if(o===Fn)return!1;let s=i.methodInfo;return n.__dataHasAccessor&&n.__dataHasAccessor[s]?n._setPendingProperty(s,o,!0):(n[s]=o,!1)}function e_(n,e,t){let r=n.__dataLinkedPaths;if(r){let i;for(let o in r){let s=r[o];Ln(o,e)?(i=Hn(o,s,e),n._setPendingPropertyOrPath(i,t,!0,!0)):Ln(s,e)&&(i=Hn(s,o,e),n._setPendingPropertyOrPath(i,t,!0,!0))}}}function Ai(n,e,t,r,i,o,s){t.bindings=t.bindings||[];let a={kind:r,target:i,parts:o,literal:s,isCompound:o.length!==1};if(t.bindings.push(a),o_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Jr(i)+"-changed",a.listenerNegate=d}let l=e.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,t_(n,e,a,d,l)}}function t_(n,e,t,r,i){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,s={index:i,binding:t,part:r,evaluator:n};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Xu(l),l.wildcard=!0),n._addTemplatePropertyEffect(e,l.rootProperty,{fn:n_,info:s,trigger:l})}}}function n_(n,e,t,r,i,o,s){let a=s[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=t[e];e=Hn(u.source,l.target,e),a._setPendingPropertyOrPath(e,d,!1,!0)&&n._enqueueClient(a)}else{let d=i.evaluator._evaluateBinding(n,u,e,t,r,o);d!==Fn&&r_(n,a,l,u,d)}}function r_(n,e,t,r,i){if(i=i_(e,i,t,r),Dr&&(i=Dr(i,t.target,t.kind,e)),t.kind=="attribute")n._valueToNodeAttribute(e,i,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[ge.READ_ONLY]||!e[ge.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function i_(n,e,t,r){if(t.isCompound){let i=n.__dataCompoundStorage[t.target];i[r.compoundIndex]=e,e=i.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(n.localName==="input"||n.localName==="textarea"))&&(e=e==null?"":e),e}function o_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function s_(n,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let i=0;i<r.length;i++){let o=r[i],s=t[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];a_(s,u),l_(s,n,u)}s.__dataHost=n}}function a_(n,e){if(e.isCompound){let t=n.__dataCompoundStorage||(n.__dataCompoundStorage={}),r=e.parts,i=new Array(r.length);for(let s=0;s<r.length;s++)i[s]=r[s].literal;let o=e.target;t[o]=i,e.literal&&e.kind=="property"&&(o==="className"&&(n=Ne(n)),n[o]=e.literal)}}function l_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){qm(i,e,t.target,r.source,r.negate)})}}function Ks(n,e,t,r,i,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||n._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return o&&n._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function ao(n,e,t,r,i){let o=n._methodHost||n,s=o[i.methodName];if(s){let a=n._marshalArgs(i.args,e,t);return a===Fn?Fn:s.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const u_=[],qu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",d_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",c_="(?:'(?:[^'\\\\]|\\\\.)*')",h_='(?:"(?:[^"\\\\]|\\\\.)*")',f_="(?:"+c_+"|"+h_+")",Js="(?:("+qu+"|"+d_+"|"+f_+")\\s*)",p_="(?:"+Js+"(?:,\\s*"+Js+")*)",m_="(?:\\(\\s*(?:"+p_+"?)\\)\\s*)",__="("+qu+"\\s*"+m_+"?)",g_="(\\[\\[|{{)\\s*",b_="(?:]]|}})",v_="(?:(!)\\s*)?",y_=g_+v_+__+b_,Qs=new RegExp(y_,"g");function ea(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function Ti(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:u_};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return w_(i,r)}else return r}return null}function w_(n,e){return e.args=n.map(function(t){let r=Xu(t);return r.literal||(e.static=!1),r},this),e}function Xu(n){let e=n.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Lt(e),t.structured=oo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ta(n,e,t){let r=Ve(n,t);return r===void 0&&(r=e[t]),r}function Zu(n,e,t,r){const i={indexSplices:r};io&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),io&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function bn(n,e,t,r,i,o){Zu(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function C_(n){return n[0].toUpperCase()+n.substring(1)}const Lo=Be(n=>{const e=$m(Bm(n));class t extends e{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 ge}_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(vn.length){let i=vn[vn.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[ge.READ_ONLY];for(let s in i)(!o||!o[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=i[s])}_addPropertyEffect(i,o,s){this._createPropertyAccessor(i,o==ge.READ_ONLY);let a=xi(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=xi(this,o,!0)[i],l=a.indexOf(s);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let s=this[o];return!!(s&&s[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,ge.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,ge.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,ge.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,ge.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Lt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=Ve(this,i);if(i=Gs(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return e_(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,s);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,s){(s!==i[o]||typeof s=="object")&&(o==="className"&&(i=Ne(i)),i[o]=s)}_setPendingProperty(i,o,s){let a=this.__dataHasPaths&&oo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[ge.NOTIFY]&&this[ge.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=s),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let s=i[o];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let s in i)(o||!this[ge.READ_ONLY]||!this[ge.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,i[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,s){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Zm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),En(this,this[ge.REFLECT],o,s,a),En(this,this[ge.OBSERVE],o,s,a),l&&jm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[ge.PROPAGATE]&&En(this,this[ge.PROPAGATE],i,o,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,s)}_runEffectsForTemplate(i,o,s,a){const l=(u,d)=>{En(this,i.propertyEffects,u,s,d,i.nodeList);for(let c=i.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,u,s,d)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=Cn(i),o=Cn(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=Cn(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let s={path:""},a=Ve(this,i,s);Zu(this,a,s.path,o)}get(i,o){return Ve(o||this,i)}set(i,o,s){s?Gs(s,i,o):(!this[ge.READ_ONLY]||!this[ge.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let s={path:""},a=Ve(this,i,s),l=a.length,u=a.push(...o);return o.length&&bn(this,a,s.path,l,o.length,[]),u}pop(i){let o={path:""},s=Ve(this,i,o),a=!!s.length,l=s.pop();return a&&bn(this,s,o.path,s.length,0,[l]),l}splice(i,o,s,...a){let l={path:""},u=Ve(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let d;return arguments.length===2?d=u.splice(o):d=u.splice(o,s,...a),(a.length||d.length)&&bn(this,u,l.path,o,a.length,d),d}shift(i){let o={path:""},s=Ve(this,i,o),a=!!s.length,l=s.shift();return a&&bn(this,s,o.path,0,0,[l]),l}unshift(i,...o){let s={path:""},a=Ve(this,i,s),l=a.unshift(...o);return o.length&&bn(this,a,s.path,0,o.length,[]),l}notifyPath(i,o){let s;if(arguments.length==1){let a={path:""};o=Ve(this,i,a),s=a.path}else Array.isArray(i)?s=Cn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,ge.READ_ONLY),o&&(this["_set"+C_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,ge.OBSERVE,{fn:Xs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,ge.OBSERVE,{fn:Xs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Ti(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");Ks(this,s,ge.OBSERVE,ao,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,ge.NOTIFY,{fn:Ym,info:{eventName:Jr(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" 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(i,ge.REFLECT,{fn:Xm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Ti(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Ks(this,a,ge.COMPUTE,Yu,i,s);xi(this,ju)[i]=l}_marshalArgs(i,o,s){const a=this.__data,l=[];for(let u=0,d=i.length;u<d;u++){let{name:c,structured:h,wildcard:f,value:b,literal:_}=i[u];if(!_)if(f){const C=Ln(c,o),v=ta(a,s,C?o:c);b={path:C?o:c,value:v,base:C?Ve(a,c):v}}else b=h?ta(a,s,c):a[c];if(io&&!this._overrideLegacyUndefined&&b===void 0&&i.length>1)return Fn;l[u]=b}return l}static addPropertyEffect(i,o,s){this.prototype._addPropertyEffect(i,o,s)}static createPropertyObserver(i,o,s){this.prototype._createPropertyObserver(i,o,s)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,s){this.prototype._createComputedProperty(i,o,s)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let s=this.constructor._parseTemplate(i),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=i._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(i,o,s){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(s)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),vn.push(this);let s=super._stampTemplate(i,o);if(vn.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,s_(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(i){const o=i.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 d=0;d<u.length;d++){let c=u[d];Ne(Ne(c).parentNode).removeChild(c)}}static _parseTemplateNode(i,o,s){let a=e._parseTemplateNode.call(this,i,o,s);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=ea(l)||" ",Ai(this,o,s,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,s,a,l){let u=this._parseBindings(l,o);if(u){let d=a,c="property";Vm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=ea(u);return h&&c=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(h+=" "+i.getAttribute(a)),i.setAttribute(a,h)),c=="attribute"&&d=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&d==="value"&&i.setAttribute(d,""),i.removeAttribute(d),c==="property"&&(a=Ru(a)),Ai(this,o,s,c,a,u,h),!0}else return e._parseTemplateNodeAttribute.call(this,i,o,s,a,l)}static _parseTemplateNestedTemplate(i,o,s){let a=e._parseTemplateNestedTemplate.call(this,i,o,s);const l=i.parentNode,u=s.templateInfo,d=l.localName==="dom-if",c=l.localName==="dom-repeat";Us&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(fm&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Us||(s.parentInfo.noted=!0));else{let f="{";for(let b in h){let _=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Ai(this,o,s,"property","_host_"+b,_)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=Qs.exec(i))!==null;){l.index>a&&s.push({literal:i.slice(a,l.index)});let u=l[1][0],d=!!l[2],c=l[3].trim(),h=!1,f="",b=-1;u=="{"&&(b=c.indexOf("::"))>0&&(f=c.substring(b+2),c=c.substring(0,b),h=!0);let _=Ti(c),C=[];if(_){let{args:v,methodName:g}=_;for(let y=0;y<v.length;y++){let S=v[y];S.literal||C.push(S)}let A=o.dynamicFns;(A&&A[g]||_.static)&&(C.push(g),_.dynamicFn=!0)}else C.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:_,dependencies:C,event:f}),a=Qs.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&s.push({literal:u})}return s.length?s:null}static _evaluateBinding(i,o,s,a,l,u){let d;return o.signature?d=ao(i,s,a,l,o.signature):s!=o.source?d=Ve(i,o.source):u&&oo(s)?d=Ve(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),vn=[];/**
2052
2052
  @license
2053
2053
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2054
2054
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2064,7 +2064,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2064
2064
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2065
2065
  Code distributed by Google as part of the polymer project is also
2066
2066
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2067
- */function C_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const E_=Be(n=>{const e=zu(n);function t(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?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=C_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
2067
+ */function E_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const x_=Be(n=>{const e=$u(n);function t(o){const s=Object.getPrototypeOf(o);return s.prototype instanceof i?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=E_(a))}o.__ownProperties=s}return o.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const a=this._properties[s];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
2068
2068
  * @fileoverview
2069
2069
  * @suppress {checkPrototypalTypes}
2070
2070
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2074,7 +2074,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2074
2074
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2075
2075
  * Google as part of the polymer project is also subject to an additional IP
2076
2076
  * rights grant found at http://polymer.github.io/PATENTS.txt
2077
- */const x_="3.5.2",ta=window.ShadyCSS&&window.ShadyCSS.cssBuild,A_=Be(n=>{const e=E_(Io(n));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}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 i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!ta){const h=u.content.querySelectorAll("style"),f=Ou(u),b=ym(d),_=u.content.firstElementChild;for(let v=0;v<b.length;v++){let g=b[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let C=0;for(let v=0;v<f.length;v++){let g=f[v],A=h[C];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):C++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),fm&&ta&&am){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!kr||um)&&(u=In.import(l,"template"),kr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return x_}static _finalizeClass(){e._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):ku||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}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=Mo(u.url);else{const d=In.import(this.is);this._importPath=d&&d.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=lm,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Do(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?Pn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}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 d=Le(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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,d){return!d&&this.importPath&&(d=Pn(this.importPath)),Pn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Du&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2077
+ */const A_="3.5.2",na=window.ShadyCSS&&window.ShadyCSS.cssBuild,T_=Be(n=>{const e=x_(Lo(n));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let c=u[d];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=c)}}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 i(l,u,d,c){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,c)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,c[d.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,d,c){if(!na){const h=u.content.querySelectorAll("style"),f=Iu(u),b=wm(d),_=u.content.firstElementChild;for(let v=0;v<b.length;v++){let g=b[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,_)}let C=0;for(let v=0;v<f.length;v++){let g=f[v],A=h[C];A!==g?(g=g.cloneNode(!0),A.parentNode.insertBefore(g,A)):C++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),pm&&na&&lm){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(b=>{f+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!Mr||dm)&&(u=Nn.import(l,"template"),Mr&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return A_}static _finalizeClass(){e._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):Du||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)i(this.prototype,d,u[d],u)}static createObservers(u,d){const c=this.prototype;for(let h=0;h<u.length;h++)c._createMethodObserver(u[h],d)}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=Oo(u.url);else{const d=Nn.import(this.is);this._importPath=d&&d.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=um,this.importPath=this.constructor.importPath;let u=t(this.constructor);if(u)for(let d in u){let c=u[d];if(this._canApplyPropertyDefault(d)){let h=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Bo(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const c=this.importPath,h=c?Sn(c):"";o(this,d,u,h),this.prototype._bindTemplate(d)}}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 d=Ne(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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,d){return!d&&this.importPath&&(d=Sn(this.importPath)),Sn(u,d)}static _parseTemplateContent(u,d,c){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,u,d,c)}static _addTemplatePropertyEffect(u,d,c){return Mu&&!(d in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,u,d,c)}}return a});/**
2078
2078
  @license
2079
2079
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2080
2080
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2082,7 +2082,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2082
2082
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2083
2083
  Code distributed by Google as part of the polymer project is also
2084
2084
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2085
- */const na=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Zu{constructor(e,t){Ju(e,t);const r=t.reduce((i,o,s)=>i+Ku(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Ku(n){if(n instanceof Zu)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function T_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Zu)return Ku(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Ht=function(e,...t){Ju(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+T_(s)+e[a+1],e[0]);return na&&(i=na.createHTML(i)),r.innerHTML=i,r},Ju=(n,e)=>{if(!Array.isArray(n)||!Array.isArray(n.raw)||e.length!==n.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2085
+ */const ra=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class Ku{constructor(e,t){Qu(e,t);const r=t.reduce((i,o,s)=>i+Ju(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Ju(n){if(n instanceof Ku)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function P_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof Ku)return Ju(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Ht=function(e,...t){Qu(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+P_(s)+e[a+1],e[0]);return ra&&(i=ra.createHTML(i)),r.innerHTML=i,r},Qu=(n,e)=>{if(!Array.isArray(n)||!Array.isArray(n.raw)||e.length!==n.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2086
2086
  @license
2087
2087
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2088
2088
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2090,19 +2090,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2090
2090
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2091
2091
  Code distributed by Google as part of the polymer project is also
2092
2092
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2093
- */const yt=A_(HTMLElement);/**
2093
+ */const wt=T_(HTMLElement);/**
2094
2094
  * @license
2095
2095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2096
2096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2097
- */const it=[];function so(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function ao(){return document.documentElement.getAttribute("dir")}function P_(){const n=ao();it.forEach(e=>{so(e,n)})}const S_=new MutationObserver(P_);S_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Kr=n=>class extends n{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),so(this,ao(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=ao(),s=i===o&&it.indexOf(this)===-1,a=!i&&r&&it.indexOf(this)===-1;s||a?(this.__subscribe(),so(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=it.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,i){i==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,i)}_attributeToProperty(t,r,i){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,i)}__subscribe(){it.includes(this)||it.push(this)}__unsubscribe(){it.includes(this)&&it.splice(it.indexOf(this),1)}};/**
2097
+ */const it=[];function lo(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function uo(){return document.documentElement.getAttribute("dir")}function S_(){const n=uo();it.forEach(e=>{lo(e,n)})}const k_=new MutationObserver(S_);k_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Qr=n=>class extends n{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>t===""?null:t}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),lo(this,uo(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=uo(),s=i===o&&it.indexOf(this)===-1,a=!i&&r&&it.indexOf(this)===-1;s||a?(this.__subscribe(),lo(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=it.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,r,i){i==="dir"&&r===""&&!t.hasAttribute("dir")||super._valueToNodeAttribute(t,r,i)}_attributeToProperty(t,r,i){t==="dir"&&!r?this.dir="":super._attributeToProperty(t,r,i)}__subscribe(){it.includes(this)||it.push(this)}__unsubscribe(){it.includes(this)&&it.splice(it.indexOf(this),1)}};/**
2098
2098
  * @license
2099
2099
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2100
2100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2101
- */const k_=n=>class extends n{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2101
+ */const D_=n=>class extends n{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}};/**
2102
2102
  * @license
2103
2103
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2104
2104
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2105
- */const D_=me`
2105
+ */const M_=me`
2106
2106
  :host {
2107
2107
  display: flex;
2108
2108
  align-items: center;
@@ -2171,15 +2171,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2171
2171
  * @license
2172
2172
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2173
2173
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2174
- */De("vaadin-input-container",D_,{moduleId:"vaadin-input-container-styles"});class M_ extends k_(Nt(Kr(yt))){static get is(){return"vaadin-input-container"}static get template(){return Ht`
2174
+ */De("vaadin-input-container",M_,{moduleId:"vaadin-input-container-styles"});class B_ extends D_(Nt(Qr(wt))){static get is(){return"vaadin-input-container"}static get template(){return Ht`
2175
2175
  <slot name="prefix"></slot>
2176
2176
  <slot></slot>
2177
2177
  <slot name="suffix"></slot>
2178
- `}}rt(M_);/**
2178
+ `}}rt(B_);/**
2179
2179
  * @license
2180
2180
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2181
2181
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
- */const B_=me`
2182
+ */const O_=me`
2183
2183
  :host {
2184
2184
  z-index: 200;
2185
2185
  position: fixed;
@@ -2242,7 +2242,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2242
2242
  * @license
2243
2243
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2244
2244
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2245
- */let No=!1;window.addEventListener("keydown",()=>{No=!0},{capture:!0});window.addEventListener("mousedown",()=>{No=!1},{capture:!0});function lo(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Lo(){return No}function O_(n){const e=n.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(n);return t.visibility==="hidden"||t.display==="none"}function I_(n,e){const t=Math.max(n.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function N_(n,e){const t=[];for(;n.length>0&&e.length>0;)I_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function uo(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=uo(n.slice(0,t)),i=uo(n.slice(t));return N_(r,i)}function Qu(n){return n.matches('[tabindex="-1"]')?!1:n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function L_(n){return n.getRootNode().activeElement===n}function H_(n){if(!Qu(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function ed(n,e){if(n.nodeType!==Node.ELEMENT_NODE||O_(n))return!1;const t=n,r=H_(t);let i=r>0;r>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(s=>{i=ed(s,e)||i}),i}function R_(n){const e=[];return ed(n,e)?uo(e):e}/**
2245
+ */let Ho=!1;window.addEventListener("keydown",()=>{Ho=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ho=!1},{capture:!0});function co(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Ro(){return Ho}function I_(n){const e=n.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(n);return t.visibility==="hidden"||t.display==="none"}function N_(n,e){const t=Math.max(n.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function L_(n,e){const t=[];for(;n.length>0&&e.length>0;)N_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function ho(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=ho(n.slice(0,t)),i=ho(n.slice(t));return L_(r,i)}function ed(n){return n.matches('[tabindex="-1"]')?!1:n.matches("input, select, textarea, button, object")?n.matches(":not([disabled])"):n.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function H_(n){return n.getRootNode().activeElement===n}function R_(n){if(!ed(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function td(n,e){if(n.nodeType!==Node.ELEMENT_NODE||I_(n))return!1;const t=n,r=R_(t);let i=r>0;r>=0&&e.push(t);let o=[];return t.localName==="slot"?o=t.assignedNodes({flatten:!0}):o=(t.shadowRoot||t).children,[...o].forEach(s=>{i=td(s,e)||i}),i}function F_(n){const e=[];return td(n,e)?ho(e):e}/**
2246
2246
  @license
2247
2247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2248
2248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2250,27 +2250,27 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2250
2250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2251
2251
  Code distributed by Google as part of the polymer project is also
2252
2252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2253
- */let co=!1,F_=[],td=[];function U_(){co=!0,requestAnimationFrame(function(){co=!1,z_(F_),setTimeout(function(){$_(td)})})}function z_(n){for(;n.length;)nd(n.shift())}function $_(n){for(let e=0,t=n.length;e<t;e++)nd(n.shift())}function nd(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function rd(n,e,t){co||U_(),td.push([n,e,t])}/**
2253
+ */let fo=!1,U_=[],nd=[];function z_(){fo=!0,requestAnimationFrame(function(){fo=!1,$_(U_),setTimeout(function(){V_(nd)})})}function $_(n){for(;n.length;)rd(n.shift())}function V_(n){for(let e=0,t=n.length;e<t;e++)rd(n.shift())}function rd(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function id(n,e,t){fo||z_(),nd.push([n,e,t])}/**
2254
2254
  * @license
2255
2255
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2256
2256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2257
- */const Jr=n=>n.test(navigator.userAgent),ho=n=>n.test(navigator.platform),V_=n=>n.test(navigator.vendor);Jr(/Android/u);Jr(/Chrome/u)&&V_(/Google Inc/u);Jr(/Firefox/u);const W_=ho(/^iPad/u)||ho(/^Mac/u)&&navigator.maxTouchPoints>1,j_=ho(/^iPhone/u),id=j_||W_;Jr(/^((?!chrome|android).)*safari/iu);const G_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
2257
+ */const ei=n=>n.test(navigator.userAgent),po=n=>n.test(navigator.platform),W_=n=>n.test(navigator.vendor);ei(/Android/u);ei(/Chrome/u)&&W_(/Google Inc/u);ei(/Firefox/u);const j_=po(/^iPad/u)||po(/^Mac/u)&&navigator.maxTouchPoints>1,G_=po(/^iPhone/u),od=G_||j_;ei(/^((?!chrome|android).)*safari/iu);const Y_=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(n){return!1}})();/**
2258
2258
  * @license
2259
2259
  * Copyright (c) 2017 Anton Korzunov
2260
2260
  * SPDX-License-Identifier: MIT
2261
- */let Vt=new WeakMap,sr=new WeakMap,ar={},Ai=0;const ra=n=>n&&n.nodeType===Node.ELEMENT_NODE,Ti=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},Y_=(n,e)=>ra(n)?e.map(t=>{if(!ra(t))return Ti(t,"is not a valid element"),null;let r=t;for(;r&&r!==n;){if(n.contains(r))return t;r=r.getRootNode().host}return Ti(t,"is not contained inside",n),null}).filter(t=>!!t):(Ti(n,"is not a valid element"),[]),q_=(n,e,t,r)=>{const i=Y_(e,Array.isArray(n)?n:[n]);ar[t]||(ar[t]=new WeakMap);const o=ar[t],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const _=b.getAttribute(r),C=_!==null&&_!=="false",v=(Vt.get(b)||0)+1,g=(o.get(b)||0)+1;Vt.set(b,v),o.set(b,g),s.push(b),v===1&&C&&sr.set(b,!0),g===1&&b.setAttribute(t,"true"),C||b.setAttribute(r,"true")}})};return d(e),a.clear(),Ai+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(sr.has(c)?sr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),Ai-=1,Ai||(Vt=new WeakMap,Vt=new WeakMap,sr=new WeakMap,ar={})}},od=(n,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(n)?n:[n]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),q_(r,e,t,"aria-hidden")};/**
2261
+ */let Vt=new WeakMap,lr=new WeakMap,ur={},Pi=0;const ia=n=>n&&n.nodeType===Node.ELEMENT_NODE,Si=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},q_=(n,e)=>ia(n)?e.map(t=>{if(!ia(t))return Si(t,"is not a valid element"),null;let r=t;for(;r&&r!==n;){if(n.contains(r))return t;r=r.getRootNode().host}return Si(t,"is not contained inside",n),null}).filter(t=>!!t):(Si(n,"is not a valid element"),[]),X_=(n,e,t,r)=>{const i=q_(e,Array.isArray(n)?n:[n]);ur[t]||(ur[t]=new WeakMap);const o=ur[t],s=[],a=new Set,l=new Set(i),u=c=>{if(!c||a.has(c))return;a.add(c);const h=c.assignedSlot;h&&u(h),u(c.parentNode||c.host)};i.forEach(u);const d=c=>{if(!c||l.has(c))return;const h=c.shadowRoot;(h?[...c.children,...h.children]:[...c.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))d(b);else{const _=b.getAttribute(r),C=_!==null&&_!=="false",v=(Vt.get(b)||0)+1,g=(o.get(b)||0)+1;Vt.set(b,v),o.set(b,g),s.push(b),v===1&&C&&lr.set(b,!0),g===1&&b.setAttribute(t,"true"),C||b.setAttribute(r,"true")}})};return d(e),a.clear(),Pi+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(lr.has(c)?lr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),Pi-=1,Pi||(Vt=new WeakMap,Vt=new WeakMap,lr=new WeakMap,ur={})}},sd=(n,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(n)?n:[n]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),X_(r,e,t,"aria-hidden")};/**
2262
2262
  * @license
2263
2263
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2264
2264
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2265
- */class X_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=od(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2265
+ */class Z_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=sd(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2266
2266
  * @license
2267
2267
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2268
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */class Z_{saveFocus(e){this.focusNode=e||lo()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;lo()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2269
+ */class K_{saveFocus(e){this.focusNode=e||co()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;co()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
2270
2270
  * @license
2271
2271
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2272
2272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2273
- */const Pi=[];class K_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return R_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(L_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Pi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Pi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Pi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,i=this.__focusedElementIndex,o=(t.length+i+r)%t.length,s=t[o];s.focus(),s.localName==="input"&&s.select()}}/**
2273
+ */const ki=[];class J_{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return F_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(H_).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ki.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ki.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ki).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,i=this.__focusedElementIndex,o=(t.length+i+r)%t.length,s=t[o];s.focus(),s.localName==="input"&&s.select()}}/**
2274
2274
  * @license
2275
2275
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2276
2276
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2278,35 +2278,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2278
2278
  * @license
2279
2279
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2280
2280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2281
- */const J_=n=>class extends cn(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new X_(this),this.__focusTrapController=new K_(this),this.__focusRestorationController=new Z_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!Lo();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=lo();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const i=t.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2281
+ */const Q_=n=>class extends cn(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Z_(this),this.__focusTrapController=new J_(this),this.__focusRestorationController=new K_}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!Ro();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=co();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let r=t;const i=t.ownerDocument;for(;r&&r!==i&&r!==this;)r=r.parentNode||r.host;return r===this}};/**
2282
2282
  * @license
2283
2283
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2284
2284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2285
- */const sd=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),fo=()=>sd().filter(n=>n.$.overlay),Q_=n=>n===fo().pop(),e0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Q_(this)}bringToFront(){let t="";const r=sd().filter(i=>i!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),fo().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=fo();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2285
+ */const ad=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),mo=()=>ad().filter(n=>n.$.overlay),e0=n=>n===mo().pop(),t0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return e0(this)}bringToFront(){let t="";const r=ad().filter(i=>i!==this).pop();r&&(t=r.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),mo().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=mo();let r;for(;(r=t.pop())&&!(r!==this&&(r.$.overlay.style.removeProperty("pointer-events"),!r.modeless)););}};/**
2286
2286
  * @license
2287
2287
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2288
2288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2289
- */const t0=n=>class extends J_(e0(n)){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),id&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),rd(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const i=`__${t}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2289
+ */const n0=n=>class extends Q_(t0(n)){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),od&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const r=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),r.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,i=window.innerWidth>t,o=document.documentElement.clientHeight;i&&o>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,r,i,o){const s=this._oldOwner!==r||this._oldModel!==i;this._oldModel=i,this._oldOwner=r;const a=this._oldRenderer!==t,l=this._oldRenderer!==void 0;this._oldRenderer=t;const u=this._oldOpened!==o;this._oldOpened=o,a&&l&&(this.innerHTML="",delete this._$litPart$),o&&t&&(a||u||s)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,r){t?(this._saveFocus(),this._animatedOpening(),id(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):r&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),r=t.getPropertyValue("animation-name");return!(t.getPropertyValue("display")==="none")&&r&&r!=="none"}_enqueueAnimation(t,r){const i=`__${t}Handler`,o=s=>{s&&s.target!==this||(r(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(t){const r=`__${t}Handler`;typeof this[r]=="function"&&this[r]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;const r=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&!(this.modeless&&!t.composedPath().includes(this.$.overlay))&&t.key==="Escape"){const r=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(r),this.opened&&!r.defaultPrevented&&this.close(t)}}};/**
2290
2290
  * @license
2291
2291
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2292
2292
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2293
- */function n0(n){const e=[];for(;n;){if(n.nodeType===Node.DOCUMENT_NODE){e.push(n);break}if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(n),n=n.host;continue}if(n.assignedSlot){n=n.assignedSlot;continue}n=n.parentNode}return e}function Ho(n){return n?new Set(n.split(" ")):new Set}function Qr(n){return n?[...n].join(" "):""}function ad(n,e,t){const r=Ho(n.getAttribute(e));r.add(t),n.setAttribute(e,Qr(r))}function r0(n,e,t){const r=Ho(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,Qr(r))}function i0(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
2293
+ */function r0(n){const e=[];for(;n;){if(n.nodeType===Node.DOCUMENT_NODE){e.push(n);break}if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(n),n=n.host;continue}if(n.assignedSlot){n=n.assignedSlot;continue}n=n.parentNode}return e}function Fo(n){return n?new Set(n.split(" ")):new Set}function ti(n){return n?[...n].join(" "):""}function ld(n,e,t){const r=Fo(n.getAttribute(e));r.add(t),n.setAttribute(e,ti(r))}function i0(n,e,t){const r=Fo(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,ti(r))}function o0(n){return n.nodeType===Node.TEXT_NODE&&n.textContent.trim()===""}/**
2294
2294
  * @license
2295
2295
  * Copyright (c) 2024 Vaadin Ltd.
2296
2296
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2297
- */function o0(n,e){let t=null;const r=document.documentElement;function i(){t&&t.disconnect(),t=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=n.getBoundingClientRect();if(s||e(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),b=Math.floor(r.clientHeight-(u+c)),_=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-b}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function A(y){let S=y[0].intersectionRatio;if(S!==a){if(!g)return o();S===0&&(S=1e-7),o(!1,S)}g=!1}t=new IntersectionObserver(A,v),t.observe(n)}return o(!0),i}/**
2297
+ */function s0(n,e){let t=null;const r=document.documentElement;function i(){t&&t.disconnect(),t=null}function o(s=!1,a=1){i();const{left:l,top:u,width:d,height:c}=n.getBoundingClientRect();if(s||e(),!d||!c)return;const h=Math.floor(u),f=Math.floor(r.clientWidth-(l+d)),b=Math.floor(r.clientHeight-(u+c)),_=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-b}px ${-_}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function A(y){let S=y[0].intersectionRatio;if(S!==a){if(!g)return o();S===0&&(S=1e-7),o(!1,S)}g=!1}t=new IntersectionObserver(A,v),t.observe(n)}return o(!0),i}/**
2298
2298
  * @license
2299
2299
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2300
2300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2301
- */const Si={start:"top",end:"bottom"},ki={start:"left",end:"right"},ia=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),s0=n=>class extends n{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=n0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=o0(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,ia.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,ia.observe(r))),t){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,Si,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,ki,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(t,r){const i=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(t,i,o,this.__margins,s,this.noHorizontalOverlap,ki)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,i,this.__margins,o,this.noVerticalOverlap,Si)}__shouldAlignStart(t,r,i,o,s,a,l){const u=i-t[a?l.end:l.start]-o[l.end],d=t[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(t,r,i){let o;if(t===r.end){if(r.end===Si.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===ki.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(t,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-t[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2301
+ */const Di={start:"top",end:"bottom"},Mi={start:"left",end:"right"},oa=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),a0=n=>class extends n{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=r0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=s0(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(t,r){if(this.__removeUpdatePositionEventListeners(),r&&(r.__overlay=null,oa.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,oa.observe(r))),t){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){t.target instanceof Node&&this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const t=this.positionTarget.getBoundingClientRect();if(t.width===0&&t.height===0&&this.opened){this.opened=!1;return}const r=this.__shouldAlignStartVertically(t);this.style.justifyContent=r?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(t,i),s=!i&&o||i&&!o;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,Di,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Mi,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(t,r){const i=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(t,i,o,this.__margins,s,this.noHorizontalOverlap,Mi)}__shouldAlignStartVertically(t){const r=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(t,r,i,this.__margins,o,this.noVerticalOverlap,Di)}__shouldAlignStart(t,r,i,o,s,a,l){const u=i-t[a?l.end:l.start]-o[l.end],d=t[a?l.start:l.end]-o[l.start],c=s?u:d,f=c>(s?d:u)||c>r;return s===f}__adjustBottomProperty(t,r,i){let o;if(t===r.end){if(r.end===Di.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;o=i-a}this.__oldViewportHeight=s}if(r.end===Mi.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;o=i-a}this.__oldViewportWidth=s}}return o}__calculatePositionInOneDimension(t,r,i,o,s,a){const l=a?o.start:o.end,u=a?o.end:o.start,d=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,o,d),h=r[a?o.start:o.end]-t[i===a?o.end:o.start],f=c?`${c}px`:`${d+h*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
2302
2302
  * @license
2303
2303
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2304
2304
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2305
- */const a0=n=>class extends s0(t0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!Qu(t.composedPath()[0])&&t.preventDefault()}};/**
2305
+ */const l0=n=>class extends a0(n0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!ed(t.composedPath()[0])&&t.preventDefault()}};/**
2306
2306
  * @license
2307
2307
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2308
2308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2309
- */const l0=me`
2309
+ */const u0=me`
2310
2310
  [part='overlay'] {
2311
2311
  display: flex;
2312
2312
  flex: auto;
@@ -2325,14 +2325,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2325
2325
  * @license
2326
2326
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2327
2327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2328
- */De("vaadin-date-picker-overlay",[B_,l0],{moduleId:"vaadin-date-picker-overlay-styles"});class u0 extends a0(Kr(Nt(yt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ht`
2328
+ */De("vaadin-date-picker-overlay",[O_,u0],{moduleId:"vaadin-date-picker-overlay-styles"});class d0 extends l0(Qr(Nt(wt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ht`
2329
2329
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2330
2330
  <div part="overlay" id="overlay">
2331
2331
  <div part="content" id="content">
2332
2332
  <slot></slot>
2333
2333
  </div>
2334
2334
  </div>
2335
- `}}rt(u0);const d0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,_r=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function c0(){function n(){return!0}return ld(n)}function h0(){try{return f0()?!0:p0()?_r?!m0():!c0():!1}catch(n){return!1}}function f0(){return localStorage.getItem("vaadin.developmentmode.force")}function p0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function m0(){return!!(_r&&Object.keys(_r).map(e=>_r[e]).filter(e=>e.productionMode).length>0)}function ld(n,e){if(typeof n!="function")return;const t=d0.exec(n.toString());if(t)try{n=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return n(e)}window.Vaadin=window.Vaadin||{};const oa=function(n,e){if(window.Vaadin.developmentMode)return ld(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=h0());function _0(){/*! vaadin-dev-mode:start
2335
+ `}}rt(d0);const c0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,br=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function h0(){function n(){return!0}return ud(n)}function f0(){try{return p0()?!0:m0()?br?!_0():!h0():!1}catch(n){return!1}}function p0(){return localStorage.getItem("vaadin.developmentmode.force")}function m0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function _0(){return!!(br&&Object.keys(br).map(e=>br[e]).filter(e=>e.productionMode).length>0)}function ud(n,e){if(typeof n!="function")return;const t=c0.exec(n.toString());if(t)try{n=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return n(e)}window.Vaadin=window.Vaadin||{};const sa=function(n,e){if(window.Vaadin.developmentMode)return ud(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=f0());function g0(){/*! vaadin-dev-mode:start
2336
2336
  (function () {
2337
2337
  'use strict';
2338
2338
 
@@ -2810,7 +2810,7 @@ try {
2810
2810
 
2811
2811
  }());
2812
2812
 
2813
- vaadin-dev-mode:end **/}const g0=function(){if(typeof oa=="function")return oa(_0)};/**
2813
+ vaadin-dev-mode:end **/}const b0=function(){if(typeof sa=="function")return sa(g0)};/**
2814
2814
  * @license
2815
2815
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2816
2816
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2818,7 +2818,7 @@ try {
2818
2818
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2819
2819
  * Code distributed by Google as part of the polymer project is also
2820
2820
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2821
- */let sa=0,ud=0;const Zt=[];let po=!1;function b0(){po=!1;const n=Zt.length;for(let e=0;e<n;e++){const t=Zt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Zt.splice(0,n),ud+=n}const Mr={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},v0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},y0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},w0={run(n){po||(po=!0,queueMicrotask(()=>b0())),Zt.push(n);const e=sa;return sa+=1,e},cancel(n){const e=n-ud;if(e>=0){if(!Zt[e])throw new Error(`invalid async handle: ${n}`);Zt[e]=null}}};/**
2821
+ */let aa=0,dd=0;const Zt=[];let _o=!1;function v0(){_o=!1;const n=Zt.length;for(let e=0;e<n;e++){const t=Zt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Zt.splice(0,n),dd+=n}const Or={after(n){return{run(e){return window.setTimeout(e,n)},cancel(e){window.clearTimeout(e)}}},run(n,e){return window.setTimeout(n,e)},cancel(n){window.clearTimeout(n)}},y0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},w0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},C0={run(n){_o||(_o=!0,queueMicrotask(()=>v0())),Zt.push(n);const e=aa;return aa+=1,e},cancel(n){const e=n-dd;if(e>=0){if(!Zt[e])throw new Error(`invalid async handle: ${n}`);Zt[e]=null}}};/**
2822
2822
  @license
2823
2823
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2824
2824
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2826,31 +2826,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2826
2826
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2827
2827
  Code distributed by Google as part of the polymer project is also
2828
2828
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2829
- */const mo=new Set;let on=class _o{static debounce(e,t,r){return e instanceof _o?e._cancelAsync():e=new _o,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,mo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),mo.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 C0(n){mo.add(n)}/**
2829
+ */const go=new Set;let on=class bo{static debounce(e,t,r){return e instanceof bo?e._cancelAsync():e=new bo,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,go.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),go.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 E0(n){go.add(n)}/**
2830
2830
  * @license
2831
2831
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2832
2832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2833
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){g0()};let Di;const aa=new Set,dd=n=>class extends Kr(n){static finalize(){super.finalize();const{is:t}=this;t&&!aa.has(t)&&(window.Vaadin.registrations.push(this),aa.add(t),window.Vaadin.developmentModeCallback&&(Di=on.debounce(Di,y0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),C0(Di)))}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(){b0()};let Bi;const la=new Set,cd=n=>class extends Qr(n){static finalize(){super.finalize();const{is:t}=this;t&&!la.has(t)&&(window.Vaadin.registrations.push(this),la.add(t),window.Vaadin.developmentModeCallback&&(Bi=on.debounce(Bi,w0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),E0(Bi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2834
2834
  * @license
2835
2835
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2836
2836
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2837
- */class E0{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],i=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=e.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(t.length||r.length||i.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:r}),this._storedNodes=e}}/**
2837
+ */class x0{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],i=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,s)=>{const a=e.indexOf(o);a===-1?r.push(o):a!==s&&i.push(o)}),(t.length||r.length||i.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:i,removedNodes:r}),this._storedNodes=e}}/**
2838
2838
  * @license
2839
2839
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2840
2840
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2841
- */let x0=0;function cd(){return x0++}/**
2841
+ */let A0=0;function hd(){return A0++}/**
2842
2842
  * @license
2843
2843
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2844
2844
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2845
- */class kt extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${cd()}`}constructor(e,t,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=e,this.slotName=t,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(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.defaultNode=i)),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new E0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!i0(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 kt extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${hd()}`}constructor(e,t,r,i={}){super();const{initializer:o,multiple:s,observe:a,useUniqueId:l,uniqueIdPrefix:u}=i;this.host=e,this.slotName=t,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(e,u||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let i=this.defaultNode;return!i&&r&&(i=document.createElement(r),i instanceof Element&&(t!==""&&i.setAttribute("slot",t),this.defaultNode=i)),i&&(this.node=i,e.appendChild(i)),i}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new x0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!o0(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)))})}}/**
2846
2846
  * @license
2847
2847
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2848
2848
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2849
- */class hd extends kt{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2849
+ */class fd extends kt{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2850
2850
  * @license
2851
2851
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2852
2852
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2853
- */const A0=me`
2853
+ */const T0=me`
2854
2854
  :host {
2855
2855
  display: inline-block;
2856
2856
  position: relative;
@@ -2910,7 +2910,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2910
2910
  outline-color: GrayText;
2911
2911
  }
2912
2912
  }
2913
- `,T0=n=>n`
2913
+ `,P0=n=>n`
2914
2914
  <div class="vaadin-button-container">
2915
2915
  <span part="prefix" aria-hidden="true">
2916
2916
  <slot name="prefix"></slot>
@@ -2931,39 +2931,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2931
2931
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2932
2932
  Code distributed by Google as part of the polymer project is also
2933
2933
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2934
- */const P0=n=>n,fd=typeof document.head.style.touchAction=="string",go="__polymerGestures",Mi="__polymerGesturesHandled",bo="__polymerGesturesTouchAction",la=25,ua=5,S0=2,k0=["mousedown","mousemove","mouseup","click"],D0=[0,1,4,2],M0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Ro(n){return k0.indexOf(n)>-1}let B0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){B0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function O0(n){Ro(n)}const I0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),N0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Bt(n){const e=n.type;if(!Ro(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!M0&&(r=D0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function L0(n){if(n.type==="click"){if(n.detail===0)return!0;const e=bt(n);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=n.pageX,i=n.pageY;return!(r>=t.left&&r<=t.right&&i>=t.top&&i<=t.bottom)}return!1}const ot={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function H0(n){let e="auto";const t=md(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[bo]){e=i[bo];break}return e}function pd(n,e,t){n.movefn=e,n.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const md=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],Fo={},Dt=[];function R0(n,e){let t=document.elementFromPoint(n,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(n,e),i===r)break;r&&(t=r)}return t}function bt(n){const e=md(n);return e.length>0?e[0]:n.target}function F0(n){const e=n.type,r=n.currentTarget[go];if(!r)return;const i=r[e];if(!i)return;if(!n[Mi]&&(n[Mi]={},e.startsWith("touch"))){const s=n.changedTouches[0];if(e==="touchstart"&&n.touches.length===1&&(ot.touch.id=s.identifier),ot.touch.id!==s.identifier)return;fd||(e==="touchstart"||e==="touchmove")&&U0(n)}const o=n[Mi];if(!o.skip){for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(n.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](n))}}function U0(n){const e=n.changedTouches[0],t=n.type;if(t==="touchstart")ot.touch.x=e.clientX,ot.touch.y=e.clientY,ot.touch.scrollDecided=!1;else if(t==="touchmove"){if(ot.touch.scrollDecided)return;ot.touch.scrollDecided=!0;const r=H0(n);let i=!1;const o=Math.abs(ot.touch.x-e.clientX),s=Math.abs(ot.touch.y-e.clientY);n.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?n.preventDefault():Br("track")}}function et(n,e,t){return Fo[e]?(z0(n,e,t),!0):!1}function z0(n,e,t){const r=Fo[e],i=r.deps,o=r.name;let s=n[go];s||(n[go]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(I0&&Ro(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,F0,O0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&_d(n,r.touchAction)}function Uo(n){Dt.push(n),n.emits.forEach(e=>{Fo[e]=n})}function $0(n){for(let e=0,t;e<Dt.length;e++){t=Dt[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===n)return t}return null}function _d(n,e){fd&&n instanceof HTMLElement&&w0.run(()=>{n.style.touchAction=e}),n[bo]=e}function zo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,P0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Br(n){const e=$0(n);e.info&&(e.info.prevent=!0)}Uo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=bt(n),t=this,r=o=>{Bt(o)||(vn("up",e,o),Kt(t.info))},i=o=>{Bt(o)&&vn("up",e,o),Kt(t.info)};pd(this.info,r,i),vn("down",e,n)},touchstart(n){vn("down",bt(n),n.changedTouches[0],n)},touchend(n){vn("up",bt(n),n.changedTouches[0],n)}});function vn(n,e,t,r){e&&zo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Br(i)}})}Uo({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(n){this.moves.length>S0&&this.moves.shift(),this.moves.push(n)},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,Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=bt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;da(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Br("tap"),t.info.addMove({x:s,y:a}),Bt(o)||(t.info.state="end",Kt(t.info)),e&&Bi(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Kt(t.info)};pd(this.info,r,i),this.info.x=n.clientX,this.info.y=n.clientY},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(n){const e=bt(n),t=n.changedTouches[0],r=t.clientX,i=t.clientY;da(this.info,r,i)&&(this.info.state==="start"&&Br("tap"),this.info.addMove({x:r,y:i}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(n){const e=bt(n),t=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function da(n,e,t){if(n.prevent)return!1;if(n.started)return!0;const r=Math.abs(n.x-e),i=Math.abs(n.y-t);return r>=ua||i>=ua}function Bi(n,e,t){if(!e)return;const r=n.moves[n.moves.length-2],i=n.moves[n.moves.length-1],o=i.x-n.x,s=i.y-n.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),zo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return R0(t.clientX,t.clientY)}})}Uo({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(n){Bt(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Bt(n)&&ca(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){ca(this.info,n.changedTouches[0],n)}});function ca(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=bt(t||e);!o||N0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=la&&i<=la||L0(e))&&(n.prevent||zo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
2934
+ */const S0=n=>n,pd=typeof document.head.style.touchAction=="string",vo="__polymerGestures",Oi="__polymerGesturesHandled",yo="__polymerGesturesTouchAction",ua=25,da=5,k0=2,D0=["mousedown","mousemove","mouseup","click"],M0=[0,1,4,2],B0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Uo(n){return D0.indexOf(n)>-1}let O0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){O0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function I0(n){Uo(n)}const N0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),L0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Bt(n){const e=n.type;if(!Uo(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!B0&&(r=M0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function H0(n){if(n.type==="click"){if(n.detail===0)return!0;const e=vt(n);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=n.pageX,i=n.pageY;return!(r>=t.left&&r<=t.right&&i>=t.top&&i<=t.bottom)}return!1}const ot={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function R0(n){let e="auto";const t=_d(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[yo]){e=i[yo];break}return e}function md(n,e,t){n.movefn=e,n.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Kt(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const _d=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],zo={},Dt=[];function F0(n,e){let t=document.elementFromPoint(n,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const i=r;if(r=r.shadowRoot.elementFromPoint(n,e),i===r)break;r&&(t=r)}return t}function vt(n){const e=_d(n);return e.length>0?e[0]:n.target}function U0(n){const e=n.type,r=n.currentTarget[vo];if(!r)return;const i=r[e];if(!i)return;if(!n[Oi]&&(n[Oi]={},e.startsWith("touch"))){const s=n.changedTouches[0];if(e==="touchstart"&&n.touches.length===1&&(ot.touch.id=s.identifier),ot.touch.id!==s.identifier)return;pd||(e==="touchstart"||e==="touchmove")&&z0(n)}const o=n[Oi];if(!o.skip){for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(n.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Dt.length;s++)a=Dt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](n))}}function z0(n){const e=n.changedTouches[0],t=n.type;if(t==="touchstart")ot.touch.x=e.clientX,ot.touch.y=e.clientY,ot.touch.scrollDecided=!1;else if(t==="touchmove"){if(ot.touch.scrollDecided)return;ot.touch.scrollDecided=!0;const r=R0(n);let i=!1;const o=Math.abs(ot.touch.x-e.clientX),s=Math.abs(ot.touch.y-e.clientY);n.cancelable&&(r==="none"?i=!0:r==="pan-x"?i=s>o:r==="pan-y"&&(i=o>s)),i?n.preventDefault():Ir("track")}}function et(n,e,t){return zo[e]?($0(n,e,t),!0):!1}function $0(n,e,t){const r=zo[e],i=r.deps,o=r.name;let s=n[vo];s||(n[vo]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(N0&&Uo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,U0,I0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&gd(n,r.touchAction)}function $o(n){Dt.push(n),n.emits.forEach(e=>{zo[e]=n})}function V0(n){for(let e=0,t;e<Dt.length;e++){t=Dt[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===n)return t}return null}function gd(n,e){pd&&n instanceof HTMLElement&&C0.run(()=>{n.style.touchAction=e}),n[yo]=e}function Vo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,S0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Ir(n){const e=V0(n);e.info&&(e.info.prevent=!0)}$o({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=vt(n),t=this,r=o=>{Bt(o)||(yn("up",e,o),Kt(t.info))},i=o=>{Bt(o)&&yn("up",e,o),Kt(t.info)};md(this.info,r,i),yn("down",e,n)},touchstart(n){yn("down",vt(n),n.changedTouches[0],n)},touchend(n){yn("up",vt(n),n.changedTouches[0],n)}});function yn(n,e,t,r){e&&Vo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Ir(i)}})}$o({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(n){this.moves.length>k0&&this.moves.shift(),this.moves.push(n)},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,Kt(this.info)},mousedown(n){if(!Bt(n))return;const e=vt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;ca(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Ir("tap"),t.info.addMove({x:s,y:a}),Bt(o)||(t.info.state="end",Kt(t.info)),e&&Ii(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Kt(t.info)};md(this.info,r,i),this.info.x=n.clientX,this.info.y=n.clientY},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(n){const e=vt(n),t=n.changedTouches[0],r=t.clientX,i=t.clientY;ca(this.info,r,i)&&(this.info.state==="start"&&Ir("tap"),this.info.addMove({x:r,y:i}),Ii(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(n){const e=vt(n),t=n.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ii(this.info,e,t))}});function ca(n,e,t){if(n.prevent)return!1;if(n.started)return!0;const r=Math.abs(n.x-e),i=Math.abs(n.y-t);return r>=da||i>=da}function Ii(n,e,t){if(!e)return;const r=n.moves[n.moves.length-2],i=n.moves[n.moves.length-1],o=i.x-n.x,s=i.y-n.y;let a,l=0;r&&(a=i.x-r.x,l=i.y-r.y),Vo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return F0(t.clientX,t.clientY)}})}$o({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(n){Bt(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Bt(n)&&ha(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){ha(this.info,n.changedTouches[0],n)}});function ha(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=vt(t||e);!o||L0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=ua&&i<=ua||H0(e))&&(n.prevent||Vo(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
2935
2935
  * @license
2936
2936
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2937
2937
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2938
- */const gd=Be(n=>class extends n{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2938
+ */const bd=Be(n=>class extends n{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2939
2939
  * @license
2940
2940
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2941
2941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2942
- */const ei=Be(n=>class extends n{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2942
+ */const ni=Be(n=>class extends n{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}});/**
2943
2943
  * @license
2944
2944
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2945
2945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2946
- */const V0=n=>class extends gd(ei(n)){get _activeKeys(){return[" "]}ready(){super.ready(),et(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),et(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2946
+ */const W0=n=>class extends bd(ni(n)){get _activeKeys(){return[" "]}ready(){super.ready(),et(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),et(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}};/**
2947
2947
  * @license
2948
2948
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2949
2949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2950
- */const $o=Be(n=>class extends n{get _keyboardActive(){return Lo()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2950
+ */const Wo=Be(n=>class extends n{get _keyboardActive(){return Ro()}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}});/**
2951
2951
  * @license
2952
2952
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2953
2953
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2954
- */const bd=n=>class extends gd(n){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2954
+ */const vd=n=>class extends bd(n){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,r){super._disabledChanged(t,r),t?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&t!==-1&&(this._lastTabIndex=t,this.tabindex=-1)}};/**
2955
2955
  * @license
2956
2956
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2957
2957
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2958
- */const W0=n=>class extends V0(bd($o(n))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2958
+ */const j0=n=>class extends W0(vd(Wo(n))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),!(t.altKey||t.shiftKey||t.ctrlKey||t.metaKey)&&this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}};/**
2959
2959
  * @license
2960
2960
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2961
2961
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2962
- */De("vaadin-button",A0,{moduleId:"vaadin-button-styles"});class j0 extends W0(dd(Nt(cn(yt)))){static get is(){return"vaadin-button"}static get template(){return T0(Ht)}ready(){super.ready(),this._tooltipController=new hd(this),this.addController(this._tooltipController)}}rt(j0);/**
2962
+ */De("vaadin-button",T0,{moduleId:"vaadin-button-styles"});class G0 extends j0(cd(Nt(cn(wt)))){static get is(){return"vaadin-button"}static get template(){return P0(Ht)}ready(){super.ready(),this._tooltipController=new fd(this),this.addController(this._tooltipController)}}rt(G0);/**
2963
2963
  * @license
2964
2964
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2965
2965
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2966
- */function G0(n){let e=n.getDay();e===0&&(e=7);const t=4-e,r=new Date(n.getTime()+t*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function vo(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function lt(n,e,t=vo){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function Vo(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function sn(n,e,t,r){let i=!1;if(typeof r=="function"&&n){const o=Vo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function vd(n,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const i=Math.abs(n.getTime()-r.getTime()),o=Math.abs(t.getTime()-n.getTime());return i<o?r:t})}function yd(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function Y0(n,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(n.getFullYear()/100)*100;return n<new Date(i-50,t,r)?i-=100:n>new Date(i+50,t,r)&&(i+=100),i}function yn(n){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(n);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function q0(n){const e=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",i=n.year;i<0?(i=-i,t="-",r="000000"):n.year>=1e4&&(t="+",r="000000");const o=t+e(i,r),s=e(n.month+1),a=e(n.day);return[o,s,a].join("-")}function X0(n){return n instanceof Date?q0({year:n.getFullYear(),month:n.getMonth(),day:n.getDate()}):""}/**
2966
+ */function Y0(n){let e=n.getDay();e===0&&(e=7);const t=4-e,r=new Date(n.getTime()+t*24*3600*1e3),i=new Date(0,0);i.setFullYear(r.getFullYear());const o=r.getTime()-i.getTime(),s=Math.round(o/(24*3600*1e3));return Math.floor(s/7+1)}function wo(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function lt(n,e,t=wo){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function jo(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function sn(n,e,t,r){let i=!1;if(typeof r=="function"&&n){const o=jo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function yd(n,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const i=Math.abs(n.getTime()-r.getTime()),o=Math.abs(t.getTime()-n.getTime());return i<o?r:t})}function wd(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function q0(n,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let i=e+Math.floor(n.getFullYear()/100)*100;return n<new Date(i-50,t,r)?i-=100:n>new Date(i+50,t,r)&&(i+=100),i}function wn(n){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(n);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function X0(n){const e=(l,u="00")=>(u+l).substr((u+l).length-u.length);let t="",r="0000",i=n.year;i<0?(i=-i,t="-",r="000000"):n.year>=1e4&&(t="+",r="000000");const o=t+e(i,r),s=e(n.month+1),a=e(n.day);return[o,s,a].join("-")}function Z0(n){return n instanceof Date?X0({year:n.getFullYear(),month:n.getMonth(),day:n.getDate()}):""}/**
2967
2967
  @license
2968
2968
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2969
2969
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2971,7 +2971,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2971
2971
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2972
2972
  Code distributed by Google as part of the polymer project is also
2973
2973
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2974
- */class Or{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Fn.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fn.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(e,t,r){return e instanceof Or?e._cancelAsync():e=new Or,e.setConfig(t,r),e}}let Fn=new Set;const Z0=function(n){Fn.add(n)},K0=function(){const n=!!Fn.size;return Fn.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};/**
2974
+ */class Nr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Un.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Un.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(e,t,r){return e instanceof Nr?e._cancelAsync():e=new Nr,e.setConfig(t,r),e}}let Un=new Set;const K0=function(n){Un.add(n)},J0=function(){const n=!!Un.size;return Un.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};/**
2975
2975
  @license
2976
2976
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2977
2977
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2979,11 +2979,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2979
2979
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2980
2980
  Code distributed by Google as part of the polymer project is also
2981
2981
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2982
- */const Wo=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=K0();while(n||e)};/**
2982
+ */const Go=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=J0();while(n||e)};/**
2983
2983
  * @license
2984
2984
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2985
2985
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2986
- */const wd=document.createElement("template");wd.innerHTML=`
2986
+ */const Cd=document.createElement("template");Cd.innerHTML=`
2987
2987
  <style>
2988
2988
  :host {
2989
2989
  display: block;
@@ -3033,11 +3033,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3033
3033
  <div class="buffer"></div>
3034
3034
  <div id="fullHeight"></div>
3035
3035
  </div>
3036
- `;class Cd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(wd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),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()),Wo()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,i=e<this._buffers[0].translateY+t;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=on.debounce(this._debouncerScrollFinish,Mr.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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=on.debounce(this._debouncerUpdateClones,Mr.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${cd()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,t.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3036
+ `;class Ed extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Cd.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),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()),Go()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,i=e<this._buffers[0].translateY+t;(r||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=on.debounce(this._debouncerScrollFinish,Or.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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=on.debounce(this._debouncerUpdateClones,Or.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${hd()}`,s=document.createElement("slot");s.setAttribute("name",o),s._itemWrapper=i,t.appendChild(s),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,e)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,i)=>{if(!r.updated){const o=this._firstIndex+this.bufferSize*i;[...r.children].forEach((s,a)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,o+a)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3037
3037
  * @license
3038
3038
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3040
- */const Ed=document.createElement("template");Ed.innerHTML=`
3040
+ */const xd=document.createElement("template");xd.innerHTML=`
3041
3041
  <style>
3042
3042
  :host {
3043
3043
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3049,11 +3049,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3049
3049
  height: 100%;
3050
3050
  }
3051
3051
  </style>
3052
- `;class J0 extends Cd{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ed.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=yd(t)}}rt(J0);/**
3052
+ `;class Q0 extends Ed{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(xd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=wd(t)}}rt(Q0);/**
3053
3053
  * @license
3054
3054
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3055
3055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3056
- */const xd=document.createElement("template");xd.innerHTML=`
3056
+ */const Ad=document.createElement("template");Ad.innerHTML=`
3057
3057
  <style>
3058
3058
  :host {
3059
3059
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3087,15 +3087,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3087
3087
  border-left-color: #000;
3088
3088
  }
3089
3089
  </style>
3090
- `;class Q0 extends Cd{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(xd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}rt(Q0);/**
3090
+ `;class eg extends Ed{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ad.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}rt(eg);/**
3091
3091
  * @license
3092
3092
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3093
3093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3094
- */const eg=n=>class extends n{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3094
+ */const tg=n=>class extends n{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}};/**
3095
3095
  * @license
3096
3096
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3097
3097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3098
- */class tg extends Nt(eg(yt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ht`
3098
+ */class ng extends Nt(tg(wt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ht`
3099
3099
  <style>
3100
3100
  :host {
3101
3101
  display: block;
@@ -3104,7 +3104,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3104
3104
  </style>
3105
3105
  <div part="year-number">[[year]]</div>
3106
3106
  <div part="year-separator" aria-hidden="true"></div>
3107
- `}}rt(tg);/**
3107
+ `}}rt(ng);/**
3108
3108
  @license
3109
3109
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3110
3110
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3112,7 +3112,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3112
3112
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3113
3113
  Code distributed by Google as part of the polymer project is also
3114
3114
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3115
- */function jo(n,e,t,r,i){let o;i&&(o=typeof t=="object"&&t!==null,o&&(r=n.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return o&&s&&(n.__dataTemp[e]=t),s}const Go=Be(n=>{class e extends n{_shouldPropertyChange(r,i,o){return jo(this,r,i,o,!0)}}return e}),ng=Be(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return jo(this,r,i,o,this.mutableData)}}return e});Go._mutablePropertyChange=jo;/**
3115
+ */function Yo(n,e,t,r,i){let o;i&&(o=typeof t=="object"&&t!==null,o&&(r=n.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return o&&s&&(n.__dataTemp[e]=t),s}const qo=Be(n=>{class e extends n{_shouldPropertyChange(r,i,o){return Yo(this,r,i,o,!0)}}return e}),rg=Be(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Yo(this,r,i,o,this.mutableData)}}return e});qo._mutablePropertyChange=Yo;/**
3116
3116
  @license
3117
3117
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3118
3118
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3120,7 +3120,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3120
3120
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3121
3121
  Code distributed by Google as part of the polymer project is also
3122
3122
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3123
- */let yo=null;function wo(){return yo}wo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wo,writable:!0}});const Ad=Io(wo),rg=Go(Ad);function ig(n,e){yo=n,Object.setPrototypeOf(n,e.prototype),new e,yo=null}const og=Io(class{});function sg(n,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!n!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)n?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(n)r.__polymerReplaced__=document.createComment("hidden-slot"),Le(Le(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Le(Le(i).parentNode).replaceChild(r,i)}else r.style&&(n?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=n,r._showHideChildren&&r._showHideChildren(n)}}class wt extends og{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let i=this.root.firstChild;i;i=i.nextSibling)t.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,r)}}_showHideChildren(e){sg(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}wt.prototype.__dataHost;wt.prototype.__templatizeOptions;wt.prototype._methodHost;wt.prototype.__templatizeOwner;wt.prototype.__hostProps;const ag=Go(wt);function ha(n){let e=n.__dataHost;return e&&e._methodHost||e}function lg(n,e,t){let r=t.mutableData?ag:wt;Co.mixin&&(r=Co.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),cg(i,n,e,t),i}function ug(n,e,t,r){let i=t.forwardHostProp;if(i&&e.hasHostProps){const o=n.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(o){let l=t.mutableData?rg:Ad;class u extends l{}s=e.templatizeTemplateClass=u}else{const l=n.constructor;class u extends l{}s=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:dg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Du&&r&&pg(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)ig(n,s),n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in n){const u=n[l];delete n[l],n.__data[l]=u}}}}function dg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function cg(n,e,t,r){let i=t.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hg(o,s)})}if(r.forwardHostProp&&e.__dataHost)for(let o in i)t.hasHostProps||(t.hasHostProps=!0),n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fg()})}function hg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function fg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function Co(n,e,t){if(kr&&!ha(n))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},n.__templatizeOwner)throw new Error("A <template> can only be templatized once");n.__templatizeOwner=e;let i=(e?e.constructor:wt)._parseTemplate(n),o=i.templatizeInstanceClass;o||(o=lg(n,i,t),i.templatizeInstanceClass=o);const s=ha(n);ug(n,i,t,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=n,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function pg(n,e,t){const r=t.constructor._properties,{propertyEffects:i}=n,{instanceProps:o}=e;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[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 mg(n,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=n)e=t.__dataHost;else return t;else e=Le(e).parentNode;return null}/**
3123
+ */let Co=null;function Eo(){return Co}Eo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Eo,writable:!0}});const Td=Lo(Eo),ig=qo(Td);function og(n,e){Co=n,Object.setPrototypeOf(n,e.prototype),new e,Co=null}const sg=Lo(class{});function ag(n,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!n!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)n?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(n)r.__polymerReplaced__=document.createComment("hidden-slot"),Ne(Ne(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const i=r.__polymerReplaced__;i&&Ne(Ne(i).parentNode).replaceChild(r,i)}else r.style&&(n?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=n,r._showHideChildren&&r._showHideChildren(n)}}class Ct extends sg{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let i=this.root.firstChild;i;i=i.nextSibling)t.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let r in this.__hostProps)this._setPendingProperty(r,this.__dataHost["_host_"+r]);for(let r in e)this._setPendingProperty(r,e[r])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,i=>{i.model=this,r(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,r)}}_showHideChildren(e){ag(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ct.prototype.__dataHost;Ct.prototype.__templatizeOptions;Ct.prototype._methodHost;Ct.prototype.__templatizeOwner;Ct.prototype.__hostProps;const lg=qo(Ct);function fa(n){let e=n.__dataHost;return e&&e._methodHost||e}function ug(n,e,t){let r=t.mutableData?lg:Ct;xo.mixin&&(r=xo.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),hg(i,n,e,t),i}function dg(n,e,t,r){let i=t.forwardHostProp;if(i&&e.hasHostProps){const o=n.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(o){let l=t.mutableData?ig:Td;class u extends l{}s=e.templatizeTemplateClass=u}else{const l=n.constructor;class u extends l{}s=e.templatizeTemplateClass=u}let a=e.hostProps;for(let l in a)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Mu&&r&&mg(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)og(n,s),n.__dataTemp={},n.__dataPending=null,n.__dataOld=null,n._enableProperties();else{Object.setPrototypeOf(n,s.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in n){const u=n[l];delete n[l],n.__data[l]=u}}}}function cg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function hg(n,e,t,r){let i=t.hostProps||{};for(let o in r.instanceProps){delete i[o];let s=r.notifyInstanceProp;s&&n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fg(o,s)})}if(r.forwardHostProp&&e.__dataHost)for(let o in i)t.hasHostProps||(t.hasHostProps=!0),n.prototype._addPropertyEffect(o,n.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pg()})}function fg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function pg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function xo(n,e,t){if(Mr&&!fa(n))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},n.__templatizeOwner)throw new Error("A <template> can only be templatized once");n.__templatizeOwner=e;let i=(e?e.constructor:Ct)._parseTemplate(n),o=i.templatizeInstanceClass;o||(o=ug(n,i,t),i.templatizeInstanceClass=o);const s=fa(n);dg(n,i,t,s);let a=class extends o{};return a.prototype._methodHost=s,a.prototype.__dataHost=n,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function mg(n,e,t){const r=t.constructor._properties,{propertyEffects:i}=n,{instanceProps:o}=e;for(let s in i)if(!r[s]&&!(o&&o[s])){const a=i[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 _g(n,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=n)e=t.__dataHost;else return t;else e=Ne(e).parentNode;return null}/**
3124
3124
  @license
3125
3125
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3126
3126
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3128,7 +3128,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3128
3128
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3129
3129
  Code distributed by Google as part of the polymer project is also
3130
3130
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3131
- */let fa=!1;function _g(){if(ku&&!Su){if(!fa){fa=!0;const n=document.createElement("style");n.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(n)}return!0}return!1}/**
3131
+ */let pa=!1;function gg(){if(Du&&!ku){if(!pa){pa=!0;const n=document.createElement("style");n.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(n)}return!0}return!1}/**
3132
3132
  @license
3133
3133
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3134
3134
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3136,15 +3136,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3136
3136
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3137
3137
  Code distributed by Google as part of the polymer project is also
3138
3138
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3139
- */const gg=ng(yt);class pa extends gg{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:!Us,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 e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),_g()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Le(Le(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Co(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(wm(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Ln(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Or.debounce(this.__renderDebouncer,t>0?Pm.after(t):Uu,e.bind(this)),Z0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Wo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Us||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,i,o)=>this.__filterFn(e[r],i,o))),this.__sortFn&&t.sort((r,i)=>this.__sortFn(e[r],e[i])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<t;o++){let s=this.__instances[o],a=r[o],l=e[a];i[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(e){let t=this.__instances[e];const r=Le(t.root);for(let i=0;i<t.children.length;i++){let o=t.children[i];r.appendChild(o)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){const i=this.__stampInstance(e,t,r);let o=this.__instances[t+1],s=o?o.children[0]:this;return Le(Le(this).parentNode).insertBefore(i.root,s),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return mg(this.template,e)}}customElements.define(pa.is,pa);/**
3139
+ */const bg=rg(wt);class ma extends bg{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:!zs,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 e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),gg()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=Ne(Ne(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=xo(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(i,o){let s=this.__instances;for(let a=0,l;a<s.length&&(l=s[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,s){if(Cm(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=s);let l=Hn(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Nr.debounce(this.__renderDebouncer,t>0?Sm.after(t):zu,e.bind(this)),K0(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Go()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!zs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,i,o)=>this.__filterFn(e[r],i,o))),this.__sortFn&&t.sort((r,i)=>this.__sortFn(e[r],e[i])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-r,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<t;o++){let s=this.__instances[o],a=r[o],l=e[a];i[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(e){let t=this.__instances[e];const r=Ne(t.root);for(let i=0;i<t.children.length;i++){let o=t.children[i];r.appendChild(o)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=r,new this.__ctor(i)}__insertInstance(e,t,r){const i=this.__stampInstance(e,t,r);let o=this.__instances[t+1],s=o?o.children[0]:this;return Ne(Ne(this).parentNode).insertBefore(i.root,s),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),i=r.indexOf("."),o=i<0?r:r.substring(0,i);if(o==parseInt(o,10)){let s=i<0?"":r.substring(i+1);this.__handleObservedPaths(s);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(u,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return _g(this.template,e)}}customElements.define(ma.is,ma);/**
3140
3140
  * @license
3141
3141
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3142
3142
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3143
- */const bg=n=>class extends $o(n){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(t=>lt(t.date,this.focusedDate))}ready(){super.ready(),et(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,i){const o=new Date(0,0);o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===t.getMonth()&&i.getDate()-r.getDate()>=0?!1:!sn(o,r,i)&&!sn(s,r,i)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(i=>lt(i,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return lt(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=t.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(t){return t.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((i,o)=>!i&&o?o:i);return G0(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3143
+ */const vg=n=>class extends Wo(n){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(t=>lt(t.date,this.focusedDate))}ready(){super.ready(),et(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,r,i){const o=new Date(0,0);o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(1);const s=new Date(0,0);return s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()+1),s.setDate(0),r&&i&&r.getMonth()===i.getMonth()&&r.getMonth()===t.getMonth()&&i.getDate()-r.getDate()>=0?!1:!sn(o,r,i)&&!sn(s,r,i)}_getTitle(t,r){if(!(t===void 0||r===void 0))return r.formatTitle(r.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(t,r){t.setDate(t.getDate()+r)}_applyFirstDayOfWeek(t,r){if(!(t===void 0||r===void 0))return t.slice(r).concat(t.slice(0,r))}_getWeekDayNames(t,r){if(t===void 0||r===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:s}=t,a=this._applyFirstDayOfWeek(o,s);return this._applyFirstDayOfWeek(i,s).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(t,r){Array.isArray(r)&&r.some(i=>lt(i,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,r){return t&&r&&r.firstDayOfWeek===1}_isToday(t){return lt(new Date,t)}_getDays(t,r){if(t===void 0||r===void 0)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==r.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],s=i.getMonth(),a=t.getMonth();for(;i.getMonth()===a||i.getMonth()===s;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(t){return t.reduce((r,i,o)=>(o%7===0&&r.push([]),r[r.length-1].push(i),r),[])}_handleTap(t){!this.ignoreTaps&&!this._notTapping&&t.target.date&&!t.target.hasAttribute("disabled")&&(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const r=t.reduce((i,o)=>!i&&o?o:i);return Y0(r)}__getDayAriaLabel(t){if(!t)return"";let r=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(r+=`, ${this.i18n.today}`),r}};/**
3144
3144
  * @license
3145
3145
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3146
3146
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3147
- */const vg=me`
3147
+ */const yg=me`
3148
3148
  :host {
3149
3149
  display: block;
3150
3150
  }
@@ -3204,7 +3204,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3204
3204
  * @license
3205
3205
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3206
3206
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3207
- */De("vaadin-month-calendar",vg,{moduleId:"vaadin-month-calendar-styles"});class yg extends bg(Nt(yt)){static get template(){return Ht`
3207
+ */De("vaadin-month-calendar",yg,{moduleId:"vaadin-month-calendar-styles"});class wg extends vg(Nt(wt)){static get template(){return Ht`
3208
3208
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3209
3209
  <table
3210
3210
  id="monthGrid"
@@ -3246,19 +3246,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3246
3246
  </template>
3247
3247
  </tbody>
3248
3248
  </table>
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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,o,s){const a=["date"],l=e>vo(new Date),u=e<vo(new Date);return this.__isDayDisabled(e,i,o,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!sn(e,t,r,i)}__getDayAriaDisabled(e,t,r,i){if(!(e===void 0||t===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,t,r,i))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}rt(yg);/**
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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,i,o,s){const a=["date"],l=e>wo(new Date),u=e<wo(new Date);return this.__isDayDisabled(e,i,o,s)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,r)&&a.push("selected"),this._isToday(e)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return lt(e,t)}__isDaySelected(e,t){return lt(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!sn(e,t,r,i)}__getDayAriaDisabled(e,t,r,i){if(!(e===void 0||t===void 0&&r===void 0&&i===void 0)&&this.__isDayDisabled(e,t,r,i))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}rt(wg);/**
3250
3250
  * @license
3251
3251
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3252
3252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3253
- */class Td{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3253
+ */class Pd{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3254
3254
  * @license
3255
3255
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3256
3256
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3257
- */const wg=n=>class extends n{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(t=>t.focusableDateElement).find(Boolean)}_addListeners(){_d(this.$.scrollers,"pan-y"),et(this.$.scrollers,"track",this._track.bind(this)),et(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),et(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),et(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Td(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new kt(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),et(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new kt(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),et(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new kt(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new kt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),et(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,i,o,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,r,i,o,s,a,l,u,d,c){t&&t.length&&t.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(t,r,i){t&&t.length&&t.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=on.debounce(this._debouncer,Mr.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(Vo(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const i=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return yd(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){lt(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&lt(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return ze(this,null,function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return ze(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{rd(this,()=>{Wo(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(vd(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,i){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const i=new Date(0,0);i.setFullYear(t.getFullYear()),r==="minDate"?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return sn(t,r,i,o)}_isTodayAllowed(t,r,i){return this._dateAllowed(this._getTodayMidnight(),t,r,i)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3257
+ */const Cg=n=>class extends n{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(t=>t.focusableDateElement).find(Boolean)}_addListeners(){gd(this.$.scrollers,"pan-y"),et(this.$.scrollers,"track",this._track.bind(this)),et(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),et(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),et(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Pd(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new kt(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onTodayButtonKeyDown(r)),et(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new kt(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",r=>this.__onCancelButtonKeyDown(r)),et(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,r){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,r),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new kt(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),t.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),t.addEventListener("keydown",r=>{this.__onMonthCalendarKeyDown(r)}),t.addEventListener("init-done",()=>{const r=[...this.querySelectorAll("vaadin-month-calendar")];r.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=r}),this._monthScroller=t}}))}__initYearScroller(){this.addController(new kt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),et(t,"tap",r=>{this._onYearTap(r)}),t.addEventListener("custom-scroll",()=>{this._onYearScroll()}),t.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),t.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=t}}))}__updateCancelButton(t,r){t&&(t.textContent=r&&r.cancel)}__updateTodayButton(t,r,i,o,s){t&&(t.textContent=r&&r.today,t.disabled=!this._isTodayAllowed(i,o,s))}__updateCalendars(t,r,i,o,s,a,l,u,d,c){t&&t.length&&t.forEach(h=>{h.i18n=r,h.minDate=i,h.maxDate=o,h.isDateDisabled=c,h.focusedDate=a,h.selectedDate=s,h.showWeekNumbers=l,h.ignoreTaps=u,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(t,r,i){t&&t.length&&t.forEach(o=>{o.selectedDate=r,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(t){return this._dateAllowed(t)?(this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,r=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+u,r);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,r):l&&this._scrollToPosition(i-a+1,r)}_calculateWeekScrollOffset(t){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);let i=0;for(;r.getDate()<t.getDate();)r.setDate(r.getDate()+1),r.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=on.debounce(this._debouncer,Or.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(jo(t)):i}_onTodayTap(){const t=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const i=(t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(t,r){if(this._targetPosition!==void 0){this._targetPosition=t;return}if(!r){this._monthScroller.position=t,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,d,c,h)=>(u/=h/2,u<1?c/2*u*u+d:(u-=1,-c/2*(u*(u-2)-1)+d));let s=0;const a=this._monthScroller.position,l=u=>{s||(s=u);const d=u-s;if(d<this.scrollDuration){const c=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(t,r){return Math.min(r.max,Math.max(r.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10)return;Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const r=this._translateX+t.detail.ddx;this._translateX=this._limit(r,{min:0,max:this._yearScrollerWidth})}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return wd(t).getFullYear()}_differenceInMonths(t,r){return(t.getFullYear()-r.getFullYear())*12-r.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){lt(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let r=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),r=!0;break;case"ArrowUp":this._moveFocusByDays(-7),r=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),r=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),r=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),r=!0);break;case" ":this.__toggleDate(this.focusedDate),r=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),r=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),r=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),r=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),r=!0;break;case"Tab":this._onTabKeyDown(t,"calendar");break}r&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,r){switch(t.stopPropagation(),r){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){t.key==="Tab"&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const r=this.focusableDateElement;r&&lt(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return Ue(this,null,function*(){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,r||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(t=!0){return Ue(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{id(this,()=>{Go(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(yd(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,r,i){this._dateAllowed(t,void 0,void 0,()=>!1)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?r>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,r){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),r&&i.setDate(this.focusedDate.getDate()+r),i}_moveFocusByDays(t){const r=this._getDateDiff(0,t);this._focusAllowedDate(r,t,!1)}_moveFocusByMonths(t){const r=this._getDateDiff(t),i=r.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),r.setDate(this._focusedMonthDate),r.getMonth()!==i&&r.setDate(0),this._focusAllowedDate(r,t,!0)}_moveFocusInsideMonth(t,r){const i=new Date(0,0);i.setFullYear(t.getFullYear()),r==="minDate"?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[r]):this._focusClosestDate(t)}_dateAllowed(t,r=this.minDate,i=this.maxDate,o=this.isDateDisabled){return sn(t,r,i,o)}_isTodayAllowed(t,r,i){return this._dateAllowed(this._getTodayMidnight(),t,r,i)}_getTodayMidnight(){const t=new Date,r=new Date(0,0);return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}};/**
3258
3258
  * @license
3259
3259
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3260
3260
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3261
- */const Cg=me`
3261
+ */const Eg=me`
3262
3262
  :host {
3263
3263
  display: flex;
3264
3264
  flex-direction: column;
@@ -3322,7 +3322,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3322
3322
  * @license
3323
3323
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3324
3324
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3325
- */De("vaadin-date-picker-overlay-content",Cg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Eg extends wg(cn(Nt(Kr(yt)))){static get template(){return Ht`
3325
+ */De("vaadin-date-picker-overlay-content",Eg,{moduleId:"vaadin-date-picker-overlay-content-styles"});class xg extends Cg(cn(Nt(Qr(wt)))){static get template(){return Ht`
3326
3326
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3327
3327
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3328
3328
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3342,92 +3342,92 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3342
3342
  <slot name="today-button"></slot>
3343
3343
  <slot name="cancel-button"></slot>
3344
3344
  </div>
3345
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(Eg);/**
3345
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(xg);/**
3346
3346
  * @license
3347
3347
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3348
3348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3349
- */const Pd=Be(n=>class extends $o(bd(n)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3349
+ */const Sd=Be(n=>class extends Wo(vd(n)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,r){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,r){super._disabledChanged(t,r),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){t!==void 0&&this.focusElement&&(this.focusElement.tabIndex=t,t!==-1&&(this.tabindex=void 0)),this.disabled&&t&&(t!==-1&&(this._lastTabIndex=t),this.tabindex=void 0)}});/**
3350
3350
  * @license
3351
3351
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3352
3352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3353
- */const Oi=new WeakMap;function xg(n){return Oi.has(n)||Oi.set(n,new Set),Oi.get(n)}function Ag(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Tg=Be(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=xg(t);this.slotStyles.forEach(i=>{r.has(i)||(Ag(i,t),r.add(i))})}});/**
3353
+ */const Ni=new WeakMap;function Ag(n){return Ni.has(n)||Ni.set(n,new Set),Ni.get(n)}function Tg(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Pg=Be(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=Ag(t);this.slotStyles.forEach(i=>{r.has(i)||(Tg(i,t),r.add(i))})}});/**
3354
3354
  * @license
3355
3355
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3356
3356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3357
- */const Sd=Be(n=>class extends n{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3357
+ */const kd=Be(n=>class extends n{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=t!=null?t:"")}_inputElementChanged(t,r){t?this._addInputListeners(t):r&&this._removeInputListeners(r)}_hasInputValueChanged(t,r){(t||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const r=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,r){this._toggleHasValue(this._hasValue),!(t===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(t))}_setHasInputValue(t){const r=t.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
3358
3358
  * @license
3359
3359
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3360
3360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3361
- */const Pg=n=>class extends Sd(ei(n)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),G_||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3361
+ */const Sg=n=>class extends kd(ni(n)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",t=>this._onClearButtonMouseDown(t)),this.clearElement.addEventListener("click",t=>this._onClearButtonClick(t)))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),Y_||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3362
3362
  * @license
3363
3363
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3364
3364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3365
- */const Ii=new Map;function Yo(n){return Ii.has(n)||Ii.set(n,new WeakMap),Ii.get(n)}function kd(n,e){n&&n.removeAttribute(e)}function Dd(n,e){if(!n||!e)return;const t=Yo(e);if(t.has(n))return;const r=Ho(n.getAttribute(e));t.set(n,new Set(r))}function Sg(n,e){if(!n||!e)return;const t=Yo(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):ad(n,e,Qr(r)),t.delete(n)}function Ni(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Yo(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Dd(n,e),kd(n,e)),r0(n,e,i);const l=r||Qr(a);l&&ad(n,e,l)}function kg(n,e){Dd(n,e),kd(n,e)}/**
3365
+ */const Li=new Map;function Xo(n){return Li.has(n)||Li.set(n,new WeakMap),Li.get(n)}function Dd(n,e){n&&n.removeAttribute(e)}function Md(n,e){if(!n||!e)return;const t=Xo(e);if(t.has(n))return;const r=Fo(n.getAttribute(e));t.set(n,new Set(r))}function kg(n,e){if(!n||!e)return;const t=Xo(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):ld(n,e,ti(r)),t.delete(n)}function Hi(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Xo(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Md(n,e),Dd(n,e)),i0(n,e,i);const l=r||ti(a);l&&ld(n,e,l)}function Dg(n,e){Md(n,e),Dd(n,e)}/**
3366
3366
  * @license
3367
3367
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3368
3368
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3369
- */class Dg{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(kg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Sg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Ni(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Ni(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ni(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3369
+ */class Mg{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Dg(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(kg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Hi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3370
3370
  * @license
3371
3371
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3372
3372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3373
- */const Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let lr;function Mg(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),lr=on.debounce(lr,v0,()=>{Xe.setAttribute("role","alert")})):(lr&&lr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.textContent=n},r)}/**
3373
+ */const Xe=document.createElement("div");Xe.style.position="fixed";Xe.style.clip="rect(0px, 0px, 0px, 0px)";Xe.setAttribute("aria-live","polite");document.body.appendChild(Xe);let dr;function Bg(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),dr=on.debounce(dr,y0,()=>{Xe.setAttribute("role","alert")})):(dr&&dr.cancel(),Xe.removeAttribute("role"),Xe.setAttribute("aria-live",t)),Xe.textContent="",setTimeout(()=>{Xe.textContent=n},r)}/**
3374
3374
  * @license
3375
3375
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3376
3376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3377
- */class qo extends kt{constructor(e,t,r,i={}){super(e,t,r,er(ft({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
3377
+ */class Zo extends kt{constructor(e,t,r,i={}){super(e,t,r,nr(pt({},i),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const i=r.target,o=i===this.node;r.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
3378
3378
  * @license
3379
3379
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3380
3380
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3381
- */class Bg extends qo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,i=!!(r&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i&&Mg(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
3381
+ */class Og extends Zo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,i=!!(r&&t&&t.trim()!=="");e&&(e.textContent=i?t:"",e.hidden=!i,i&&Bg(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
3382
3382
  * @license
3383
3383
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3384
3384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3385
- */class Og extends qo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3385
+ */class Ig extends Zo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3386
3386
  * @license
3387
3387
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3388
3388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3389
- */class Ig extends qo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3389
+ */class Ng extends Zo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
3390
3390
  * @license
3391
3391
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3392
3392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3393
- */const Ng=Be(n=>class extends cn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ig(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3393
+ */const Lg=Be(n=>class extends cn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Ng(this),this._labelController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-label",t.detail.hasContent)})}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}});/**
3394
3394
  * @license
3395
3395
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3396
3396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3397
- */const Md=Be(n=>class extends n{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3397
+ */const Bd=Be(n=>class extends n{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}});/**
3398
3398
  * @license
3399
3399
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3400
3400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3401
- */const Lg=n=>class extends Md(Ng(cn(n))){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 Dg(this),this._helperController=new Og(this),this._errorController=new Bg(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3401
+ */const Hg=n=>class extends Bd(Lg(cn(n))){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 Mg(this),this._helperController=new Ig(this),this._errorController=new Og(this),this._errorController.addEventListener("slot-content-changed",t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.__labelChanged(r,i)}),this._helperController.addEventListener("slot-content-changed",t=>{const{hasContent:r,node:i}=t.detail;this.toggleAttribute("has-helper",r),this.__helperChanged(r,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,r){t?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,r){t?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout(()=>{if(t){const r=this._errorNode;this._fieldAriaController.setErrorId(r&&r.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3402
3402
  * @license
3403
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3405
- */const Hg=Be(n=>class extends n{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,t[i])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,t[i])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3405
+ */const Rg=Be(n=>class extends n{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(t=>{this._delegateAttribute(t,this[t])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(t=>{this._delegateProperty(t,this[t])})}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach((r,i)=>{this._delegateAttribute(r,t[i])})}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach((r,i)=>{this._delegateProperty(r,t[i])})}_delegateAttribute(t,r){this.stateTarget&&(t==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(t,r):r?this.stateTarget.setAttribute(t,r):this.stateTarget.removeAttribute(t))}_delegateProperty(t,r){this.stateTarget&&(this.stateTarget[t]=r)}});/**
3406
3406
  * @license
3407
3407
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3408
3408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */const Bd=Be(n=>class extends Hg(Md(Sd(n))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3409
+ */const Od=Be(n=>class extends Rg(Bd(kd(n))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(t=>this[t]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some(r=>this.__isValidConstraint(r))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...r){if(!t)return;const i=this._hasValidConstraints(r),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return!!t||t===0}});/**
3410
3410
  * @license
3411
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3412
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const Rg=n=>class extends Tg(Pd(Bd(Lg(Pg(ei(n)))))){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 Fg=n=>class extends Pg(Sd(Od(Hg(Sg(ni(n)))))){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[`
3414
3414
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3415
3415
  font: inherit;
3416
3416
  color: inherit;
3417
3417
  }
3418
- `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=on.debounce(this._preventInputDebouncer,Mr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3418
+ `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=on.debounce(this._preventInputDebouncer,Or.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const r=t.clipboardData.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const r=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(r)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(r){console.error(r)}}};/**
3419
3419
  * @license
3420
3420
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3421
3421
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3422
- */class Fg extends kt{constructor(e,t,r={}){const{uniqueIdPrefix:i}=r;super(e,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3422
+ */class Ug extends kt{constructor(e,t,r={}){const{uniqueIdPrefix:i}=r;super(e,"input","input",{initializer:(o,s)=>{s.value&&(o.value=s.value),s.type&&o.setAttribute("type",s.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:i})}}/**
3423
3423
  * @license
3424
3424
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3425
3425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3426
- */class Ug{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
3426
+ */class zg{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
3427
3427
  * @license
3428
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const zg=me`
3430
+ */const $g=me`
3431
3431
  [part='clear-button'] {
3432
3432
  display: none;
3433
3433
  cursor: default;
@@ -3444,7 +3444,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3444
3444
  * @license
3445
3445
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3446
3446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3447
- */const $g=me`
3447
+ */const Vg=me`
3448
3448
  :host {
3449
3449
  display: inline-flex;
3450
3450
  outline: none;
@@ -3482,7 +3482,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3482
3482
  * @license
3483
3483
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3484
3484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3485
- */const Vg=me`
3485
+ */const Wg=me`
3486
3486
  [class$='container'] {
3487
3487
  display: flex;
3488
3488
  flex-direction: column;
@@ -3494,23 +3494,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3494
3494
  * @license
3495
3495
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3496
3496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3497
- */const Wg=[$g,Vg,zg];/**
3497
+ */const jg=[Vg,Wg,$g];/**
3498
3498
  * @license
3499
3499
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3500
3500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3501
- */const jg=n=>class extends n{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3501
+ */const Gg=n=>class extends n{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,r){if(!r||t===void 0)return;const{classList:i}=r;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&i.remove(...s)}const o=typeof t=="string"?t.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3502
3502
  * @license
3503
3503
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3504
3504
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3505
- */class Gg{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
3505
+ */class Yg{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
3506
3506
  * @license
3507
3507
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3508
3508
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3509
- */const Yg=n=>class extends jg(cn(Pd(Bd(ei(n))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const r=String(t.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),i=new Date;let o,s=i.getMonth(),a=i.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?yn(this.referenceDate):new Date;a=Y0(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:(t,r)=>`${t} ${r}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:id},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!Lo()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Td(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Gg(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=yn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Vo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||sn(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&&i&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,i,o,s,a){return!t||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(t){return X0(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const i=yn(t);if(t&&!i){this.value=r;return}t?lt(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,i,o,s,a,l,u,d){t&&(t.i18n=r,t.label=i,t.minDate=o,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=d)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const i=t.focusedDate||r;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[o,t];this.__showOthers=od(s)}_getInitialPosition(){const t=yn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||sn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?vd(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,lt(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return yn(t)}};/**
3509
+ */const qg=n=>class extends Gg(cn(Sd(Od(ni(n))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const r=String(t.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[t.month+1,t.day,r].join("/")},parseDate(t){const r=t.split("/"),i=new Date;let o,s=i.getMonth(),a=i.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?wn(this.referenceDate):new Date;a=q0(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:(t,r)=>`${t} ${r}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:od},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!Ro()&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Pd(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Yg(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const r=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(r),this._overlayContent=r,r.addEventListener("close",()=>{this._close()}),r.addEventListener("focus-input",this._focusAndSelect.bind(this)),r.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),r.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),r.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),r.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),r.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),r.addEventListener("click",i=>i.stopPropagation())}__parseDate(t){if(!this.i18n.parseDate)return;let r=this.i18n.parseDate(t);if(r&&(r=wn(`${r.year}-${r.month+1}-${r.day}`)),r&&!isNaN(r.getTime()))return r}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(jo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||sn(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&&i&&o}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){const{relatedTarget:r}=t;return this.opened&&r!==null&&r!==document.body&&!this.contains(r)&&!this._overlayContent.contains(r)?!0:!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){const t=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(t,r,i,o,s,a){return!t||r&&(!a||s)||i&&s||!o.parseDate}_formatISO(t){return Z0(t)}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,r){t===void 0||r===void 0||(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,r){t===void 0||r===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(t)}_valueChanged(t,r){const i=wn(t);if(t&&!i){this.value=r;return}t?lt(this._selectedDate,i)||(this._selectedDate=i,r!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,r,i,o,s,a,l,u,d){t&&(t.i18n=r,t.label=i,t.minDate=o,t.maxDate=s,t.focusedDate=a,t.selectedDate=l,t.showWeekNumbers=u,t.isDateDisabled=d)}__updateOverlayContentTheme(t,r){t&&(r?t.setAttribute("theme",r):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,r){t&&t.toggleAttribute("fullscreen",r)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const t=this._overlayContent;t.reset();const r=this._getInitialPosition();t.initialPosition=r;const i=t.focusedDate||r;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?t:[o,t];this.__showOthers=sd(s)}_getInitialPosition(){const t=wn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||sn(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?yd(r,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this._inputElementValue||"",r=this.__parseDate(t);r?this.__commitDate(r):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(t){(t.target===window||!this._overlayContent.contains(t.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,r){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,r)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&[9].indexOf(t.keyCode)===-1&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(t){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(t){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,lt(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return wn(t)}};/**
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */const qg=me`
3513
+ */const Xg=me`
3514
3514
  :host([opened]) {
3515
3515
  pointer-events: auto;
3516
3516
  }
@@ -3527,7 +3527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */De("vaadin-date-picker",[Wg,qg],{moduleId:"vaadin-date-picker-styles"});class Xg extends Yg(Rg(Nt(dd(yt)))){static get is(){return"vaadin-date-picker"}static get template(){return Ht`
3530
+ */De("vaadin-date-picker",[jg,Xg],{moduleId:"vaadin-date-picker-styles"});class Zg extends qg(Fg(Nt(cd(wt)))){static get is(){return"vaadin-date-picker"}static get template(){return Ht`
3531
3531
  <div class="vaadin-date-picker-container">
3532
3532
  <div part="label">
3533
3533
  <slot name="label"></slot>
@@ -3569,9 +3569,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3569
3569
  ></vaadin-date-picker-overlay>
3570
3570
 
3571
3571
  <slot name="tooltip"></slot>
3572
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Fg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Ug(this.inputElement,this._labelController)),this._tooltipController=new hd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}rt(Xg);const oe={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},ma=[oe.ACTIVE,oe.COMPLETED,oe.CLAIMABLE],ti={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},Zg=6,Kg=3,ur={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function Jg(n){Ir(n,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function Qg(n){let e,t,r;return{c(){e=E("span"),t=D(n[0]),r=D(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){N(i,e,o),p(e,t),p(e,r)},p(i,o){o&1&&pe(t,i[0])},d(i){i&&I(e)}}}function eb(n){let e,t,r,i,o,s,a,l,u;const d=n[10].default,c=$n(d,n,n[9],null),h=c||Qg(n);return{c(){e=E("div"),t=te("svg"),r=te("circle"),i=te("circle"),s=te("circle"),a=z(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",n[5]),m(i,"stroke-dashoffset",o=n[4]()),le(i,"Completed",n[1]===oe.COMPLETED),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),le(s,"Completed",n[1]===oe.COMPLETED),m(t,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){N(f,e,b),p(e,t),p(t,r),p(t,i),n[11](i),p(t,s),p(e,a),p(e,l),h&&h.m(l,null),n[12](e),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||b&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||b&512)&&Wn(c,d,f,f[9],u?Vn(d,f[9],b,null):jn(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&I(e),n[11](null),h&&h.d(f),n[12](null)}}}let _a=64.5;function tb(n,e,t){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(_a*2),f,b;Nr(()=>()=>{});function _(v){st[v?"unshift":"push"](()=>{c=v,t(3,c)})}function C(v){st[v?"unshift":"push"](()=>{f=v,t(2,f)})}return n.$$set=v=>{"value"in v&&t(0,s=v.value),"status"in v&&t(1,a=v.status),"mbsource"in v&&t(6,l=v.mbsource),"clientstyling"in v&&t(7,u=v.clientstyling),"clientstylingurl"in v&&t(8,d=v.clientstylingurl),"$$scope"in v&&t(9,o=v.$$scope)},n.$$.update=()=>{n.$$.dirty&132&&u&&f&&jr(f,u),n.$$.dirty&260&&d&&f&&Gr(f,d),n.$$.dirty&68&&l&&f&&Yr(f,`${l}.Style`,b),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(_a*2);return s<0&&t(0,s=0),s>100&&t(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,_,C]}class nb extends Rr{constructor(e){super(),Lr(this,e,tb,eb,zn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Jg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),ue()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-progress",Hr(nb,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ga=n=>rb[n],rb={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function ib(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ob(n){var r,i,o;const e=(i=(r=n.items)!=null?r:n.bonuses)!=null?i:[],t=(o=n.total)!=null?o:0;return{list:Array.isArray(e)?e:[],total:t}}function sb(n){return typeof n=="string"&&n.trim().length>0}function ab(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function lb(n){const{limit:e,language:t,offset:r,bonusStatus:i,bonusCalendarStartDate:o,bonusCalendarEndDate:s,invalidDate:a,lastMonth:l,maxDate:u}=n,d={pagination:`limit=${e},offset=${r}`,language:t,sortOrder:"desc",expand:"freeSpin"};switch(i){case oe.COMPLETED:{const c=o!==""&&!a?o:l,h=s!==""&&!a?s:u,f=new Date(h);f.setUTCHours(23,59,59),d.startTime=new Date(c).toISOString(),d.endTime=f.toISOString(),d.type=ur.TYPES,d.status=ur.STATUS_COMPLETED;break}case oe.ACTIVE:d.type=ur.TYPES,d.status=ur.STATUS_ACTIVE;break}return d}function L(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function ub(n){Ir(n,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function ba(n,e,t){const r=n.slice();return r[81]=e[t],r[83]=t,r}function va(n,e,t){const r=n.slice();return r[84]=e[t],r}function ya(n,e,t){const r=n.slice();return r[75]=e[t],r}function wa(n,e,t){const r=n.slice();return r[78]=e[t],r}function Ca(n,e,t){const r=n.slice();return r[87]=e[t],r[89]=t,r}function Ea(n){var ee;let e,t,r,i,o,s=n[33](n[5]).indexOf("Casino")>-1,a,l=n[33](n[5]).indexOf("Sports")>-1,u,d=(n[5].name||((ee=n[5].presentation)==null?void 0:ee.name.content))+"",c,h,f,b,_,C,v,g=s&&xa(),A=l&&Aa(),y=[L("TitleIcon")],S={};for(let w=0;w<y.length;w+=1)S=k(S,y[w]);let x=[L("BonusCardRowTitle")],F={};for(let w=0;w<x.length;w+=1)F=k(F,x[w]);function j(w,O){if(w[0]===oe.ACTIVE)return cb;if(w[0]===oe.COMPLETED)return db}let G=j(n),R=G&&G(n),B=[L("BonusCardHeader")],V={};for(let w=0;w<B.length;w+=1)V=k(V,B[w]);let Q=hb(n),q=n[10]&&Ua(n);function H(w,O){return w[14]?Bb:Mb}let M=H(n),ie=M(n),_e=[L("BonusCardFooter")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardInfo")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[9]&&Xa(n),se=[L("BonusCard")],J={};for(let w=0;w<se.length;w+=1)J=k(J,se[w]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),A&&A.c(),u=z(),c=D(d),h=z(),R&&R.c(),f=z(),Q&&Q.c(),b=z(),_=E("div"),q&&q.c(),C=z(),ie.c(),v=z(),K&&K.c(),T(o,S),T(i,F),T(r,V),T(_,de),le(_,"Active",n[11]||n[12]),T(t,ae),T(e,J)},m(w,O){N(w,e,O),p(e,t),p(t,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),R&&R.m(r,null),p(t,f),Q&&Q.m(t,null),p(t,b),p(t,_),q&&q.m(_,null),p(_,C),ie.m(_,null),p(e,v),K&&K.m(e,null),n[58](e)},p(w,O){var he;O[0]&32&&(s=w[33](w[5]).indexOf("Casino")>-1),s?g||(g=xa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=w[33](w[5]).indexOf("Sports")>-1),l?A||(A=Aa(),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(w[5].name||((he=w[5].presentation)==null?void 0:he.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(w))&&R?R.p(w,O):(R&&R.d(1),R=G&&G(w),R&&(R.c(),R.m(r,null))),Q.p(w,O),w[10]?q?q.p(w,O):(q=Ua(w),q.c(),q.m(_,C)):q&&(q.d(1),q=null),M===(M=H(w))&&ie?ie.p(w,O):(ie.d(1),ie=M(w),ie&&(ie.c(),ie.m(_,null))),O[0]&6144&&le(_,"Active",w[11]||w[12]),w[9]?K?K.p(w,O):(K=Xa(w),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(w){w&&I(e),g&&g.d(),A&&A.d(),R&&R.d(),Q&&Q.d(),q&&q.d(),ie.d(),K&&K.d(),n[58](null)}}}function xa(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,b=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=te("path"),h=te("circle"),f=te("circle"),m(t,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(t,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),El(e,_)},m(C,v){N(C,e,v),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},d(C){C&&I(e)}}}function Aa(n){let e,t,r,i,o,s,a=[L("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),m(t,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(t,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),El(e,l)},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s)},d(u){u&&I(e)}}}function db(n){let e,t=n[25](`bonusCard.${n[5].status}`)+"",r,i=[L("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&t!==(t=s[25](`bonusCard.${s[5].status}`)+"")&&re(r,t,o.contenteditable)},d(s){s&&I(e)}}}function cb(n){let e,t,r,i,o,s=[L("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),t=te("svg"),r=te("path"),i=z(),o=D(n[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(t,"width","24"),m(t,"height","28"),m(t,"viewBox","0 0 24 28"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg"),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(t,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&re(o,l[18],a.contenteditable)},d(l){l&&I(e)}}}function hb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?pb:fb}let o=i(n),s=o(n),a=[L("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(n[0]===oe.ACTIVE||n[0]===oe.COMPLETED)&&Ha(n),d=[L("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),t=E("div"),s.c(),r=z(),u&&u.c(),T(t,l),T(e,c)},m(h,f){N(h,e,f),p(e,t),s.m(t,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(t,null))),h[0]===oe.ACTIVE||h[0]===oe.COMPLETED?u?u.p(h,f):(u=Ha(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&I(e),s.d(),u&&u.d()}}}function fb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,b,_,C=n[25](`bonusType.${n[5].type}`)+"",v,g,A,y,S,x,F=[L("BonusCardLabel")],j={};for(let w=0;w<F.length;w+=1)j=k(j,F[w]);function G(w,O){return w[0]===oe.ACTIVE?_b:mb}let R=G(n),B=R(n),V=[L("BonusCardRowText")],Q={};for(let w=0;w<V.length;w+=1)Q=k(Q,V[w]);let q=[L("BonusCardRow")],H={};for(let w=0;w<q.length;w+=1)H=k(H,q[w]);let M=[L("BonusCardLabel")],ie={};for(let w=0;w<M.length;w+=1)ie=k(ie,M[w]);let _e=[L("BonusCardRowText","Type")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardRow")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[5].type==="standard"&&Ta(n),se=n[5].type==="freeBet"&&Pa(n),J=n[5].type==="freeRound"&&Sa(n),ee=n[5].type==="wagering"&&Ma(n);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),B.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),b=z(),_=E("span"),v=D(C),g=z(),K&&K.c(),A=z(),se&&se.c(),y=z(),J&&J.c(),S=z(),ee&&ee.c(),x=nt(),T(t,j),T(a,Q),le(a,"StatusActive",n[0]===oe.ACTIVE),le(a,"StatusCompleted",n[0]===oe.COMPLETED),le(a,"StatusClaimable",n[0]===oe.CLAIMABLE),T(e,H),T(d,ie),T(_,de),T(u,ae)},m(w,O){N(w,e,O),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),B.m(a,null),N(w,l,O),N(w,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,v),N(w,g,O),K&&K.m(w,O),N(w,A,O),se&&se.m(w,O),N(w,y,O),J&&J.m(w,O),N(w,S,O),ee&&ee.m(w,O),N(w,x,O)},p(w,O){O[0]&33554432&&r!==(r=w[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),R===(R=G(w))&&B?B.p(w,O):(B.d(1),B=R(w),B&&(B.c(),B.m(a,null))),O[0]&1&&le(a,"StatusActive",w[0]===oe.ACTIVE),O[0]&1&&le(a,"StatusCompleted",w[0]===oe.COMPLETED),O[0]&1&&le(a,"StatusClaimable",w[0]===oe.CLAIMABLE),O[0]&33554432&&c!==(c=w[25]("bonusCard.bonusType")+"")&&re(h,c,ie.contenteditable),O[0]&33554464&&C!==(C=w[25](`bonusType.${w[5].type}`)+"")&&re(v,C,de.contenteditable),w[5].type==="standard"?K?K.p(w,O):(K=Ta(w),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null),w[5].type==="freeBet"?se?se.p(w,O):(se=Pa(w),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),w[5].type==="freeRound"?J?J.p(w,O):(J=Sa(w),J.c(),J.m(S.parentNode,S)):J&&(J.d(1),J=null),w[5].type==="wagering"?ee?ee.p(w,O):(ee=Ma(w),ee.c(),ee.m(x.parentNode,x)):ee&&(ee.d(1),ee=null)},d(w){w&&(I(e),I(l),I(u),I(g),I(A),I(y),I(S),I(x)),B.d(),K&&K.d(w),se&&se.d(w),J&&J.d(w),ee&&ee.d(w)}}}function pb(n){let e,t,r=n[25]("bonusCard.bonusType")+"",i,o,s,a,l=n[25](`bonusType.${n[5].type}`)+"",u,d,c,h,f,b,_,C,v=n[25]("bonusCard.validity")+"",g,A,y,S,x=n[32](n[5])+"",F,j,G,R,B=n[25]("bonusCard.validUntil")+"",V,Q,q,H,M=n[39](n[5].trigger.endTime)+"",ie,_e=[L("BonusCardLabel")],de={};for(let $=0;$<_e.length;$+=1)de=k(de,_e[$]);let X=[L("BonusCardRowText","Type")],ae={};for(let $=0;$<X.length;$+=1)ae=k(ae,X[$]);let K=[L("BonusCardRow")],se={};for(let $=0;$<K.length;$+=1)se=k(se,K[$]);let J=n[5].type==="standard"&&Oa(n),ee=n[5].type==="freeBet"&&Ia(n),w=n[5].type==="freeRound"&&Na(n),O=n[5].type==="wagering"&&La(n),he=[L("BonusCardLabel")],Oe={};for(let $=0;$<he.length;$+=1)Oe=k(Oe,he[$]);let Z=[L("BonusCardRowText")],W={};for(let $=0;$<Z.length;$+=1)W=k(W,Z[$]);let xe=[L("BonusCardRow")],Ce={};for(let $=0;$<xe.length;$+=1)Ce=k(Ce,xe[$]);let Ue=[L("BonusCardLabel")],ct={};for(let $=0;$<Ue.length;$+=1)ct=k(ct,Ue[$]);let ht=[L("BonusCardRowText")],Je={};for(let $=0;$<ht.length;$+=1)Je=k(Je,ht[$]);let Rt=[L("BonusCardRow")],Ct={};for(let $=0;$<Rt.length;$+=1)Ct=k(Ct,Rt[$]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),J&&J.c(),c=z(),ee&&ee.c(),h=z(),w&&w.c(),f=z(),O&&O.c(),b=z(),_=E("p"),C=E("span"),g=D(v),A=D(":"),y=z(),S=E("span"),F=D(x),j=z(),G=E("p"),R=E("span"),V=D(B),Q=D(":"),q=z(),H=E("span"),ie=D(M),T(t,de),T(a,ae),T(e,se),T(C,Oe),T(S,W),T(_,Ce),T(R,ct),T(H,Je),T(G,Ct)},m($,ve){N($,e,ve),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N($,d,ve),J&&J.m($,ve),N($,c,ve),ee&&ee.m($,ve),N($,h,ve),w&&w.m($,ve),N($,f,ve),O&&O.m($,ve),N($,b,ve),N($,_,ve),p(_,C),p(C,g),p(C,A),p(_,y),p(_,S),p(S,F),N($,j,ve),N($,G,ve),p(G,R),p(R,V),p(R,Q),p(G,q),p(G,H),p(H,ie)},p($,ve){ve[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&re(i,r,de.contenteditable),ve[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&re(u,l,ae.contenteditable),$[5].type==="standard"?J?J.p($,ve):(J=Oa($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ee?ee.p($,ve):(ee=Ia($),ee.c(),ee.m(h.parentNode,h)):ee&&(ee.d(1),ee=null),$[5].type==="freeRound"?w?w.p($,ve):(w=Na($),w.c(),w.m(f.parentNode,f)):w&&(w.d(1),w=null),$[5].type==="wagering"?O?O.p($,ve):(O=La($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ve[0]&33554432&&v!==(v=$[25]("bonusCard.validity")+"")&&re(g,v,Oe.contenteditable),ve[0]&32&&x!==(x=$[32]($[5])+"")&&re(F,x,W.contenteditable),ve[0]&33554432&&B!==(B=$[25]("bonusCard.validUntil")+"")&&re(V,B,ct.contenteditable),ve[0]&32&&M!==(M=$[39]($[5].trigger.endTime)+"")&&re(ie,M,Je.contenteditable)},d($){$&&(I(e),I(d),I(c),I(h),I(f),I(b),I(_),I(j),I(G)),J&&J.d($),ee&&ee.d($),w&&w.d($),O&&O.d($)}}}function mb(n){let e=n[25](`bonusCard.${n[5].status}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function _b(n){let e=n[25](`bonusCard.${n[0]}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ta(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,b=n[5].amount+"",_,C,v,g,A,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,G=n[29](n[5])+n[17]+"",R,B,V=[L("BonusCardLabel")],Q={};for(let O=0;O<V.length;O+=1)Q=k(Q,V[O]);let q=[L("BonusCardRowText")],H={};for(let O=0;O<q.length;O+=1)H=k(H,q[O]);let M=[L("BonusCardRow")],ie={};for(let O=0;O<M.length;O+=1)ie=k(ie,M[O]);let _e=[L("BonusCardLabel")],de={};for(let O=0;O<_e.length;O+=1)de=k(de,_e[O]);function X(O,he){return O[5].initialWagerRequirementAmount>=2147483647?bb:gb}let ae=X(n),K=ae(n),se=[L("BonusCardRowText")],J={};for(let O=0;O<se.length;O+=1)J=k(J,se[O]);let ee=[L("BonusCardRow")],w={};for(let O=0;O<ee.length;O+=1)w=k(w,ee[O]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=D(` /
3572
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ug(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new zg(this.inputElement,this._labelController)),this._tooltipController=new fd(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",t=>t.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}rt(Zg);const oe={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},_a=[oe.ACTIVE,oe.COMPLETED,oe.CLAIMABLE],ri={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},Kg=6,Jg=3,cr={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function Qg(n){Lr(n,"svelte-dy0ryb",":host{font-family:inherit}.CircularProgress{height:100%;position:relative;width:100%}.CircularProgressLineBg{stroke:var(--emw--bonus-progress-primary, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressLine{stroke:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF));transition:0.35s stroke-dashoffset;transform:rotate(-90deg);transform-origin:50% 50%;fill:transparent}.CircularProgressLine.Completed{stroke:var(--emw--bonus-progress-bg, var(--emw--color-gray-300, #A9A9A9))}.CircularProgressCenter{fill:var(--emw--bonus-progress-primary, var(--emw--color-primary, #00AEEF))}.CircularProgressCenter.Completed{fill:var(--emw--bonus-progress-bg, var(--emw--color-gray-100, #D9D9D9))}.CircularProgressText{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);color:var(--emw--bonus-progress-text, var(--emw--color-white, #FFFFFF))}")}function eb(n){let e,t,r;return{c(){e=E("span"),t=D(n[0]),r=D(" %"),m(e,"class","CircularProgressText"),m(e,"part","CircularProgressText")},m(i,o){N(i,e,o),p(e,t),p(e,r)},p(i,o){o&1&&pe(t,i[0])},d(i){i&&I(e)}}}function tb(n){let e,t,r,i,o,s,a,l,u;const d=n[10].default,c=Vn(d,n,n[9],null),h=c||eb(n);return{c(){e=E("div"),t=te("svg"),r=te("circle"),i=te("circle"),s=te("circle"),a=z(),l=E("div"),h&&h.c(),m(r,"class","CircularProgressLineBg"),m(r,"cx","73.5"),m(r,"cy","73.5"),m(r,"r","64.5"),m(r,"fill","transparent"),m(r,"stroke-width","18"),m(i,"class","CircularProgressLine"),m(i,"cx","73.5"),m(i,"cy","73.5"),m(i,"r","64.5"),m(i,"stroke-width","18"),m(i,"stroke-dasharray",n[5]),m(i,"stroke-dashoffset",o=n[4]()),le(i,"Completed",n[1]===oe.COMPLETED),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),le(s,"Completed",n[1]===oe.COMPLETED),m(t,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,b){N(f,e,b),p(e,t),p(t,r),p(t,i),n[11](i),p(t,s),p(e,a),p(e,l),h&&h.m(l,null),n[12](e),u=!0},p(f,[b]){(!u||b&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||b&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||b&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||b&512)&&jn(c,d,f,f[9],u?Wn(d,f[9],b,null):Gn(f[9]),null):h&&h.p&&(!u||b&1)&&h.p(f,u?b:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&I(e),n[11](null),h&&h.d(f),n[12](null)}}}let ga=64.5;function nb(n,e,t){let r,{$$slots:i={},$$scope:o}=e,{value:s=0}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,c,h=Math.PI*(ga*2),f,b;Hr(()=>()=>{});function _(v){st[v?"unshift":"push"](()=>{c=v,t(3,c)})}function C(v){st[v?"unshift":"push"](()=>{f=v,t(2,f)})}return n.$$set=v=>{"value"in v&&t(0,s=v.value),"status"in v&&t(1,a=v.status),"mbsource"in v&&t(6,l=v.mbsource),"clientstyling"in v&&t(7,u=v.clientstyling),"clientstylingurl"in v&&t(8,d=v.clientstylingurl),"$$scope"in v&&t(9,o=v.$$scope)},n.$$.update=()=>{n.$$.dirty&132&&u&&f&&Yr(f,u),n.$$.dirty&260&&d&&f&&qr(f,d),n.$$.dirty&68&&l&&f&&Xr(f,`${l}.Style`,b),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(ga*2);return s<0&&t(0,s=0),s>100&&t(0,s=100),(100-s)/100*v})},[s,a,f,c,r,h,l,u,d,o,i,_,C]}class rb extends Ur{constructor(e){super(),Rr(this,e,nb,tb,$n,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},Qg)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),ue()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-progress",Fr(rb,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ba=n=>ib[n],ib={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};function ob(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function sb(n){var r,i,o;const e=(i=(r=n.items)!=null?r:n.bonuses)!=null?i:[],t=(o=n.total)!=null?o:0;return{list:Array.isArray(e)?e:[],total:t}}function ab(n){return typeof n=="string"&&n.trim().length>0}function lb(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function ub(n){const{limit:e,language:t,offset:r,bonusStatus:i,bonusCalendarStartDate:o,bonusCalendarEndDate:s,invalidDate:a,lastMonth:l,maxDate:u}=n,d={pagination:`limit=${e},offset=${r}`,language:t,sortOrder:"desc",expand:"freeSpin"};switch(i){case oe.COMPLETED:{const c=o!==""&&!a?o:l,h=s!==""&&!a?s:u,f=new Date(h);f.setUTCHours(23,59,59),d.startTime=new Date(c).toISOString(),d.endTime=f.toISOString(),d.type=cr.TYPES,d.status=cr.STATUS_COMPLETED;break}case oe.ACTIVE:d.type=cr.TYPES,d.status=cr.STATUS_ACTIVE;break}return d}function L(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function db(n){Lr(n,"svelte-eovzfn",":host{font-family:inherit}.BonusCard{background-color:#F4F4F4;padding:10px 20px 20px;border-radius:5px;font-size:18px;font-weight:500;color:var(--emw--bonus-card-text, var(--emw--color-gray-300, #6D6D6D))}.BonusCardHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D1D1D1}.BonusCardHeader:nth-child(even){background-color:var(--emw--bonus-card-bg, var(--emw--color-gray-50, #F9F8F8))}.BonusCardRow{display:flex;padding:11px 0;margin:0;align-items:center}.BonusCardLabel{flex:3}.BonusCardRowTitle{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));font-weight:700;font-size:18px;display:flex;align-items:center;text-indent:10px}.BonusCardRowTitle span{font-weight:400;color:var(--emw--bonus-card-span, var(--emw--color-primary, #00AEEF))}.BonusCardTitleSub{display:flex;font-size:16px;text-indent:10px;align-items:center;font-weight:400}.BonusCardRowText{flex:2;color:#9C9C9C;text-transform:capitalize}.BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emw--bonus-card-title, var(--emw--color-black, #000000))}.BonusCardRowText.StatusActive{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardRowText.Type{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText.StatusExpired{color:var(--emw--bonus-card-red, var(--emw--color-red, #FD2839))}.BonusCardRowText.StatusCompleted{color:var(--emw--bonus-card-yellow, var(--emw--color-yellow, #F39C12))}.BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRowText .BonusAmount{color:var(--emw--bonus-card-black, var(--emw--color-black, #000000))}.BonusCardRowText .Amount{color:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A))}.BonusCardAction{margin:20px 0 0;padding:10px 5px 0 0;display:flex;justify-content:end}.BonusCardAdditional,.BonusCardTerms{border:1px solid var(--emw--bonus-card-border, var(--emw--color-gray-100, #E6E6E6));background:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));color:var(--emw--bonus-card-black, var(--emw--color-black, #000000));padding:12px;border-radius:4px;position:relative;margin-top:10px;font-size:16px;transition:height 0.3s ease;will-change:height}.BonusCardAdditional.active,.BonusCardTerms.active{transition:height 0.3s ease}.BonusCardAdditionalTitle,.BonusCardTermsTitle{display:flex;align-items:center;text-indent:10px}.BonusCardAdditionalButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsButton{font-weight:700;font-size:30px;position:absolute;top:0;right:10px;cursor:pointer}.BonusCardTermsLink{display:flex;align-items:center;color:#000;text-indent:10px;cursor:pointer}.BonusCardJoinError{color:var(--emw--bonus-card-red, var(--emw--color-red, #FF0000));align-self:center}.BonusCardJoinCountdown{display:flex;align-items:center;text-indent:10px;font-size:16px;font-weight:400}.BonusCardJoinWrapper{display:flex;gap:30px}.BonusJoinButton{background:var(--emw--bonus-card-green, var(--emw--color-green, #53B65A));outline:5px solid var(--emw--bonus-card-green, var(--emw--color-green, rgba(83, 182, 90, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF))}.BonusJoinButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusJoinButton.ClaimBonusButtonMobile{width:100%}.BonusJoinButton:hover{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline:0}.BonusJoinButton:active{background:var(--emw--bonus-card-green, var(--emw--color-green, #25982D));outline-color:rgba(83, 182, 90, 0.6)}.BonusForfeitButton{background:var(--emw--bonus-card-red, var(--emw--color-red, #F32013));outline:5px solid var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;cursor:pointer;color:var(--emw--color-white, #FFFFFF)}.BonusForfeitButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusForfeitButton.ClaimBonusButtonMobile{width:100%}.BonusForfeitButton:hover{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline:0}.BonusForfeitButton:active{background:var(--emw--bonus-card-red, var(--emw--color-red, #C70C00));outline-color:var(--emw--bonus-card-red, var(--emw--color-red, rgba(243, 32, 19, 0.6)))}.BonusCardActionCountdown{margin-bottom:5px}.BonusCardData{display:flex}.BonusCardDataContent{flex:3;height:260px}.BonusCardFooter{height:100px}.BonusCardFooter.Active{height:auto}.BonusCardProgress{flex:1;max-width:147px;--progress-track-color:var(--emw--bonus-card-blue,var(--emw--color-blue, #00AEEF))}.BonusCardProgress .CircularProgress{display:flex;margin:15px;position:relative}.BonusCardProgress .CircularProgressText{text-align:center}.BonusActionWagering{display:flex;height:100px}.BonusWageringInfo{flex:60%}.BonusWageringButton{flex:40%}.TitleIcon{display:flex;max-width:83px;min-width:43px;height:41px}.CasinoIcon,.SportsIcon{fill:none}.BonusGamesSlider{display:flex}.SliderNavButton{border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.SliderNavButton.Hide{display:none}.Main{max-width:300px;overflow:hidden}.Games{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.Game{min-width:100px;height:75px;margin:0;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--bonus-card-green, var(--emw--color-green, #48952a));display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--bonus-card-white, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ItemHover{opacity:1}@media only screen and (max-width: 728px){.BonusCard{font-size:12px}.BonusCardRowTitle{font-size:14px}.BonusCardTitleSub{font-size:12px}.BonusCardAction,.BonusCardActionContent,.BonusForfeitButton,.BonusJoinButton{width:100%}.BonusCardAction{margin-top:10px}.TitleIcon{max-width:60px;min-width:30px;height:30px}.BonusCardAdditional,.BonusCardTerms{font-size:14px}.BonusCardProgress .CircularProgress{margin:10px 0}.BonusCardFooter{height:auto}.BonusCardDataContent{height:auto}.BonusCardJoinWrapper{flex-direction:column;gap:15px}.BonusCardJoinCountdown{font-size:12px}}")}function va(n,e,t){const r=n.slice();return r[81]=e[t],r[83]=t,r}function ya(n,e,t){const r=n.slice();return r[84]=e[t],r}function wa(n,e,t){const r=n.slice();return r[75]=e[t],r}function Ca(n,e,t){const r=n.slice();return r[78]=e[t],r}function Ea(n,e,t){const r=n.slice();return r[87]=e[t],r[89]=t,r}function xa(n){var ee;let e,t,r,i,o,s=n[33](n[5]).indexOf("Casino")>-1,a,l=n[33](n[5]).indexOf("Sports")>-1,u,d=(n[5].name||((ee=n[5].presentation)==null?void 0:ee.name.content))+"",c,h,f,b,_,C,v,g=s&&Aa(),A=l&&Ta(),y=[L("TitleIcon")],S={};for(let w=0;w<y.length;w+=1)S=k(S,y[w]);let x=[L("BonusCardRowTitle")],F={};for(let w=0;w<x.length;w+=1)F=k(F,x[w]);function j(w,O){if(w[0]===oe.ACTIVE)return hb;if(w[0]===oe.COMPLETED)return cb}let G=j(n),R=G&&G(n),B=[L("BonusCardHeader")],V={};for(let w=0;w<B.length;w+=1)V=k(V,B[w]);let Q=fb(n),q=n[10]&&za(n);function H(w,O){return w[14]?Ob:Bb}let M=H(n),ie=M(n),_e=[L("BonusCardFooter")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardInfo")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[9]&&Za(n),se=[L("BonusCard")],J={};for(let w=0;w<se.length;w+=1)J=k(J,se[w]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),A&&A.c(),u=z(),c=D(d),h=z(),R&&R.c(),f=z(),Q&&Q.c(),b=z(),_=E("div"),q&&q.c(),C=z(),ie.c(),v=z(),K&&K.c(),T(o,S),T(i,F),T(r,V),T(_,de),le(_,"Active",n[11]||n[12]),T(t,ae),T(e,J)},m(w,O){N(w,e,O),p(e,t),p(t,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),A&&A.m(o,null),p(i,u),p(i,c),p(r,h),R&&R.m(r,null),p(t,f),Q&&Q.m(t,null),p(t,b),p(t,_),q&&q.m(_,null),p(_,C),ie.m(_,null),p(e,v),K&&K.m(e,null),n[58](e)},p(w,O){var he;O[0]&32&&(s=w[33](w[5]).indexOf("Casino")>-1),s?g||(g=Aa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),O[0]&32&&(l=w[33](w[5]).indexOf("Sports")>-1),l?A||(A=Ta(),A.c(),A.m(o,null)):A&&(A.d(1),A=null),O[0]&32&&d!==(d=(w[5].name||((he=w[5].presentation)==null?void 0:he.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(w))&&R?R.p(w,O):(R&&R.d(1),R=G&&G(w),R&&(R.c(),R.m(r,null))),Q.p(w,O),w[10]?q?q.p(w,O):(q=za(w),q.c(),q.m(_,C)):q&&(q.d(1),q=null),M===(M=H(w))&&ie?ie.p(w,O):(ie.d(1),ie=M(w),ie&&(ie.c(),ie.m(_,null))),O[0]&6144&&le(_,"Active",w[11]||w[12]),w[9]?K?K.p(w,O):(K=Za(w),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(w){w&&I(e),g&&g.d(),A&&A.d(),R&&R.d(),Q&&Q.d(),q&&q.d(),ie.d(),K&&K.d(),n[58](null)}}}function Aa(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,b=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=te("path"),h=te("circle"),f=te("circle"),m(t,"d","M21.2942 0V5.23421C24.916 5.42484 28.1964 6.86246 30.7301 9.14994L34.4393 5.44072C30.9525 2.22394 26.3616 0.190624 21.2942 0Z"),m(t,"fill","black"),m(r,"d","M30.7301 31.8501C28.2043 34.1296 24.916 35.5752 21.2942 35.7658V41C26.3616 40.8094 30.9525 38.7761 34.4313 35.5593L30.7221 31.8501H30.7301Z"),m(r,"fill","black"),m(i,"d","M35.7658 21.2943C35.5752 24.9162 34.1376 28.1965 31.8501 30.7302L35.5593 34.4394C38.7761 30.9605 40.8094 26.3697 41 21.3023H35.7658V21.2943Z"),m(i,"fill","black"),m(o,"d","M19.7056 35.7658C16.0838 35.5752 12.8035 34.1376 10.2698 31.8501L6.56055 35.5593C10.0394 38.7761 14.6382 40.8094 19.6977 41V35.7658H19.7056Z"),m(o,"fill","black"),m(s,"d","M31.8501 10.2698C34.1296 12.7955 35.5752 16.0838 35.7658 19.7056H41C40.8094 14.6382 38.7761 10.0474 35.5593 6.56848L31.8501 10.2777V10.2698Z"),m(s,"fill","black"),m(a,"d","M19.7058 0C14.6383 0.190624 10.0395 2.22394 6.5686 5.44072L10.2778 9.14994C12.8036 6.8704 16.0918 5.42484 19.7137 5.23421V0H19.7058Z"),m(a,"fill","black"),m(l,"d","M9.14994 30.7302C6.8704 28.2044 5.42484 24.9162 5.23421 21.2943H0C0.190624 26.3617 2.22394 30.9526 5.44072 34.4315L9.14994 30.7222V30.7302Z"),m(l,"fill","black"),m(u,"d","M5.23421 19.7058C5.42484 16.0839 6.86246 12.8036 9.14994 10.2699L5.44072 6.56067C2.22394 10.0475 0.190624 14.6384 0 19.7058H5.23421Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M20.5 31.825C26.7547 31.825 31.825 26.7547 31.825 20.5C31.825 14.2454 26.7547 9.17505 20.5 9.17505C14.2454 9.17505 9.17505 14.2454 9.17505 20.5C9.17505 26.7547 14.2454 31.825 20.5 31.825ZM20.5 33.825C27.8592 33.825 33.825 27.8592 33.825 20.5C33.825 13.1409 27.8592 7.17505 20.5 7.17505C13.1409 7.17505 7.17505 13.1409 7.17505 20.5C7.17505 27.8592 13.1409 33.825 20.5 33.825Z"),m(d,"fill","black"),m(c,"d","M21.6173 27.6413V28.7H19.3741V27.6413C17.3997 27.3092 16.3999 26.0428 16.3999 24.0707V23.0742H18.996V24.216C18.996 25.254 19.5421 25.6276 20.4159 25.6276C21.2897 25.6276 21.8358 25.254 21.8358 24.216C21.8442 21.2266 16.4755 21.0813 16.4755 16.9294C16.4755 14.978 17.4501 13.7325 19.3741 13.3795V12.3H21.6173V13.3795C23.5665 13.7117 24.5663 14.9573 24.5663 16.9294V17.3861H21.9702V16.7841C21.9702 15.7461 21.4745 15.3517 20.6007 15.3517C19.727 15.3517 19.2313 15.7461 19.2313 16.7841C19.2313 19.7735 24.5999 19.9188 24.5999 24.0707C24.5999 26.0428 23.5749 27.3092 21.6257 27.6413H21.6173Z"),m(c,"fill","black"),m(h,"cx","28.1874"),m(h,"cy","21.0125"),m(h,"r","1.5375"),m(h,"fill","black"),m(f,"cx","12.8124"),m(f,"cy","21.0125"),m(f,"r","1.5375"),m(f,"fill","black"),xl(e,_)},m(C,v){N(C,e,v),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s),p(e,a),p(e,l),p(e,u),p(e,d),p(e,c),p(e,h),p(e,f)},d(C){C&&I(e)}}}function Ta(n){let e,t,r,i,o,s,a=[L("SportsIcon"),{viewBox:"0 0 43 40"}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=te("svg"),t=te("path"),r=te("path"),i=te("path"),o=te("path"),s=te("path"),m(t,"d","M23 0C11.9555 0 3 8.95539 3 20C3 31.0446 11.9555 40 23 40C34.0454 40 43 31.0444 43 20C43 8.95558 34.0452 0 23 0ZM26.9568 37.9018C25.6574 38.1573 24.0408 38.3044 22.7261 38.3297C21.4806 38.3119 20.2402 38.1672 19.0241 37.8977C18.8058 37.8415 18.5877 37.7846 18.3698 37.7268L16.022 31.435L17.911 27.6923H28.0892L28.144 27.7958L30.0037 31.5315L27.7327 37.7125C27.4755 37.7813 27.2168 37.8444 26.9568 37.9018ZM16.6133 2.81538L22.1346 6.59385V12.1849L15.308 17.9606L10.5577 15.7962L10.157 15.6136L8.00971 9.45788C10.126 6.4575 13.1191 4.11827 16.6133 2.81538ZM37.9581 9.42952L35.8012 15.6298L30.6096 17.9748L23.7692 12.1849V6.59385L29.3073 2.80394C32.8037 4.10039 35.8366 6.43394 37.9581 9.42952ZM4.74462 21.6744L9.91346 17.2015L14.6768 19.3745L14.7306 19.399L16.6265 26.8305L14.6618 30.5352L7.94452 30.4472C6.18029 27.9126 5.03933 24.9139 4.74462 21.6744ZM31.3384 30.5351L29.3736 26.8304L31.2728 19.3865L36.0802 17.1961L41.2554 21.6744C40.9607 24.9139 39.8196 27.9126 38.0557 30.4471L31.3384 30.5351Z"),m(t,"fill","black"),m(r,"fill-rule","evenodd"),m(r,"clip-rule","evenodd"),m(r,"d","M23 39C23 39.5523 22.5523 40 22 40L6 40C5.44772 40 5 39.5523 5 39C5 38.4477 5.44772 38 6 38L22 38C22.5523 38 23 38.4477 23 39Z"),m(r,"fill","black"),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M9 36C9 36.5523 8.55228 37 8 37L1 37C0.447715 37 -3.91405e-08 36.5523 -8.74228e-08 36C-1.35705e-07 35.4477 0.447715 35 1 35L8 35C8.55228 35 9 35.4477 9 36Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M3 39C3 39.5523 2.55228 40 2 40L1 40C0.447715 40 3.91405e-08 39.5523 8.74228e-08 39C1.35705e-07 38.4477 0.447715 38 1 38L2 38C2.55228 38 3 38.4477 3 39Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M23 38C32.9411 38 41 29.9411 41 20C41 10.0589 32.9411 2 23 2C13.0589 2 5 10.0589 5 20C5 29.9411 13.0589 38 23 38ZM23 40C34.0457 40 43 31.0457 43 20C43 8.9543 34.0457 0 23 0C11.9543 0 3 8.9543 3 20C3 31.0457 11.9543 40 23 40Z"),m(s,"fill","black"),xl(e,l)},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),p(e,o),p(e,s)},d(u){u&&I(e)}}}function cb(n){let e,t=n[25](`bonusCard.${n[5].status}`)+"",r,i=[L("BonusCardTitleSub")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("p"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554464&&t!==(t=s[25](`bonusCard.${s[5].status}`)+"")&&re(r,t,o.contenteditable)},d(s){s&&I(e)}}}function hb(n){let e,t,r,i,o,s=[L("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("span"),t=te("svg"),r=te("path"),i=z(),o=D(n[18]),m(r,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(r,"fill","#6D6D6D"),m(t,"width","24"),m(t,"height","28"),m(t,"viewBox","0 0 24 28"),m(t,"fill","none"),m(t,"xmlns","http://www.w3.org/2000/svg"),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(t,r),p(e,i),p(e,o)},p(l,u){u[0]&262144&&re(o,l[18],a.contenteditable)},d(l){l&&I(e)}}}function fb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?mb:pb}let o=i(n),s=o(n),a=[L("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=k(l,a[h]);let u=(n[0]===oe.ACTIVE||n[0]===oe.COMPLETED)&&Ra(n),d=[L("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=k(c,d[h]);return{c(){e=E("div"),t=E("div"),s.c(),r=z(),u&&u.c(),T(t,l),T(e,c)},m(h,f){N(h,e,f),p(e,t),s.m(t,null),p(e,r),u&&u.m(e,null)},p(h,f){o===(o=i(h))&&s?s.p(h,f):(s.d(1),s=o(h),s&&(s.c(),s.m(t,null))),h[0]===oe.ACTIVE||h[0]===oe.COMPLETED?u?u.p(h,f):(u=Ra(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&I(e),s.d(),u&&u.d()}}}function pb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,b,_,C=n[25](`bonusType.${n[5].type}`)+"",v,g,A,y,S,x,F=[L("BonusCardLabel")],j={};for(let w=0;w<F.length;w+=1)j=k(j,F[w]);function G(w,O){return w[0]===oe.ACTIVE?gb:_b}let R=G(n),B=R(n),V=[L("BonusCardRowText")],Q={};for(let w=0;w<V.length;w+=1)Q=k(Q,V[w]);let q=[L("BonusCardRow")],H={};for(let w=0;w<q.length;w+=1)H=k(H,q[w]);let M=[L("BonusCardLabel")],ie={};for(let w=0;w<M.length;w+=1)ie=k(ie,M[w]);let _e=[L("BonusCardRowText","Type")],de={};for(let w=0;w<_e.length;w+=1)de=k(de,_e[w]);let X=[L("BonusCardRow")],ae={};for(let w=0;w<X.length;w+=1)ae=k(ae,X[w]);let K=n[5].type==="standard"&&Pa(n),se=n[5].type==="freeBet"&&Sa(n),J=n[5].type==="freeRound"&&ka(n),ee=n[5].type==="wagering"&&Ba(n);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),B.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),b=z(),_=E("span"),v=D(C),g=z(),K&&K.c(),A=z(),se&&se.c(),y=z(),J&&J.c(),S=z(),ee&&ee.c(),x=nt(),T(t,j),T(a,Q),le(a,"StatusActive",n[0]===oe.ACTIVE),le(a,"StatusCompleted",n[0]===oe.COMPLETED),le(a,"StatusClaimable",n[0]===oe.CLAIMABLE),T(e,H),T(d,ie),T(_,de),T(u,ae)},m(w,O){N(w,e,O),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),B.m(a,null),N(w,l,O),N(w,u,O),p(u,d),p(d,h),p(d,f),p(u,b),p(u,_),p(_,v),N(w,g,O),K&&K.m(w,O),N(w,A,O),se&&se.m(w,O),N(w,y,O),J&&J.m(w,O),N(w,S,O),ee&&ee.m(w,O),N(w,x,O)},p(w,O){O[0]&33554432&&r!==(r=w[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),R===(R=G(w))&&B?B.p(w,O):(B.d(1),B=R(w),B&&(B.c(),B.m(a,null))),O[0]&1&&le(a,"StatusActive",w[0]===oe.ACTIVE),O[0]&1&&le(a,"StatusCompleted",w[0]===oe.COMPLETED),O[0]&1&&le(a,"StatusClaimable",w[0]===oe.CLAIMABLE),O[0]&33554432&&c!==(c=w[25]("bonusCard.bonusType")+"")&&re(h,c,ie.contenteditable),O[0]&33554464&&C!==(C=w[25](`bonusType.${w[5].type}`)+"")&&re(v,C,de.contenteditable),w[5].type==="standard"?K?K.p(w,O):(K=Pa(w),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null),w[5].type==="freeBet"?se?se.p(w,O):(se=Sa(w),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),w[5].type==="freeRound"?J?J.p(w,O):(J=ka(w),J.c(),J.m(S.parentNode,S)):J&&(J.d(1),J=null),w[5].type==="wagering"?ee?ee.p(w,O):(ee=Ba(w),ee.c(),ee.m(x.parentNode,x)):ee&&(ee.d(1),ee=null)},d(w){w&&(I(e),I(l),I(u),I(g),I(A),I(y),I(S),I(x)),B.d(),K&&K.d(w),se&&se.d(w),J&&J.d(w),ee&&ee.d(w)}}}function mb(n){let e,t,r=n[25]("bonusCard.bonusType")+"",i,o,s,a,l=n[25](`bonusType.${n[5].type}`)+"",u,d,c,h,f,b,_,C,v=n[25]("bonusCard.validity")+"",g,A,y,S,x=n[32](n[5])+"",F,j,G,R,B=n[25]("bonusCard.validUntil")+"",V,Q,q,H,M=n[39](n[5].trigger.endTime)+"",ie,_e=[L("BonusCardLabel")],de={};for(let $=0;$<_e.length;$+=1)de=k(de,_e[$]);let X=[L("BonusCardRowText","Type")],ae={};for(let $=0;$<X.length;$+=1)ae=k(ae,X[$]);let K=[L("BonusCardRow")],se={};for(let $=0;$<K.length;$+=1)se=k(se,K[$]);let J=n[5].type==="standard"&&Ia(n),ee=n[5].type==="freeBet"&&Na(n),w=n[5].type==="freeRound"&&La(n),O=n[5].type==="wagering"&&Ha(n),he=[L("BonusCardLabel")],Oe={};for(let $=0;$<he.length;$+=1)Oe=k(Oe,he[$]);let Z=[L("BonusCardRowText")],W={};for(let $=0;$<Z.length;$+=1)W=k(W,Z[$]);let xe=[L("BonusCardRow")],Ce={};for(let $=0;$<xe.length;$+=1)Ce=k(Ce,xe[$]);let Fe=[L("BonusCardLabel")],ct={};for(let $=0;$<Fe.length;$+=1)ct=k(ct,Fe[$]);let ht=[L("BonusCardRowText")],Je={};for(let $=0;$<ht.length;$+=1)Je=k(Je,ht[$]);let Rt=[L("BonusCardRow")],Et={};for(let $=0;$<Rt.length;$+=1)Et=k(Et,Rt[$]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),J&&J.c(),c=z(),ee&&ee.c(),h=z(),w&&w.c(),f=z(),O&&O.c(),b=z(),_=E("p"),C=E("span"),g=D(v),A=D(":"),y=z(),S=E("span"),F=D(x),j=z(),G=E("p"),R=E("span"),V=D(B),Q=D(":"),q=z(),H=E("span"),ie=D(M),T(t,de),T(a,ae),T(e,se),T(C,Oe),T(S,W),T(_,Ce),T(R,ct),T(H,Je),T(G,Et)},m($,ve){N($,e,ve),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N($,d,ve),J&&J.m($,ve),N($,c,ve),ee&&ee.m($,ve),N($,h,ve),w&&w.m($,ve),N($,f,ve),O&&O.m($,ve),N($,b,ve),N($,_,ve),p(_,C),p(C,g),p(C,A),p(_,y),p(_,S),p(S,F),N($,j,ve),N($,G,ve),p(G,R),p(R,V),p(R,Q),p(G,q),p(G,H),p(H,ie)},p($,ve){ve[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&re(i,r,de.contenteditable),ve[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&re(u,l,ae.contenteditable),$[5].type==="standard"?J?J.p($,ve):(J=Ia($),J.c(),J.m(c.parentNode,c)):J&&(J.d(1),J=null),$[5].type==="freeBet"?ee?ee.p($,ve):(ee=Na($),ee.c(),ee.m(h.parentNode,h)):ee&&(ee.d(1),ee=null),$[5].type==="freeRound"?w?w.p($,ve):(w=La($),w.c(),w.m(f.parentNode,f)):w&&(w.d(1),w=null),$[5].type==="wagering"?O?O.p($,ve):(O=Ha($),O.c(),O.m(b.parentNode,b)):O&&(O.d(1),O=null),ve[0]&33554432&&v!==(v=$[25]("bonusCard.validity")+"")&&re(g,v,Oe.contenteditable),ve[0]&32&&x!==(x=$[32]($[5])+"")&&re(F,x,W.contenteditable),ve[0]&33554432&&B!==(B=$[25]("bonusCard.validUntil")+"")&&re(V,B,ct.contenteditable),ve[0]&32&&M!==(M=$[39]($[5].trigger.endTime)+"")&&re(ie,M,Je.contenteditable)},d($){$&&(I(e),I(d),I(c),I(h),I(f),I(b),I(_),I(j),I(G)),J&&J.d($),ee&&ee.d($),w&&w.d($),O&&O.d($)}}}function _b(n){let e=n[25](`bonusCard.${n[5].status}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function gb(n){let e=n[25](`bonusCard.${n[0]}`)+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&pe(t,e)},d(r){r&&I(t)}}}function Pa(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,b=n[5].amount+"",_,C,v,g,A,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,G=n[29](n[5])+n[17]+"",R,B,V=[L("BonusCardLabel")],Q={};for(let O=0;O<V.length;O+=1)Q=k(Q,V[O]);let q=[L("BonusCardRowText")],H={};for(let O=0;O<q.length;O+=1)H=k(H,q[O]);let M=[L("BonusCardRow")],ie={};for(let O=0;O<M.length;O+=1)ie=k(ie,M[O]);let _e=[L("BonusCardLabel")],de={};for(let O=0;O<_e.length;O+=1)de=k(de,_e[O]);function X(O,he){return O[5].initialWagerRequirementAmount>=2147483647?vb:bb}let ae=X(n),K=ae(n),se=[L("BonusCardRowText")],J={};for(let O=0;O<se.length;O+=1)J=k(J,se[O]);let ee=[L("BonusCardRow")],w={};for(let O=0;O<ee.length;O+=1)w=k(w,ee[O]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=D(` /
3573
3573
  `),f=E("span"),_=D(b),C=D(n[17]),v=z(),g=E("p"),A=E("span"),S=D(y),x=D(":"),F=z(),j=E("span"),R=D(G),B=D(` /
3574
- `),K.c(),T(t,Q),le(l,"BonusAmount",n[0]===oe.ACTIVE),le(f,"Amount",n[0]===oe.ACTIVE),T(a,H),T(e,ie),T(A,de),T(j,J),T(g,w)},m(O,he){N(O,e,he),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,C),N(O,v,he),N(O,g,he),p(g,A),p(A,S),p(A,x),p(g,F),p(g,j),p(j,R),p(j,B),K.m(j,null)},p(O,he){he[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&re(i,r,Q.contenteditable),he[0]&32&&u!==(u=O[5].remainingAmount+"")&&pe(d,u),he[0]&131072&&pe(c,O[17]),he[0]&1&&le(l,"BonusAmount",O[0]===oe.ACTIVE),he[0]&32&&b!==(b=O[5].amount+"")&&pe(_,b),he[0]&131072&&pe(C,O[17]),he[0]&1&&le(f,"Amount",O[0]===oe.ACTIVE),he[0]&33554432&&y!==(y=O[25]("bonusCard.wageredAmount")+"")&&re(S,y,de.contenteditable),he[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&re(R,G,J.contenteditable),ae===(ae=X(O))&&K?K.p(O,he):(K.d(1),K=ae(O),K&&(K.c(),K.m(j,null)))},d(O){O&&(I(e),I(v),I(g)),K.d()}}}function gb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function bb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Pa(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h=[L("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=[L("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=k(_,b[g]);let C=[L("BonusCardRow")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),le(l,"BonusAmount",n[0]===oe.ACTIVE),T(a,_),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&pe(d,u),A[0]&131072&&pe(c,g[17]),A[0]&1&&le(l,"BonusAmount",g[0]===oe.ACTIVE)},d(g){g&&I(e)}}}function Sa(n){let e,t=n[5].status===oe.ACTIVE&&ka(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5].status===oe.ACTIVE?t?t.p(r,i):(t=ka(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&I(e),t&&t.d(r)}}}function ka(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[5].numberOfFreeSpin+"",u,d,c,h,f=n[25]("bonusCard.game")+"",b,_,C,v,g,A,y,S,x,F,j,G,R,B,V,Q,q,H,M,ie=[L("BonusCardLabel")],_e={};for(let W=0;W<ie.length;W+=1)_e=k(_e,ie[W]);let de=[L("BonusCardRowText")],X={};for(let W=0;W<de.length;W+=1)X=k(X,de[W]);let ae=[L("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=k(K,ae[W]);let se=[L("BonusCardLabel")],J={};for(let W=0;W<se.length;W+=1)J=k(J,se[W]);let ee=Fe(n[23]),w=[];for(let W=0;W<ee.length;W+=1)w[W]=Da(Ca(n,ee,W));let O=[L("BonusCardRowText")],he={};for(let W=0;W<O.length;W+=1)he=k(he,O[W]);let Oe=[L("BonusCardRow")],Z={};for(let W=0;W<Oe.length;W+=1)Z=k(Z,Oe[W]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("div"),h=E("div"),b=D(f),_=D(":"),C=z(),v=E("div"),g=E("div"),A=E("button"),y=te("svg"),S=te("path"),F=z(),j=E("div"),G=E("span");for(let W=0;W<w.length;W+=1)w[W].c();R=z(),B=E("button"),V=te("svg"),Q=te("path"),T(t,_e),T(a,X),T(e,K),T(h,J),m(S,"stroke-linecap","round"),m(S,"stroke-linejoin","round"),m(S,"stroke-width","2"),m(S,"d","M15 19l-7-7 7-7"),m(y,"fill","none"),m(y,"stroke","currentColor"),m(y,"viewBox","0 0 24 24"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=n[24]==0,le(A,"Hide",n[23].length<=3),m(G,"class","Games"),ts(G,"transform","translateX("+n[24]+"px)"),m(j,"class","Main"),m(Q,"stroke-linecap","round"),m(Q,"stroke-linejoin","round"),m(Q,"stroke-width","2"),m(Q,"d","M9 5l7 7-7 7"),m(V,"fill","none"),m(V,"stroke","currentColor"),m(V,"viewBox","0 0 24 24"),m(V,"xmlns","http://www.w3.org/2000/svg"),m(B,"class","SliderNavButton"),m(B,"part","SliderNavButton"),B.disabled=q=n[24]<=-(n[23].length-3)*100,le(B,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),T(v,he),T(c,Z)},m(W,xe){N(W,e,xe),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(W,d,xe),N(W,c,xe),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),p(v,g),p(g,A),p(A,y),p(y,S),p(g,F),p(g,j),p(j,G);for(let Ce=0;Ce<w.length;Ce+=1)w[Ce]&&w[Ce].m(G,null);p(g,R),p(g,B),p(B,V),p(V,Q),H||(M=[Pe(A,"click",n[51]),Pe(B,"click",n[55])],H=!0)},p(W,xe){if(xe[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&re(i,r,_e.contenteditable),xe[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&re(u,l,X.contenteditable),xe[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&re(b,f,J.contenteditable),xe[0]&16777216&&x!==(x=W[24]==0)&&(A.disabled=x),xe[0]&8388608&&le(A,"Hide",W[23].length<=3),xe[0]&48234496|xe[1]&7168){ee=Fe(W[23]);let Ce;for(Ce=0;Ce<ee.length;Ce+=1){const Ue=Ca(W,ee,Ce);w[Ce]?w[Ce].p(Ue,xe):(w[Ce]=Da(Ue),w[Ce].c(),w[Ce].m(G,null))}for(;Ce<w.length;Ce+=1)w[Ce].d(1);w.length=ee.length}xe[0]&16777216&&ts(G,"transform","translateX("+W[24]+"px)"),xe[0]&25165824&&q!==(q=W[24]<=-(W[23].length-3)*100)&&(B.disabled=q),xe[0]&8388608&&le(B,"Hide",W[23].length<=3)},d(W){W&&(I(e),I(d),I(c)),vt(w,W),H=!1,qe(M)}}}function Da(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return n[52](n[87])}function C(){return n[53](n[89])}return{c(){e=E("span"),t=E("span"),i=D(r),a=z(),l=E("img"),h=z(),m(t,"class",o="PlayNowButton "+(n[21]&&n[22]==n[89]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":"")),es(l.src,u=n[87].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[87].name),m(l,"title",c=n[87].name),m(e,"class","Game"),m(e,"part","Game")},m(v,g){N(v,e,g),p(e,t),p(t,i),p(e,a),p(e,l),p(e,h),f||(b=[Pe(e,"click",_),Pe(e,"mouseenter",C),Pe(e,"mouseleave",n[54])],f=!0)},p(v,g){n=v,g[0]&33554432&&r!==(r=n[25]("bonusCard.playNow")+"")&&pe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(n[21]&&n[22]==n[89]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!es(l.src,u=n[87].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[87].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[87].name)&&m(l,"title",c)},d(v){v&&I(e),f=!1,qe(b)}}}function Ma(n){let e,t,r=n[25]("bonusCard.wageringType")+"",i,o,s,a,l=n[25](`bonusCard.${n[5].wageringType}`)+"",u,d,c,h,f=n[25]("bonusCard.wagered")+"",b,_,C,v,g=[L("BonusCardLabel")],A={};for(let H=0;H<g.length;H+=1)A=k(A,g[H]);let y=[L("BonusCardRowText")],S={};for(let H=0;H<y.length;H+=1)S=k(S,y[H]);let x=[L("BonusCardRow")],F={};for(let H=0;H<x.length;H+=1)F=k(F,x[H]);let j=[L("BonusCardLabel")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=n[5].wageringType==="money"&&Ba(n),B=[L("BonusCardRowText")],V={};for(let H=0;H<B.length;H+=1)V=k(V,B[H]);let Q=[L("BonusCardRow")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[H]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("p"),h=E("span"),b=D(f),_=D(":"),C=z(),v=E("span"),R&&R.c(),T(t,A),T(a,S),T(e,F),T(h,G),T(v,V),T(c,q)},m(H,M){N(H,e,M),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(H,d,M),N(H,c,M),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),R&&R.m(v,null)},p(H,M){M[0]&33554432&&r!==(r=H[25]("bonusCard.wageringType")+"")&&re(i,r,A.contenteditable),M[0]&33554464&&l!==(l=H[25](`bonusCard.${H[5].wageringType}`)+"")&&re(u,l,S.contenteditable),M[0]&33554432&&f!==(f=H[25]("bonusCard.wagered")+"")&&re(b,f,G.contenteditable),H[5].wageringType==="money"?R?R.p(H,M):(R=Ba(H),R.c(),R.m(v,null)):R&&(R.d(1),R=null)},d(H){H&&(I(e),I(d),I(c)),R&&R.d()}}}function Ba(n){let e;function t(o,s){return o[0]===oe.ACTIVE?yb:vb}let r=t(n),i=r(n);return{c(){i.c(),e=nt()},m(o,s){i.m(o,s),N(o,e,s)},p(o,s){r===(r=t(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&I(e),i.d(o)}}}function vb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Cb:wb}let s=o(n),a=s(n);return{c(){t=D(e),r=D(` /
3575
- `),a.c(),i=nt()},m(l,u){N(l,t,u),N(l,r,u),a.m(l,u),N(l,i,u)},p(l,u){u[0]&131104&&e!==(e=l[29](l[5])+l[17]+"")&&pe(t,e),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(I(t),I(r),I(i)),a.d(l)}}}function yb(n){var d;let e=n[30](n[5])+"",t,r,i,o,s=((d=n[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){t=D(e),r=z(),i=D(n[17]),o=D(` /
3576
- `),a=D(s),l=z(),u=D(n[17])},m(c,h){N(c,t,h),N(c,r,h),N(c,i,h),N(c,o,h),N(c,a,h),N(c,l,h),N(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&pe(t,e),h[0]&131072&&pe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&pe(a,s),h[0]&131072&&pe(u,c[17])},d(c){c&&(I(t),I(r),I(i),I(o),I(a),I(l),I(u))}}}function wb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Cb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Oa(n){var _e,de;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((de=(_e=n[5].wallet.standard)==null?void 0:_e.initialAmount)==null?void 0:de.fixedAmount)+"",d,c,h,f,b,_=n[25]("bonusCard.wageringRequirement")+"",C,v,g,A,y=n[37](n[5])+n[17]+"",S,x=[L("BonusCardLabel")],F={};for(let X=0;X<x.length;X+=1)F=k(F,x[X]);let j=[L("BonusCardRowText")],G={};for(let X=0;X<j.length;X+=1)G=k(G,j[X]);let R=[L("BonusCardRow")],B={};for(let X=0;X<R.length;X+=1)B=k(B,R[X]);let V=[L("BonusCardLabel")],Q={};for(let X=0;X<V.length;X+=1)Q=k(Q,V[X]);let q=[L("BonusCardRowText")],H={};for(let X=0;X<q.length;X+=1)H=k(H,q[X]);let M=[L("BonusCardRow")],ie={};for(let X=0;X<M.length;X+=1)ie=k(ie,M[X]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=z(),f=E("p"),b=E("span"),C=D(_),v=D(":"),g=z(),A=E("span"),S=D(y),T(t,F),T(a,G),T(e,B),T(b,Q),T(A,H),T(f,ie)},m(X,ae){N(X,e,ae),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),N(X,h,ae),N(X,f,ae),p(f,b),p(b,C),p(b,v),p(f,g),p(f,A),p(A,S)},p(X,ae){var K,se;ae[0]&33554432&&r!==(r=X[25]("bonusCard.bonusAmount")+"")&&re(i,r,F.contenteditable),ae[0]&32&&u!==(u=X[36]((se=(K=X[5].wallet.standard)==null?void 0:K.initialAmount)==null?void 0:se.fixedAmount)+"")&&pe(d,u),ae[0]&131072&&pe(c,X[17]),ae[0]&33554432&&_!==(_=X[25]("bonusCard.wageringRequirement")+"")&&re(C,_,Q.contenteditable),ae[0]&131104&&y!==(y=X[37](X[5])+X[17]+"")&&re(S,y,H.contenteditable)},d(X){X&&(I(e),I(h),I(f))}}}function Ia(n){var g,A;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((A=(g=n[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[L("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=k(f,h[y]);let b=[L("BonusCardRowText")],_={};for(let y=0;y<b.length;y+=1)_=k(_,b[y]);let C=[L("BonusCardRow")],v={};for(let y=0;y<C.length;y+=1)v=k(v,C[y]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),T(a,_),T(e,v)},m(y,S){N(y,e,S),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(y,S){var x,F;S[0]&33554432&&r!==(r=y[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),S[0]&32&&u!==(u=y[36]((F=(x=y[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:F.fixedAmount)+"")&&pe(d,u),S[0]&131072&&pe(c,y[17])},d(y){y&&I(e)}}}function Na(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[38](n[5])+"",u,d=[L("BonusCardLabel")],c={};for(let C=0;C<d.length;C+=1)c=k(c,d[C]);let h=[L("BonusCardRowText")],f={};for(let C=0;C<h.length;C+=1)f=k(f,h[C]);let b=[L("BonusCardRow")],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),T(t,c),T(a,f),T(e,_)},m(C,v){N(C,e,v),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u)},p(C,v){v[0]&33554432&&r!==(r=C[25]("bonusCard.roundNumber")+"")&&re(i,r,c.contenteditable),v[0]&32&&l!==(l=C[38](C[5])+"")&&re(u,l,f.contenteditable)},d(C){C&&I(e)}}}function La(n){let e,t,r=n[25]("bonusCard.levels")+"",i,o,s,a,l=[L("BonusCardLabel")],u={};for(let v=0;v<l.length;v+=1)u=k(u,l[v]);function d(v,g){return v[8]>0?xb:Eb}let c=d(n),h=c(n),f=[L("BonusCardRowText")],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardRow")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),h.c(),T(t,u),T(a,b),T(e,C)},m(v,g){N(v,e,g),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),h.m(a,null)},p(v,g){g[0]&33554432&&r!==(r=v[25]("bonusCard.levels")+"")&&re(i,r,u.contenteditable),c===(c=d(v))&&h?h.p(v,g):(h.d(1),h=c(v),h&&(h.c(),h.m(a,null)))},d(v){v&&I(e),h.d()}}}function Eb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function xb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function Ha(n){let e,t,r=n[5].type==="standard"&&Ra(n),i=n[5].type==="wagering"&&Fa(n);return{c(){r&&r.c(),e=z(),i&&i.c(),t=nt()},m(o,s){r&&r.m(o,s),N(o,e,s),i&&i.m(o,s),N(o,t,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=Ra(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Fa(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(I(e),I(t)),r&&r.d(o),i&&i.d(o)}}}function Ra(n){let e,t,r,i=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[L("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("div"),t=E("casino-bonus-progress"),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t)},p(l,u){T(t,o=ke(i,[L("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&I(e)}}}function Fa(n){var S;let e,t,r,i,o,s=n[25]("bonusCard.level")+"",a,l,u=(((S=n[5].wageringProgress)==null?void 0:S.currentLevel)||1)+"",d,c,h=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],f={};for(let x=0;x<h.length;x+=1)f=k(f,h[x]);function b(x,F){return x[8]>0?Tb:Ab}let _=b(n),C=_(n),v=[L("CircularProgressText")],g={};for(let x=0;x<v.length;x+=1)g=k(g,v[x]);let A=[L("BonusCardProgress")],y={};for(let x=0;x<A.length;x+=1)y=k(y,A[x]);return{c(){e=E("div"),t=E("casino-bonus-progress"),i=z(),o=E("div"),a=D(s),l=D(": "),d=D(u),c=D(` /
3577
- `),C.c(),T(t,f),T(o,g),T(e,y)},m(x,F){N(x,e,F),p(e,t),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),C.m(o,null)},p(x,F){var j;T(t,f=ke(h,[L("CircularProgress"),F[0]&32&&r!==(r=x[31](x[5]))&&{value:r},F[0]&1&&{status:x[0]},F[0]&4&&{clientstyling:x[2]},F[0]&8&&{clientstylingurl:x[3]},F[0]&2&&{mbsource:x[1]}])),F[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&re(a,s,g.contenteditable),F[0]&32&&u!==(u=(((j=x[5].wageringProgress)==null?void 0:j.currentLevel)||1)+"")&&re(d,u,g.contenteditable),_===(_=b(x))&&C?C.p(x,F):(C.d(1),C=_(x),C&&(C.c(),C.m(o,null)))},d(x){x&&I(e),C.d()}}}function Ab(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Tb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function Ua(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[L("BonusCardAdditionalTitle")],_={};for(let R=0;R<b.length;R+=1)_=k(_,b[R]);function C(R,B){return R[11]?Pb:Sb}let v=C(n),g=v(n),A=[L("BonusCardAdditionalButton")],y={};for(let R=0;R<A.length;R+=1)y=k(y,A[R]);let S=[L("BonusCardAdditionalHeader")],x={};for(let R=0;R<S.length;R+=1)x=k(x,S[R]);let F=n[11]&&za(n),j=[L("BonusCardAdditional")],G={};for(let R=0;R<j.length;R+=1)G=k(G,j[R]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=z(),l=D(a),u=z(),d=E("span"),g.c(),c=z(),F&&F.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,_),T(d,y),T(t,x),le(t,"Active",n[11]),T(e,G)},m(R,B){N(R,e,B),p(e,t),p(t,r),p(r,i),p(i,o),p(r,s),p(r,l),p(t,u),p(t,d),g.m(d,null),p(e,c),F&&F.m(e,null),h||(f=Pe(t,"click",n[56]),h=!0)},p(R,B){B[0]&33554432&&a!==(a=R[25]("bonusCard.rewards")+"")&&re(l,a,_.contenteditable),v!==(v=C(R))&&(g.d(1),g=v(R),g&&(g.c(),g.m(d,null))),B[0]&2048&&le(t,"Active",R[11]),R[11]?F?F.p(R,B):(F=za(R),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(R){R&&I(e),g.d(),F&&F.d(),h=!1,f()}}}function Pb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Sb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function za(n){let e,t=n[5].type==="wagering"&&$a(n),r=[L("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),t&&t.c(),T(e,i)},m(o,s){N(o,e,s),t&&t.m(e,null)},p(o,s){o[5].type==="wagering"?t?t.p(o,s):(t=$a(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&I(e),t&&t.d()}}}function $a(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Db;if(l[5].levels)return kb}let o=i(n),s=o&&o(n),a=t&&Ya(n);return{c(){s&&s.c(),e=z(),a&&a.c(),r=nt()},m(l,u){s&&s.m(l,u),N(l,e,u),a&&a.m(l,u),N(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(t=l[5].levels.length>Number(l[4])),t?a?a.p(l,u):(a=Ya(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(I(e),I(r)),s&&s.d(l),a&&a.d(l)}}}function kb(n){let e,t=Fe(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Wa(ba(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&24){t=Fe(i[5].levels.slice(0,i[4]));let s;for(s=0;s<t.length;s+=1){const a=ba(i,t,s);r[s]?r[s].p(a,o):(r[s]=Wa(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),vt(r,i)}}}function Db(n){let e,t=Fe(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ga(ya(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&512){t=Fe(i[40](i[5],i[7]));let s;for(s=0;s<t.length;s+=1){const a=ya(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ga(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),vt(r,i)}}}function Va(n){let e=n[35](n[81],n[84])+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[81],r[84])+"")&&pe(t,e)},d(r){r&&I(t)}}}function Wa(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[83])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Fe(n[81].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Va(va(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&re(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[83])+"")&&re(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Fe(g[81].bonuses);let y;for(y=0;y<b.length;y+=1){const S=va(g,b,y);_[y]?_[y].p(S,A):(_[y]=Va(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),vt(_,g)}}}function ja(n){let e=n[78]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[78]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ga(n){let e,t,r=n[25](`bonusCard.${n[75].label}`)+"",i,o,s=n[25]("bonusCard.level")+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Fe(n[75].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=ja(wa(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[75].label}`)+"")&&re(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&re(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Fe(g[75].desc);let y;for(y=0;y<b.length;y+=1){const S=wa(g,b,y);_[y]?_[y].p(S,A):(_[y]=ja(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),vt(_,g)}}}function Ya(n){let e,t=n[25]("bonusCard.allRewards")+"",r,i,o,s=[L("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=D(t),T(e,a)},m(l,u){N(l,e,u),p(e,r),i||(o=Pe(e,"click",n[28]),i=!0)},p(l,u){u[0]&33554432&&t!==(t=l[25]("bonusCard.allRewards")+"")&&re(r,t,a.contenteditable)},d(l){l&&I(e),i=!1,o()}}}function Mb(n){let e,t,r,i,o,s,a,l,u,d,c=n[25]("bonusCard.terms")+"",h,f=[L("BonusCardTermsLink"),{href:n[20]},{target:"__blank"}],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardTerms")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=E("div"),t=E("a"),r=te("svg"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=z(),h=D(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),T(t,b),T(e,C)},m(v,g){N(v,e,g),p(e,t),p(t,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(t,d),p(t,h)},p(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&re(h,c,b.contenteditable),T(t,b=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&I(e)}}}function Bb(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,b,_,C,v,g,A=[L("BonusCardTermsTitle")],y={};for(let H=0;H<A.length;H+=1)y=k(y,A[H]);function S(H,M){return H[12]?Ob:Ib}let x=S(n),F=x(n),j=[L("BonusCardTermsButton")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=[L("BonusCardTermsHeader")],B={};for(let H=0;H<R.length;H+=1)B=k(B,R[H]);let V=n[12]&&qa(n),Q=[L("BonusCardTerms")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[H]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=z(),f=D(h),b=z(),_=E("span"),F.c(),C=z(),V&&V.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,y),T(_,G),T(t,B),le(t,"Active",n[12]),T(e,q)},m(H,M){N(H,e,M),p(e,t),p(t,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(t,b),p(t,_),F.m(_,null),p(e,C),V&&V.m(e,null),v||(g=Pe(t,"click",n[57]),v=!0)},p(H,M){M[0]&33554432&&h!==(h=H[25]("bonusCard.terms")+"")&&re(f,h,y.contenteditable),x!==(x=S(H))&&(F.d(1),F=x(H),F&&(F.c(),F.m(_,null))),M[0]&4096&&le(t,"Active",H[12]),H[12]?V?V.p(H,M):(V=qa(H),V.c(),V.m(e,null)):V&&(V.d(1),V=null)},d(H){H&&I(e),F.d(),V&&V.d(),v=!1,g()}}}function Ob(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Ib(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function qa(n){let e,t,r,i,o=[L("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),e.innerHTML="",T(e,s)},m(a,l){N(a,e,l),r||(i=Vd(t=n[44].call(null,e,n[16].terms_and_conditions)),r=!0)},p(a,l){t&&Un(t.update)&&l[0]&65536&&t.update.call(null,a[16].terms_and_conditions)},d(a){a&&I(e),r=!1,i()}}}function Xa(n){let e,t,r,i=n[0]===oe.CLAIMABLE&&Za(n),o=n[0]===oe.ACTIVE&&n[5].status===oe.ACTIVE&&Ja(n),s=[L("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[L("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),t=E("div"),i&&i.c(),r=z(),o&&o.c(),T(t,a),T(e,u)},m(d,c){N(d,e,c),p(e,t),i&&i.m(t,null),p(t,r),o&&o.m(t,null)},p(d,c){d[0]===oe.CLAIMABLE?i?i.p(d,c):(i=Za(d),i.c(),i.m(t,r)):i&&(i.d(1),i=null),d[0]===oe.ACTIVE&&d[5].status===oe.ACTIVE?o?o.p(d,c):(o=Ja(d),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(d){d&&I(e),i&&i.d(),o&&o.d()}}}function Za(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,b,_=n[15]===!0&&Ka(n),C=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<C.length;x+=1)v=k(v,C[x]);let g=[L("BonusJoinButton"),{type:"button"},{disabled:h=!n[13]}],A={};for(let x=0;x<g.length;x+=1)A=k(A,g[x]);let y=[L("BonusCardJoinWrapper")],S={};for(let x=0;x<y.length;x+=1)S=k(S,y[x]);return{c(){e=E("div"),_&&_.c(),t=z(),r=E("span"),i=te("svg"),o=te("path"),s=z(),a=D(n[19]),l=z(),u=E("button"),c=D(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,v),T(u,A),T(e,S)},m(x,F){N(x,e,F),_&&_.m(e,null),p(e,t),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=Pe(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?_?_.p(x,F):(_=Ka(x),_.c(),_.m(e,t)):_&&(_.d(1),_=null),F[0]&524288&&re(a,x[19],v.contenteditable),F[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&re(c,d,A.contenteditable),T(u,A=ke(g,[L("BonusJoinButton"),{type:"button"},F[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&I(e),_&&_.d(),f=!1,b()}}}function Ka(n){let e,t=n[25]("bonusCard.error")+"",r,i=[L("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&t!==(t=s[25]("bonusCard.error")+"")&&re(r,t,o.contenteditable)},d(s){s&&I(e)}}}function Ja(n){let e,t=n[25]("bonusCard.forfeit")+"",r,i,o,s,a=[L("BonusForfeitButton"),{type:"button"},{disabled:i=!n[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=D(t),T(e,l)},m(u,d){N(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Pe(e,"click",n[27]),o=!0)},p(u,d){d[0]&33554432&&t!==(t=u[25]("bonusCard.forfeit")+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[L("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&I(e),o=!1,s()}}}function Nb(n){let e,t=n[5]&&Ea(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5]?t?t.p(r,i):(t=Ea(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Me,o:Me,d(r){r&&I(e),t&&t.d(r)}}}function Lb(n,e,t){let r,i;wl(n,Jl,P=>t(25,i=P));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_=null,C=[],v,g=!1,A=!1,y=!1,S=!1,x=!0,F=!1,j=!1,G={},R,B,V="",Q=1e3*30,q,H,M="",ie=!1,_e,de=[],X=0;const ae=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ne=>{wr(ne,U[ne])})}).catch(U=>{console.log(U)})};Object.keys(Cr).forEach(P=>{wr(P,Cr[P])}),Nr(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)}));const K=()=>{var P,U;try{t(5,_=JSON.parse(o))}catch(ne){t(5,_=null)}_&&(_.type==="wagering"&&t(10,A=!0),t(17,R=ga(_.currency||b)),t(7,C=J(_.levels||((U=(P=_.wallet)==null?void 0:P.wagering)==null?void 0:U.levels))),_.type==="freeRound"&&t(23,de=se(_.freeSpin)),Ce())},se=P=>{if(!P||!P.vendorGamesDetail)return[];let U=[];return Object.keys(P.vendorGamesDetail).length>0&&Object.keys(P.vendorGamesDetail).forEach(ne=>{U=P.vendorGamesDetail[ne]}),U},J=P=>{if(!P)return[];const U=[];let ne=!1;return P.map((be,we)=>{const xt=be,{maxRepeats:Te,completedTime:Ge}=xt,Qe=Jo(xt,["maxRepeats","completedTime"]);Te===0&&(ne=!0,U.push(ft({},Qe)));for(let Ne=0;Ne<Te;Ne++)U.push(ft({},Qe))}),ne?t(8,v=0):t(8,v=U.length),U},ee=()=>{t(13,x=!1),t(15,j=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},w=()=>{t(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},O=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},he=P=>{switch(P.data.type){case"OnBonusClaimedDone":t(13,x=!0);break;case"OnBonusForfeitedDone":t(13,x=!0);break;case"OnBonusClaimError":P.data.bonusCode===_.code&&t(15,j=!0);break}},Oe=(P,U)=>({remainder:P%U,quotient:Math.floor(P/U)}),Z=P=>{const U=new Date;return new Date(P).getTime()-U.getTime()},W=P=>{const U=Z(P)/6e4,{quotient:ne,remainder:be}=Oe(U,1440),{quotient:we,remainder:Te}=Oe(be,60),Ge=Math.floor(Te),Qe=Ne=>Math.abs(Ne)<10?`0${Ne}`:Ne;return[{value:ne,symbol:"d"},{value:we,symbol:"h"},{value:Ge,symbol:"m"}].map(Ne=>Qe(Ne.value)+Ne.symbol).join(" ")},xe=(P,U,ne,be)=>{const we=Z(P);we<0?ne():(be(W(P)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Ce=()=>{var be;if(!_)return;const P=(we,Te,Ge)=>{xe(we,Q,()=>Te(Ge),Te)},U=i("bonusCard.expired"),ne=_.endTime||((be=_.trigger)==null?void 0:be.endTime);ne&&P(ne,we=>{t(19,V=we),t(18,B=we)},U),_.expiryDate&&P(_.expiryDate,we=>t(18,B=we),U)},Ue=P=>{let U=(P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount).toFixed(2);return P.status===oe.RELEASED&&P.type==="wagering"&&(U=(Number(U)+P.remainingAmount).toFixed(2)),parseFloat(U).toString()},ct=P=>{var U,ne;return(((U=P.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=P.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},ht=P=>{var be,we,Te;let U,ne;return P.type==="wagering"&&P.status===oe.ACTIVE&&P.wageringType==="money"?(ne=(be=P.wageringProgress)==null?void 0:be.currentLevelIncrement,ne!=0&&(U=((((we=P.wageringProgress)==null?void 0:we.currentLevelIncrement)-((Te=P.wageringProgress)==null?void 0:Te.gap))/ne*100).toFixed(2))):P.status===oe.RELEASED?U=100:(ne=P.initialWagerRequirementAmount,ne!=0&&(U=((P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount)/ne*100).toFixed(2))),Number(U)},Je=P=>{if(!P.wallet)return"";const U=["freeBet","freeRound"].includes(P.type)?P.wallet[P.type]:P.wallet,{validityMinutes:ne,expiryTime:be}=U;if(ne===0)return be?xn(new Date(be),"yyyy-MM-dd HH:mm:ss"):i("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${i(we===1?"bonusCard.day":"bonusCard.days")}`},Rt=P=>{if(P.products)return P.products;{let U=[];return P.wallet&&(P.wallet.casino&&U.push("Casino"),P.wallet.sports&&U.push("Sports")),U}},Ct=(P,U)=>{const ne=i(`bonusType.${U.type}`),be=ga(U.amountCurrency||_.currency||b);return U.mode==="percentage"?`${U.bonusAmount*100}% ${i("bonusCard.upTo")} ${be}${U.capAmount} ${ne}`:U.mode==="fixed"?`${be}${U.bonusAmount} ${ne}`:ne},$=(P,U)=>{const ne=Qe=>Qe===0?0:P.slice(0,Qe).reduce((xt,Ne)=>xt+Ne.maxRepeats,0),be=P[U],Te=ne(U)+1,Ge=Te+be.maxRepeats-1;return be.maxRepeats>1?`${Te}-${Ge}`:`${U+1}`},ve=(P,U)=>{switch(U.type){case"standard":case"freeBet":return Ct(P,U);case"freeRound":return i("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return i("bonusCard.enrollTo",{values:{name:i(`bonusType.${U.type}`)}});default:return""}},Xn=P=>{var U,ne;return Number((ne=(U=P==null?void 0:P[b])!=null?U:P==null?void 0:P.EUR)!=null?ne:0)},ri=P=>{var be,we,Te,Ge;const U=Xn((Te=(we=(be=P.wallet)==null?void 0:be.standard)==null?void 0:we.initialAmount)==null?void 0:Te.fixedAmount),ne=((Ge=P.wallet)==null?void 0:Ge.wageringRequirementCoefficient)||0;return Number((U*ne).toFixed(2))},ii=P=>{var be,we,Te;const U=(we=(be=P.wallet)==null?void 0:be.freeRound)==null?void 0:we.vendor;if(!U)return 0;const ne=Object.keys(U)[0];return((Te=U[ne])==null?void 0:Te.roundNumber)||0},oi=P=>P===void 0?"":xn(new Date(P),"yyyy-MM-dd HH:mm:ss"),si=(P,U)=>{var Ge,Qe;const ne=((Ge=P.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,be=U.length-1,we=((Qe=P.levels[0])==null?void 0:Qe.maxRepeats)===0,Te=xt=>xt.filter(Ne=>Ne.index>=0&&Ne.index<=be||we).map(Ne=>{const Xo=U[Ne.index]||U[0];return{label:Ne.label,desc:Xo.bonuses.map(Rd=>ve(Xo,Rd))}});switch(P.status){case oe.ACTIVE:return Te([{label:"current",index:ne},{label:"next",index:ne+1}]);case void 0:case null:case"":return Te([{label:"first",index:0},{label:"next",index:1}]);default:return Te([{label:"last",index:be},{label:"previous",index:be-1}])}},ai=P=>{var U,ne;t(20,M=P.url?P.url:(ne=(U=P.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Zn=P=>{window.postMessage({type:"BonusGameAction",gameId:P.id,name:P.name,gameLaunchUrl:P.href},window.location.href)},Y=P=>{t(21,ie=!0),t(22,_e=P)},Ae=()=>{t(21,ie=!1),t(22,_e=-1)},Re=P=>{fetch(`${c}/${s}/bonuses-information/${P}`).then(U=>U.json()).then(U=>{U&&U[P]&&(t(14,F=!0),t(16,G=U[P]))})},Et=(P,U)=>{const ne=document.createElement("div");ne.innerHTML=U,P.append(ne)},hn=()=>t(24,X+=300),Id=P=>Zn(P),Nd=P=>Y(P),Ld=()=>Ae(),Kn=()=>t(24,X-=300),Jn=()=>{t(11,y=!y)},Ft=()=>{t(12,S=!S)};function Hd(P){st[P?"unshift":"push"](()=>{q=P,t(6,q)})}return n.$$set=P=>{"rawbonus"in P&&t(45,o=P.rawbonus),"lang"in P&&t(46,s=P.lang),"status"in P&&t(0,a=P.status),"mbsource"in P&&t(1,l=P.mbsource),"clientstyling"in P&&t(2,u=P.clientstyling),"clientstylingurl"in P&&t(3,d=P.clientstylingurl),"cmsendpoint"in P&&t(47,c=P.cmsendpoint),"translationurl"in P&&t(48,h=P.translationurl),"levelcountlimit"in P&&t(4,f=P.levelcountlimit),"currency"in P&&t(49,b=P.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(a===oe.CLAIMABLE&&t(9,g=!0),a===oe.ACTIVE&&t(9,g=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,r=o&&s&&a),n.$$.dirty[1]&524288&&r&&K(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&r&&_&&(s&&Ql(s),c?Re(_.bonusId||_.id):ai(_)),n.$$.dirty[0]&68&&u&&q&&jr(q,u),n.$$.dirty[0]&72&&d&&q&&Gr(q,d),n.$$.dirty[0]&66&&l&&q&&Yr(q,`${l}.Style`,H),n.$$.dirty[1]&131072&&h&&ae()},[a,l,u,d,f,_,q,C,v,g,A,y,S,x,F,j,G,R,B,V,M,ie,_e,de,X,i,ee,w,O,Ue,ct,ht,Je,Rt,$,ve,Xn,ri,ii,oi,si,Zn,Y,Ae,Et,o,s,c,h,b,r,hn,Id,Nd,Ld,Kn,Jn,Ft,Hd]}class Hb extends Rr{constructor(e){super(),Lr(this,e,Lb,Nb,zn,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},ub,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),ue()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),ue()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),ue()}}customElements.define("casino-bonus-card",Hr(Hb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Rb({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>zb(r)?Ub({totalPages:i,limit:r,currentPage:t}):Fb({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:"&gt;",value:t>=i?i:t+1}]}function Fb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function Ub({totalPages:n,limit:e,currentPage:t}){const r=e*2+2,i=1+r,o=n-r,s=i+2;return t<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):t>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):t>=i-e&&t<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:t-e+(l-2)}:l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:t+e+1}:{type:"number",value:t-e+(l-2)}):[]}function zb(n){return n*2+3+2}function $b(n){Ir(n,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function Qa(n,e,t){const r=n.slice();return r[29]=e[t],r}const Vb=n=>({}),el=n=>({}),Wb=n=>({}),tl=n=>({}),jb=n=>({}),nl=n=>({}),Gb=n=>({value:n[0]&32}),rl=n=>({value:n[29].value});function Yb(n){let e;const t=n[21].next,r=$n(t,n,n[20],el),i=r||Kb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?Vn(t,o[20],s,Vb):jn(o[20]),el)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function qb(n){let e;const t=n[21].prev,r=$n(t,n,n[20],tl),i=r||Jb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?Vn(t,o[20],s,Wb):jn(o[20]),tl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Xb(n){let e;const t=n[21].ellipsis,r=$n(t,n,n[20],nl),i=r||Qb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&Wn(r,t,o,o[20],e?Vn(t,o[20],s,jb):jn(o[20]),nl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Zb(n){let e;const t=n[21].number,r=$n(t,n,n[20],rl),i=r||ev(n);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&Wn(r,t,o,o[20],e?Vn(t,o[20],s,Gb):jn(o[20]),rl):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Kb(n){let e;return{c(){e=D(">")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function Jb(n){let e;return{c(){e=D("<")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function Qb(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function ev(n){let e,t=n[29].value+"",r;return{c(){e=E("span"),r=D(t)},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&32&&t!==(t=i[29].value+"")&&pe(r,t)},d(i){i&&I(e)}}}function il(n){let e,t,r,i,o,s,a,l;const u=[Zb,Xb,qb,Yb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(t=c(n))&&(r=d[t]=u[t](n));function h(){return n[22](n[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1,m(e,"class","option"),m(e,"role","presentation"),le(e,"number",n[29].type==="number"),le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),le(e,"active",n[29].type==="number"&&n[29].value===n[1])},m(f,b){N(f,e,b),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Pe(e,"click",h),a=!0)},p(f,b){n=f;let _=t;t=c(n),t===_?~t&&d[t].p(n,b):(r&&(Al(),ut(d[_],1,1,()=>{d[_]=null}),Tl()),~t?(r=d[t],r?r.p(n,b):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&le(e,"number",n[29].type==="number"),(!s||b[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),(!s||b[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),(!s||b[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),(!s||b[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||b[0]&34)&&le(e,"active",n[29].type==="number"&&n[29].value===n[1])},i(f){s||(Ze(r),s=!0)},o(f){ut(r),s=!1},d(f){f&&I(e),~t&&d[t].d(),a=!1,l()}}}function ol(n){let e,t,r,i,o,s,a,l;return{c(){e=E("div"),t=E("span"),t.textContent="Go To Page",r=z(),i=E("input"),o=z(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),gr(i,n[3]),p(e,o),p(e,s),a||(l=[Pe(i,"input",n[23]),Pe(i,"change",n[24]),Pe(s,"click",n[25])],a=!0)},p(u,d){d[0]&8&&xl(i.value)!==u[3]&&gr(i,u[3])},d(u){u&&I(e),a=!1,qe(l)}}}function tv(n){let e,t,r,i,o,s,a=Fe(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=il(Qa(n,a,c));const u=c=>ut(l[c],1,1,()=>{l[c]=null});let d=n[7]&&ol(n);return{c(){e=E("div"),t=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(t,"class",r="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(t,"part",i="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){N(c,e,h),p(e,t);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null);p(e,o),d&&d.m(e,null),n[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Fe(c[5]);let f;for(f=0;f<a.length;f+=1){const b=Qa(c,a,f);l[f]?(l[f].p(b,h),Ze(l[f],1)):(l[f]=il(b),l[f].c(),Ze(l[f],1),l[f].m(t,null))}for(Al(),f=a.length;f<l.length;f+=1)u(f);Tl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"part",i),c[7]?d?d.p(c,h):(d=ol(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ze(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)ut(l[h]);s=!1},d(c){c&&I(e),vt(l,c),d&&d.d(),n[26](null)}}}function nv(n,e,t){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:C=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,A,y=!1,S;su(g)&&(y=!0);let x,F,j;const G=M=>{window.postMessage({type:"PaginationChange",page:M.value})},R=M=>{t(4,F=M>a?a:M)};Nr(()=>()=>{});const B=M=>G(M);function V(){x=xl(this.value),t(3,x)}const Q=()=>R(x),q=()=>G({value:F});function H(M){st[M?"unshift":"push"](()=>{S=M,t(0,S)})}return n.$$set=M=>{"totalitems"in M&&t(10,d=M.totalitems),"pagesize"in M&&t(11,c=M.pagesize),"currentpage"in M&&t(12,h=M.currentpage),"limit"in M&&t(13,f=M.limit),"showinput"in M&&t(14,b=M.showinput),"mbsource"in M&&t(15,_=M.mbsource),"clientstyling"in M&&t(16,C=M.clientstyling),"clientstylingurl"in M&&t(17,v=M.clientstylingurl),"$$scope"in M&&t(20,u=M.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&C&&S&&jr(S,C),n.$$.dirty[0]&131073&&v&&S&&Gr(S,v),n.$$.dirty[0]&32769&&_&&S&&Yr(S,`${_}.Style`,A),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=b),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=Rb({totalItems:r,pageSize:s,currentPage:o,limit:f})),n.$$.dirty[0]&786432&&t(6,a=Math.ceil(r/s))},[S,o,y,x,F,j,a,i,G,R,d,c,h,f,b,_,C,v,s,r,u,l,B,V,Q,q,H]}class rv extends Rr{constructor(e){super(),Lr(this,e,nv,tv,zn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},$b,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),ue()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),ue()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),ue()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),ue()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),ue()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-pagination",Hr(rv,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function ni(t){return ze(this,arguments,function*(n,e={}){const r=typeof n=="string"?n:n.toString(),i=yield fetch(r,e);let o=null;try{o=yield i.json()}catch(a){o=null}if(i.ok&&o)return o;const s={success:!1,errorMessage:typeof(o==null?void 0:o.errorMessage)=="string"&&o.errorMessage.trim()?o.errorMessage:i.statusText||String(i.status),errorCode:typeof(o==null?void 0:o.errorCode)=="number"?o.errorCode:void 0};return ft(ft({},o||{}),s)})}function iv(n,e,t){return ze(this,null,function*(){const r=`${n}${ti.CLAIM}`;return ni(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function ov(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),ni(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function sv(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ni(r,{headers:i})})}function av(n,e,t){return ze(this,null,function*(){const r=new URL(`${n}${ti.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ni(r,{headers:i})})}function lv(n){Ir(n,"svelte-1i2lkdw",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #e6e6e6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586b));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #ffffff));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00aeef))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #ffffff));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53b65a));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6d6d6d));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #ffffff));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #ffffff));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4e5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9c9c9c));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #ffffff));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #f39c12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#f4f4f4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #fd2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #d1d1d1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #c1c1c1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #ffffff))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00aeef);background:var(--emw--color-primary-50, #fbecf4);color:var(--emw--color-primary, #00aeef)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #fd2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #ffffff));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00aeef));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #f9f8f8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586b));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586b));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));color:var(--emw--bonus-modal-text, var(--emw--color-white, #ffffff))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function sl(n,e,t){const r=n.slice();return r[63]=e[t],r}function al(n,e,t){const r=n.slice();return r[66]=e[t],r}function ll(n){let e,t=n[29](`bonusCard.${n[66]}`)+"",r,i,o,s,a=[{type:"button"},n[28]("BonusStatusFilter"),{disabled:n[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return n[43](n[66])}return{c(){e=E("button"),r=D(t),i=z(),T(e,l),le(e,"active",n[66]===n[25])},m(d,c){N(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Pe(e,"click",u),o=!0)},p(d,c){n=d,c[0]&536870912&&t!==(t=n[29](`bonusCard.${n[66]}`)+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[{type:"button"},c[0]&268435456&&n[28]("BonusStatusFilter"),c[0]&8192&&{disabled:n[13]}])),le(e,"active",n[66]===n[25])},d(d){d&&I(e),o=!1,s()}}}function uv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,b,_,C,v=n[29]("bonus.to")+"",g,A,y,S,x,F=n[29]("bonus.filter")+"",j,G,R,B,V=[L("BonusCalendarTitle")],Q={};for(let Z=0;Z<V.length;Z+=1)Q=k(Q,V[Z]);let q=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],H={};for(let Z=0;Z<q.length;Z+=1)H=k(H,q[Z]);let M=[n[28]("BonusCalendarStartDate")],ie={};for(let Z=0;Z<M.length;Z+=1)ie=k(ie,M[Z]);let _e=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],de={};for(let Z=0;Z<_e.length;Z+=1)de=k(de,_e[Z]);let X=[n[28]("BonusCalendarEndDate")],ae={};for(let Z=0;Z<X.length;Z+=1)ae=k(ae,X[Z]);let K=[n[28]("BonusCalendarContainer")],se={};for(let Z=0;Z<K.length;Z+=1)se=k(se,K[Z]);let J=[n[28]("BonusFilterButton"),{disabled:G=n[13]||n[21]}],ee={};for(let Z=0;Z<J.length;Z+=1)ee=k(ee,J[Z]);let w=[L("BonusCalendarContent")],O={};for(let Z=0;Z<w.length;Z+=1)O=k(O,w[Z]);let he=[n[28]("BonusCalendarWrapper")],Oe={};for(let Z=0;Z<he.length;Z+=1)Oe=k(Oe,he[Z]);return{c(){e=E("div"),t=E("div"),i=D(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=D(d),h=z(),f=E("vaadin-date-picker"),b=z(),_=E("div"),C=E("label"),g=D(v),A=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=D(F),T(t,Q),m(u,"for","BonusCalendarStartDate"),T(f,H),T(l,ie),m(C,"for","BonusCalendarEndDate"),T(y,de),T(_,ae),T(a,se),T(x,ee),T(s,O),T(e,Oe)},m(Z,W){N(Z,e,W),p(e,t),p(t,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),n[46](f),p(a,b),p(a,_),p(_,C),p(C,g),p(_,A),p(_,y),n[47](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),R||(B=[Pe(f,"validated",n[37]),Pe(y,"validated",n[37]),Pe(x,"click",n[48])],R=!0)},p(Z,W){W[0]&536870912&&r!==(r=Z[29]("bonus.canlendarTitle")+"")&&re(i,r,Q.contenteditable),W[0]&536870912&&d!==(d=Z[29]("bonus.from")+"")&&pe(c,d),T(f,H=ke(q,[{min:Z[30]},{max:Z[31]},W[0]&8388608&&{value:Z[23]},{placeholder:"From"},L("VaadinDatePicker")])),T(l,ie=ke(M,[W[0]&268435456&&Z[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=Z[29]("bonus.to")+"")&&pe(g,v),T(y,de=ke(_e,[{min:Z[30]},{max:Z[31]},W[0]&16777216&&{value:Z[24]},{placeholder:"To"},L("VaadinDatePicker")])),T(_,ae=ke(X,[W[0]&268435456&&Z[28]("BonusCalendarEndDate")])),T(a,se=ke(K,[W[0]&268435456&&Z[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=Z[29]("bonus.filter")+"")&&re(j,F,ee.contenteditable),T(x,ee=ke(J,[W[0]&268435456&&Z[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=Z[13]||Z[21])&&{disabled:G}])),T(e,Oe=ke(he,[W[0]&268435456&&Z[28]("BonusCalendarWrapper")]))},d(Z){Z&&I(e),n[46](null),n[47](null),R=!1,qe(B)}}}function dv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,b,_,C,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],A={};for(let B=0;B<g.length;B+=1)A=k(A,g[B]);let y=[n[28]("BonusClaimButton"),{disabled:b=n[19]||!n[26]}],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let x=[n[28]("BonusCodeWrapper")],F={};for(let B=0;B<x.length;B+=1)F=k(F,x[B]);let j=n[20]&&ul(n),G=[n[28]("BonusCodeContainer")],R={};for(let B=0;B<G.length;B+=1)R=k(R,G[B]);return{c(){e=E("div"),t=E("label"),r=E("span"),r.textContent="*",o=D(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=D(h),_=z(),j&&j.c(),m(r,"class","Asterisk"),m(t,"for","BonusCode"),T(l,A),T(c,S),T(a,F),T(e,R)},m(B,V){N(B,e,V),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),gr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),j&&j.m(e,null),C||(v=[Pe(l,"input",n[44]),Pe(l,"keyup",n[36]),Pe(c,"click",n[45])],C=!0)},p(B,V){V[0]&536870912&&i!==(i=B[29]("bonus.bonusCode")+"")&&pe(o,i),T(l,A=ke(g,[V[0]&268435456&&B[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},V[0]&536870912&&u!==(u=B[29]("bonus.placeholder"))&&{placeholder:u}])),V[0]&262144&&l.value!==B[18]&&gr(l,B[18]),V[0]&536870912&&h!==(h=B[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),T(c,S=ke(y,[V[0]&268435456&&B[28]("BonusClaimButton"),V[0]&67633152&&b!==(b=B[19]||!B[26])&&{disabled:b}])),T(a,F=ke(x,[V[0]&268435456&&B[28]("BonusCodeWrapper")])),B[20]?j?j.p(B,V):(j=ul(B),j.c(),j.m(e,null)):j&&(j.d(1),j=null),T(e,R=ke(G,[V[0]&268435456&&B[28]("BonusCodeContainer")]))},d(B){B&&I(e),j&&j.d(),C=!1,qe(v)}}}function ul(n){let e,t=n[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=D(t),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.invalidBonusCode")+"")&&pe(r,t)},d(i){i&&I(e)}}}function cv(n){let e,t;function r(a,l){return a[12].length>0?mv:a[14]?pv:fv}let i=r(n),o=i(n),s=n[12].length!==0&&cl(n);return{c(){o.c(),e=z(),s&&s.c(),t=nt()},m(a,l){o.m(a,l),N(a,e,l),s&&s.m(a,l),N(a,t,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=cl(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(a){a&&(I(e),I(t)),o.d(a),s&&s.d(a)}}}function hv(n){let e,t=[L("ModalLoader")],r={};for(let i=0;i<t.length;i+=1)r=k(r,t[i]);return{c(){e=E("div"),T(e,r)},m(i,o){N(i,e,o)},p:Me,d(i){i&&I(e)}}}function fv(n){let e,t=n[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=D(t),m(e,"class","NoBonus")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.noBonus")+"")&&pe(r,t)},d(i){i&&I(e)}}}function pv(n){let e,t=n[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=D(t),i=D(": "),o=D(n[14]),m(e,"class","BonusError")},m(s,a){N(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&t!==(t=s[29]("bonus.error")+"")&&pe(r,t),a[0]&16384&&pe(o,s[14])},d(s){s&&I(e)}}}function mv(n){let e,t=Fe(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=dl(sl(n,t,s));let i=[L("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();T(e,o)},m(s,a){N(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){t=Fe(s[12]);let l;for(l=0;l<t.length;l+=1){const u=sl(s,t,l);r[l]?r[l].p(u,a):(r[l]=dl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(s){s&&I(e),vt(r,s)}}}function dl(n){let e,t,r,i=[{rawbonus:JSON.stringify(n[63]),status:n[25],cmsendpoint:n[3],lang:n[0],clientstyling:n[5],clientstylingurl:n[6],mbsource:n[4],translationurl:n[7],levelcountlimit:n[8],currency:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[n[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),t=E("casino-bonus-card"),r=z(),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(e,r)},p(l,u){T(t,o=ke(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[63]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),T(e,a=ke(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&I(e)}}}function cl(n){let e;return{c(){e=E("casino-bonus-pagination"),Ve(e,"totalitems",n[16]),Ve(e,"currentpage",n[15]),Ve(e,"pagesize",n[2]),Ve(e,"limit",n[17]),Ve(e,"clientstyling",n[5]),Ve(e,"clientstylingurl",n[6]),Ve(e,"mbsource",n[4])},m(t,r){N(t,e,r)},p(t,r){r[0]&65536&&Ve(e,"totalitems",t[16]),r[0]&32768&&Ve(e,"currentpage",t[15]),r[0]&4&&Ve(e,"pagesize",t[2]),r[0]&131072&&Ve(e,"limit",t[17]),r[0]&32&&Ve(e,"clientstyling",t[5]),r[0]&64&&Ve(e,"clientstylingurl",t[6]),r[0]&16&&Ve(e,"mbsource",t[4])},d(t){t&&I(e)}}}function hl(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,b=n[29]("bonus.forfeitConfirm")+"",_,C,v,g=[L("ModalText")],A={};for(let M=0;M<g.length;M+=1)A=k(A,g[M]);let y=[L("ModalCancel")],S={};for(let M=0;M<y.length;M+=1)S=k(S,y[M]);let x=[L("ModalConfirm")],F={};for(let M=0;M<x.length;M+=1)F=k(F,x[M]);let j=[L("ModalButtons")],G={};for(let M=0;M<j.length;M+=1)G=k(G,j[M]);let R=[L("ModalBody")],B={};for(let M=0;M<R.length;M+=1)B=k(B,R[M]);let V=[L("ModalContent")],Q={};for(let M=0;M<V.length;M+=1)Q=k(Q,V[M]);let q=[n[28]("ModalWrapper")],H={};for(let M=0;M<q.length;M+=1)H=k(H,q[M]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),s=D(o),a=z(),l=E("div"),u=E("button"),c=D(d),h=z(),f=E("button"),_=D(b),T(i,A),T(u,S),T(f,F),T(l,G),T(r,B),T(t,Q),T(e,H)},m(M,ie){N(M,e,ie),p(e,t),p(t,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),C||(v=[Pe(u,"click",n[34]),Pe(f,"click",n[49])],C=!0)},p(M,ie){ie[0]&536870912&&o!==(o=M[29]("bonus.forfeitMessage")+"")&&re(s,o,A.contenteditable),ie[0]&536870912&&d!==(d=M[29]("bonus.forfeitCancel")+"")&&re(c,d,S.contenteditable),ie[0]&536870912&&b!==(b=M[29]("bonus.forfeitConfirm")+"")&&re(_,b,F.contenteditable),T(e,H=ke(q,[ie[0]&268435456&&M[28]("ModalWrapper")]))},d(M){M&&I(e),C=!1,qe(v)}}}function _v(n){let e,t,r,i,o,s,a=Fe(ma),l=[];for(let y=0;y<a.length;y+=1)l[y]=ll(al(n,a,y));let u=[n[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]===oe.CLAIMABLE)return dv;if(y[25]===oe.COMPLETED)return uv}let h=c(n),f=h&&h(n);function b(y,S){return y[13]?hv:cv}let _=b(n),C=_(n),v=n[22]&&hl(n),g=[L("BonusesController")],A={};for(let y=0;y<g.length;y+=1)A=k(A,g[y]);return{c(){e=E("div"),t=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),C.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),T(t,d),T(e,A)},m(y,S){N(y,e,S),p(e,t),p(t,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),C.m(e,null),p(e,s),v&&v.m(e,null),n[50](e)},p(y,S){if(S[0]&838868992|S[1]&16){a=Fe(ma);let x;for(x=0;x<a.length;x+=1){const F=al(y,a,x);l[x]?l[x].p(F,S):(l[x]=ll(F),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}T(t,d=ke(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),_===(_=b(y))&&C?C.p(y,S):(C.d(1),C=_(y),C&&(C.c(),C.m(e,s))),y[22]?v?v.p(y,S):(v=hl(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Me,o:Me,d(y){y&&I(e),vt(l,y),f&&f.d(),C.d(),v&&v.d(),n[50](null)}}}function gv(n,e,t){let r,i,o;wl(n,Jl,Y=>t(29,o=Y));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:C="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,A=!1,y=[],S=!0,x="",F="",j=1,G=0,R=2,B=xn(Ps(new Date,Zg),"yyyy-MM-dd"),V=xn(new Date,"yyyy-MM-dd"),Q=xn(Ps(new Date,Kg),"yyyy-MM-dd"),q,H,M="",ie=!0,_e=!1,de=!1,X=!1,ae=Q,K=V,se,J,ee=oe.ACTIVE,w=!0,O="";su(g)&&(A=!0,R=1);const he=()=>{fetch(_).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(Re=>{wr(Re,Ae[Re])})}).catch(Ae=>{console.log(Ae)})};Object.keys(Cr).forEach(Y=>{wr(Y,Cr[Y])}),Nr(()=>(window.addEventListener("message",Oe,!1),()=>{se==null||se.removeEventListener("change",ht),J==null||J.removeEventListener("change",Je),window.removeEventListener("message",Oe)}));const Oe=Y=>{switch(Y.data.type){case"PaginationChange":t(15,j=Y.data.page),Ue(j);break;case"OnBonusClaimed":W(Y.data.bonusCode);break;case"OnBonusForfeit":t(27,O=Y.data.bonus.id),t(22,X=!0);break}},Z=()=>ze(this,null,function*(){Ue(1)}),W=(Y,Ae)=>ze(this,null,function*(){t(26,w=!1);const Re=yield iv(s,l,{bonusCode:Y,currency:u});if(!Re.success){F=Re.errorMessage||"",Ae?t(20,_e=!0):window.postMessage({type:"OnBonusClaimError",message:F,bonusCode:Y}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0);return}t(20,_e=!1),Ue(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0)}),xe=Y=>ze(this,null,function*(){t(26,w=!1);const Ae=yield ov(s,l,{bonusWalletID:Y});if(!Ae.success){t(14,x=Ae.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1);return}Ue(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1)}),Ce=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,X=!1)},Ue=Y=>ze(this,null,function*(){j!==Y&&t(15,j=Y);const Ae=(Y-1)*Number(d);t(13,S=!0),t(12,y=[]);const Re=yield ct(s,l,Ae,{lang:a,limit:d});if(!Re.success){t(14,x=Re.errorMessage),t(13,S=!1);return}const{list:Et,total:hn}=ob(Re);t(16,G=hn),t(12,y=Et),t(13,S=!1)}),ct=(hn,Id,Nd,...Ld)=>ze(this,[hn,Id,Nd,...Ld],function*(Y,Ae,Re,Et={}){const{limit:Kn="",lang:Jn=a}=Et;switch(ee){case oe.CLAIMABLE:{const Ft={pagination:`limit=${Kn},offset=${Re}`,language:Jn};return v===!0&&(Ft.selectable=v),yield av(Y,Ae,Ft)}default:{const Ft=lb({limit:Kn,language:Jn,offset:Re,bonusStatus:ee,bonusCalendarStartDate:ae,bonusCalendarEndDate:K,invalidDate:de,lastMonth:Q,maxDate:V});return yield sv(Y,Ae,Ft)}}}),ht=Y=>{t(23,ae=Y.target.value)},Je=Y=>{t(24,K=Y.target.value)},Rt=()=>{se.removeEventListener("change",ht),J.removeEventListener("change",Je),se.addEventListener("change",ht,!1),J.addEventListener("change",Je,!1)},Ct=()=>{t(20,_e=!1),t(19,ie=!sb(M))},$=Y=>{const{valid:Ae}=Y.detail,{start:Re,end:Et}=ib(ae,K);t(23,ae=Re),t(24,K=Et);const hn=ab(ae,K,Ae);t(21,de=hn.invalidDate)},ve=Y=>{t(25,ee=Y),Ue(1)};function Xn(){M=this.value,t(18,M)}const ri=()=>{W(M,!0)};function ii(Y){st[Y?"unshift":"push"](()=>{se=Y,t(10,se)})}function oi(Y){st[Y?"unshift":"push"](()=>{J=Y,t(11,J)})}const si=()=>Ue(1),ai=()=>xe(O);function Zn(Y){st[Y?"unshift":"push"](()=>{q=Y,t(9,q)})}return n.$$set=Y=>{"endpoint"in Y&&t(38,s=Y.endpoint),"lang"in Y&&t(0,a=Y.lang),"session"in Y&&t(39,l=Y.session),"currency"in Y&&t(1,u=Y.currency),"limit"in Y&&t(2,d=Y.limit),"cmsendpoint"in Y&&t(3,c=Y.cmsendpoint),"mbsource"in Y&&t(4,h=Y.mbsource),"clientstyling"in Y&&t(5,f=Y.clientstyling),"clientstylingurl"in Y&&t(6,b=Y.clientstylingurl),"translationurl"in Y&&t(7,_=Y.translationurl),"levelcountlimit"in Y&&t(8,C=Y.levelcountlimit),"onlyoneclick"in Y&&t(40,v=Y.onlyoneclick)},n.$$.update=()=>{n.$$.dirty[0]&3072&&se&&J&&Rt(),n.$$.dirty[1]&1024&&t(28,r=(Y,Ae="")=>L(`${Y}${A?` ${Y}Mobile`:""}`,Ae)),n.$$.dirty[0]&1&&a&&Ql(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(42,i=s&&l&&a&&d),n.$$.dirty[1]&2048&&i&&Z(),n.$$.dirty[0]&544&&f&&q&&jr(q,f),n.$$.dirty[0]&576&&b&&q&&Gr(q,b),n.$$.dirty[0]&528&&h&&q&&Yr(q,`${h}.Style`,H),n.$$.dirty[0]&128&&_&&he()},[a,u,d,c,h,f,b,_,C,q,se,J,y,S,x,j,G,R,M,ie,_e,de,X,ae,K,ee,w,O,r,o,B,V,W,xe,Ce,Ue,Ct,$,s,l,v,A,i,ve,Xn,ri,ii,oi,si,ai,Zn]}class Od extends Rr{constructor(e){super(),Lr(this,e,gv,_v,zn,{endpoint:38,lang:0,session:39,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8,onlyoneclick:40},lv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ue()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),ue()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),ue()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),ue()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),ue()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),ue()}}Hr(Od,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Od;
3574
+ `),K.c(),T(t,Q),le(l,"BonusAmount",n[0]===oe.ACTIVE),le(f,"Amount",n[0]===oe.ACTIVE),T(a,H),T(e,ie),T(A,de),T(j,J),T(g,w)},m(O,he){N(O,e,he),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),p(a,h),p(a,f),p(f,_),p(f,C),N(O,v,he),N(O,g,he),p(g,A),p(A,S),p(A,x),p(g,F),p(g,j),p(j,R),p(j,B),K.m(j,null)},p(O,he){he[0]&33554432&&r!==(r=O[25]("bonusCard.bonusAmount")+"")&&re(i,r,Q.contenteditable),he[0]&32&&u!==(u=O[5].remainingAmount+"")&&pe(d,u),he[0]&131072&&pe(c,O[17]),he[0]&1&&le(l,"BonusAmount",O[0]===oe.ACTIVE),he[0]&32&&b!==(b=O[5].amount+"")&&pe(_,b),he[0]&131072&&pe(C,O[17]),he[0]&1&&le(f,"Amount",O[0]===oe.ACTIVE),he[0]&33554432&&y!==(y=O[25]("bonusCard.wageredAmount")+"")&&re(S,y,de.contenteditable),he[0]&131104&&G!==(G=O[29](O[5])+O[17]+"")&&re(R,G,J.contenteditable),ae===(ae=X(O))&&K?K.p(O,he):(K.d(1),K=ae(O),K&&(K.c(),K.m(j,null)))},d(O){O&&(I(e),I(v),I(g)),K.d()}}}function bb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function vb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Sa(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h=[L("BonusCardLabel")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=[L("BonusCardRowText")],_={};for(let g=0;g<b.length;g+=1)_=k(_,b[g]);let C=[L("BonusCardRow")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),le(l,"BonusAmount",n[0]===oe.ACTIVE),T(a,_),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(g,A){A[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),A[0]&32&&u!==(u=g[5].remainingAmount+"")&&pe(d,u),A[0]&131072&&pe(c,g[17]),A[0]&1&&le(l,"BonusAmount",g[0]===oe.ACTIVE)},d(g){g&&I(e)}}}function ka(n){let e,t=n[5].status===oe.ACTIVE&&Da(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5].status===oe.ACTIVE?t?t.p(r,i):(t=Da(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&I(e),t&&t.d(r)}}}function Da(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[5].numberOfFreeSpin+"",u,d,c,h,f=n[25]("bonusCard.game")+"",b,_,C,v,g,A,y,S,x,F,j,G,R,B,V,Q,q,H,M,ie=[L("BonusCardLabel")],_e={};for(let W=0;W<ie.length;W+=1)_e=k(_e,ie[W]);let de=[L("BonusCardRowText")],X={};for(let W=0;W<de.length;W+=1)X=k(X,de[W]);let ae=[L("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=k(K,ae[W]);let se=[L("BonusCardLabel")],J={};for(let W=0;W<se.length;W+=1)J=k(J,se[W]);let ee=Re(n[23]),w=[];for(let W=0;W<ee.length;W+=1)w[W]=Ma(Ea(n,ee,W));let O=[L("BonusCardRowText")],he={};for(let W=0;W<O.length;W+=1)he=k(he,O[W]);let Oe=[L("BonusCardRow")],Z={};for(let W=0;W<Oe.length;W+=1)Z=k(Z,Oe[W]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("div"),h=E("div"),b=D(f),_=D(":"),C=z(),v=E("div"),g=E("div"),A=E("button"),y=te("svg"),S=te("path"),F=z(),j=E("div"),G=E("span");for(let W=0;W<w.length;W+=1)w[W].c();R=z(),B=E("button"),V=te("svg"),Q=te("path"),T(t,_e),T(a,X),T(e,K),T(h,J),m(S,"stroke-linecap","round"),m(S,"stroke-linejoin","round"),m(S,"stroke-width","2"),m(S,"d","M15 19l-7-7 7-7"),m(y,"fill","none"),m(y,"stroke","currentColor"),m(y,"viewBox","0 0 24 24"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(A,"class","SliderNavButton"),m(A,"part","SliderNavButton"),A.disabled=x=n[24]==0,le(A,"Hide",n[23].length<=3),m(G,"class","Games"),ns(G,"transform","translateX("+n[24]+"px)"),m(j,"class","Main"),m(Q,"stroke-linecap","round"),m(Q,"stroke-linejoin","round"),m(Q,"stroke-width","2"),m(Q,"d","M9 5l7 7-7 7"),m(V,"fill","none"),m(V,"stroke","currentColor"),m(V,"viewBox","0 0 24 24"),m(V,"xmlns","http://www.w3.org/2000/svg"),m(B,"class","SliderNavButton"),m(B,"part","SliderNavButton"),B.disabled=q=n[24]<=-(n[23].length-3)*100,le(B,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),T(v,he),T(c,Z)},m(W,xe){N(W,e,xe),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(W,d,xe),N(W,c,xe),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),p(v,g),p(g,A),p(A,y),p(y,S),p(g,F),p(g,j),p(j,G);for(let Ce=0;Ce<w.length;Ce+=1)w[Ce]&&w[Ce].m(G,null);p(g,R),p(g,B),p(B,V),p(V,Q),H||(M=[Pe(A,"click",n[51]),Pe(B,"click",n[55])],H=!0)},p(W,xe){if(xe[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&re(i,r,_e.contenteditable),xe[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&re(u,l,X.contenteditable),xe[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&re(b,f,J.contenteditable),xe[0]&16777216&&x!==(x=W[24]==0)&&(A.disabled=x),xe[0]&8388608&&le(A,"Hide",W[23].length<=3),xe[0]&48234496|xe[1]&7168){ee=Re(W[23]);let Ce;for(Ce=0;Ce<ee.length;Ce+=1){const Fe=Ea(W,ee,Ce);w[Ce]?w[Ce].p(Fe,xe):(w[Ce]=Ma(Fe),w[Ce].c(),w[Ce].m(G,null))}for(;Ce<w.length;Ce+=1)w[Ce].d(1);w.length=ee.length}xe[0]&16777216&&ns(G,"transform","translateX("+W[24]+"px)"),xe[0]&25165824&&q!==(q=W[24]<=-(W[23].length-3)*100)&&(B.disabled=q),xe[0]&8388608&&le(B,"Hide",W[23].length<=3)},d(W){W&&(I(e),I(d),I(c)),yt(w,W),H=!1,qe(M)}}}function Ma(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,b;function _(){return n[52](n[87])}function C(){return n[53](n[89])}return{c(){e=E("span"),t=E("span"),i=D(r),a=z(),l=E("img"),h=z(),m(t,"class",o="PlayNowButton "+(n[21]&&n[22]==n[89]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":"")),ts(l.src,u=n[87].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[87].name),m(l,"title",c=n[87].name),m(e,"class","Game"),m(e,"part","Game")},m(v,g){N(v,e,g),p(e,t),p(t,i),p(e,a),p(e,l),p(e,h),f||(b=[Pe(e,"click",_),Pe(e,"mouseenter",C),Pe(e,"mouseleave",n[54])],f=!0)},p(v,g){n=v,g[0]&33554432&&r!==(r=n[25]("bonusCard.playNow")+"")&&pe(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(n[21]&&n[22]==n[89]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[89]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!ts(l.src,u=n[87].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[87].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[87].name)&&m(l,"title",c)},d(v){v&&I(e),f=!1,qe(b)}}}function Ba(n){let e,t,r=n[25]("bonusCard.wageringType")+"",i,o,s,a,l=n[25](`bonusCard.${n[5].wageringType}`)+"",u,d,c,h,f=n[25]("bonusCard.wagered")+"",b,_,C,v,g=[L("BonusCardLabel")],A={};for(let H=0;H<g.length;H+=1)A=k(A,g[H]);let y=[L("BonusCardRowText")],S={};for(let H=0;H<y.length;H+=1)S=k(S,y[H]);let x=[L("BonusCardRow")],F={};for(let H=0;H<x.length;H+=1)F=k(F,x[H]);let j=[L("BonusCardLabel")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=n[5].wageringType==="money"&&Oa(n),B=[L("BonusCardRowText")],V={};for(let H=0;H<B.length;H+=1)V=k(V,B[H]);let Q=[L("BonusCardRow")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[H]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),d=z(),c=E("p"),h=E("span"),b=D(f),_=D(":"),C=z(),v=E("span"),R&&R.c(),T(t,A),T(a,S),T(e,F),T(h,G),T(v,V),T(c,q)},m(H,M){N(H,e,M),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(H,d,M),N(H,c,M),p(c,h),p(h,b),p(h,_),p(c,C),p(c,v),R&&R.m(v,null)},p(H,M){M[0]&33554432&&r!==(r=H[25]("bonusCard.wageringType")+"")&&re(i,r,A.contenteditable),M[0]&33554464&&l!==(l=H[25](`bonusCard.${H[5].wageringType}`)+"")&&re(u,l,S.contenteditable),M[0]&33554432&&f!==(f=H[25]("bonusCard.wagered")+"")&&re(b,f,G.contenteditable),H[5].wageringType==="money"?R?R.p(H,M):(R=Oa(H),R.c(),R.m(v,null)):R&&(R.d(1),R=null)},d(H){H&&(I(e),I(d),I(c)),R&&R.d()}}}function Oa(n){let e;function t(o,s){return o[0]===oe.ACTIVE?wb:yb}let r=t(n),i=r(n);return{c(){i.c(),e=nt()},m(o,s){i.m(o,s),N(o,e,s)},p(o,s){r===(r=t(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&I(e),i.d(o)}}}function yb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Eb:Cb}let s=o(n),a=s(n);return{c(){t=D(e),r=D(` /
3575
+ `),a.c(),i=nt()},m(l,u){N(l,t,u),N(l,r,u),a.m(l,u),N(l,i,u)},p(l,u){u[0]&131104&&e!==(e=l[29](l[5])+l[17]+"")&&pe(t,e),s===(s=o(l))&&a?a.p(l,u):(a.d(1),a=s(l),a&&(a.c(),a.m(i.parentNode,i)))},d(l){l&&(I(t),I(r),I(i)),a.d(l)}}}function wb(n){var d;let e=n[30](n[5])+"",t,r,i,o,s=((d=n[5].wageringProgress)==null?void 0:d.currentLevelIncrement)+"",a,l,u;return{c(){t=D(e),r=z(),i=D(n[17]),o=D(` /
3576
+ `),a=D(s),l=z(),u=D(n[17])},m(c,h){N(c,t,h),N(c,r,h),N(c,i,h),N(c,o,h),N(c,a,h),N(c,l,h),N(c,u,h)},p(c,h){var f;h[0]&32&&e!==(e=c[30](c[5])+"")&&pe(t,e),h[0]&131072&&pe(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&pe(a,s),h[0]&131072&&pe(u,c[17])},d(c){c&&(I(t),I(r),I(i),I(o),I(a),I(l),I(u))}}}function Cb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Eb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Ia(n){var _e,de;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((de=(_e=n[5].wallet.standard)==null?void 0:_e.initialAmount)==null?void 0:de.fixedAmount)+"",d,c,h,f,b,_=n[25]("bonusCard.wageringRequirement")+"",C,v,g,A,y=n[37](n[5])+n[17]+"",S,x=[L("BonusCardLabel")],F={};for(let X=0;X<x.length;X+=1)F=k(F,x[X]);let j=[L("BonusCardRowText")],G={};for(let X=0;X<j.length;X+=1)G=k(G,j[X]);let R=[L("BonusCardRow")],B={};for(let X=0;X<R.length;X+=1)B=k(B,R[X]);let V=[L("BonusCardLabel")],Q={};for(let X=0;X<V.length;X+=1)Q=k(Q,V[X]);let q=[L("BonusCardRowText")],H={};for(let X=0;X<q.length;X+=1)H=k(H,q[X]);let M=[L("BonusCardRow")],ie={};for(let X=0;X<M.length;X+=1)ie=k(ie,M[X]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),h=z(),f=E("p"),b=E("span"),C=D(_),v=D(":"),g=z(),A=E("span"),S=D(y),T(t,F),T(a,G),T(e,B),T(b,Q),T(A,H),T(f,ie)},m(X,ae){N(X,e,ae),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c),N(X,h,ae),N(X,f,ae),p(f,b),p(b,C),p(b,v),p(f,g),p(f,A),p(A,S)},p(X,ae){var K,se;ae[0]&33554432&&r!==(r=X[25]("bonusCard.bonusAmount")+"")&&re(i,r,F.contenteditable),ae[0]&32&&u!==(u=X[36]((se=(K=X[5].wallet.standard)==null?void 0:K.initialAmount)==null?void 0:se.fixedAmount)+"")&&pe(d,u),ae[0]&131072&&pe(c,X[17]),ae[0]&33554432&&_!==(_=X[25]("bonusCard.wageringRequirement")+"")&&re(C,_,Q.contenteditable),ae[0]&131104&&y!==(y=X[37](X[5])+X[17]+"")&&re(S,y,H.contenteditable)},d(X){X&&(I(e),I(h),I(f))}}}function Na(n){var g,A;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((A=(g=n[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:A.fixedAmount)+"",d,c,h=[L("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=k(f,h[y]);let b=[L("BonusCardRowText")],_={};for(let y=0;y<b.length;y+=1)_=k(_,b[y]);let C=[L("BonusCardRow")],v={};for(let y=0;y<C.length;y+=1)v=k(v,C[y]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),l=E("span"),d=D(u),c=D(n[17]),T(t,f),T(a,_),T(e,v)},m(y,S){N(y,e,S),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,l),p(l,d),p(l,c)},p(y,S){var x,F;S[0]&33554432&&r!==(r=y[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),S[0]&32&&u!==(u=y[36]((F=(x=y[5].wallet.freeBet)==null?void 0:x.initialAmount)==null?void 0:F.fixedAmount)+"")&&pe(d,u),S[0]&131072&&pe(c,y[17])},d(y){y&&I(e)}}}function La(n){let e,t,r=n[25]("bonusCard.roundNumber")+"",i,o,s,a,l=n[38](n[5])+"",u,d=[L("BonusCardLabel")],c={};for(let C=0;C<d.length;C+=1)c=k(c,d[C]);let h=[L("BonusCardRowText")],f={};for(let C=0;C<h.length;C+=1)f=k(f,h[C]);let b=[L("BonusCardRow")],_={};for(let C=0;C<b.length;C+=1)_=k(_,b[C]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),u=D(l),T(t,c),T(a,f),T(e,_)},m(C,v){N(C,e,v),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u)},p(C,v){v[0]&33554432&&r!==(r=C[25]("bonusCard.roundNumber")+"")&&re(i,r,c.contenteditable),v[0]&32&&l!==(l=C[38](C[5])+"")&&re(u,l,f.contenteditable)},d(C){C&&I(e)}}}function Ha(n){let e,t,r=n[25]("bonusCard.levels")+"",i,o,s,a,l=[L("BonusCardLabel")],u={};for(let v=0;v<l.length;v+=1)u=k(u,l[v]);function d(v,g){return v[8]>0?Ab:xb}let c=d(n),h=c(n),f=[L("BonusCardRowText")],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardRow")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=E("p"),t=E("span"),i=D(r),o=D(":"),s=z(),a=E("span"),h.c(),T(t,u),T(a,b),T(e,C)},m(v,g){N(v,e,g),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),h.m(a,null)},p(v,g){g[0]&33554432&&r!==(r=v[25]("bonusCard.levels")+"")&&re(i,r,u.contenteditable),c===(c=d(v))&&h?h.p(v,g):(h.d(1),h=c(v),h&&(h.c(),h.m(a,null)))},d(v){v&&I(e),h.d()}}}function xb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Ab(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function Ra(n){let e,t,r=n[5].type==="standard"&&Fa(n),i=n[5].type==="wagering"&&Ua(n);return{c(){r&&r.c(),e=z(),i&&i.c(),t=nt()},m(o,s){r&&r.m(o,s),N(o,e,s),i&&i.m(o,s),N(o,t,s)},p(o,s){o[5].type==="standard"?r?r.p(o,s):(r=Fa(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Ua(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(I(e),I(t)),r&&r.d(o),i&&i.d(o)}}}function Fa(n){let e,t,r,i=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[L("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("div"),t=E("casino-bonus-progress"),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t)},p(l,u){T(t,o=ke(i,[L("CircularProgress"),u[0]&32&&r!==(r=l[31](l[5]))&&{value:r},u[0]&1&&{status:l[0]},u[0]&4&&{clientstyling:l[2]},u[0]&8&&{clientstylingurl:l[3]},u[0]&2&&{mbsource:l[1]}]))},d(l){l&&I(e)}}}function Ua(n){var S;let e,t,r,i,o,s=n[25]("bonusCard.level")+"",a,l,u=(((S=n[5].wageringProgress)==null?void 0:S.currentLevel)||1)+"",d,c,h=[L("CircularProgress"),{value:r=n[31](n[5])},{status:n[0]},{clientstyling:n[2]},{clientstylingurl:n[3]},{mbsource:n[1]}],f={};for(let x=0;x<h.length;x+=1)f=k(f,h[x]);function b(x,F){return x[8]>0?Pb:Tb}let _=b(n),C=_(n),v=[L("CircularProgressText")],g={};for(let x=0;x<v.length;x+=1)g=k(g,v[x]);let A=[L("BonusCardProgress")],y={};for(let x=0;x<A.length;x+=1)y=k(y,A[x]);return{c(){e=E("div"),t=E("casino-bonus-progress"),i=z(),o=E("div"),a=D(s),l=D(": "),d=D(u),c=D(` /
3577
+ `),C.c(),T(t,f),T(o,g),T(e,y)},m(x,F){N(x,e,F),p(e,t),p(e,i),p(e,o),p(o,a),p(o,l),p(o,d),p(o,c),C.m(o,null)},p(x,F){var j;T(t,f=ke(h,[L("CircularProgress"),F[0]&32&&r!==(r=x[31](x[5]))&&{value:r},F[0]&1&&{status:x[0]},F[0]&4&&{clientstyling:x[2]},F[0]&8&&{clientstylingurl:x[3]},F[0]&2&&{mbsource:x[1]}])),F[0]&33554432&&s!==(s=x[25]("bonusCard.level")+"")&&re(a,s,g.contenteditable),F[0]&32&&u!==(u=(((j=x[5].wageringProgress)==null?void 0:j.currentLevel)||1)+"")&&re(d,u,g.contenteditable),_===(_=b(x))&&C?C.p(x,F):(C.d(1),C=_(x),C&&(C.c(),C.m(o,null)))},d(x){x&&I(e),C.d()}}}function Tb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Pb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&pe(e,t[8])},d(t){t&&I(e)}}}function za(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,b=[L("BonusCardAdditionalTitle")],_={};for(let R=0;R<b.length;R+=1)_=k(_,b[R]);function C(R,B){return R[11]?Sb:kb}let v=C(n),g=v(n),A=[L("BonusCardAdditionalButton")],y={};for(let R=0;R<A.length;R+=1)y=k(y,A[R]);let S=[L("BonusCardAdditionalHeader")],x={};for(let R=0;R<S.length;R+=1)x=k(x,S[R]);let F=n[11]&&$a(n),j=[L("BonusCardAdditional")],G={};for(let R=0;R<j.length;R+=1)G=k(G,j[R]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=z(),l=D(a),u=z(),d=E("span"),g.c(),c=z(),F&&F.c(),m(o,"d","M18 5.97075H14.885C15.3396 5.74285 15.7565 5.44638 16.121 5.09175C16.6824 4.52865 16.9977 3.76592 16.9977 2.97075C16.9977 2.17558 16.6824 1.41285 16.121 0.84975C14.987 -0.28325 13.013 -0.28325 11.879 0.84975C10.243 2.48675 10.02 5.56775 10 5.91375C9.98 5.56775 9.757 2.48675 8.121 0.85075C6.987 -0.28225 5.011 -0.28125 3.879 0.85075C3.312 1.41675 3 2.16975 3 2.97075C3 3.77175 3.312 4.52575 3.878 5.09175C4.24311 5.4461 4.66027 5.74253 5.115 5.97075H2C0.897 5.97075 0 6.86875 0 7.97075V10.9707C0 11.236 0.105357 11.4903 0.292893 11.6779C0.48043 11.8654 0.734784 11.9707 1 11.9707V17.9708C1 19.0738 1.897 19.9708 3 19.9708H17C18.103 19.9708 19 19.0738 19 17.9708V11.9707C19.2652 11.9707 19.5196 11.8654 19.7071 11.6779C19.8946 11.4903 20 11.236 20 10.9707V7.97075C20 6.86875 19.103 5.97075 18 5.97075ZM6 17.9708H3V11.9707H6V17.9708ZM6 9.97075H2V7.97075H6V9.97075ZM5.293 3.67775C5.19982 3.58514 5.12595 3.47497 5.07565 3.35361C5.02536 3.23225 4.99964 3.10212 5 2.97075C4.99947 2.83933 5.02498 2.7091 5.07506 2.58759C5.12514 2.46608 5.1988 2.3557 5.29177 2.26281C5.38475 2.16993 5.49521 2.09639 5.61677 2.04643C5.73833 1.99647 5.86858 1.97109 6 1.97175C6.268 1.97175 6.519 2.07575 6.708 2.26475C7.298 2.85375 7.642 3.91275 7.826 4.79475C6.945 4.60975 5.88 4.26475 5.293 3.67775ZM12 17.9708H8V11.9707H12V17.9708ZM12 9.97075H8V7.97075H12V9.97075ZM13.293 2.26475C13.482 2.07575 13.733 1.97175 14 1.97175C14.267 1.97175 14.518 2.07575 14.707 2.26375C14.8945 2.45128 14.9998 2.70559 14.9998 2.97075C14.9998 3.23591 14.8945 3.49022 14.707 3.67775C14.117 4.26975 13.058 4.61375 12.175 4.79875C12.358 3.91375 12.703 2.85475 13.293 2.26475ZM17 17.9708H14V11.9707H17V17.9708ZM18 9.97075H14V7.97075H18V9.97075Z"),m(o,"fill","black"),m(i,"width","20"),m(i,"height","20"),m(i,"viewBox","0 0 20 20"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,_),T(d,y),T(t,x),le(t,"Active",n[11]),T(e,G)},m(R,B){N(R,e,B),p(e,t),p(t,r),p(r,i),p(i,o),p(r,s),p(r,l),p(t,u),p(t,d),g.m(d,null),p(e,c),F&&F.m(e,null),h||(f=Pe(t,"click",n[56]),h=!0)},p(R,B){B[0]&33554432&&a!==(a=R[25]("bonusCard.rewards")+"")&&re(l,a,_.contenteditable),v!==(v=C(R))&&(g.d(1),g=v(R),g&&(g.c(),g.m(d,null))),B[0]&2048&&le(t,"Active",R[11]),R[11]?F?F.p(R,B):(F=$a(R),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(R){R&&I(e),g.d(),F&&F.d(),h=!1,f()}}}function Sb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function kb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function $a(n){let e,t=n[5].type==="wagering"&&Va(n),r=[L("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=k(i,r[o]);return{c(){e=E("div"),t&&t.c(),T(e,i)},m(o,s){N(o,e,s),t&&t.m(e,null)},p(o,s){o[5].type==="wagering"?t?t.p(o,s):(t=Va(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&I(e),t&&t.d()}}}function Va(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Mb;if(l[5].levels)return Db}let o=i(n),s=o&&o(n),a=t&&qa(n);return{c(){s&&s.c(),e=z(),a&&a.c(),r=nt()},m(l,u){s&&s.m(l,u),N(l,e,u),a&&a.m(l,u),N(l,r,u)},p(l,u){o===(o=i(l))&&s?s.p(l,u):(s&&s.d(1),s=o&&o(l),s&&(s.c(),s.m(e.parentNode,e))),u[0]&48&&(t=l[5].levels.length>Number(l[4])),t?a?a.p(l,u):(a=qa(l),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(l){l&&(I(e),I(r)),s&&s.d(l),a&&a.d(l)}}}function Db(n){let e,t=Re(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=ja(va(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554480|o[1]&24){t=Re(i[5].levels.slice(0,i[4]));let s;for(s=0;s<t.length;s+=1){const a=va(i,t,s);r[s]?r[s].p(a,o):(r[s]=ja(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),yt(r,i)}}}function Mb(n){let e,t=Re(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ya(wa(n,t,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();e=nt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);N(i,e,o)},p(i,o){if(o[0]&33554592|o[1]&512){t=Re(i[40](i[5],i[7]));let s;for(s=0;s<t.length;s+=1){const a=wa(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ya(a),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(i){i&&I(e),yt(r,i)}}}function Wa(n){let e=n[35](n[81],n[84])+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[81],r[84])+"")&&pe(t,e)},d(r){r&&I(t)}}}function ja(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[83])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Re(n[81].bonuses),_=[];for(let g=0;g<b.length;g+=1)_[g]=Wa(ya(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&re(i,r,f.contenteditable),A[0]&32&&s!==(s=g[34](g[5].levels,g[83])+"")&&re(a,s,f.contenteditable),A[0]&48|A[1]&16){b=Re(g[81].bonuses);let y;for(y=0;y<b.length;y+=1){const S=ya(g,b,y);_[y]?_[y].p(S,A):(_[y]=Wa(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),yt(_,g)}}}function Ga(n){let e=n[78]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[78]+"")&&pe(t,e)},d(r){r&&I(t)}}}function Ya(n){let e,t,r=n[25](`bonusCard.${n[75].label}`)+"",i,o,s=n[25]("bonusCard.level")+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let b=Re(n[75].desc),_=[];for(let g=0;g<b.length;g+=1)_[g]=Ga(Ca(n,b,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=k(v,C[g]);return{c(){e=E("p"),t=E("span"),i=D(r),o=z(),a=D(s),l=D(":"),u=z(),d=E("span");for(let g=0;g<_.length;g+=1)_[g].c();c=z(),T(t,f),T(e,v)},m(g,A){N(g,e,A),p(e,t),p(t,i),p(t,o),p(t,a),p(t,l),p(e,u),p(e,d);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[75].label}`)+"")&&re(i,r,f.contenteditable),A[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&re(a,s,f.contenteditable),A[0]&160|A[1]&512){b=Re(g[75].desc);let y;for(y=0;y<b.length;y+=1){const S=Ca(g,b,y);_[y]?_[y].p(S,A):(_[y]=Ga(S),_[y].c(),_[y].m(d,null))}for(;y<_.length;y+=1)_[y].d(1);_.length=b.length}},d(g){g&&I(e),yt(_,g)}}}function qa(n){let e,t=n[25]("bonusCard.allRewards")+"",r,i,o,s=[L("BonusAllRewardsLink"),{href:"javascript:void(0)"}],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("a"),r=D(t),T(e,a)},m(l,u){N(l,e,u),p(e,r),i||(o=Pe(e,"click",n[28]),i=!0)},p(l,u){u[0]&33554432&&t!==(t=l[25]("bonusCard.allRewards")+"")&&re(r,t,a.contenteditable)},d(l){l&&I(e),i=!1,o()}}}function Bb(n){let e,t,r,i,o,s,a,l,u,d,c=n[25]("bonusCard.terms")+"",h,f=[L("BonusCardTermsLink"),{href:n[20]},{target:"__blank"}],b={};for(let v=0;v<f.length;v+=1)b=k(b,f[v]);let _=[L("BonusCardTerms")],C={};for(let v=0;v<_.length;v+=1)C=k(C,_[v]);return{c(){e=E("div"),t=E("a"),r=te("svg"),i=te("path"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=z(),h=D(c),m(i,"fill-rule","evenodd"),m(i,"clip-rule","evenodd"),m(i,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(i,"fill","black"),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(u,"fill","black"),m(r,"width","19"),m(r,"height","21"),m(r,"viewBox","0 0 19 21"),m(r,"fill","none"),m(r,"xmlns","http://www.w3.org/2000/svg"),T(t,b),T(e,C)},m(v,g){N(v,e,g),p(e,t),p(t,r),p(r,i),p(r,o),p(r,s),p(r,a),p(r,l),p(r,u),p(t,d),p(t,h)},p(v,g){g[0]&33554432&&c!==(c=v[25]("bonusCard.terms")+"")&&re(h,c,b.contenteditable),T(t,b=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&I(e)}}}function Ob(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,b,_,C,v,g,A=[L("BonusCardTermsTitle")],y={};for(let H=0;H<A.length;H+=1)y=k(y,A[H]);function S(H,M){return H[12]?Ib:Nb}let x=S(n),F=x(n),j=[L("BonusCardTermsButton")],G={};for(let H=0;H<j.length;H+=1)G=k(G,j[H]);let R=[L("BonusCardTermsHeader")],B={};for(let H=0;H<R.length;H+=1)B=k(B,R[H]);let V=n[12]&&Xa(n),Q=[L("BonusCardTerms")],q={};for(let H=0;H<Q.length;H+=1)q=k(q,Q[H]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=te("path"),a=te("path"),l=te("path"),u=te("path"),d=te("path"),c=z(),f=D(h),b=z(),_=E("span"),F.c(),C=z(),V&&V.c(),m(o,"fill-rule","evenodd"),m(o,"clip-rule","evenodd"),m(o,"d","M0.5 3.675C0.5 1.64535 2.14535 0 4.175 0H14.675C16.7046 0 18.35 1.64535 18.35 3.675V13.4312C18.35 14.4319 17.9419 15.3893 17.2201 16.0823L13.164 19.9761C12.4796 20.6331 11.5676 21 10.6189 21H4.175C2.14536 21 0.5 19.3546 0.5 17.325V3.675ZM4.175 2.1C3.30515 2.1 2.6 2.80515 2.6 3.675V17.325C2.6 18.1948 3.30515 18.9 4.175 18.9H10.6189C11.0255 18.9 11.4164 18.7428 11.7097 18.4612L15.7657 14.5674C16.0751 14.2704 16.25 13.86 16.25 13.4312V3.675C16.25 2.80515 15.5448 2.1 14.675 2.1H4.175Z"),m(o,"fill","black"),m(s,"fill-rule","evenodd"),m(s,"clip-rule","evenodd"),m(s,"d","M16.775 14.9625L12.575 14.9625C12.1401 14.9625 11.7875 15.3151 11.7875 15.75L11.7875 19.95L10.2125 19.95L10.2125 15.75C10.2125 14.4452 11.2703 13.3875 12.575 13.3875L16.775 13.3875L16.775 14.9625Z"),m(s,"fill","black"),m(a,"fill-rule","evenodd"),m(a,"clip-rule","evenodd"),m(a,"d","M6.27502 4.9875C6.27502 4.55258 6.6276 4.2 7.06252 4.2H11.7875C12.2224 4.2 12.575 4.55258 12.575 4.9875C12.575 5.42242 12.2224 5.775 11.7875 5.775H7.06252C6.6276 5.775 6.27502 5.42242 6.27502 4.9875Z"),m(a,"fill","black"),m(l,"fill-rule","evenodd"),m(l,"clip-rule","evenodd"),m(l,"d","M4.70001 8.1375C4.70001 7.70258 5.05259 7.35 5.48751 7.35H13.3625C13.7974 7.35 14.15 7.70258 14.15 8.1375C14.15 8.57242 13.7974 8.925 13.3625 8.925H5.48751C5.05259 8.925 4.70001 8.57242 4.70001 8.1375Z"),m(l,"fill","black"),m(u,"fill-rule","evenodd"),m(u,"clip-rule","evenodd"),m(u,"d","M4.70001 11.8125C4.70001 11.3776 5.05259 11.025 5.48751 11.025H13.3625C13.7974 11.025 14.15 11.3776 14.15 11.8125C14.15 12.2474 13.7974 12.6 13.3625 12.6H5.48751C5.05259 12.6 4.70001 12.2474 4.70001 11.8125Z"),m(u,"fill","black"),m(d,"fill-rule","evenodd"),m(d,"clip-rule","evenodd"),m(d,"d","M4.70001 15.4875C4.70001 15.0526 5.05259 14.7 5.48751 14.7H8.11251C8.54744 14.7 8.90001 15.0526 8.90001 15.4875C8.90001 15.9224 8.54744 16.275 8.11251 16.275H5.48751C5.05259 16.275 4.70001 15.9224 4.70001 15.4875Z"),m(d,"fill","black"),m(i,"width","19"),m(i,"height","21"),m(i,"viewBox","0 0 19 21"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,y),T(_,G),T(t,B),le(t,"Active",n[12]),T(e,q)},m(H,M){N(H,e,M),p(e,t),p(t,r),p(r,i),p(i,o),p(i,s),p(i,a),p(i,l),p(i,u),p(i,d),p(r,c),p(r,f),p(t,b),p(t,_),F.m(_,null),p(e,C),V&&V.m(e,null),v||(g=Pe(t,"click",n[57]),v=!0)},p(H,M){M[0]&33554432&&h!==(h=H[25]("bonusCard.terms")+"")&&re(f,h,y.contenteditable),x!==(x=S(H))&&(F.d(1),F=x(H),F&&(F.c(),F.m(_,null))),M[0]&4096&&le(t,"Active",H[12]),H[12]?V?V.p(H,M):(V=Xa(H),V.c(),V.m(e,null)):V&&(V.d(1),V=null)},d(H){H&&I(e),F.d(),V&&V.d(),v=!1,g()}}}function Ib(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M16.1422 10.071L9.07108 2.99998L2.00002 10.071"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Nb(n){let e,t;return{c(){e=te("svg"),t=te("path"),m(t,"d","M2 2.07104L9.07107 9.14211L16.1421 2.07104"),m(t,"stroke","black"),m(t,"stroke-width","3"),m(t,"stroke-linecap","round"),m(e,"width","18"),m(e,"height","12"),m(e,"viewBox","0 0 18 12"),m(e,"fill","none"),m(e,"xmlns","http://www.w3.org/2000/svg")},m(r,i){N(r,e,i),p(e,t)},d(r){r&&I(e)}}}function Xa(n){let e,t,r,i,o=[L("BonusCardTermsContent")],s={};for(let a=0;a<o.length;a+=1)s=k(s,o[a]);return{c(){e=E("div"),e.innerHTML="",T(e,s)},m(a,l){N(a,e,l),r||(i=Wd(t=n[44].call(null,e,n[16].terms_and_conditions)),r=!0)},p(a,l){t&&zn(t.update)&&l[0]&65536&&t.update.call(null,a[16].terms_and_conditions)},d(a){a&&I(e),r=!1,i()}}}function Za(n){let e,t,r,i=n[0]===oe.CLAIMABLE&&Ka(n),o=n[0]===oe.ACTIVE&&n[5].status===oe.ACTIVE&&Qa(n),s=[L("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=k(a,s[d]);let l=[L("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=k(u,l[d]);return{c(){e=E("div"),t=E("div"),i&&i.c(),r=z(),o&&o.c(),T(t,a),T(e,u)},m(d,c){N(d,e,c),p(e,t),i&&i.m(t,null),p(t,r),o&&o.m(t,null)},p(d,c){d[0]===oe.CLAIMABLE?i?i.p(d,c):(i=Ka(d),i.c(),i.m(t,r)):i&&(i.d(1),i=null),d[0]===oe.ACTIVE&&d[5].status===oe.ACTIVE?o?o.p(d,c):(o=Qa(d),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(d){d&&I(e),i&&i.d(),o&&o.d()}}}function Ka(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,b,_=n[15]===!0&&Ja(n),C=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<C.length;x+=1)v=k(v,C[x]);let g=[L("BonusJoinButton"),{type:"button"},{disabled:h=!n[13]}],A={};for(let x=0;x<g.length;x+=1)A=k(A,g[x]);let y=[L("BonusCardJoinWrapper")],S={};for(let x=0;x<y.length;x+=1)S=k(S,y[x]);return{c(){e=E("div"),_&&_.c(),t=z(),r=E("span"),i=te("svg"),o=te("path"),s=z(),a=D(n[19]),l=z(),u=E("button"),c=D(d),m(o,"d","M16 0H8V2.66667H16V0ZM10.6667 17.3333H13.3333V9.33333H10.6667V17.3333ZM21.3667 8.51333L23.2667 6.61333C22.6933 5.92667 22.0667 5.3 21.38 4.72667L19.48 6.62667C17.3568 4.92342 14.7153 3.99668 11.9933 4C5.36 4 0 9.37333 0 16C0 22.6267 5.36 28 11.9933 28C18.6267 28 24 22.6267 24 16C24 13.1667 23.0133 10.5667 21.3667 8.51333ZM12 25.3333C6.84667 25.3333 2.66667 21.1533 2.66667 16C2.66667 10.8467 6.84667 6.66667 12 6.66667C17.1533 6.66667 21.3333 10.8467 21.3333 16C21.3333 21.1533 17.1533 25.3333 12 25.3333Z"),m(o,"fill","#6D6D6D"),m(i,"width","24"),m(i,"height","28"),m(i,"viewBox","0 0 24 28"),m(i,"fill","none"),m(i,"xmlns","http://www.w3.org/2000/svg"),T(r,v),T(u,A),T(e,S)},m(x,F){N(x,e,F),_&&_.m(e,null),p(e,t),p(e,r),p(r,i),p(i,o),p(r,s),p(r,a),p(e,l),p(e,u),p(u,c),u.autofocus&&u.focus(),f||(b=Pe(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?_?_.p(x,F):(_=Ja(x),_.c(),_.m(e,t)):_&&(_.d(1),_=null),F[0]&524288&&re(a,x[19],v.contenteditable),F[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&re(c,d,A.contenteditable),T(u,A=ke(g,[L("BonusJoinButton"),{type:"button"},F[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&I(e),_&&_.d(),f=!1,b()}}}function Ja(n){let e,t=n[25]("bonusCard.error")+"",r,i=[L("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("span"),r=D(t),T(e,o)},m(s,a){N(s,e,a),p(e,r)},p(s,a){a[0]&33554432&&t!==(t=s[25]("bonusCard.error")+"")&&re(r,t,o.contenteditable)},d(s){s&&I(e)}}}function Qa(n){let e,t=n[25]("bonusCard.forfeit")+"",r,i,o,s,a=[L("BonusForfeitButton"),{type:"button"},{disabled:i=!n[13]}],l={};for(let u=0;u<a.length;u+=1)l=k(l,a[u]);return{c(){e=E("button"),r=D(t),T(e,l)},m(u,d){N(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Pe(e,"click",n[27]),o=!0)},p(u,d){d[0]&33554432&&t!==(t=u[25]("bonusCard.forfeit")+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[L("BonusForfeitButton"),{type:"button"},d[0]&8192&&i!==(i=!u[13])&&{disabled:i}]))},d(u){u&&I(e),o=!1,s()}}}function Lb(n){let e,t=n[5]&&xa(n);return{c(){t&&t.c(),e=nt()},m(r,i){t&&t.m(r,i),N(r,e,i)},p(r,i){r[5]?t?t.p(r,i):(t=xa(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Me,o:Me,d(r){r&&I(e),t&&t.d(r)}}}function Hb(n,e,t){let r,i;Cl(n,Ql,P=>t(25,i=P));let{rawbonus:o=""}=e,{lang:s="en"}=e,{status:a=""}=e,{mbsource:l}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{cmsendpoint:c=""}=e,{translationurl:h=""}=e,{levelcountlimit:f=""}=e,{currency:b=""}=e,_=null,C=[],v,g=!1,A=!1,y=!1,S=!1,x=!0,F=!1,j=!1,G={},R,B,V="",Q=1e3*30,q,H,M="",ie=!1,_e,de=[],X=0;const ae=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ne=>{Er(ne,U[ne])})}).catch(U=>{console.log(U)})};Object.keys(xr).forEach(P=>{Er(P,xr[P])}),Hr(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he)}));const K=()=>{var P,U;try{t(5,_=JSON.parse(o))}catch(ne){t(5,_=null)}_&&(_.type==="wagering"&&t(10,A=!0),t(17,R=ba(_.currency||b)),t(7,C=J(_.levels||((U=(P=_.wallet)==null?void 0:P.wagering)==null?void 0:U.levels))),_.type==="freeRound"&&t(23,de=se(_.freeSpin)),Ce())},se=P=>{if(!P||!P.vendorGamesDetail)return[];let U=[];return Object.keys(P.vendorGamesDetail).length>0&&Object.keys(P.vendorGamesDetail).forEach(ne=>{U=P.vendorGamesDetail[ne]}),U},J=P=>{if(!P)return[];const U=[];let ne=!1;return P.map((be,we)=>{const ft=be,{maxRepeats:Te,completedTime:Ge}=ft,Qe=Qo(ft,["maxRepeats","completedTime"]);Te===0&&(ne=!0,U.push(pt({},Qe)));for(let We=0;We<Te;We++)U.push(pt({},Qe))}),ne?t(8,v=0):t(8,v=U.length),U},ee=()=>{t(13,x=!1),t(15,j=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},w=()=>{t(13,x=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},O=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},he=P=>{switch(P.data.type){case"OnBonusClaimedDone":t(13,x=!0);break;case"OnBonusForfeitedDone":t(13,x=!0);break;case"OnBonusClaimError":P.data.bonusCode===_.code&&t(15,j=!0);break}},Oe=(P,U)=>({remainder:P%U,quotient:Math.floor(P/U)}),Z=P=>{const U=new Date;return new Date(P).getTime()-U.getTime()},W=P=>{const U=Z(P)/6e4,{quotient:ne,remainder:be}=Oe(U,1440),{quotient:we,remainder:Te}=Oe(be,60),Ge=Math.floor(Te),Qe=We=>Math.abs(We)<10?`0${We}`:We;return[{value:ne,symbol:"d"},{value:we,symbol:"h"},{value:Ge,symbol:"m"}].map(We=>Qe(We.value)+We.symbol).join(" ")},xe=(P,U,ne,be)=>{const we=Z(P);we<0?ne():(be(W(P)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Ce=()=>{var be;if(!_)return;const P=(we,Te,Ge)=>{xe(we,Q,()=>Te(Ge),Te)},U=i("bonusCard.expired"),ne=_.endTime||((be=_.trigger)==null?void 0:be.endTime);ne&&P(ne,we=>{t(19,V=we),t(18,B=we)},U),_.expiryDate&&P(_.expiryDate,we=>t(18,B=we),U)},Fe=P=>{let U=(P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount).toFixed(2);return P.status===oe.RELEASED&&P.type==="wagering"&&(U=(Number(U)+P.remainingAmount).toFixed(2)),parseFloat(U).toString()},ct=P=>{var U,ne;return(((U=P.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=P.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},ht=P=>{var be,we,Te;let U,ne;return P.type==="wagering"&&P.status===oe.ACTIVE&&P.wageringType==="money"?(ne=(be=P.wageringProgress)==null?void 0:be.currentLevelIncrement,ne!=0&&(U=((((we=P.wageringProgress)==null?void 0:we.currentLevelIncrement)-((Te=P.wageringProgress)==null?void 0:Te.gap))/ne*100).toFixed(2))):P.status===oe.RELEASED?U=100:(ne=P.initialWagerRequirementAmount,ne!=0&&(U=((P.initialWagerRequirementAmount-P.remainingWagerRequirementAmount)/ne*100).toFixed(2))),Number(U)},Je=P=>{if(!P.wallet)return"";const U=["freeBet","freeRound"].includes(P.type)?P.wallet[P.type]:P.wallet,{validityMinutes:ne,expiryTime:be}=U;if(ne===0)return be?An(new Date(be),"yyyy-MM-dd HH:mm:ss"):i("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${i(we===1?"bonusCard.day":"bonusCard.days")}`},Rt=P=>{if(P.products)return P.products;{let U=[];return P.wallet&&(P.wallet.casino&&U.push("Casino"),P.wallet.sports&&U.push("Sports")),U}},Et=(P,U)=>{const ne=i(`bonusType.${U.type}`),be=ba(U.amountCurrency||_.currency||b);return U.mode==="percentage"?`${U.bonusAmount*100}% ${i("bonusCard.upTo")} ${be}${U.capAmount} ${ne}`:U.mode==="fixed"?`${be}${U.bonusAmount} ${ne}`:ne},$=(P,U)=>{const ne=Qe=>Qe===0?0:P.slice(0,Qe).reduce((ft,We)=>ft+We.maxRepeats,0),be=P[U],Te=ne(U)+1,Ge=Te+be.maxRepeats-1;return be.maxRepeats>1?`${Te}-${Ge}`:`${U+1}`},ve=(P,U)=>{switch(U.type){case"standard":case"freeBet":return Et(P,U);case"freeRound":return i("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return i("bonusCard.enrollTo",{values:{name:i(`bonusType.${U.type}`)}});default:return""}},Zn=P=>{var U,ne;return Number((ne=(U=P==null?void 0:P[b])!=null?U:P==null?void 0:P.EUR)!=null?ne:0)},oi=P=>{var be,we,Te,Ge;const U=Zn((Te=(we=(be=P.wallet)==null?void 0:be.standard)==null?void 0:we.initialAmount)==null?void 0:Te.fixedAmount),ne=((Ge=P.wallet)==null?void 0:Ge.wageringRequirementCoefficient)||0;return Number((U*ne).toFixed(2))},si=P=>{var be,we,Te;const U=(we=(be=P.wallet)==null?void 0:be.freeRound)==null?void 0:we.vendor;if(!U)return 0;const ne=Object.keys(U)[0];return((Te=U[ne])==null?void 0:Te.roundNumber)||0},ai=P=>P===void 0?"":An(new Date(P),"yyyy-MM-dd HH:mm:ss"),li=(P,U)=>{var Ge,Qe,ft;const ne=((Ge=P.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,be=U.length-1,we=((ft=(Qe=P.levels)==null?void 0:Qe[0])==null?void 0:ft.maxRepeats)===0,Te=We=>We.filter(fn=>fn.index>=0&&fn.index<=be||we).map(fn=>{const er=U[fn.index]||U[0];return{label:fn.label,desc:((er==null?void 0:er.bonuses)||[]).map(Fd=>ve(er,Fd))}});switch(P.status){case oe.ACTIVE:return Te([{label:"current",index:ne},{label:"next",index:ne+1}]);case void 0:case null:case"":return Te([{label:"first",index:0},{label:"next",index:1}]);default:return Te([{label:"last",index:be},{label:"previous",index:be-1}])}},ui=P=>{var U,ne;t(20,M=P.url?P.url:(ne=(U=P.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Kn=P=>{window.postMessage({type:"BonusGameAction",gameId:P.id,name:P.name,gameLaunchUrl:P.href},window.location.href)},Y=P=>{t(21,ie=!0),t(22,_e=P)},Ae=()=>{t(21,ie=!1),t(22,_e=-1)},He=P=>{fetch(`${c}/${s}/bonuses-information/${P}`).then(U=>U.json()).then(U=>{U&&U[P]&&(t(14,F=!0),t(16,G=U[P]))})},xt=(P,U)=>{const ne=document.createElement("div");ne.innerHTML=U,P.append(ne)},hn=()=>t(24,X+=300),Nd=P=>Kn(P),Ld=P=>Y(P),Hd=()=>Ae(),Jn=()=>t(24,X-=300),Qn=()=>{t(11,y=!y)},Ft=()=>{t(12,S=!S)};function Rd(P){st[P?"unshift":"push"](()=>{q=P,t(6,q)})}return n.$$set=P=>{"rawbonus"in P&&t(45,o=P.rawbonus),"lang"in P&&t(46,s=P.lang),"status"in P&&t(0,a=P.status),"mbsource"in P&&t(1,l=P.mbsource),"clientstyling"in P&&t(2,u=P.clientstyling),"clientstylingurl"in P&&t(3,d=P.clientstylingurl),"cmsendpoint"in P&&t(47,c=P.cmsendpoint),"translationurl"in P&&t(48,h=P.translationurl),"levelcountlimit"in P&&t(4,f=P.levelcountlimit),"currency"in P&&t(49,b=P.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(a===oe.CLAIMABLE&&t(9,g=!0),a===oe.ACTIVE&&t(9,g=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,r=o&&s&&a),n.$$.dirty[1]&524288&&r&&K(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&r&&_&&(s&&eu(s),c?He(_.bonusId||_.id):ui(_)),n.$$.dirty[0]&68&&u&&q&&Yr(q,u),n.$$.dirty[0]&72&&d&&q&&qr(q,d),n.$$.dirty[0]&66&&l&&q&&Xr(q,`${l}.Style`,H),n.$$.dirty[1]&131072&&h&&ae()},[a,l,u,d,f,_,q,C,v,g,A,y,S,x,F,j,G,R,B,V,M,ie,_e,de,X,i,ee,w,O,Fe,ct,ht,Je,Rt,$,ve,Zn,oi,si,ai,li,Kn,Y,Ae,xt,o,s,c,h,b,r,hn,Nd,Ld,Hd,Jn,Qn,Ft,Rd]}class Rb extends Ur{constructor(e){super(),Rr(this,e,Hb,Lb,$n,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},db,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),ue()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),ue()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),ue()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),ue()}}customElements.define("casino-bonus-card",Fr(Rb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Fb({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>$b(r)?zb({totalPages:i,limit:r,currentPage:t}):Ub({totalPages:i});return[{type:"symbol",symbol:"&lt;",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:"&gt;",value:t>=i?i:t+1}]}function Ub({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function zb({totalPages:n,limit:e,currentPage:t}){const r=e*2+2,i=1+r,o=n-r,s=i+2;return t<=i-e?Array(s).fill(null).map((a,l)=>l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:i+1}:{type:"number",value:l+1}):t>=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:o-1}:{type:"number",value:o+l-2}):t>=i-e&&t<=o+e?Array(s).fill(null).map((a,l)=>l===0?{type:"number",value:1}:l===1?{type:"symbol",symbol:".",value:t-e+(l-2)}:l===s-1?{type:"number",value:n}:l===s-2?{type:"symbol",symbol:".",value:t+e+1}:{type:"number",value:t-e+(l-2)}):[]}function $b(n){return n*2+3+2}function Vb(n){Lr(n,"svelte-1tlblg6",":host{font-family:inherit}.GeneralPagination{margin:40px 0;display:flex}.PaginationWrapper{flex:1;display:flex;justify-content:center}.PaginationWrapper.PaginationWrapperMobile{flex-wrap:wrap;text-align:center}.PaginationWrapper .prev,.PaginationWrapper .next,.PaginationWrapper .number{color:var(--emw--bonus-pagination-text, var(--emw--color-contrast-600, #0D0D4D));font-size:16px;cursor:pointer;font-weight:700;border:1px solid var(--emw--bonus-pagination-border, var(--emw--color-gray-150, #828282));width:32px;height:32px;line-height:28px;text-align:center;margin-right:2px;border-radius:2px}.PaginationWrapper .prev.disabled,.PaginationWrapper .next.disabled,.PaginationWrapper .number.disabled{color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));border-color:var(--emw--bonus-pagination-disabled, var(--emw--color-gray-100, #E6E6E6));cursor:default}.PaginationWrapper .prev.active,.PaginationWrapper .next.active,.PaginationWrapper .number.active{background-color:var(--emw--bonus-pagination-bg, var(--emw--color-contrast, #00AEEF));color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF))}.PaginationWrapper .ellipsis{width:32px;margin-right:2px;text-align:center;line-height:20px}.PaginationWrapper .Page{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586B));font-size:16px;cursor:pointer;padding:5px 10px}.PaginationWrapper .Page.active{background-color:var(--emw--bonus-pagination-active, var(--emw--color-white, #FFFFFF));font-weight:700}.PaginationInputWrapper{flex:1}.PaginationInputWrapper .PaginationInput{padding:7px 0 6px 0;width:32px;text-align:center}.PaginationInputWrapper .PaginationGoButton{background:none;border:none;cursor:pointer;font-size:18px}")}function el(n,e,t){const r=n.slice();return r[29]=e[t],r}const Wb=n=>({}),tl=n=>({}),jb=n=>({}),nl=n=>({}),Gb=n=>({}),rl=n=>({}),Yb=n=>({value:n[0]&32}),il=n=>({value:n[29].value});function qb(n){let e;const t=n[21].next,r=Vn(t,n,n[20],tl),i=r||Jb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,Wb):Gn(o[20]),tl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Xb(n){let e;const t=n[21].prev,r=Vn(t,n,n[20],nl),i=r||Qb();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,jb):Gn(o[20]),nl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Zb(n){let e;const t=n[21].ellipsis,r=Vn(t,n,n[20],rl),i=r||ev();return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s[0]&1048576)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,Gb):Gn(o[20]),rl)},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Kb(n){let e;const t=n[21].number,r=Vn(t,n,n[20],il),i=r||tv(n);return{c(){i&&i.c()},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r?r.p&&(!e||s[0]&1048608)&&jn(r,t,o,o[20],e?Wn(t,o[20],s,Yb):Gn(o[20]),il):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ze(i,o),e=!0)},o(o){ut(i,o),e=!1},d(o){i&&i.d(o)}}}function Jb(n){let e;return{c(){e=D(">")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function Qb(n){let e;return{c(){e=D("<")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function ev(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function tv(n){let e,t=n[29].value+"",r;return{c(){e=E("span"),r=D(t)},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&32&&t!==(t=i[29].value+"")&&pe(r,t)},d(i){i&&I(e)}}}function ol(n){let e,t,r,i,o,s,a,l;const u=[Kb,Zb,Xb,qb],d=[];function c(f,b){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="&lt;"?2:f[29].type==="symbol"&&f[29].symbol==="&gt;"?3:-1}~(t=c(n))&&(r=d[t]=u[t](n));function h(){return n[22](n[29])}return{c(){e=E("button"),r&&r.c(),i=z(),e.disabled=o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1,m(e,"class","option"),m(e,"role","presentation"),le(e,"number",n[29].type==="number"),le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),le(e,"active",n[29].type==="number"&&n[29].value===n[1])},m(f,b){N(f,e,b),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Pe(e,"click",h),a=!0)},p(f,b){n=f;let _=t;t=c(n),t===_?~t&&d[t].p(n,b):(r&&(Tl(),ut(d[_],1,1,()=>{d[_]=null}),Pl()),~t?(r=d[t],r?r.p(n,b):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||b[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1))&&(e.disabled=o),(!s||b[0]&32)&&le(e,"number",n[29].type==="number"),(!s||b[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="&lt;"),(!s||b[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol==="&gt;"),(!s||b[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol==="&gt;"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="&lt;"&&n[1]<=1),(!s||b[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||b[0]&34)&&le(e,"active",n[29].type==="number"&&n[29].value===n[1])},i(f){s||(Ze(r),s=!0)},o(f){ut(r),s=!1},d(f){f&&I(e),~t&&d[t].d(),a=!1,l()}}}function sl(n){let e,t,r,i,o,s,a,l;return{c(){e=E("div"),t=E("span"),t.textContent="Go To Page",r=z(),i=E("input"),o=z(),s=E("button"),s.textContent="Go",m(i,"type","number"),m(i,"class","PaginationInput"),m(i,"part","PaginationInput"),m(s,"type","button"),m(s,"class","PaginationGoButton"),m(e,"class","PaginationInputWrapper")},m(u,d){N(u,e,d),p(e,t),p(e,r),p(e,i),vr(i,n[3]),p(e,o),p(e,s),a||(l=[Pe(i,"input",n[23]),Pe(i,"change",n[24]),Pe(s,"click",n[25])],a=!0)},p(u,d){d[0]&8&&Al(i.value)!==u[3]&&vr(i,u[3])},d(u){u&&I(e),a=!1,qe(l)}}}function nv(n){let e,t,r,i,o,s,a=Re(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=ol(el(n,a,c));const u=c=>ut(l[c],1,1,()=>{l[c]=null});let d=n[7]&&sl(n);return{c(){e=E("div"),t=E("div");for(let c=0;c<l.length;c+=1)l[c].c();o=z(),d&&d.c(),m(t,"class",r="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(t,"part",i="PaginationWrapper "+(n[2]?"PaginationWrapperMobile":"")),m(e,"class","GeneralPagination"),m(e,"part","GeneralPagination")},m(c,h){N(c,e,h),p(e,t);for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(t,null);p(e,o),d&&d.m(e,null),n[26](e),s=!0},p(c,h){if(h[0]&1048930){a=Re(c[5]);let f;for(f=0;f<a.length;f+=1){const b=el(c,a,f);l[f]?(l[f].p(b,h),Ze(l[f],1)):(l[f]=ol(b),l[f].c(),Ze(l[f],1),l[f].m(t,null))}for(Tl(),f=a.length;f<l.length;f+=1)u(f);Pl()}(!s||h[0]&4&&r!==(r="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"class",r),(!s||h[0]&4&&i!==(i="PaginationWrapper "+(c[2]?"PaginationWrapperMobile":"")))&&m(t,"part",i),c[7]?d?d.p(c,h):(d=sl(c),d.c(),d.m(e,null)):d&&(d.d(1),d=null)},i(c){if(!s){for(let h=0;h<a.length;h+=1)Ze(l[h]);s=!0}},o(c){l=l.filter(Boolean);for(let h=0;h<l.length;h+=1)ut(l[h]);s=!1},d(c){c&&I(e),yt(l,c),d&&d.d(),n[26](null)}}}function rv(n,e,t){let r,i,o,s,a,{$$slots:l={},$$scope:u}=e,{totalitems:d=""}=e,{pagesize:c=10}=e,{currentpage:h="1"}=e,{limit:f=2}=e,{showinput:b=""}=e,{mbsource:_}=e,{clientstyling:C=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,A,y=!1,S;au(g)&&(y=!0);let x,F,j;const G=M=>{window.postMessage({type:"PaginationChange",page:M.value})},R=M=>{t(4,F=M>a?a:M)};Hr(()=>()=>{});const B=M=>G(M);function V(){x=Al(this.value),t(3,x)}const Q=()=>R(x),q=()=>G({value:F});function H(M){st[M?"unshift":"push"](()=>{S=M,t(0,S)})}return n.$$set=M=>{"totalitems"in M&&t(10,d=M.totalitems),"pagesize"in M&&t(11,c=M.pagesize),"currentpage"in M&&t(12,h=M.currentpage),"limit"in M&&t(13,f=M.limit),"showinput"in M&&t(14,b=M.showinput),"mbsource"in M&&t(15,_=M.mbsource),"clientstyling"in M&&t(16,C=M.clientstyling),"clientstylingurl"in M&&t(17,v=M.clientstylingurl),"$$scope"in M&&t(20,u=M.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&C&&S&&Yr(S,C),n.$$.dirty[0]&131073&&v&&S&&qr(S,v),n.$$.dirty[0]&32769&&_&&S&&Xr(S,`${_}.Style`,A),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=b),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=Fb({totalItems:r,pageSize:s,currentPage:o,limit:f})),n.$$.dirty[0]&786432&&t(6,a=Math.ceil(r/s))},[S,o,y,x,F,j,a,i,G,R,d,c,h,f,b,_,C,v,s,r,u,l,B,V,Q,q,H]}class iv extends Ur{constructor(e){super(),Rr(this,e,rv,nv,$n,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Vb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),ue()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),ue()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),ue()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),ue()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),ue()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}}customElements.define("casino-bonus-pagination",Fr(iv,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function ii(t){return Ue(this,arguments,function*(n,e={}){const r=typeof n=="string"?n:n.toString(),i=yield fetch(r,e);let o=null;try{o=yield i.json()}catch(a){o=null}if(i.ok&&o)return o;const s={success:!1,errorMessage:typeof(o==null?void 0:o.errorMessage)=="string"&&o.errorMessage.trim()?o.errorMessage:i.statusText||String(i.status),errorCode:typeof(o==null?void 0:o.errorCode)=="number"?o.errorCode:void 0};return pt(pt({},o||{}),s)})}function ov(n,e,t){return Ue(this,null,function*(){const r=`${n}${ri.CLAIM}`;return ii(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function sv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),ii(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function av(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ii(r,{headers:i})})}function lv(n,e,t){return Ue(this,null,function*(){const r=new URL(`${n}${ri.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),ii(r,{headers:i})})}function uv(n){Lr(n,"svelte-1i2lkdw",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.BonusList{display:flex;flex-wrap:wrap}.BonusItem{flex:0 0 50%;max-width:50%;padding:10px}.BonusItemMobile{flex:0 0 100%;max-width:100%}.BonusPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusPaginationWrapper.BonusPaginationWrapperMobile{flex-wrap:wrap;text-align:center}.BonusPaginationWrapper .BonusesFirst,.BonusPaginationWrapper .BonusesPrev,.BonusPaginationWrapper .BonusesNext,.BonusPaginationWrapper .BonusesLast{color:var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusPaginationWrapper .BonusesFirst.Inactive,.BonusPaginationWrapper .BonusesPrev.Inactive,.BonusPaginationWrapper .BonusesNext.Inactive,.BonusPaginationWrapper .BonusesLast.Inactive{color:var(--emw--bonus-pagination-inactive-text, var(--emw--color-gray-100, #e6e6e6));cursor:default}.BonusPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--bonus-pagination-text, var(--emw--color-gray-300, #58586b));font-size:16px;cursor:pointer;padding:5px 10px}.BonusPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--bonus-pagination-active-bg, var(--emw--color-white, #ffffff));font-weight:700}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef));border-color:var(--emw--bonus-pagination-border, var(--emw--color-blue, #00aeef)) transparent var(--emw--bonus-pagination-primary, var(--emw--color-blue, #00aeef)) transparent;animation:LoaderForModal 1.2s linear infinite}@keyframes LoaderForModal{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.BonusCalendarWrapper{display:flex;gap:20px;flex-wrap:wrap;background:var(--emw--bonus-calendar-bg, var(--emw--color-gray-50, #F4F4F4));border-radius:5px;padding:27px;width:calc(50% - 20px);margin:10px}.BonusCalendarContent{display:flex;gap:20px;flex-wrap:wrap}.BonusCalendarContainer{display:flex;gap:20px;flex-wrap:wrap;flex:4}.BonusCalendarContainer.BonusCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%;flex-direction:column}.BonusCalendarTitle{font-size:18px;font-weight:700;width:100%;color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B))}.BonusCalendarStartDate,.BonusCalendarEndDate{color:var(--emw--bonus-calendar-text, var(--emw--color-gray-300, #58586B));display:flex;position:relative;align-items:center;gap:10px;min-width:140px;flex:0 0 47%;flex-wrap:wrap}.BonusCalendarStartDate vaadin-date-picker,.BonusCalendarEndDate vaadin-date-picker{width:100%}.BonusCalendarStartDate.BonusesCalendarMobile,.BonusCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:100%}.BonusCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusCalendarStartDate label,.BonusCalendarEndDate label{font-size:14px;font-weight:300;width:100%;text-transform:capitalize}.BonusCalendarStartDate input,.BonusCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--bonus-calendar-border, var(--emw--color-gray-100, #E6E6E6));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;outline-color:var(--emw--bonus-calendar-outline, var(--emw--color-primary, #00aeef))}.BonusFilterButton{flex:2;background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;max-width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;transition-property:outline, color, background;box-sizing:border-box;cursor:pointer;color:var(--emw--bonus-filter-text, var(--emw--color-white, #ffffff));align-self:end;margin-bottom:5px}.BonusFilterButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusFilterButton.BonusFilterButtonMobile{width:100%;min-width:100%}.BonusFilterButton:hover{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusFilterButton:active{background:var(--emw--bonus-filter-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-filter-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.6)))}.BonusFilterWrapper{display:flex;gap:15px;padding:10px;align-items:flex-start}.BonusFilterWrapper.BonusFilterWrapperMobile{width:100%;flex-direction:column;gap:10px;padding:0;padding-bottom:15px}.BonusFilterContainer{display:flex;gap:5px;border-bottom:5px solid var(--emw--bonus-filter-border, var(--emw--color-green, #53b65a));width:100%}.BonusStatusFilter{color:var(--emw--bonus-status-filter-text, var(--emw--color-gray-300, #6d6d6d));cursor:pointer;width:200px;height:50px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:15px;background:var(--emw--bonus-status-filter-bg, var(--emw--color-white, #ffffff));border:1px solid var(--emw--bonus-status-filter-border, var(--emw--color-gray-300, #767171));border-bottom:0;border-radius:5px 5px 0px 0px}.BonusStatusFilter.BonusStatusFilterMobile{width:100%;height:44px}.BonusStatusFilter.active{color:var(--emw--bonus-status-active-bg, var(--emw--color-white, #ffffff));background:var(--emw--bonus-status-active-bg, var(--emw--color-gray-300, #4e5662));border:0.5px solid var(--emw--bonus-status-active-border, var(--emw--color-gray-300, #767171))}.BonusPageNumber{color:var(--emw--bonus-page-number-text, var(--emw--color-gray-150, #9c9c9c));flex:1;display:flex;flex-wrap:wrap}.BonusPageNumberTabs{display:flex}.BonusPageNumberTabs .BonusPageNumberTab{cursor:pointer;width:36px;height:36px;padding:10px;text-align:center}.BonusPageNumberTabs .BonusPageNumberTab.active{color:var(--emw--bonus-page-number-text, var(--emw--color-white, #ffffff));background:var(--emw--bonus-page-number-active, var(--emw--color-yellow, #f39c12));border-radius:50%}.BonusCodeContainer{color:var(--emw--bonus-page-number-text, var(--emw--color-black, #000000));display:flex;flex-direction:column;position:relative;width:calc(50% - 20px);background:#f4f4f4;border-radius:5px;padding:36px;margin:10px}.BonusCodeContainer label{font-size:16px;font-weight:700;padding-bottom:20px}.BonusCodeContainer .Asterisk{color:var(--emw--bonus-card-red, var(--emw--color-red, #fd2839))}.BonusCodeContainer.BonusCodeContainerMobile{width:100%;margin:0 0 10px}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{flex:3;height:50px;border:1px solid var(--emw--bonus-code-border, var(--emw--color-gray-50, #d1d1d1));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--bonus-code-outline, var(--emw--color-gray-100, #c1c1c1))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton{background:var(--emw--bonus-claim-bg, var(--emw--color-yellow, #f39c12));outline:5px solid var(--emw--bonus-claim-outline, var(--emw--color-yellow, rgba(243, 156, 18, 0.3)));border-radius:9px;border:0;width:180px;height:38px;font-size:18px;font-weight:400;text-align:center;transition-duration:0.5s;box-sizing:border-box;margin-top:5px;cursor:pointer;color:var(--emw--bonus-claim-text, var(--emw--color-white, #ffffff))}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton.BonusClaimButtonMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:hover{background:var(--emw--bonus-claim-hover-bg, var(--emw--color-yellow, #f38b12));outline:0}.BonusCodeContainer .BonusCodeWrapper .BonusClaimButton:active{background:var(--emw--bonus-claim-active-bg, var(--emw--color-yellow, #f38b12));outline-color:var(--emw--bonus-claim-active-outline, var(--emw--color-white, rgba(243, 156, 18, 0.6)))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--color-primary, #00aeef);background:var(--emw--color-primary-50, #fbecf4);color:var(--emw--color-primary, #00aeef)}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, #fd2839)}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--bonus-modal-bg, var(--emw--color-black, rgba(0, 0, 0, 0.7)));display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emw--bonus-modal-bg, var(--emw--color-white, #ffffff));position:relative;padding:30px;border-top:5px solid var(--emw--bonus-modal-border, var(--emw--color-primary, #00aeef));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--bonus-modal-bg, var(--emw--color-gray-50, #f9f8f8));padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--bonus-modal-border, var(--emw--color-gray-300, #58586b));color:var(--emw--bonus-modal-text, var(--emw--color-gray-300, #58586b));cursor:pointer;border-radius:5px;width:180px;height:38px;font-size:18px;text-transform:capitalize;text-align:center;transition-duration:0.5s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));border:1px solid var(--emw--bonus-modal-bg, var(--emw--color-primary, #00aeef));color:var(--emw--bonus-modal-text, var(--emw--color-white, #ffffff))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}@media only screen and (max-width: 1024px){.BonusCodeContainer{width:100%}.BonusCalendarWrapper,.BonusCalendarContent,.BonusCalendarContainer{width:100%;flex-wrap:wrap}.BonusCalendarWrapper{margin:10px 0 0 0}.BonusFilterWrapper{width:100%;flex-direction:column;gap:10px;padding:10px 0}.BonusStatusFilter{width:100%}.BonusFilterButton{margin-top:0}.BonusFilterButton,.BonusClaimButton{width:100%}.BonusItem{flex:0 0 100%;max-width:100%;padding:0;margin:10px 0 0 0}.BonusCalendarStartDate,.BonusCalendarEndDate{flex-direction:column;align-items:flex-start;gap:5px}.BonusCalendarStartDate .VaadinDatePicker,.BonusCalendarEndDate .VaadinDatePicker{width:100%}.BonusCalendarTitle{width:100%}}')}function al(n,e,t){const r=n.slice();return r[63]=e[t],r}function ll(n,e,t){const r=n.slice();return r[66]=e[t],r}function ul(n){let e,t=n[29](`bonusCard.${n[66]}`)+"",r,i,o,s,a=[{type:"button"},n[28]("BonusStatusFilter"),{disabled:n[13]}],l={};for(let d=0;d<a.length;d+=1)l=k(l,a[d]);function u(){return n[43](n[66])}return{c(){e=E("button"),r=D(t),i=z(),T(e,l),le(e,"active",n[66]===n[25])},m(d,c){N(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Pe(e,"click",u),o=!0)},p(d,c){n=d,c[0]&536870912&&t!==(t=n[29](`bonusCard.${n[66]}`)+"")&&re(r,t,l.contenteditable),T(e,l=ke(a,[{type:"button"},c[0]&268435456&&n[28]("BonusStatusFilter"),c[0]&8192&&{disabled:n[13]}])),le(e,"active",n[66]===n[25])},d(d){d&&I(e),o=!1,s()}}}function dv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,b,_,C,v=n[29]("bonus.to")+"",g,A,y,S,x,F=n[29]("bonus.filter")+"",j,G,R,B,V=[L("BonusCalendarTitle")],Q={};for(let Z=0;Z<V.length;Z+=1)Q=k(Q,V[Z]);let q=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],H={};for(let Z=0;Z<q.length;Z+=1)H=k(H,q[Z]);let M=[n[28]("BonusCalendarStartDate")],ie={};for(let Z=0;Z<M.length;Z+=1)ie=k(ie,M[Z]);let _e=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],de={};for(let Z=0;Z<_e.length;Z+=1)de=k(de,_e[Z]);let X=[n[28]("BonusCalendarEndDate")],ae={};for(let Z=0;Z<X.length;Z+=1)ae=k(ae,X[Z]);let K=[n[28]("BonusCalendarContainer")],se={};for(let Z=0;Z<K.length;Z+=1)se=k(se,K[Z]);let J=[n[28]("BonusFilterButton"),{disabled:G=n[13]||n[21]}],ee={};for(let Z=0;Z<J.length;Z+=1)ee=k(ee,J[Z]);let w=[L("BonusCalendarContent")],O={};for(let Z=0;Z<w.length;Z+=1)O=k(O,w[Z]);let he=[n[28]("BonusCalendarWrapper")],Oe={};for(let Z=0;Z<he.length;Z+=1)Oe=k(Oe,he[Z]);return{c(){e=E("div"),t=E("div"),i=D(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=D(d),h=z(),f=E("vaadin-date-picker"),b=z(),_=E("div"),C=E("label"),g=D(v),A=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=D(F),T(t,Q),m(u,"for","BonusCalendarStartDate"),T(f,H),T(l,ie),m(C,"for","BonusCalendarEndDate"),T(y,de),T(_,ae),T(a,se),T(x,ee),T(s,O),T(e,Oe)},m(Z,W){N(Z,e,W),p(e,t),p(t,i),p(e,o),p(e,s),p(s,a),p(a,l),p(l,u),p(u,c),p(l,h),p(l,f),n[46](f),p(a,b),p(a,_),p(_,C),p(C,g),p(_,A),p(_,y),n[47](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),R||(B=[Pe(f,"validated",n[37]),Pe(y,"validated",n[37]),Pe(x,"click",n[48])],R=!0)},p(Z,W){W[0]&536870912&&r!==(r=Z[29]("bonus.canlendarTitle")+"")&&re(i,r,Q.contenteditable),W[0]&536870912&&d!==(d=Z[29]("bonus.from")+"")&&pe(c,d),T(f,H=ke(q,[{min:Z[30]},{max:Z[31]},W[0]&8388608&&{value:Z[23]},{placeholder:"From"},L("VaadinDatePicker")])),T(l,ie=ke(M,[W[0]&268435456&&Z[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=Z[29]("bonus.to")+"")&&pe(g,v),T(y,de=ke(_e,[{min:Z[30]},{max:Z[31]},W[0]&16777216&&{value:Z[24]},{placeholder:"To"},L("VaadinDatePicker")])),T(_,ae=ke(X,[W[0]&268435456&&Z[28]("BonusCalendarEndDate")])),T(a,se=ke(K,[W[0]&268435456&&Z[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=Z[29]("bonus.filter")+"")&&re(j,F,ee.contenteditable),T(x,ee=ke(J,[W[0]&268435456&&Z[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=Z[13]||Z[21])&&{disabled:G}])),T(e,Oe=ke(he,[W[0]&268435456&&Z[28]("BonusCalendarWrapper")]))},d(Z){Z&&I(e),n[46](null),n[47](null),R=!1,qe(B)}}}function cv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,b,_,C,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],A={};for(let B=0;B<g.length;B+=1)A=k(A,g[B]);let y=[n[28]("BonusClaimButton"),{disabled:b=n[19]||!n[26]}],S={};for(let B=0;B<y.length;B+=1)S=k(S,y[B]);let x=[n[28]("BonusCodeWrapper")],F={};for(let B=0;B<x.length;B+=1)F=k(F,x[B]);let j=n[20]&&dl(n),G=[n[28]("BonusCodeContainer")],R={};for(let B=0;B<G.length;B+=1)R=k(R,G[B]);return{c(){e=E("div"),t=E("label"),r=E("span"),r.textContent="*",o=D(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=D(h),_=z(),j&&j.c(),m(r,"class","Asterisk"),m(t,"for","BonusCode"),T(l,A),T(c,S),T(a,F),T(e,R)},m(B,V){N(B,e,V),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),vr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,_),j&&j.m(e,null),C||(v=[Pe(l,"input",n[44]),Pe(l,"keyup",n[36]),Pe(c,"click",n[45])],C=!0)},p(B,V){V[0]&536870912&&i!==(i=B[29]("bonus.bonusCode")+"")&&pe(o,i),T(l,A=ke(g,[V[0]&268435456&&B[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},V[0]&536870912&&u!==(u=B[29]("bonus.placeholder"))&&{placeholder:u}])),V[0]&262144&&l.value!==B[18]&&vr(l,B[18]),V[0]&536870912&&h!==(h=B[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),T(c,S=ke(y,[V[0]&268435456&&B[28]("BonusClaimButton"),V[0]&67633152&&b!==(b=B[19]||!B[26])&&{disabled:b}])),T(a,F=ke(x,[V[0]&268435456&&B[28]("BonusCodeWrapper")])),B[20]?j?j.p(B,V):(j=dl(B),j.c(),j.m(e,null)):j&&(j.d(1),j=null),T(e,R=ke(G,[V[0]&268435456&&B[28]("BonusCodeContainer")]))},d(B){B&&I(e),j&&j.d(),C=!1,qe(v)}}}function dl(n){let e,t=n[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=D(t),m(e,"class","InvalidBonusCodeMessage"),m(e,"part","InvalidBonusCodeMessage")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.invalidBonusCode")+"")&&pe(r,t)},d(i){i&&I(e)}}}function hv(n){let e,t;function r(a,l){return a[12].length>0?_v:a[14]?mv:pv}let i=r(n),o=i(n),s=n[12].length!==0&&hl(n);return{c(){o.c(),e=z(),s&&s.c(),t=nt()},m(a,l){o.m(a,l),N(a,e,l),s&&s.m(a,l),N(a,t,l)},p(a,l){i===(i=r(a))&&o?o.p(a,l):(o.d(1),o=i(a),o&&(o.c(),o.m(e.parentNode,e))),a[12].length!==0?s?s.p(a,l):(s=hl(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(a){a&&(I(e),I(t)),o.d(a),s&&s.d(a)}}}function fv(n){let e,t=[L("ModalLoader")],r={};for(let i=0;i<t.length;i+=1)r=k(r,t[i]);return{c(){e=E("div"),T(e,r)},m(i,o){N(i,e,o)},p:Me,d(i){i&&I(e)}}}function pv(n){let e,t=n[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=D(t),m(e,"class","NoBonus")},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&536870912&&t!==(t=i[29]("bonus.noBonus")+"")&&pe(r,t)},d(i){i&&I(e)}}}function mv(n){let e,t=n[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=D(t),i=D(": "),o=D(n[14]),m(e,"class","BonusError")},m(s,a){N(s,e,a),p(e,r),p(e,i),p(e,o)},p(s,a){a[0]&536870912&&t!==(t=s[29]("bonus.error")+"")&&pe(r,t),a[0]&16384&&pe(o,s[14])},d(s){s&&I(e)}}}function _v(n){let e,t=Re(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=cl(al(n,t,s));let i=[L("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=k(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();T(e,o)},m(s,a){N(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(s,a){if(a[0]&301994491){t=Re(s[12]);let l;for(l=0;l<t.length;l+=1){const u=al(s,t,l);r[l]?r[l].p(u,a):(r[l]=cl(u),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=t.length}},d(s){s&&I(e),yt(r,s)}}}function cl(n){let e,t,r,i=[{rawbonus:JSON.stringify(n[63]),status:n[25],cmsendpoint:n[3],lang:n[0],clientstyling:n[5],clientstylingurl:n[6],mbsource:n[4],translationurl:n[7],levelcountlimit:n[8],currency:n[1]}],o={};for(let l=0;l<i.length;l+=1)o=k(o,i[l]);let s=[n[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=k(a,s[l]);return{c(){e=E("li"),t=E("casino-bonus-card"),r=z(),T(t,o),T(e,a)},m(l,u){N(l,e,u),p(e,t),p(e,r)},p(l,u){T(t,o=ke(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[63]),status:l[25],cmsendpoint:l[3],lang:l[0],clientstyling:l[5],clientstylingurl:l[6],mbsource:l[4],translationurl:l[7],levelcountlimit:l[8],currency:l[1]}])),T(e,a=ke(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&I(e)}}}function hl(n){let e;return{c(){e=E("casino-bonus-pagination"),$e(e,"totalitems",n[16]),$e(e,"currentpage",n[15]),$e(e,"pagesize",n[2]),$e(e,"limit",n[17]),$e(e,"clientstyling",n[5]),$e(e,"clientstylingurl",n[6]),$e(e,"mbsource",n[4])},m(t,r){N(t,e,r)},p(t,r){r[0]&65536&&$e(e,"totalitems",t[16]),r[0]&32768&&$e(e,"currentpage",t[15]),r[0]&4&&$e(e,"pagesize",t[2]),r[0]&131072&&$e(e,"limit",t[17]),r[0]&32&&$e(e,"clientstyling",t[5]),r[0]&64&&$e(e,"clientstylingurl",t[6]),r[0]&16&&$e(e,"mbsource",t[4])},d(t){t&&I(e)}}}function fl(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,b=n[29]("bonus.forfeitConfirm")+"",_,C,v,g=[L("ModalText")],A={};for(let M=0;M<g.length;M+=1)A=k(A,g[M]);let y=[L("ModalCancel")],S={};for(let M=0;M<y.length;M+=1)S=k(S,y[M]);let x=[L("ModalConfirm")],F={};for(let M=0;M<x.length;M+=1)F=k(F,x[M]);let j=[L("ModalButtons")],G={};for(let M=0;M<j.length;M+=1)G=k(G,j[M]);let R=[L("ModalBody")],B={};for(let M=0;M<R.length;M+=1)B=k(B,R[M]);let V=[L("ModalContent")],Q={};for(let M=0;M<V.length;M+=1)Q=k(Q,V[M]);let q=[n[28]("ModalWrapper")],H={};for(let M=0;M<q.length;M+=1)H=k(H,q[M]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),s=D(o),a=z(),l=E("div"),u=E("button"),c=D(d),h=z(),f=E("button"),_=D(b),T(i,A),T(u,S),T(f,F),T(l,G),T(r,B),T(t,Q),T(e,H)},m(M,ie){N(M,e,ie),p(e,t),p(t,r),p(r,i),p(i,s),p(r,a),p(r,l),p(l,u),p(u,c),u.autofocus&&u.focus(),p(l,h),p(l,f),p(f,_),f.autofocus&&f.focus(),C||(v=[Pe(u,"click",n[34]),Pe(f,"click",n[49])],C=!0)},p(M,ie){ie[0]&536870912&&o!==(o=M[29]("bonus.forfeitMessage")+"")&&re(s,o,A.contenteditable),ie[0]&536870912&&d!==(d=M[29]("bonus.forfeitCancel")+"")&&re(c,d,S.contenteditable),ie[0]&536870912&&b!==(b=M[29]("bonus.forfeitConfirm")+"")&&re(_,b,F.contenteditable),T(e,H=ke(q,[ie[0]&268435456&&M[28]("ModalWrapper")]))},d(M){M&&I(e),C=!1,qe(v)}}}function gv(n){let e,t,r,i,o,s,a=Re(_a),l=[];for(let y=0;y<a.length;y+=1)l[y]=ul(ll(n,a,y));let u=[n[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=k(d,u[y]);function c(y,S){if(y[25]===oe.CLAIMABLE)return cv;if(y[25]===oe.COMPLETED)return dv}let h=c(n),f=h&&h(n);function b(y,S){return y[13]?fv:hv}let _=b(n),C=_(n),v=n[22]&&fl(n),g=[L("BonusesController")],A={};for(let y=0;y<g.length;y+=1)A=k(A,g[y]);return{c(){e=E("div"),t=E("div"),r=E("div");for(let y=0;y<l.length;y+=1)l[y].c();i=z(),f&&f.c(),o=z(),C.c(),s=z(),v&&v.c(),m(r,"class","BonusFilterContainer"),m(r,"part","BonusFilterContainer"),T(t,d),T(e,A)},m(y,S){N(y,e,S),p(e,t),p(t,r);for(let x=0;x<l.length;x+=1)l[x]&&l[x].m(r,null);p(e,i),f&&f.m(e,null),p(e,o),C.m(e,null),p(e,s),v&&v.m(e,null),n[50](e)},p(y,S){if(S[0]&838868992|S[1]&16){a=Re(_a);let x;for(x=0;x<a.length;x+=1){const F=ll(y,a,x);l[x]?l[x].p(F,S):(l[x]=ul(F),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}T(t,d=ke(u,[S[0]&268435456&&y[28]("BonusFilterWrapper")])),h===(h=c(y))&&f?f.p(y,S):(f&&f.d(1),f=h&&h(y),f&&(f.c(),f.m(e,o))),_===(_=b(y))&&C?C.p(y,S):(C.d(1),C=_(y),C&&(C.c(),C.m(e,s))),y[22]?v?v.p(y,S):(v=fl(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i:Me,o:Me,d(y){y&&I(e),yt(l,y),f&&f.d(),C.d(),v&&v.d(),n[50](null)}}}function bv(n,e,t){let r,i,o;Cl(n,Ql,Y=>t(29,o=Y));let{endpoint:s=""}=e,{lang:a="en"}=e,{session:l=""}=e,{currency:u="EUR"}=e,{limit:d=""}=e,{cmsendpoint:c=""}=e,{mbsource:h}=e,{clientstyling:f=""}=e,{clientstylingurl:b=""}=e,{translationurl:_=""}=e,{levelcountlimit:C="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,A=!1,y=[],S=!0,x="",F="",j=1,G=0,R=2,B=An(Ss(new Date,Kg),"yyyy-MM-dd"),V=An(new Date,"yyyy-MM-dd"),Q=An(Ss(new Date,Jg),"yyyy-MM-dd"),q,H,M="",ie=!0,_e=!1,de=!1,X=!1,ae=Q,K=V,se,J,ee=oe.ACTIVE,w=!0,O="";au(g)&&(A=!0,R=1);const he=()=>{fetch(_).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(He=>{Er(He,Ae[He])})}).catch(Ae=>{console.log(Ae)})};Object.keys(xr).forEach(Y=>{Er(Y,xr[Y])}),Hr(()=>(window.addEventListener("message",Oe,!1),()=>{se==null||se.removeEventListener("change",ht),J==null||J.removeEventListener("change",Je),window.removeEventListener("message",Oe)}));const Oe=Y=>{switch(Y.data.type){case"PaginationChange":t(15,j=Y.data.page),Fe(j);break;case"OnBonusClaimed":W(Y.data.bonusCode);break;case"OnBonusForfeit":t(27,O=Y.data.bonus.id),t(22,X=!0);break}},Z=()=>Ue(this,null,function*(){Fe(1)}),W=(Y,Ae)=>Ue(this,null,function*(){t(26,w=!1);const He=yield ov(s,l,{bonusCode:Y,currency:u});if(!He.success){F=He.errorMessage||"",Ae?t(20,_e=!0):window.postMessage({type:"OnBonusClaimError",message:F,bonusCode:Y}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0);return}t(20,_e=!1),Fe(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,w=!0)}),xe=Y=>Ue(this,null,function*(){t(26,w=!1);const Ae=yield sv(s,l,{bonusWalletID:Y});if(!Ae.success){t(14,x=Ae.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1);return}Fe(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,w=!0),t(22,X=!1)}),Ce=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,X=!1)},Fe=Y=>Ue(this,null,function*(){j!==Y&&t(15,j=Y);const Ae=(Y-1)*Number(d);t(13,S=!0),t(12,y=[]);const He=yield ct(s,l,Ae,{lang:a,limit:d});if(!He.success){t(14,x=He.errorMessage),t(13,S=!1);return}const{list:xt,total:hn}=sb(He);t(16,G=hn),t(12,y=xt),t(13,S=!1)}),ct=(hn,Nd,Ld,...Hd)=>Ue(this,[hn,Nd,Ld,...Hd],function*(Y,Ae,He,xt={}){const{limit:Jn="",lang:Qn=a}=xt;switch(ee){case oe.CLAIMABLE:{const Ft={pagination:`limit=${Jn},offset=${He}`,language:Qn};return v===!0&&(Ft.selectable=v),yield lv(Y,Ae,Ft)}default:{const Ft=ub({limit:Jn,language:Qn,offset:He,bonusStatus:ee,bonusCalendarStartDate:ae,bonusCalendarEndDate:K,invalidDate:de,lastMonth:Q,maxDate:V});return yield av(Y,Ae,Ft)}}}),ht=Y=>{t(23,ae=Y.target.value)},Je=Y=>{t(24,K=Y.target.value)},Rt=()=>{se.removeEventListener("change",ht),J.removeEventListener("change",Je),se.addEventListener("change",ht,!1),J.addEventListener("change",Je,!1)},Et=()=>{t(20,_e=!1),t(19,ie=!ab(M))},$=Y=>{const{valid:Ae}=Y.detail,{start:He,end:xt}=ob(ae,K);t(23,ae=He),t(24,K=xt);const hn=lb(ae,K,Ae);t(21,de=hn.invalidDate)},ve=Y=>{t(25,ee=Y),Fe(1)};function Zn(){M=this.value,t(18,M)}const oi=()=>{W(M,!0)};function si(Y){st[Y?"unshift":"push"](()=>{se=Y,t(10,se)})}function ai(Y){st[Y?"unshift":"push"](()=>{J=Y,t(11,J)})}const li=()=>Fe(1),ui=()=>xe(O);function Kn(Y){st[Y?"unshift":"push"](()=>{q=Y,t(9,q)})}return n.$$set=Y=>{"endpoint"in Y&&t(38,s=Y.endpoint),"lang"in Y&&t(0,a=Y.lang),"session"in Y&&t(39,l=Y.session),"currency"in Y&&t(1,u=Y.currency),"limit"in Y&&t(2,d=Y.limit),"cmsendpoint"in Y&&t(3,c=Y.cmsendpoint),"mbsource"in Y&&t(4,h=Y.mbsource),"clientstyling"in Y&&t(5,f=Y.clientstyling),"clientstylingurl"in Y&&t(6,b=Y.clientstylingurl),"translationurl"in Y&&t(7,_=Y.translationurl),"levelcountlimit"in Y&&t(8,C=Y.levelcountlimit),"onlyoneclick"in Y&&t(40,v=Y.onlyoneclick)},n.$$.update=()=>{n.$$.dirty[0]&3072&&se&&J&&Rt(),n.$$.dirty[1]&1024&&t(28,r=(Y,Ae="")=>L(`${Y}${A?` ${Y}Mobile`:""}`,Ae)),n.$$.dirty[0]&1&&a&&eu(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(42,i=s&&l&&a&&d),n.$$.dirty[1]&2048&&i&&Z(),n.$$.dirty[0]&544&&f&&q&&Yr(q,f),n.$$.dirty[0]&576&&b&&q&&qr(q,b),n.$$.dirty[0]&528&&h&&q&&Xr(q,`${h}.Style`,H),n.$$.dirty[0]&128&&_&&he()},[a,u,d,c,h,f,b,_,C,q,se,J,y,S,x,j,G,R,M,ie,_e,de,X,ae,K,ee,w,O,r,o,B,V,W,xe,Ce,Fe,Et,$,s,l,v,A,i,ve,Zn,oi,si,ai,li,ui,Kn]}class Id extends Ur{constructor(e){super(),Rr(this,e,bv,gv,$n,{endpoint:38,lang:0,session:39,currency:1,limit:2,cmsendpoint:3,mbsource:4,clientstyling:5,clientstylingurl:6,translationurl:7,levelcountlimit:8,onlyoneclick:40},uv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),ue()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),ue()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),ue()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),ue()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),ue()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),ue()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),ue()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),ue()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),ue()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),ue()}}Fr(Id,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Id;