@everymatrix/casino-bonuses-controller 1.94.122 → 1.94.300
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.
- package/components/{CasinoBonusesController-BQSdHUJv.js → CasinoBonusesController-CEqLxzuV.js} +3279 -3237
- package/components/{CasinoBonusesController-DpEJbUpX.js → CasinoBonusesController-CM8ak0H6.js} +3538 -3496
- package/components/{CasinoBonusesController-DhpzivZN.cjs → CasinoBonusesController-Dpk1XlNw.cjs} +168 -168
- package/es2015/casino-bonuses-controller.cjs +1 -1
- package/es2015/casino-bonuses-controller.js +1 -1
- package/esnext/casino-bonuses-controller.js +1 -1
- package/package.json +1 -1
package/components/{CasinoBonusesController-DhpzivZN.cjs → CasinoBonusesController-Dpk1XlNw.cjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var zd=Object.defineProperty,$d=Object.defineProperties;var Vd=Object.getOwnPropertyDescriptors;var tr=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable;var di=(n,e,t)=>e in n?zd(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)=>$d(n,Vd(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 Wd(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 jd(n){return n&&zn(n.destroy)?n.destroy:Me}const Gd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Lr(n,e,t){const r=Yd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,qd(r,i)}}function Yd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function qd(n,e){return p(n.head||n,e),e.sheet}function N(n,e,t){n.insertBefore(e,t||null)}function O(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 Xd=["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&&Xd.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 Zd(n){return Array.from(n.childNodes)}function fe(n,e){e=""+e,n.data!==e&&(n.data=e)}function Kd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~Gd.indexOf(t)?Kd(n,e):fe(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 Jd(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let kn;function xn(n){kn=n}function Qd(){if(!kn)throw new Error("Function called outside component initialization");return kn}function Hr(n){Qd().$$.on_mount.push(n)}const Wt=[],st=[];let Yt=[];const rs=[],ec=Promise.resolve();let Ri=!1;function tc(){Ri||(Ri=!0,ec.then(de))}function Fi(n){Yt.push(n)}const ci=new Set;let Ut=0;function de(){if(Ut!==0)return;const n=kn;do{try{for(;Ut<Wt.length;){const e=Wt[Ut];Ut++,xn(e),nc(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 nc(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 rc(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 ic(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 oc(n,e){const t=n.$$;t.fragment!==null&&(rc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function sc(n,e){n.$$.dirty[0]===-1&&(Wt.push(n),tc(),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 _=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=_)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](_),d&&sc(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=Zd(e.target);u.fragment&&u.fragment.l(c),c.forEach(O)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),ic(n,e.target,e.anchor),de()}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&&O(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Jd(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(){oc(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&&!Wd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ac="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ac);const zt=[];function lc(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 lc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const _=e(r?u[0]:u,s,a);o?s(_):c=zn(_)?_:Me},f=i.map((_,b)=>wl(_,w=>{u[b]=w,d&=~(1<<b),l&&h()},()=>{d|=1<<b}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function uc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dc=function(e){return cc(e)&&!hc(e)};function cc(n){return!!n&&typeof n=="object"}function hc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||mc(n)}var fc=typeof Symbol=="function"&&Symbol.for,pc=fc?Symbol.for("react.element"):60103;function mc(n){return n.$$typeof===pc}function _c(n){return Array.isArray(n)?[]:{}}function Dn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Jt(_c(n),n,e):n}function gc(n,e,t){return n.concat(e).map(function(r){return Dn(r,t)})}function bc(n,e){if(!e.customMerge)return Jt;var t=e.customMerge(n);return typeof t=="function"?t:Jt}function vc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function is(n){return Object.keys(n).concat(vc(n))}function kl(n,e){try{return e in n}catch(t){return!1}}function yc(n,e){return kl(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function wc(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){yc(n,i)||(kl(n,i)&&t.isMergeableObject(e[i])?r[i]=bc(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||gc,t.isMergeableObject=t.isMergeableObject||dc,t.cloneUnlessOtherwiseSpecified=Dn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):wc(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 Cc=Jt,Ec=Cc;const xc=uc(Ec);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 Ac(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:Bc,r=e&&e.serializer?e.serializer:Dc,i=e&&e.strategy?e.strategy:Sc;return i(n,{cache:t,serializer:r})}function Tc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function Pc(n,e,t,r){var i=Tc(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 Sc(n,e){var t=n.length===1?Pc:Dl;return Ml(n,this,t,e.cache.create(),e.serializer)}function kc(n,e){return Ml(n,this,Dl,e.cache.create(),e.serializer)}var Dc=function(){return JSON.stringify(arguments)},Mc=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}(),Bc={create:function(){return new Mc}},pi={variadic:kc},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 Oc(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 Ic(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]/,Nc=/(?:[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 Lc(n){var e={};return n.replace(Nc,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 Hc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Rc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Hc).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 Fc(n){return n.replace(/^(.*?)-/,"")}var ss=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ul=/^(@+)?(\+|#+)?[rs]?$/g,Uc=/(\*)(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 zc(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 $c(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=Fc(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(Uc,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=zc(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 Vc(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=Wc(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 Wc(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,jc=new RegExp("^".concat(Fl.source,"*")),Gc=new RegExp("".concat(Fl.source,"*$"));function he(n,e){return{start:n,end:e}}var Yc=!!String.prototype.startsWith&&"_a".startsWith("a",1),qc=!!String.fromCodePoint,Xc=!!Object.fromEntries,Zc=!!String.prototype.codePointAt,Kc=!!String.prototype.trimStart,Jc=!!String.prototype.trimEnd,Qc=!!Number.isSafeInteger,eh=Qc?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},$i=!0;try{var th=Wl("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$i=((mi=th.exec("a"))===null||mi===void 0?void 0:mi[0])==="a"}catch(n){$i=!1}var us=Yc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Vi=qc?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=Xc?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=Zc?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}},nh=Kc?function(e){return e.trimStart()}:function(e){return e.replace(jc,"")},rh=Jc?function(e){return e.trimEnd()}:function(e){return e.replace(Gc,"")};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)||ah(i))break;r.push(i),t+=i>=65536?2:1}return Vi.apply(void 0,r)};var ih=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:he(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,he(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:he(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,he(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(ce.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:he(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,he(a,this.clonePosition())))}else return this.error(ce.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(ce.INVALID_TAG,he(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&sh(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=he(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||!oh(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,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ce.EMPTY_ARGUMENT,he(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(ce.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(ce.MALFORMED_ARGUMENT,he(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=he(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,he(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=rh(c.val);if(h.length===0)return this.error(ce.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var f=he(d,this.clonePosition());u={style:h,styleLocation:f}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=he(i,this.clonePosition());if(u&&us(u==null?void 0:u.style,"::",0)){var w=nh(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(w,u.styleLocation);return c.err?c:{val:{type:Ee.number,value:r,location:b,style:c.val},err:null}}else{if(w.length===0)return this.error(ce.EXPECT_DATE_TIME_SKELETON,b);var v=w;this.locale&&(v=Vc(w,this.locale));var h={type:Qt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Lc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:b,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,he(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,he(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 _=this.tryParseArgumentClose(i);if(_.err)return _;var F=he(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,he(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,he(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,he(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=Rc(e)}catch(i){return this.error(ce.INVALID_NUMBER_SKELETON,t)}return{val:{type:Qt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?$c(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=he(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,he(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,r);if(_.err)return _;var b=this.tryParseArgumentClose(f);if(b.err)return b;a.push([u,{value:_.val,location:he(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,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ce.MISSING_OTHER_CLAUSE,he(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=he(i,this.clonePosition());return o?(s*=r,eh(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 oh(n){return ji(n)||n===47}function sh(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 ah(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 lh(n,e){e===void 0&&(e={}),e=yr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new ih(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),uh=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),dh=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 ch(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 hh(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(Ic(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 dh(c,s);var h=i[c];if(Oc(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 _=d.children,b=d.value,w=i[b];if(!hh(w))throw new uh(b,"function",s);var v=pr(_,e,t,r,i,o),g=w(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.
|
|
1
|
+
"use strict";var $d=Object.defineProperty,Wd=Object.defineProperties;var jd=Object.getOwnPropertyDescriptors;var rr=Object.getOwnPropertySymbols;var ts=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable;var pi=(n,e,t)=>e in n?$d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pt=(n,e)=>{for(var t in e||(e={}))ts.call(e,t)&&pi(n,t,e[t]);if(rr)for(var t of rr(e))ns.call(e,t)&&pi(n,t,e[t]);return n},ir=(n,e)=>Wd(n,jd(e));var rs=(n,e)=>{var t={};for(var r in n)ts.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&rr)for(var r of rr(n))e.indexOf(r)<0&&ns.call(n,r)&&(t[r]=n[r]);return t};var Ye=(n,e,t)=>(pi(n,typeof e!="symbol"?e+"":e,t),t);var Fe=(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 D(n,e){for(const t in e)n[t]=e[t];return n}function xl(n){return n()}function is(){return Object.create(null)}function qe(n){n.forEach(xl)}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 or;function os(n,e){return n===e?!0:(or||(or=document.createElement("a")),or.href=e,n===or.href)}function Gd(n){return Object.keys(n).length===0}function Tl(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 Al(n,e,t){n.$$.on_destroy.push(Tl(e,t))}function Vn(n,e,t,r){if(n){const i=Pl(n,e,t,r);return n[0](i)}}function Pl(n,e,t,r){return n[1]&&r?D(t.ctx.slice(),n[1](r(e))):t.ctx}function $n(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=Pl(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 Yd(n){return n&&Un(n.destroy)?n.destroy:Me}const qd=["",!0,1,"true","contenteditable"];function p(n,e){n.appendChild(e)}function Rr(n,e,t){const r=Xd(n);if(!r.getElementById(e)){const i=E("style");i.id=e,i.textContent=t,Zd(r,i)}}function Xd(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Zd(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 M(n){return document.createTextNode(n)}function z(){return M(" ")}function nt(){return M("")}function Te(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 Kd=["width","height"];function P(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&&Kd.indexOf(r)===-1?n[r]=e[r]:m(n,r,e[r])}function Sl(n,e){for(const t in e)m(n,t,e[t])}function ze(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 kl(n){return n===""?null:+n}function Jd(n){return Array.from(n.childNodes)}function me(n,e){e=""+e,n.data!==e&&(n.data=e)}function Qd(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function re(n,e,t){~qd.indexOf(t)?Qd(n,e):me(n,e)}function yr(n,e){n.value=e==null?"":e}function ss(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 ec(n){const e={};return n.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let Sn;function En(n){Sn=n}function tc(){if(!Sn)throw new Error("Function called outside component initialization");return Sn}function Fr(n){tc().$$.on_mount.push(n)}const $t=[],at=[];let Gt=[];const as=[],nc=Promise.resolve();let Vi=!1;function rc(){Vi||(Vi=!0,nc.then(de))}function $i(n){Gt.push(n)}const mi=new Set;let Ft=0;function de(){if(Ft!==0)return;const n=Sn;do{try{for(;Ft<$t.length;){const e=$t[Ft];Ft++,En(e),ic(e.$$)}}catch(e){throw $t.length=0,Ft=0,e}for(En(null),$t.length=0,Ft=0;at.length;)at.pop()();for(let e=0;e<Gt.length;e+=1){const t=Gt[e];mi.has(t)||(mi.add(t),t())}Gt.length=0}while($t.length);for(;as.length;)as.pop()();Vi=!1,mi.clear(),En(n)}function ic(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($i)}}function oc(n){const e=[],t=[];Gt.forEach(r=>n.indexOf(r)===-1?e.push(r):t.push(r)),t.forEach(r=>r()),Gt=e}const fr=new Set;let St;function Dl(){St={r:0,c:[],p:St}}function Ml(){St.r||qe(St.c),St=St.p}function Ze(n,e){n&&n.i&&(fr.delete(n),n.i(e))}function dt(n,e,t,r){if(n&&n.o){if(fr.has(n))return;fr.add(n),St.c.push(()=>{fr.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 sc(n,e,t){const{fragment:r,after_update:i}=n.$$;r&&r.m(e,t),$i(()=>{const o=n.$$.on_mount.map(xl).filter(Un);n.$$.on_destroy?n.$$.on_destroy.push(...o):qe(o),n.$$.on_mount=[]}),i.forEach($i)}function ac(n,e){const t=n.$$;t.fragment!==null&&(oc(t.after_update),qe(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function lc(n,e){n.$$.dirty[0]===-1&&($t.push(n),rc(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Ur(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:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:is(),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 _=f.length?f[0]:h;return u.ctx&&i(u.ctx[c],u.ctx[c]=_)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](_),d&&lc(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=Jd(e.target);u.fragment&&u.fragment.l(c),c.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&Ze(n.$$.fragment),sc(n,e.target,e.anchor),de()}En(l)}let Bl;typeof HTMLElement=="function"&&(Bl=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 Fe(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=ec(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]=pr(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:ir(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=pr(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]=pr(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 pr(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 zr(n,e,t,r,i,o){let s=class extends Bl{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=pr(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 Vr{constructor(){Ye(this,"$$");Ye(this,"$$set")}$destroy(){ac(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&&!Gd(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const uc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(uc);const Ut=[];function dc(n,e){return{subscribe:$r(n,e).subscribe}}function $r(n,e=Me){let t;const r=new Set;function i(a){if(zn(n,a)&&(n=a,t)){const l=!Ut.length;for(const u of r)u[1](),Ut.push(u,n);if(l){for(let u=0;u<Ut.length;u+=2)Ut[u][0](Ut[u+1]);Ut.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 sn(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 dc(t,(s,a)=>{let l=!1;const u=[];let d=0,c=Me;const h=()=>{if(d)return;c();const _=e(r?u[0]:u,s,a);o?s(_):c=Un(_)?_:Me},f=i.map((_,b)=>Tl(_,C=>{u[b]=C,d&=~(1<<b),l&&h()},()=>{d|=1<<b}));return l=!0,h(),function(){qe(f),c(),l=!1}})}function cc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var hc=function(e){return fc(e)&&!pc(e)};function fc(n){return!!n&&typeof n=="object"}function pc(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||gc(n)}var mc=typeof Symbol=="function"&&Symbol.for,_c=mc?Symbol.for("react.element"):60103;function gc(n){return n.$$typeof===_c}function bc(n){return Array.isArray(n)?[]:{}}function kn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Kt(bc(n),n,e):n}function vc(n,e,t){return n.concat(e).map(function(r){return kn(r,t)})}function yc(n,e){if(!e.customMerge)return Kt;var t=e.customMerge(n);return typeof t=="function"?t:Kt}function wc(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function ls(n){return Object.keys(n).concat(wc(n))}function Ol(n,e){try{return e in n}catch(t){return!1}}function Cc(n,e){return Ol(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Ec(n,e,t){var r={};return t.isMergeableObject(n)&&ls(n).forEach(function(i){r[i]=kn(n[i],t)}),ls(e).forEach(function(i){Cc(n,i)||(Ol(n,i)&&t.isMergeableObject(e[i])?r[i]=yc(i,t)(n[i],e[i],t):r[i]=kn(e[i],t))}),r}function Kt(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||vc,t.isMergeableObject=t.isMergeableObject||hc,t.cloneUnlessOtherwiseSpecified=kn;var r=Array.isArray(e),i=Array.isArray(n),o=r===i;return o?r?t.arrayMerge(n,e,t):Ec(n,e,t):kn(e,t)}Kt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Kt(r,i,t)},{})};var xc=Kt,Tc=xc;const Ac=cc(Tc);var Wi=function(n,e){return Wi=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])},Wi(n,e)};function Wr(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wi(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 Pc(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 _i(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 gi(n,e){var t=e&&e.cache?e.cache:Ic,r=e&&e.serializer?e.serializer:Bc,i=e&&e.strategy?e.strategy:Dc;return i(n,{cache:t,serializer:r})}function Sc(n){return n==null||typeof n=="number"||typeof n=="boolean"}function kc(n,e,t,r){var i=Sc(r)?r:t(r),o=e.get(i);return typeof o=="undefined"&&(o=n.call(this,r),e.set(i,o)),o}function Il(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 Nl(n,e,t,r,i){return t.bind(e,n,r,i)}function Dc(n,e){var t=n.length===1?kc:Il;return Nl(n,this,t,e.cache.create(),e.serializer)}function Mc(n,e){return Nl(n,this,Il,e.cache.create(),e.serializer)}var Bc=function(){return JSON.stringify(arguments)},Oc=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}(),Ic={create:function(){return new Oc}},bi={variadic:Mc},wr=function(){return wr=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},wr.apply(this,arguments)};var fe;(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"})(fe||(fe={}));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 Jt;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(Jt||(Jt={}));function us(n){return n.type===Ee.literal}function Nc(n){return n.type===Ee.argument}function Ll(n){return n.type===Ee.number}function Hl(n){return n.type===Ee.date}function Rl(n){return n.type===Ee.time}function Fl(n){return n.type===Ee.select}function Ul(n){return n.type===Ee.plural}function Lc(n){return n.type===Ee.pound}function zl(n){return n.type===Ee.tag}function Vl(n){return!!(n&&typeof n=="object"&&n.type===Jt.number)}function ji(n){return!!(n&&typeof n=="object"&&n.type===Jt.dateTime)}var $l=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hc=/(?:[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 Rc(n){var e={};return n.replace(Hc,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 Fc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Uc(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(Fc).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 zc(n){return n.replace(/^(.*?)-/,"")}var ds=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Wl=/^(@+)?(\+|#+)?[rs]?$/g,Vc=/(\*)(0+)|(#+)(0+)|(0+)/g,jl=/^(0+)$/;function cs(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(Wl,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 Gl(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 $c(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)),!jl.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function hs(n){var e={},t=Gl(n);return t||e}function Wc(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=zc(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),hs(u))},{}));continue;case"engineering":e=Se(Se(Se({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Se(Se({},l),hs(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(Vc,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(jl.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(ds.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ds,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),cs(o)));continue}if(Wl.test(i.stem)){e=Se(Se({},e),cs(i.stem));continue}var s=Gl(i.stem);s&&(e=Se(Se({},e),s));var a=$c(i.stem);a&&(e=Se(Se({},e),a))}return e}var sr={"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 jc(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=Gc(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 Gc(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=sr[r||""]||sr[t||""]||sr["".concat(t,"-001")]||sr["001"];return i[0]}var vi,Yc=new RegExp("^".concat($l.source,"*")),qc=new RegExp("".concat($l.source,"*$"));function pe(n,e){return{start:n,end:e}}var Xc=!!String.prototype.startsWith&&"_a".startsWith("a",1),Zc=!!String.fromCodePoint,Kc=!!Object.fromEntries,Jc=!!String.prototype.codePointAt,Qc=!!String.prototype.trimStart,eh=!!String.prototype.trimEnd,th=!!Number.isSafeInteger,nh=th?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},Gi=!0;try{var rh=ql("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gi=((vi=rh.exec("a"))===null||vi===void 0?void 0:vi[0])==="a"}catch(n){Gi=!1}var fs=Xc?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Yi=Zc?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},ps=Kc?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},Yl=Jc?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}},ih=Qc?function(e){return e.trimStart()}:function(e){return e.replace(Yc,"")},oh=eh?function(e){return e.trimEnd()}:function(e){return e.replace(qc,"")};function ql(n,e){return new RegExp(n,e)}var qi;if(Gi){var ms=ql("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qi=function(e,t){var r;ms.lastIndex=t;var i=ms.exec(e);return(r=i[1])!==null&&r!==void 0?r:""}}else qi=function(e,t){for(var r=[];;){var i=Yl(e,t);if(i===void 0||Xl(i)||uh(i))break;r.push(i),t+=i>=65536?2:1}return Yi.apply(void 0,r)};var sh=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:pe(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(fe.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Xi(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:pe(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()||!Xi(this.char()))return this.error(fe.INVALID_TAG,pe(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(fe.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ee.tag,value:i,children:s,location:pe(r,this.clonePosition())},err:null}:this.error(fe.INVALID_TAG,pe(a,this.clonePosition())))}else return this.error(fe.UNCLOSED_TAG,pe(r,this.clonePosition()))}else return this.error(fe.INVALID_TAG,pe(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&lh(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=pe(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||!ah(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 Yi.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(),Yi(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(fe.EMPTY_ARGUMENT,pe(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(fe.MALFORMED_ARGUMENT,pe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ee.argument,value:i,location:pe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition())):this.parseArgumentOptions(e,t,i,r);default:return this.error(fe.MALFORMED_ARGUMENT,pe(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=qi(this.message,t),i=t+r.length;this.bumpTo(i);var o=this.clonePosition(),s=pe(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(fe.EXPECT_ARGUMENT_TYPE,pe(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=oh(c.val);if(h.length===0)return this.error(fe.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var f=pe(d,this.clonePosition());u={style:h,styleLocation:f}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=pe(i,this.clonePosition());if(u&&fs(u==null?void 0:u.style,"::",0)){var C=ih(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:b,style:c.val},err:null}}else{if(C.length===0)return this.error(fe.EXPECT_DATE_TIME_SKELETON,b);var v=C;this.locale&&(v=jc(C,this.locale));var h={type:Jt.dateTime,pattern:v,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Rc(v):{}},g=a==="date"?Ee.date:Ee.time;return{val:{type:g,value:r,location:b,style:h},err:null}}}return{val:{type:a==="number"?Ee.number:a==="date"?Ee.date:Ee.time,value:r,location:b,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(fe.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(T,wr({},T)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&y.value==="offset"){if(!this.bumpIf(":"))return this.error(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(fe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,fe.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 _=this.tryParseArgumentClose(i);if(_.err)return _;var F=pe(i,this.clonePosition());return a==="select"?{val:{type:Ee.select,value:r,options:ps(x.val),location:F},err:null}:{val:{type:Ee.plural,value:r,options:ps(x.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(fe.INVALID_ARGUMENT_TYPE,pe(s,l))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(fe.EXPECT_ARGUMENT_CLOSING_BRACE,pe(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(fe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(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=Uc(e)}catch(i){return this.error(fe.INVALID_NUMBER_SKELETON,t)}return{val:{type:Jt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Wc(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(fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,fe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;d=pe(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(l.has(u))return this.error(t==="select"?fe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:fe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(e+1,t,r);if(_.err)return _;var b=this.tryParseArgumentClose(f);if(b.err)return b;a.push([u,{value:_.val,location:pe(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"?fe.EXPECT_SELECT_ARGUMENT_SELECTOR:fe.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(fe.MISSING_OTHER_CLAUSE,pe(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=pe(i,this.clonePosition());return o?(s*=r,nh(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=Yl(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(fs(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()&&Xl(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 Xi(n){return n>=97&&n<=122||n>=65&&n<=90}function ah(n){return Xi(n)||n===47}function lh(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 Xl(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function uh(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 Zi(n){n.forEach(function(e){if(delete e.location,Fl(e)||Ul(e))for(var t in e.options)delete e.options[t].location,Zi(e.options[t].value);else Ll(e)&&Vl(e.style)||(Hl(e)||Rl(e))&&ji(e.style)?delete e.style.location:zl(e)&&Zi(e.children)})}function dh(n,e){e===void 0&&(e={}),e=wr({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new sh(n,e).parse();if(t.err){var r=SyntaxError(fe[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||Zi(t.val),t.val}var Qt;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(Qt||(Qt={}));var jr=function(n){Wr(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),_s=function(n){Wr(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('", "'),'"'),Qt.INVALID_VALUE,o)||this}return e}(jr),ch=function(n){Wr(e,n);function e(t,r,i){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Qt.INVALID_VALUE,i)||this}return e}(jr),hh=function(n){Wr(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,'"'),Qt.MISSING_VALUE,r)||this}return e}(jr),Ue;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(Ue||(Ue={}));function fh(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==Ue.literal||t.type!==Ue.literal?e.push(t):r.value+=t.value,e},[])}function ph(n){return typeof n=="function"}function mr(n,e,t,r,i,o,s){if(n.length===1&&us(n[0]))return[{type:Ue.literal,value:n[0].value}];for(var a=[],l=0,u=n;l<u.length;l++){var d=u[l];if(us(d)){a.push({type:Ue.literal,value:d.value});continue}if(Lc(d)){typeof o=="number"&&a.push({type:Ue.literal,value:t.getNumberFormat(e).format(o)});continue}var c=d.value;if(!(i&&c in i))throw new hh(c,s);var h=i[c];if(Nc(d)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?Ue.literal:Ue.object,value:h});continue}if(Hl(d)){var f=typeof d.style=="string"?r.date[d.style]:ji(d.style)?d.style.parsedOptions:void 0;a.push({type:Ue.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Rl(d)){var f=typeof d.style=="string"?r.time[d.style]:ji(d.style)?d.style.parsedOptions:r.time.medium;a.push({type:Ue.literal,value:t.getDateTimeFormat(e,f).format(h)});continue}if(Ll(d)){var f=typeof d.style=="string"?r.number[d.style]:Vl(d.style)?d.style.parsedOptions:void 0;f&&f.scale&&(h=h*(f.scale||1)),a.push({type:Ue.literal,value:t.getNumberFormat(e,f).format(h)});continue}if(zl(d)){var _=d.children,b=d.value,C=i[b];if(!ph(C))throw new ch(b,"function",s);var v=mr(_,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"?Ue.literal:Ue.object,value:S}}))}if(Fl(d)){var T=d.options[h]||d.options.other;if(!T)throw new _s(d.value,h,Object.keys(d.options),s);a.push.apply(a,mr(T.value,e,t,r,i));continue}if(Ul(d)){var T=d.options["=".concat(h)];if(!T){if(!Intl.PluralRules)throw new jr(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,
|
|
3
|
+
`,Qt.MISSING_INTL_API,s);var y=t.getPluralRules(e,{type:d.pluralType}).select(h-(d.offset||0));T=d.options[y]||d.options.other}if(!T)throw new _s(d.value,h,Object.keys(d.options),s);a.push.apply(a,mr(T.value,e,t,r,i,h-(d.offset||0)));continue}}return fh(a)}function mh(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 _h(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=mh(n[r],e[r]),t},tt({},n)):n}function yi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function gh(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,_i([void 0],t,!1)))},{cache:yi(n.number),strategy:bi.variadic}),getDateTimeFormat:gi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,_i([void 0],t,!1)))},{cache:yi(n.dateTime),strategy:bi.variadic}),getPluralRules:gi(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,_i([void 0],t,!1)))},{cache:yi(n.pluralRules),strategy:bi.variadic})}}var bh=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!==Ue.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 mr(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=Pc(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=_h(n.formats,r),this.formatters=i&&i.formatters||gh(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=dh,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 vh(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={},yh=(n,e,t)=>t&&(e in gt||(gt[e]={}),n in gt[e]||(gt[e][n]=t),t),Zl=(n,e)=>{if(e==null)return;if(e in gt&&n in gt[e])return gt[e][n];const t=Gr(e);for(let r=0;r<t.length;r++){const i=t[r],o=Ch(i,n);if(o)return yh(n,e,o)}};let ko;const Gn=$r({});function wh(n){return ko[n]||null}function Kl(n){return n in ko}function Ch(n,e){if(!Kl(n))return null;const t=wh(n);return vh(t,e)}function Eh(n){if(n==null)return;const e=Gr(n);for(let t=0;t<e.length;t++){const r=e[t];if(Kl(r))return r}}function Jl(n,...e){delete gt[n],Gn.update(t=>(t[n]=Ac.all([t[n]||{},...e]),t))}sn([Gn],([n])=>Object.keys(n));Gn.subscribe(n=>ko=n);const _r={};function xh(n,e){_r[n].delete(e),_r[n].size===0&&delete _r[n]}function Ql(n){return _r[n]}function Th(n){return Gr(n).map(e=>{const t=Ql(e);return[e,t?[...t]:[]]}).filter(([,e])=>e.length>0)}function Ki(n){return n==null?!1:Gr(n).some(e=>{var t;return(t=Ql(e))==null?void 0:t.size})}function Ah(n,e){return Promise.all(e.map(r=>(xh(n,r),r().then(i=>i.default||i)))).then(r=>Jl(n,...r))}const fn={};function eu(n){if(!Ki(n))return n in fn?fn[n]:Promise.resolve();const e=Th(n);return fn[n]=Promise.all(e.map(([t,r])=>Ah(t,r))).then(()=>{if(Ki(n))return eu(n);delete fn[n]}),fn[n]}const Ph={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"}}},Sh={fallbackLocale:null,loadingDelay:200,formats:Ph,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},kh=Sh;function en(){return kh}const wi=$r(!1);var Dh=Object.defineProperty,Mh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,Oh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,bs=(n,e,t)=>e in n?Dh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Nh=(n,e)=>{for(var t in e||(e={}))Oh.call(e,t)&&bs(n,t,e[t]);if(gs)for(var t of gs(e))Ih.call(e,t)&&bs(n,t,e[t]);return n},Lh=(n,e)=>Mh(n,Bh(e));let Ji;const Cr=$r(null);function vs(n){return n.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Gr(n,e=en().fallbackLocale){const t=vs(n);return e?[...new Set([...t,...vs(e)])]:t}function Nt(){return Ji!=null?Ji:void 0}Cr.subscribe(n=>{Ji=n!=null?n:void 0,typeof window!="undefined"&&n!=null&&document.documentElement.setAttribute("lang",n)});const Hh=n=>{if(n&&Eh(n)&&Ki(n)){const{loadingDelay:e}=en();let t;return typeof window!="undefined"&&Nt()!=null&&e?t=window.setTimeout(()=>wi.set(!0),e):wi.set(!0),eu(n).then(()=>{Cr.set(n)}).finally(()=>{clearTimeout(t),wi.set(!1)})}return Cr.set(n)},an=Lh(Nh({},Cr),{set:Hh}),Yr=n=>{const e=Object.create(null);return r=>{const i=JSON.stringify(r);return i in e?e[i]:e[i]=n(r)}};var Rh=Object.defineProperty,Er=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,nu=Object.prototype.propertyIsEnumerable,ys=(n,e,t)=>e in n?Rh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Do=(n,e)=>{for(var t in e||(e={}))tu.call(e,t)&&ys(n,t,e[t]);if(Er)for(var t of Er(e))nu.call(e,t)&&ys(n,t,e[t]);return n},ln=(n,e)=>{var t={};for(var r in n)tu.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Er)for(var r of Er(n))e.indexOf(r)<0&&nu.call(n,r)&&(t[r]=n[r]);return t};const Dn=(n,e)=>{const{formats:t}=en();if(n in t&&e in t[n])return t[n][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${n} format.`)},Fh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(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)}),Uh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(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)}),zh=Yr(n=>{var e=n,{locale:t,format:r}=e,i=ln(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)}),Vh=(n={})=>{var e=n,{locale:t=Nt()}=e,r=ln(e,["locale"]);return Fh(Do({locale:t},r))},$h=(n={})=>{var e=n,{locale:t=Nt()}=e,r=ln(e,["locale"]);return Uh(Do({locale:t},r))},Wh=(n={})=>{var e=n,{locale:t=Nt()}=e,r=ln(e,["locale"]);return zh(Do({locale:t},r))},jh=Yr((n,e=Nt())=>new bh(n,e,en().formats,{ignoreTag:en().ignoreTag})),Gh=(n,e={})=>{var t,r,i,o;let s=e;typeof n=="object"&&(s=n,n=s.id);const{values:a,locale:l=Nt(),default:u}=s;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=Zl(n,l);if(!d)d=(o=(i=(r=(t=en()).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=jh(d,l).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${n}" has syntax error:`,h.message)}return c},Yh=(n,e)=>Wh(e).format(n),qh=(n,e)=>$h(e).format(n),Xh=(n,e)=>Vh(e).format(n),Zh=(n,e=Nt())=>Zl(n,e),ru=sn([an,Gn],()=>Gh);sn([an],()=>Yh);sn([an],()=>qh);sn([an],()=>Xh);sn([an,Gn],()=>Zh);function xr(n,e){Jl(n,e)}function iu(n){an.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
|
|
16
|
+
***************************************************************************** */var Qi=function(n,e){return Qi=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])},Qi(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");Qi(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function eo(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 to(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 no(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 lt(n){return typeof n=="function"}function ou(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 Ci=ou(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 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(b){e={error:b}}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(b){o=b instanceof bi?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=Zi(c),f=h.next();!f.done;f=h.next()){var _=f.value;try{gs(_)}catch(b){o=o!=null?o:[],b instanceof bi?o=Ji(Ji([],Ki(o)),Ki(b.errors)):o.push(b)}}}catch(b){r={error:b}}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 Xh={Promise:void 0},Zh={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 Kh(n){Zh.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=ef,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),Jh=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 Jh(s),o}return e}(iu);function or(n){Kh(n)}function Qh(n){throw n}var ef={closed:!0,next:bs,error:Qh,complete:bs},tf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nf(n){return n}function rf(n){return n.length===0?nf: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=sf(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[tf]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rf(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:Xh.Promise)!==null&&e!==void 0?e:Promise}function of(n){return n&&at(n.next)&&at(n.error)&&at(n.complete)}function sf(n){return n&&n instanceof iu||of(n)&&ru(n)}var af=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 af},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},lf=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={},uf=(n,e=0)=>{if(Cs.indexOf(n)==-1){const t=new lf(e);Es[n]=t,Cs.push(n)}return Es[n]};window.emWidgets={topic:uf};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=df(n,e),t;window[jt]||(window[jt]={}),t=cf(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 df(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function cf(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 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||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 hf(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 ff(n,e){He(2,arguments);var t=Ke(n).getTime(),r=dt(e);return new Date(t+r)}var pf={};function Zr(){return pf}function mf(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 _f(n){return He(1,arguments),n instanceof Date||Ar(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function gf(n){if(He(1,arguments),!_f(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function bf(n,e){He(2,arguments);var t=dt(e);return ff(n,-t)}var vf=864e5;function yf(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/vf)+1}function Tr(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 lu(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=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 wf(n){He(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 Cf=6048e5;function Ef(n){He(1,arguments);var e=Ke(n),t=Tr(e).getTime()-wf(e).getTime();return Math.round(t/Cf)+1}function Pr(n,e){var t,r,i,o,s,a,l,u;He(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(),_=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}function uu(n,e){var t,r,i,o,s,a,l,u;He(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 _=new Date(0);_.setUTCFullYear(c+1,0,f),_.setUTCHours(0,0,0,0);var b=Pr(_,e),w=new Date(0);w.setUTCFullYear(c,0,f),w.setUTCHours(0,0,0,0);var v=Pr(w,e);return d.getTime()>=b.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function xf(n,e){var t,r,i,o,s,a,l,u;He(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 _=Pr(f,e);return _}var Af=6048e5;function Tf(n,e){He(1,arguments);var t=Ke(n),r=Pr(t,e).getTime()-xf(t,e).getTime();return Math.round(r/Af)+1}function ve(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 ve(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):ve(r+1,2)},d:function(e,t){return ve(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 ve(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ve(e.getUTCHours(),t.length)},m:function(e,t){return ve(e.getUTCMinutes(),t.length)},s:function(e,t){return ve(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 ve(o,t.length)}},$t={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pf={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 ve(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):ve(s,t.length)},R:function(e,t){var r=lu(e);return ve(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return ve(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 ve(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 ve(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 ve(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=Tf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ve(o,t.length)},I:function(e,t,r){var i=Ef(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):ve(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=yf(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ve(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 ve(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 ve(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 ve(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"}):ve(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):ve(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 ve(s,t.length)},T:function(e,t,r,i){var o=i._originalDate||e,s=o.getTime();return ve(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+ve(o,2)}function As(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ve(Math.abs(n)/60,2)}return Tt(n,e)}function Tt(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),o=ve(Math.floor(i/60),2),s=ve(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"})}},Sf=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))},kf={p:du,P:Sf},Df=["D","DD"],Mf=["YY","YYYY"];function Bf(n){return Df.indexOf(n)!==-1}function Of(n){return Mf.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 If={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"}},Nf=function(e,t,r){var i,o=If[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 Lf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ff={date:vi({formats:Lf,defaultWidth:"full"}),time:vi({formats:Hf,defaultWidth:"full"}),dateTime:vi({formats:Rf,defaultWidth:"full"})},Uf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zf=function(e,t,r,i){return Uf[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 $f={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Vf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wf={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"]},jf={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"]},Gf={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"}},Yf={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"}},qf=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"},Xf={ordinalNumber:qf,era:mn({values:$f,defaultWidth:"wide"}),quarter:mn({values:Vf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:mn({values:Wf,defaultWidth:"wide"}),day:mn({values:jf,defaultWidth:"wide"}),dayPeriod:mn({values:Gf,defaultWidth:"wide",formattingValues:Yf,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)?Kf(a,function(c){return c.test(s)}):Zf(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 Zf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Kf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function Jf(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 Qf=/^(\d+)(th|st|nd|rd)?/i,ep=/\d+/i,tp={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},np={any:[/^b/i,/^(a|c)/i]},rp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ip={any:[/1/i,/2/i,/3/i,/4/i]},op={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},sp={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]},ap={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},lp={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]},up={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},dp={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}},cp={ordinalNumber:Jf({matchPattern:Qf,parsePattern:ep,valueCallback:function(e){return parseInt(e,10)}}),era:_n({matchPatterns:tp,defaultMatchWidth:"wide",parsePatterns:np,defaultParseWidth:"any"}),quarter:_n({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_n({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any"}),day:_n({matchPatterns:ap,defaultMatchWidth:"wide",parsePatterns:lp,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:up,defaultMatchWidth:"any",parsePatterns:dp,defaultParseWidth:"any"})},hp={code:"en-US",formatDistance:Nf,formatLong:Ff,formatRelative:zf,localize:Xf,match:cp,options:{weekStartsOn:0,firstWeekContainsDate:1}},fp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mp=/^'([^]*?)'?$/,_p=/''/g,gp=/[a-zA-Z]/;function An(n,e,t){var r,i,o,s,a,l,u,d,c,h,f,_,b,w;He(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:hp,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=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(b=g.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.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(!gf(x))throw new RangeError("Invalid time value");var F=mf(x),j=bf(x,F),G={firstWeekContainsDate:y,weekStartsOn:S,locale:A,_originalDate:x},R=v.match(pp).map(function(I){var V=I[0];if(V==="p"||V==="P"){var Z=kf[V];return Z(I,A.formatLong)}return I}).join("").match(fp).map(function(I){if(I==="''")return"'";var V=I[0];if(V==="'")return bp(I);var Z=Pf[V];if(Z)return Of(I)&&Ps(I,e,String(n)),Bf(I)&&Ps(I,e,String(n)),Z(j,I,A.localize,G);if(V.match(gp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return I}).join("");return R}function bp(n){var e=n.match(mp);return e?e[1].replace(_p,"'"):n}function Ss(n,e){He(2,arguments);var t=dt(e);return hf(n,-t)}/**
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function ro(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var qr=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=eo(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(b){e={error:b}}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(lt(d))try{d()}catch(b){o=b instanceof Ci?b.errors:[b]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var h=eo(c),f=h.next();!f.done;f=h.next()){var _=f.value;try{ws(_)}catch(b){o=o!=null?o:[],b instanceof Ci?o=no(no([],to(o)),to(b.errors)):o.push(b)}}}catch(b){r={error:b}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(o)throw new Ci(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ws(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)&&ro(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&ro(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),su=qr.EMPTY;function au(n){return n instanceof qr||n&&"closed"in n&<(n.remove)&<(n.add)&<(n.unsubscribe)}function ws(n){lt(n)?n():n.unsubscribe()}var Kh={Promise:void 0},Jh={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,no([n,e],to(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Qh(n){Jh.setTimeout(function(){throw n})}function Cs(){}function gr(n){n()}var lu=function(n){Yn(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,au(t)&&t.add(r)):r.destination=nf,r}return e.create=function(t,r,i){return new io(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}(qr),ef=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){ar(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){ar(r)}else ar(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ar(t)}},n}(),io=function(n){Yn(e,n);function e(t,r,i){var o=n.call(this)||this,s;return lt(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 ef(s),o}return e}(lu);function ar(n){Qh(n)}function tf(n){throw n}var nf={closed:!0,next:Cs,error:tf,complete:Cs},rf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function of(n){return n}function sf(n){return n.length===0?of:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var Es=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=lf(e)?e:new io(e,t,r);return gr(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=xs(t),new t(function(i,o){var s=new io({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[rf]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sf(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=xs(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 xs(n){var e;return(e=n!=null?n:Kh.Promise)!==null&&e!==void 0?e:Promise}function af(n){return n&<(n.next)&<(n.error)&<(n.complete)}function lf(n){return n&&n instanceof lu||af(n)&&au(n)}var uf=ou(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),uu=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 Ts(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new uf},e.prototype.next=function(t){var r=this;gr(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=eo(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;gr(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;gr(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?su:(this.currentObservers=null,a.push(t),new qr(function(){r.currentObservers=null,ro(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 Es;return t.source=this,t},e.create=function(t,r){return new Ts(t,r)},e}(Es),Ts=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:su},e}(uu),du={now:function(){return(du.delegate||Date).now()},delegate:void 0},df=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=du);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}(uu);const As=[],Ps={},cf=(n,e=0)=>{if(As.indexOf(n)==-1){const t=new df(e);Ps[n]=t,As.push(n)}return Ps[n]};window.emWidgets={topic:cf};const cu=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 Tr={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"}}},Wt="__WIDGET_GLOBAL_STYLE_CACHE__";function Xr(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function Zr(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 Kr(n,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=hf(n,e),t;window[Wt]||(window[Wt]={}),t=ff(n,e);const o=t.unsubscribe.bind(t),s=()=>{if(window[Wt][e]){const a=window[Wt][e];a.refCount>1?a.refCount=a.refCount-1:delete window[Wt][e]}o()};return t.unsubscribe=s,t}function hf(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{n&&(t.innerHTML=r,n.appendChild(t))})}function ff(n,e){return window.emMessageBus.subscribe(e,t=>{if(!n)return;const r=n.getRootNode(),i=window[Wt];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 ct(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 pf(n,e){Le(2,arguments);var t=Ke(n),r=ct(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 mf(n,e){Le(2,arguments);var t=Ke(n).getTime(),r=ct(e);return new Date(t+r)}var _f={};function Jr(){return _f}function gf(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 bf(n){return Le(1,arguments),n instanceof Date||Ar(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function vf(n){if(Le(1,arguments),!bf(n)&&typeof n!="number")return!1;var e=Ke(n);return!isNaN(Number(e))}function yf(n,e){Le(2,arguments);var t=ct(e);return mf(n,-t)}var wf=864e5;function Cf(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/wf)+1}function Pr(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 hu(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=Pr(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=Pr(o);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Ef(n){Le(1,arguments);var e=hu(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Pr(t);return r}var xf=6048e5;function Tf(n){Le(1,arguments);var e=Ke(n),t=Pr(e).getTime()-Ef(e).getTime();return Math.round(t/xf)+1}function Sr(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Jr(),c=ct((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(),_=(f<c?7:0)+f-c;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}function fu(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Ke(n),c=d.getUTCFullYear(),h=Jr(),f=ct((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 _=new Date(0);_.setUTCFullYear(c+1,0,f),_.setUTCHours(0,0,0,0);var b=Sr(_,e),C=new Date(0);C.setUTCFullYear(c,0,f),C.setUTCHours(0,0,0,0);var v=Sr(C,e);return d.getTime()>=b.getTime()?c+1:d.getTime()>=v.getTime()?c:c-1}function Af(n,e){var t,r,i,o,s,a,l,u;Le(1,arguments);var d=Jr(),c=ct((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=fu(n,e),f=new Date(0);f.setUTCFullYear(h,0,c),f.setUTCHours(0,0,0,0);var _=Sr(f,e);return _}var Pf=6048e5;function Sf(n,e){Le(1,arguments);var t=Ke(n),r=Sr(t,e).getTime()-Af(t,e).getTime();return Math.round(r/Pf)+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)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kf={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=fu(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=hu(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=Sf(e,i);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ye(o,t.length)},I:function(e,t,r){var i=Tf(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=Cf(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=zt.noon:i===0?o=zt.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=zt.evening:i>=12?o=zt.afternoon:i>=4?o=zt.morning:o=zt.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 ks(s);case"XXXX":case"XX":return Pt(s);case"XXXXX":case"XXX":default:return Pt(s,":")}},x:function(e,t,r,i){var o=i._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return ks(s);case"xxxx":case"xx":return Pt(s);case"xxxxx":case"xxx":default:return Pt(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"+Ss(s,":");case"OOOO":default:return"GMT"+Pt(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"+Ss(s,":");case"zzzz":default:return"GMT"+Pt(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 Ss(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 ks(n,e){if(n%60===0){var t=n>0?"-":"+";return t+ye(Math.abs(n)/60,2)}return Pt(n,e)}function Pt(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 Ds=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"})}},pu=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"})}},Df=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ds(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}}",Ds(i,t)).replace("{{time}}",pu(o,t))},Mf={p:pu,P:Df},Bf=["D","DD"],Of=["YY","YYYY"];function If(n){return Bf.indexOf(n)!==-1}function Nf(n){return Of.indexOf(n)!==-1}function Ms(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 Lf={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"}},Hf=function(e,t,r){var i,o=Lf[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 Ei(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 Rf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ff={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Uf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zf={date:Ei({formats:Rf,defaultWidth:"full"}),time:Ei({formats:Ff,defaultWidth:"full"}),dateTime:Ei({formats:Uf,defaultWidth:"full"})},Vf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$f=function(e,t,r,i){return Vf[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 Wf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gf={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"]},Yf={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"]},qf={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"}},Xf={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"}},Zf=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"},Kf={ordinalNumber:Zf,era:pn({values:Wf,defaultWidth:"wide"}),quarter:pn({values:jf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pn({values:Gf,defaultWidth:"wide"}),day:pn({values:Yf,defaultWidth:"wide"}),dayPeriod:pn({values:qf,defaultWidth:"wide",formattingValues:Xf,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)?Qf(a,function(c){return c.test(s)}):Jf(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 Jf(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function Qf(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function ep(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 tp=/^(\d+)(th|st|nd|rd)?/i,np=/\d+/i,rp={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},ip={any:[/^b/i,/^(a|c)/i]},op={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sp={any:[/1/i,/2/i,/3/i,/4/i]},ap={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},lp={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]},up={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},dp={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]},cp={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},hp={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}},fp={ordinalNumber:ep({matchPattern:tp,parsePattern:np,valueCallback:function(e){return parseInt(e,10)}}),era:mn({matchPatterns:rp,defaultMatchWidth:"wide",parsePatterns:ip,defaultParseWidth:"any"}),quarter:mn({matchPatterns:op,defaultMatchWidth:"wide",parsePatterns:sp,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mn({matchPatterns:ap,defaultMatchWidth:"wide",parsePatterns:lp,defaultParseWidth:"any"}),day:mn({matchPatterns:up,defaultMatchWidth:"wide",parsePatterns:dp,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:cp,defaultMatchWidth:"any",parsePatterns:hp,defaultParseWidth:"any"})},pp={code:"en-US",formatDistance:Hf,formatLong:zf,formatRelative:$f,localize:Kf,match:fp,options:{weekStartsOn:0,firstWeekContainsDate:1}},mp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gp=/^'([^]*?)'?$/,bp=/''/g,vp=/[a-zA-Z]/;function xn(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=Jr(),T=(r=(i=void 0)!==null&&i!==void 0?i:g.locale)!==null&&r!==void 0?r:pp,y=ct((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=ct((c=(h=(f=(_=void 0)!==null&&_!==void 0?_:void 0)!==null&&f!==void 0?f:g.weekStartsOn)!==null&&h!==void 0?h:(b=g.locale)===null||b===void 0||(C=b.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(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var x=Ke(n);if(!vf(x))throw new RangeError("Invalid time value");var F=gf(x),j=yf(x,F),Y={firstWeekContainsDate:y,weekStartsOn:S,locale:T,_originalDate:x},H=v.match(_p).map(function(O){var $=O[0];if($==="p"||$==="P"){var Z=Mf[$];return Z(O,T.formatLong)}return O}).join("").match(mp).map(function(O){if(O==="''")return"'";var $=O[0];if($==="'")return yp(O);var Z=kf[$];if(Z)return Nf(O)&&Ms(O,e,String(n)),If(O)&&Ms(O,e,String(n)),Z(j,O,T.localize,Y);if($.match(vp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return O}).join("");return H}function yp(n){var e=n.match(gp);return e?e[1].replace(bp,"'"):n}function Bs(n,e){Le(2,arguments);var t=ct(e);return pf(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
|
|
26
|
+
*/class wp extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}rt(wp);/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2019 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const
|
|
30
|
+
*/const br=globalThis,Mo=br.ShadowRoot&&(br.ShadyCSS===void 0||br.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bo=Symbol(),Os=new WeakMap;let Oo=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Bo)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(Mo&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Os.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Os.set(t,e))}return e}toString(){return this.cssText}};const Cp=n=>new Oo(typeof n=="string"?n:n+"",void 0,Bo),_e=(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 Oo(t,n,Bo)},mu=(n,e)=>{if(Mo)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),i=br.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,n.appendChild(r)}},Is=Mo?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Cp(t)})(n):n;/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/const{is:
|
|
34
|
+
*/const{is:Ep,defineProperty:xp,getOwnPropertyDescriptor:Tp,getOwnPropertyNames:Ap,getOwnPropertySymbols:Pp,getPrototypeOf:Sp}=Object,bt=globalThis,Ns=bt.trustedTypes,kp=Ns?Ns.emptyScript:"",xi=bt.reactiveElementPolyfillSupport,Tn=(n,e)=>n,oo={toAttribute(n,e){switch(e){case Boolean:n=n?kp: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}},_u=(n,e)=>!Ep(n,e),Ls={attribute:!0,type:String,converter:oo,reflect:!1,useDefault:!1,hasChanged:_u};var bl,vl;(bl=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(vl=bt.litPropertyMetadata)!=null||(bt.litPropertyMetadata=new WeakMap);let jt=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=Ls){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&&xp(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){var s;const{get:i,set:o}=(s=Tp(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:Ls}static _$Ei(){if(this.hasOwnProperty(Tn("elementProperties")))return;const e=Sp(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=[...Ap(t),...Pp(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(Is(i))}else e!==void 0&&t.push(Is(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 mu(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:oo).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:oo;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:_u)(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 Fe(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 yl;jt.elementStyles=[],jt.shadowRootOptions={mode:"open"},jt[Tn("elementProperties")]=new Map,jt[Tn("finalized")]=new Map,xi==null||xi({ReactiveElement:jt}),((yl=bt.reactiveElementVersions)!=null?yl: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
|
|
39
|
-
\f\r]`,
|
|
40
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
38
|
+
*/const An=globalThis,Hs=n=>n,kr=An.trustedTypes,Rs=kr?kr.createPolicy("lit-html",{createHTML:n=>n}):void 0,gu="$lit$",_t=`lit$${Math.random().toFixed(9).slice(2)}$`,bu="?"+_t,Dp=`<${bu}>`,It=document,Mn=()=>It.createComment(""),Bn=n=>n===null||typeof n!="object"&&typeof n!="function",Io=Array.isArray,Mp=n=>Io(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Ti=`[
|
|
39
|
+
\f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fs=/-->/g,Us=/>/g,At=RegExp(`>|${Ti}(?:([^\\s"'>=/]+)(${Ti}*=${Ti}*(?:[^
|
|
40
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Vs=/"/g,vu=/^(?:script|style|textarea|title)$/i,tn=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),$s=new WeakMap,kt=It.createTreeWalker(It,129);function yu(n,e){if(!Io(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rs!==void 0?Rs.createHTML(e):e}const Bp=(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=Fs:d[1]!==void 0?s=Us:d[2]!==void 0?(vu.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]==='"'?Vs:zs):s===Vs||s===zs?s=At:s===Fs||s===Us?s=_n:(s=At,i=void 0);const f=s===At&&n[a+1].startsWith("/>")?" ":"";o+=s===_n?l+Dp:c>=0?(r.push(u),l.slice(0,c)+gu+l.slice(c)+_t+f):l+_t+(c===-2?a:f)}return[yu(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]=Bp(e,t);if(this.el=On.createElement(u,r),kt.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=kt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(gu)){const h=d[s++],f=i.getAttribute(c).split(_t),_=/([.?@])?(.*)/.exec(h);l.push({type:1,index:o,name:_[2],strings:f,ctor:_[1]==="."?Ip:_[1]==="?"?Np:_[1]==="@"?Lp:Qr}),i.removeAttribute(c)}else c.startsWith(_t)&&(l.push({type:6,index:o}),i.removeAttribute(c));if(vu.test(i.tagName)){const c=i.textContent.split(_t),h=c.length-1;if(h>0){i.textContent=kr?kr.emptyScript:"";for(let f=0;f<h;f++)i.append(c[f],Mn()),kt.nextNode(),l.push({type:2,index:++o});i.append(c[h],Mn())}}}else if(i.nodeType===8)if(i.data===bu)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=It.createElement("template");return r.innerHTML=e,r}}function nn(n,e,t=n,r){var s,a,l;if(e===tn)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=nn(n,i._$AS(n,e.values),i,r)),e}class Op{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:It).importNode(t,!0);kt.currentNode=i;let o=kt.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 Hp(o,this,e)),this._$AV.push(d),l=r[++a]}s!==(l==null?void 0:l.index)&&(o=kt.nextNode(),s++)}return kt.currentNode=It,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=nn(this,e,t),Bn(e)?e===Ie||e==null||e===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):e!==this._$AH&&e!==tn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Mp(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(It.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(yu(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 Op(i,this),a=s.u(this.options);s.p(t),this.T(a),this._$AH=s}}_$AC(e){let t=$s.get(e.strings);return t===void 0&&$s.set(e.strings,t=new On(e)),t}k(e){Io(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=Hs(e).nextSibling;Hs(e).remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Qr{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=nn(this,e,t,0),s=!Bn(e)||e!==this._$AH&&e!==tn,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=nn(this,a[r+l],t,l),u===tn&&(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 Ip extends Qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ie?void 0:e}}class Np extends Qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ie)}}class Lp extends Qr{constructor(e,t,r,i,o){super(e,t,r,i,o),this.type=5}_$AI(e,t=this){var s;if((e=(s=nn(this,e,t,0))!=null?s:Ie)===tn)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 Hp{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){nn(this,e)}}const Ai=An.litHtmlPolyfillSupport;var wl;Ai==null||Ai(On,qn),((wl=An.litHtmlVersions)!=null?wl:An.litHtmlVersions=[]).push("3.3.2");const Rp=(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};/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/const
|
|
44
|
+
*/const Bt=globalThis;class Yt extends jt{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=Rp(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 tn}}var Cl;Yt._$litElement$=!0,Yt.finalized=!0,(Cl=Bt.litElementHydrateSupport)==null||Cl.call(Bt,{LitElement:Yt});const Pi=Bt.litElementPolyfillSupport;Pi==null||Pi({LitElement:Yt});var El;((El=Bt.litElementVersions)!=null?El:Bt.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
|
|
48
|
+
*/const Fp=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
|
|
53
|
-
`)}const
|
|
52
|
+
*/const wu=[],so=new Set,No=new Set;function Cu(n){return n&&Object.prototype.hasOwnProperty.call(n,"__themes")}function Up(n){return Cu(customElements.get(n))}function zp(n=[]){return[n].flat(1/0).filter(e=>e instanceof Oo?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Eu(n,e){return(n||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function xu(n){return n.map(e=>e.cssText).join(`
|
|
53
|
+
`)}const Dr="vaadin-themable-mixin-style";function Vp(n,e){const t=document.createElement("style");t.id=Dr,t.textContent=xu(n),e.content.appendChild(t)}function $p(n){if(!n.shadowRoot)return;const e=n.constructor;if(n instanceof Yt)[...n.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),mu(n.shadowRoot,e.elementStyles);else{const t=n.shadowRoot.getElementById(Dr),r=e.prototype._template;t.textContent=r.content.getElementById(Dr).textContent}}function Wp(n){so.forEach(e=>{const t=e.deref();t instanceof n?$p(t):t||so.delete(e)})}function Tu(n){if(n.prototype instanceof Yt)n.elementStyles=n.finalizeStyles(n.styles);else{const e=n.prototype._template;e.content.getElementById(Dr).textContent=xu(n.getStylesForThis())}No.forEach(e=>{const t=customElements.get(e);t!==n&&t.prototype instanceof n&&Tu(t)})}function jp(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=zp(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(n,e,t):wu.push({themeFor:n,styles:e,include:t.include,moduleId:t.moduleId}),n&&No.forEach(r=>{if(Eu(n,r)&&Up(r)){const i=customElements.get(r);jp(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".`),Tu(i),Wp(i)}})}function ao(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():wu}function Gp(n=""){let e=0;return n.startsWith("lumo-")||n.startsWith("material-")?e=1:n.startsWith("vaadin-")&&(e=2),e}function Au(n){const e=[];return n.include&&[].concat(n.include).forEach(t=>{const r=ao().find(i=>i.moduleId===t);r?e.push(...Au(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},n.styles),e}function Yp(n){const e=`${n}-default-theme`,t=ao().filter(r=>r.moduleId!==e&&Eu(r.themeFor,n)).map(r=>ir(pt({},r),{styles:[...Au(r),...r.styles],includePriority:Gp(r.moduleId)})).sort((r,i)=>i.includePriority-r.includePriority);return t.length>0?t:ao().filter(r=>r.moduleId===e)}const Lt=n=>class extends Fp(n){constructor(){super(),so.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&No.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Cu(this)||Vp(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,...Yp(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
|
|
58
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},
|
|
57
|
+
*/const qp=(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)},un=(n,...e)=>{qp(`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
|
|
62
|
+
*/const Xp=_e`
|
|
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
|
-
`;
|
|
77
|
+
`;un("sizing-props",Xp);/**
|
|
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
|
|
81
|
+
*/const Zp=_e`
|
|
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
|
-
`;
|
|
104
|
+
`;un("spacing-props",Zp);/**
|
|
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
|
|
108
|
+
*/const Kp=_e`
|
|
109
109
|
:host {
|
|
110
110
|
/* Border radius */
|
|
111
111
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -122,7 +122,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
122
122
|
/* Clickable element cursor */
|
|
123
123
|
--lumo-clickable-cursor: default;
|
|
124
124
|
}
|
|
125
|
-
`;
|
|
125
|
+
`;_e`
|
|
126
126
|
html {
|
|
127
127
|
/* Button */
|
|
128
128
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -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
|
-
`;
|
|
208
|
+
`;un("style-props",Kp);/**
|
|
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
|
|
212
|
+
*/const Jp=_e`
|
|
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
|
-
`;
|
|
297
|
+
`;un("color-props",Jp);const Qp=_e`
|
|
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("",
|
|
415
|
+
`;De("",Qp,{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
|
|
419
|
+
*/const em=_e`
|
|
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
|
-
`,
|
|
439
|
+
`,tm=_e`
|
|
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("",
|
|
531
|
+
`;De("",tm,{moduleId:"lumo-typography"});un("typography-props",em);/**
|
|
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
|
|
535
|
+
*/const Pu=_e`
|
|
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("",
|
|
600
|
+
`;De("",Pu,{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
|
|
604
|
+
*/const Su=_e`
|
|
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("",
|
|
634
|
+
`;De("",Su,{moduleId:"lumo-menu-overlay-core"});const nm=_e`
|
|
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
|
-
`,
|
|
696
|
+
`,ku=[Pu,Su,nm];De("",ku,{moduleId:"lumo-menu-overlay"});const rm=_e`
|
|
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",[
|
|
741
|
+
`;De("vaadin-date-picker-overlay",[ku,rm],{moduleId:"lumo-date-picker-overlay"});const im=_e`
|
|
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",
|
|
1017
|
+
`;De("vaadin-button",im,{moduleId:"lumo-button"});De("vaadin-date-picker-year",_e`
|
|
1018
1018
|
:host([current]) [part='year-number'] {
|
|
1019
1019
|
color: var(--lumo-primary-text-color);
|
|
1020
1020
|
}
|
|
@@ -1038,7 +1038,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1038
1038
|
color: var(--lumo-disabled-text-color);
|
|
1039
1039
|
content: '\\2022';
|
|
1040
1040
|
}
|
|
1041
|
-
`,{moduleId:"lumo-date-picker-year"});De("vaadin-date-picker-overlay-content",
|
|
1041
|
+
`,{moduleId:"lumo-date-picker-year"});De("vaadin-date-picker-overlay-content",_e`
|
|
1042
1042
|
:host {
|
|
1043
1043
|
position: relative;
|
|
1044
1044
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -1188,7 +1188,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1188
1188
|
padding-left: 50px;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});De("vaadin-month-calendar",
|
|
1191
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});De("vaadin-month-calendar",_e`
|
|
1192
1192
|
:host {
|
|
1193
1193
|
-moz-user-select: none;
|
|
1194
1194
|
-webkit-user-select: none;
|
|
@@ -1335,7 +1335,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1335
1335
|
:host([disabled]) * {
|
|
1336
1336
|
color: var(--lumo-disabled-text-color) !important;
|
|
1337
1337
|
}
|
|
1338
|
-
`,{moduleId:"lumo-month-calendar"});De("vaadin-input-container",
|
|
1338
|
+
`,{moduleId:"lumo-month-calendar"});De("vaadin-input-container",_e`
|
|
1339
1339
|
:host {
|
|
1340
1340
|
background: var(--_background);
|
|
1341
1341
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -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
|
|
1520
|
+
*/const om=_e`
|
|
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
|
-
`;
|
|
1573
|
+
`;un("font-icons",om);/**
|
|
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
|
|
1577
|
+
*/const Du=_e`
|
|
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("",
|
|
1604
|
+
`;De("",Du,{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
|
|
1608
|
+
*/const sm=_e`
|
|
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
|
|
1668
|
+
*/const Mu=_e`
|
|
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("",
|
|
1780
|
+
`;De("",Mu,{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
|
|
1784
|
+
*/const am=_e`
|
|
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
|
-
`,
|
|
1915
|
+
`,Bu=[Mu,Du,sm,am];De("",Bu,{moduleId:"lumo-input-field-shared-styles"});const lm=_e`
|
|
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",[
|
|
1937
|
+
`;De("vaadin-date-picker",[Bu,lm],{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
|
|
1953
|
+
*/let um=/(url\()([^)]*)(\))/g,dm=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,lr,je;function Pn(n,e){if(n&&dm.test(n)||n==="//")return n;if(lr===void 0){lr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",lr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),lr)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 Lo(n,e){return n.replace(um,function(t,r,i,o){return r+"'"+Pn(i.replace(/["']/g,""),e)+"'"+o})}function Ho(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
|
|
1961
|
+
*/const Ou=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const cm=Ou&&"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 hm=window.Polymer&&window.Polymer.rootPath||Ho(document.baseURI||window.location.href),Mr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Br=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,fm=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Iu=window.Polymer&&window.Polymer.legacyOptimizations||!1,Nu=window.Polymer&&window.Polymer.legacyWarnings||!1,pm=window.Polymer&&window.Polymer.syncInitialRender||!1,lo=window.Polymer&&window.Polymer.legacyUndefined||!1,mm=window.Polymer&&window.Polymer.orderedComputed||!1,Ws=window.Polymer&&window.Polymer.removeNestedTemplates||!1,_m=window.Polymer&&window.Polymer.fastDomIf||!1,js=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let gm=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
|
|
1969
|
+
*/let bm=0;const Oe=function(n){let e=n.__mixinApplications;e||(e=new WeakMap,n.__mixinApplications=e);let t=bm++;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
|
|
1977
|
+
*/let Ro={},Lu={};function Gs(n,e){Ro[n]=Lu[n.toLowerCase()]=e}function Ys(n){return Ro[n]||Lu[n.toLowerCase()]}function vm(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=Ys(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=Ho(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Br&&Ys(e)!==void 0)throw Gs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Gs(e,this),vm(this)}}}In.prototype.modules=Ro;customElements.define("dom-module",In);/**
|
|
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
|
|
1985
|
+
*/const ym="link[rel=import][type~=css]",wm="include",qs="shady-unscoped";function Hu(n){return In.import(n)}function Xs(n){let e=n.body?n.body:n;const t=Lo(e.textContent,n.baseURI),r=document.createElement("style");return r.textContent=t,r}function Cm(n){const e=n.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Em(e[r]));return t}function Em(n){const e=Hu(n);if(!e)return console.warn("Could not find style data in module named",n),[];if(e._styles===void 0){const t=[];t.push(...Fu(e));const r=e.querySelector("template");r&&t.push(...Ru(r,e.assetpath)),e._styles=t}return e._styles}function Ru(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(wm);s&&t.push(...Cm(s).filter(function(a,l,u){return u.indexOf(a)===l})),e&&(o.textContent=Lo(o.textContent,e)),t.push(o)}n._styles=t}return n._styles}function xm(n){let e=Hu(n);return e?Fu(e):[]}function Fu(n){const e=[],t=n.querySelectorAll(ym);for(let r=0;r<t.length;r++){let i=t[r];if(i.import){const o=i.import,s=i.hasAttribute(qs);if(s&&!o._unscopedStyle){const a=Xs(o);a.setAttribute(qs,""),o._unscopedStyle=a}else o._style||(o._style=Xs(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
|
|
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
|
|
2001
|
+
*/function uo(n){return n.indexOf(".")>=0}function Ht(n){let e=n.indexOf(".");return e===-1?n:n.slice(0,e)}function Uu(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 Tm(n,e){return n===e||Uu(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 zu(n){return Array.isArray(n)?wn(n).split("."):n.toString().split(".")}function Ve(n,e,t){let r=n,i=zu(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 Zs(n,e,t){let r=n,i=zu(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
|
|
2009
|
+
*/const Or={},Am=/-[a-z]/g,Pm=/([A-Z])/g;function Vu(n){return Or[n]||(Or[n]=n.indexOf("-")<0?n:n.replace(Am,e=>e[1].toUpperCase()))}function ei(n){return Or[n]||(Or[n]=n.replace(Pm,"-$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
|
|
2017
|
+
*/let Sm=0,$u=0,qt=[],km=0,co=!1,Wu=document.createTextNode("");new window.MutationObserver(Dm).observe(Wu,{characterData:!0});function Dm(){co=!1;const n=qt.length;for(let e=0;e<n;e++){let t=qt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}qt.splice(0,n),$u+=n}const Mm={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)}},ju={run(n){return co||(co=!0,Wu.textContent=km++),qt.push(n),Sm++},cancel(n){const e=n-$u;if(e>=0){if(!qt[e])throw new Error("invalid async handle: "+n);qt[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
|
|
2025
|
+
*/const Bm=ju,Gu=Oe(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,Bm.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
|
|
2033
|
+
*/const Yu={};let ur=HTMLElement.prototype;for(;ur;){let n=Object.getOwnPropertyNames(ur);for(let e=0;e<n.length;e++)Yu[n[e]]=!0;ur=Object.getPrototypeOf(ur)}const Om=window.trustedTypes?n=>trustedTypes.isHTML(n)||trustedTypes.isScript(n)||trustedTypes.isScriptURL(n):()=>!1;function Im(n,e){if(!Yu[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 Nm=Oe(n=>{const e=Gu(n);class t extends e{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Vu(i[o]))}static attributeNameForProperty(i){return ei(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(Om(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){Im(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
|
|
2041
|
+
*/const Lm={"dom-if":!0,"dom-repeat":!0};let Ks=!1,Js=!1;function Hm(){if(!Ks){Ks=!0;const n=document.createElement("textarea");n.placeholder="a",Js=n.placeholder===n.textContent}return Js}function Rm(n){Hm()&&n.localName==="textarea"&&n.placeholder&&n.placeholder===n.textContent&&(n.textContent=null)}const Fm=(()=>{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 Um(n){let e=n.getAttribute("is");if(e&&Lm[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];Fm(n,t,r),t.removeAttribute(r)}}return n}function qu(n,e){let t=e.parentInfo&&qu(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 zm(n,e,t,r){r.id&&(e[r.id]=t)}function Vm(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 $m(n,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Wm(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 jm=Oe(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),Rm(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=Um(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]=qu(a,c);zm(this,a.$,h,c),$m(this,h,c,i),Vm(this,h,c)}return a=a,a}_addMethodEventListenerToNode(r,i,o,s){s=s||r;let a=Wm(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 Rn=0;const Fn=[],_e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ju="__computeInfo",Wm=/[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 jm(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 Gm(n,e,t,r,i){let o=n[_e.NOTIFY],s,a=Rn++;for(let u in e)e[u]&&(o&&jm(n,o,a,u,t,r,i)||i&&Ym(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ym(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),Le(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function qm(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 Xm(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[_e.READ_ONLY]||!e[_e.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Zm(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 Km(n,e,t,r){let i=n[_e.COMPUTE];if(i)if(fm){Rn++;const o=Qm(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 Jm=(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,Jm(l.info,t,r))}};function Qm(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[_e.COMPUTE];let{counts:r,ready:i,total:o}=e_(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 e_(n){const e=n[ju],t={},r=n[_e.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 t_(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),s_(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,n_(n,e,a,d,l)}}function n_(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:r_,info:s,trigger:l})}}}function r_(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&&i_(n,a,l,u,d)}}function i_(n,e,t,r,i){if(i=o_(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[_e.READ_ONLY]||!e[_e.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function o_(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 s_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function a_(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];l_(s,u),u_(s,n,u)}s.__dataHost=n}}function l_(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 u_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Xm(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 d_=[],qu="(?:[a-zA-Z_$][\\w.:$\\-*]*)",c_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",h_="(?:'(?:[^'\\\\]|\\\\.)*')",f_='(?:"(?:[^"\\\\]|\\\\.)*")',p_="(?:"+h_+"|"+f_+")",Js="(?:("+qu+"|"+c_+"|"+p_+")\\s*)",m_="(?:"+Js+"(?:,\\s*"+Js+")*)",__="(?:\\(\\s*(?:"+m_+"?)\\)\\s*)",g_="("+qu+"\\s*"+__+"?)",b_="(\\[\\[|{{)\\s*",v_="(?:]]|}})",y_="(?:(!)\\s*)?",w_=b_+y_+g_+v_,Qs=new RegExp(w_,"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:d_};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return C_(i,r)}else return r}return null}function C_(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(/,/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 E_(n){return n[0].toUpperCase()+n.substring(1)}const Lo=Be(n=>{const e=Vm(Om(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 _e}_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[_e.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==_e.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,_e.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,_e.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,_e.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,_e.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 t_(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&&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[_e.NOTIFY]&&this[_e.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[_e.READ_ONLY]||!this[_e.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;Km(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),En(this,this[_e.REFLECT],o,s,a),En(this,this[_e.OBSERVE],o,s,a),l&&Gm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[_e.PROPAGATE]&&En(this,this[_e.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[_e.READ_ONLY]||!this[_e.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,_e.READ_ONLY),o&&(this["_set"+E_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,_e.OBSERVE,{fn:Xs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,_e.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,_e.OBSERVE,ao,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,_e.NOTIFY,{fn:qm,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,_e.REFLECT,{fn:Zm,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,_e.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:_,literal:b}=i[u];if(!b)if(f){const w=Ln(c,o),v=ta(a,s,w?o:c);_={path:w?o:c,value:v,base:w?Ve(a,c):v}}else _=h?ta(a,s,c):a[c];if(io&&!this._overrideLegacyUndefined&&_===void 0&&i.length>1)return Fn;l[u]=_}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,a_(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=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";Wm.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(pm&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Us||(s.parentInfo.noted=!0));else{let f="{";for(let _ in h){let b=[{mode:f,source:_,dependencies:[_],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="",_=-1;u=="{"&&(_=c.indexOf("::"))>0&&(f=c.substring(_+2),c=c.substring(0,_),h=!0);let b=Ti(c),w=[];if(b){let{args:v,methodName:g}=b;for(let y=0;y<v.length;y++){let S=v[y];S.literal||w.push(S)}let A=o.dynamicFns;(A&&A[g]||b.static)&&(w.push(g),b.dynamicFn=!0)}else w.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:b,dependencies:w,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=[];/**
|
|
2051
|
+
*/let Hn=0;const Rn=[],be={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Xu="__computeInfo",Gm=/[A-Z]/;function Si(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?Ht(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||Fo(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 Ym(n,e,t,r,i,o,s,a){let l=!1,u=s?Ht(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||Fo(r,f.trigger))&&(f.info&&(f.info.lastRun=t),f.fn(n,r,i,o,f.info,s,a),l=!0);return l}function Fo(n,e){if(e){let t=e.name;return t==n||!!(e.structured&&Uu(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 qm(n,e,t,r,i){let o=n[be.NOTIFY],s,a=Hn++;for(let u in e)e[u]&&(o&&Ym(n,o,a,u,t,r,i)||i&&Xm(n,u,t))&&(s=!0);let l;s&&(l=n.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Xm(n,e,t){let r=Ht(e);if(r!==e){let i=ei(r)+"-changed";return Zu(n,i,t[e],e),!0}return!1}function Zu(n,e,t,r){let i={value:t,queueProperty:!0};r&&(i.path=r),Ne(n).dispatchEvent(new CustomEvent(e,{detail:i}))}function Zm(n,e,t,r,i,o){let a=(o?Ht(e):e)!=e?e:null,l=a?Ve(n,a):n.__data[e];a&&l===void 0&&(l=t[e]),Zu(n,i.eventName,l,a)}function Km(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[be.READ_ONLY]||!e[be.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!a)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Jm(n,e,t,r,i){let o=n.__data[e];Mr&&(o=Mr(o,i.attrName,"attribute",n)),n._propertyToAttribute(e,i.attrName,o)}function Qm(n,e,t,r){let i=n[be.COMPUTE];if(i)if(mm){Hn++;const o=t_(n),s=[];for(let l in e)ea(l,i,s,o,r);let a;for(;a=s.shift();)Ku(n,"",e,t,a)&&ea(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 e_=(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)},ea=(n,e,t,r,i)=>{const o=i?Ht(n):n,s=e[o];if(s)for(let a=0;a<s.length;a++){const l=s[a];l.info.lastRun!==Hn&&(!i||Fo(n,l.trigger))&&(l.info.lastRun=Hn,e_(l.info,t,r))}};function t_(n){let e=n.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=n[be.COMPUTE];let{counts:r,ready:i,total:o}=n_(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 n_(n){const e=n[Xu],t={},r=n[be.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 Ku(n,e,t,r,i){let o=ho(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 r_(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 ki(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),l_(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||ei(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,i_(n,e,a,d,l)}}function i_(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:o_,info:s,trigger:l})}}}function o_(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&&s_(n,a,l,u,d)}}function s_(n,e,t,r,i){if(i=a_(e,i,t,r),Mr&&(i=Mr(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[be.READ_ONLY]||!e[be.READ_ONLY][o])&&e._setPendingProperty(o,i)&&n._enqueueClient(e):n._setUnmanagedPropertyToNode(e,o,i)}}function a_(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 l_(n){return!!n.target&&n.kind!="attribute"&&n.kind!="text"&&!n.isCompound&&n.parts[0].mode==="{"}function u_(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];d_(s,u),c_(s,n,u)}s.__dataHost=n}}function d_(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 c_(n,e,t){if(t.listenerEvent){let r=t.parts[0];n.addEventListener(t.listenerEvent,function(i){Km(i,e,t.target,r.source,r.negate)})}}function ta(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 ho(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 h_=[],Ju="(?:[a-zA-Z_$][\\w.:$\\-*]*)",f_="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",p_="(?:'(?:[^'\\\\]|\\\\.)*')",m_='(?:"(?:[^"\\\\]|\\\\.)*")',__="(?:"+p_+"|"+m_+")",na="(?:("+Ju+"|"+f_+"|"+__+")\\s*)",g_="(?:"+na+"(?:,\\s*"+na+")*)",b_="(?:\\(\\s*(?:"+g_+"?)\\)\\s*)",v_="("+Ju+"\\s*"+b_+"?)",y_="(\\[\\[|{{)\\s*",w_="(?:]]|}})",C_="(?:(!)\\s*)?",E_=y_+C_+v_+w_,ra=new RegExp(E_,"g");function ia(n){let e="";for(let t=0;t<n.length;t++){let r=n[t].literal;e+=r||""}return e}function Di(n){let e=n.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let r={methodName:e[1],static:!0,args:h_};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return x_(i,r)}else return r}return null}function x_(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(/,/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=Ht(e),t.structured=uo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function oa(n,e,t){let r=Ve(n,t);return r===void 0&&(r=e[t]),r}function ed(n,e,t,r){const i={indexSplices:r};lo&&!n._overrideLegacyUndefined&&(e.splices=i),n.notifyPath(t+".splices",i),n.notifyPath(t+".length",e.length),lo&&!n._overrideLegacyUndefined&&(i.indexSplices=[])}function gn(n,e,t,r,i,o){ed(n,e,t,[{index:r,addedCount:i,removed:o,object:e,type:"splice"}])}function T_(n){return n[0].toUpperCase()+n.substring(1)}const Uo=Oe(n=>{const e=jm(Nm(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 be}_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[be.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==be.READ_ONLY);let a=Si(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(s)}_removePropertyEffect(i,o,s){let a=Si(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,be.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,be.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,be.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,be.COMPUTE)}_setPendingPropertyOrPath(i,o,s,a){if(a||Ht(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=Ve(this,i);if(i=Zs(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,s))return r_(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&&uo(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[be.NOTIFY]&&this[be.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[be.READ_ONLY]||!this[be.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;Qm(this,o,s,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,s,a),this._flushClients(),Cn(this,this[be.REFLECT],o,s,a),Cn(this,this[be.OBSERVE],o,s,a),l&&qm(this,l,o,s,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,s){this[be.PROPAGATE]&&Cn(this,this[be.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=Ve(this,i,s);ed(this,a,s.path,o)}get(i,o){return Ve(o||this,i)}set(i,o,s){s?Zs(s,i,o):(!this[be.READ_ONLY]||!this[be.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&&gn(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&&gn(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)&&gn(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&&gn(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&&gn(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=wn(i):s=i;this._setPendingPropertyOrPath(s,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,be.READ_ONLY),o&&(this["_set"+T_(i)]=function(s){this._setProperty(i,s)})}_createPropertyObserver(i,o,s){let a={property:i,method:o,dynamicFn:!!s};this._addPropertyEffect(i,be.OBSERVE,{fn:Qs,info:a,trigger:{name:i}}),s&&this._addPropertyEffect(o,be.OBSERVE,{fn:Qs,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let s=Di(i);if(!s)throw new Error("Malformed observer expression '"+i+"'");ta(this,s,be.OBSERVE,ho,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,be.NOTIFY,{fn:Zm,info:{eventName:ei(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,be.REFLECT,{fn:Jm,info:{attrName:o}})}_createComputedProperty(i,o,s){let a=Di(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=ta(this,a,be.COMPUTE,Ku,i,s);Si(this,Xu)[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:_,literal:b}=i[u];if(!b)if(f){const C=Nn(c,o),v=oa(a,s,C?o:c);_={path:C?o:c,value:v,base:C?Ve(a,c):v}}else _=h?oa(a,s,c):a[c];if(lo&&!this._overrideLegacyUndefined&&_===void 0&&i.length>1)return Rn;l[u]=_}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,u_(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=ia(l)||" ",ki(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";Gm.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let h=ia(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=Vu(a)),ki(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";Ws&&(d||c)&&(l.removeChild(i),s=s.parentInfo,s.templateInfo=u,s.noted=!0,a=!1);let h=u.hostProps;if(_m&&d)h&&(o.hostProps=Object.assign(o.hostProps||{},h),Ws||(s.parentInfo.noted=!0));else{let f="{";for(let _ in h){let b=[{mode:f,source:_,dependencies:[_],hostProp:!0}];ki(this,o,s,"property","_host_"+_,b)}}return a}static _parseBindings(i,o){let s=[],a=0,l;for(;(l=ra.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="",_=-1;u=="{"&&(_=c.indexOf("::"))>0&&(f=c.substring(_+2),c=c.substring(0,_),h=!0);let b=Di(c),C=[];if(b){let{args:v,methodName:g}=b;for(let y=0;y<v.length;y++){let S=v[y];S.literal||C.push(S)}let T=o.dynamicFns;(T&&T[g]||b.static)&&(C.push(g),b.dynamicFn=!0)}else C.push(c);s.push({source:c,mode:u,negate:d,customEvent:h,signature:b,dependencies:C,event:f}),a=ra.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=ho(i,s,a,l,o.signature):s!=o.source?d=Ve(i,o.source):u&&uo(s)?d=Ve(i,s):d=i.__data[s],o.negate&&(d=!d),d}}return t}),bn=[];/**
|
|
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
|
|
2067
|
+
*/function A_(n){const e={};for(let t in n){const r=n[t];e[t]=typeof r=="function"?{type:r}:r}return e}const P_=Oe(n=>{const e=Gu(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=A_(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
|
|
2077
|
+
*/const S_="3.5.2",sa=window.ShadyCSS&&window.ShadyCSS.cssBuild,k_=Oe(n=>{const e=P_(Uo(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(!sa){const h=u.content.querySelectorAll("style"),f=Ru(u),_=xm(d),b=u.content.firstElementChild;for(let v=0;v<_.length;v++){let g=_[v];g.textContent=l._processStyleText(g.textContent,c),u.content.insertBefore(g,b)}let C=0;for(let v=0;v<f.length;v++){let g=f[v],T=h[C];T!==g?(g=g.cloneNode(!0),T.parentNode.insertBefore(g,T)):C++,g.textContent=l._processStyleText(g.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),gm&&sa&&cm){const h=u.content.querySelectorAll("style");if(h){let f="";Array.from(h).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function s(l){let u=null;if(l&&(!Br||fm)&&(u=In.import(l,"template"),Br&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends e{static get polymerElementVersion(){return S_}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):Iu||(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=Ho(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=hm,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 Lo(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=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])),pm&&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 Nu&&!(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
|
|
2085
|
+
*/const aa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:n=>n});class td{constructor(e,t){rd(e,t);const r=t.reduce((i,o,s)=>i+nd(o)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function nd(n){if(n instanceof td)return n.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${n}`)}function D_(n){if(n instanceof HTMLTemplateElement)return n.innerHTML;if(n instanceof td)return nd(n);throw new Error(`non-template value passed to Polymer's html function: ${n}`)}const Rt=function(e,...t){rd(e,t);const r=document.createElement("template");let i=t.reduce((o,s,a)=>o+D_(s)+e[a+1],e[0]);return aa&&(i=aa.createHTML(i)),r.innerHTML=i,r},rd=(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 wt=
|
|
2093
|
+
*/const wt=k_(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
|
|
2097
|
+
*/const ot=[];function fo(n,e,t=n.getAttribute("dir")){e?n.setAttribute("dir",e):t!=null&&n.removeAttribute("dir")}function po(){return document.documentElement.getAttribute("dir")}function M_(){const n=po();ot.forEach(e=>{fo(e,n)})}const B_=new MutationObserver(M_);B_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ti=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(),fo(this,po(),null))}attributeChangedCallback(t,r,i){if(super.attributeChangedCallback(t,r,i),t!=="dir")return;const o=po(),s=i===o&&ot.indexOf(this)===-1,a=!i&&r&&ot.indexOf(this)===-1;s||a?(this.__subscribe(),fo(this,o,i)):i!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ot.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(){ot.includes(this)||ot.push(this)}__unsubscribe(){ot.includes(this)&&ot.splice(ot.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
|
|
2101
|
+
*/const O_=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
|
|
2105
|
+
*/const I_=_e`
|
|
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",
|
|
2174
|
+
*/De("vaadin-input-container",I_,{moduleId:"vaadin-input-container-styles"});class N_ extends O_(Lt(ti(wt))){static get is(){return"vaadin-input-container"}static get template(){return Rt`
|
|
2175
2175
|
<slot name="prefix"></slot>
|
|
2176
2176
|
<slot></slot>
|
|
2177
2177
|
<slot name="suffix"></slot>
|
|
2178
|
-
`}}rt(
|
|
2178
|
+
`}}rt(N_);/**
|
|
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
|
|
2182
|
+
*/const L_=_e`
|
|
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
|
|
2245
|
+
*/let zo=!1;window.addEventListener("keydown",()=>{zo=!0},{capture:!0});window.addEventListener("mousedown",()=>{zo=!1},{capture:!0});function mo(){let n=document.activeElement||document.body;for(;n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function Vo(){return zo}function H_(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 R_(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 F_(n,e){const t=[];for(;n.length>0&&e.length>0;)R_(n[0],e[0])?t.push(e.shift()):t.push(n.shift());return t.concat(n,e)}function _o(n){const e=n.length;if(e<2)return n;const t=Math.ceil(e/2),r=_o(n.slice(0,t)),i=_o(n.slice(t));return F_(r,i)}function id(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 U_(n){return n.getRootNode().activeElement===n}function z_(n){if(!id(n))return-1;const e=n.getAttribute("tabindex")||0;return Number(e)}function od(n,e){if(n.nodeType!==Node.ELEMENT_NODE||H_(n))return!1;const t=n,r=z_(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=od(s,e)||i}),i}function V_(n){const e=[];return od(n,e)?_o(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,63 +2250,63 @@ 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
|
|
2253
|
+
*/let go=!1,$_=[],sd=[];function W_(){go=!0,requestAnimationFrame(function(){go=!1,j_($_),setTimeout(function(){G_(sd)})})}function j_(n){for(;n.length;)ad(n.shift())}function G_(n){for(let e=0,t=n.length;e<t;e++)ad(n.shift())}function ad(n){const e=n[0],t=n[1],r=n[2];try{t.apply(e,r)}catch(i){setTimeout(()=>{throw i})}}function ld(n,e,t){go||W_(),sd.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
|
|
2257
|
+
*/const ni=n=>n.test(navigator.userAgent),bo=n=>n.test(navigator.platform),Y_=n=>n.test(navigator.vendor);ni(/Android/u);ni(/Chrome/u)&&Y_(/Google Inc/u);ni(/Firefox/u);const q_=bo(/^iPad/u)||bo(/^Mac/u)&&navigator.maxTouchPoints>1,X_=bo(/^iPhone/u),ud=X_||q_;ni(/^((?!chrome|android).)*safari/iu);const Z_=(()=>{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,
|
|
2261
|
+
*/let Vt=new WeakMap,dr=new WeakMap,cr={},Mi=0;const la=n=>n&&n.nodeType===Node.ELEMENT_NODE,Bi=(...n)=>{console.error(`Error: ${n.join(" ")}. Skip setting aria-hidden.`)},K_=(n,e)=>la(n)?e.map(t=>{if(!la(t))return Bi(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 Bi(t,"is not contained inside",n),null}).filter(t=>!!t):(Bi(n,"is not a valid element"),[]),J_=(n,e,t,r)=>{const i=K_(e,Array.isArray(n)?n:[n]);cr[t]||(cr[t]=new WeakMap);const o=cr[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(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))d(_);else{const b=_.getAttribute(r),C=b!==null&&b!=="false",v=(Vt.get(_)||0)+1,g=(o.get(_)||0)+1;Vt.set(_,v),o.set(_,g),s.push(_),v===1&&C&&dr.set(_,!0),g===1&&_.setAttribute(t,"true"),C||_.setAttribute(r,"true")}})};return d(e),a.clear(),Mi+=1,()=>{s.forEach(c=>{const h=Vt.get(c)-1,f=o.get(c)-1;Vt.set(c,h),o.set(c,f),h||(dr.has(c)?dr.delete(c):c.removeAttribute(r)),f||c.removeAttribute(t)}),Mi-=1,Mi||(Vt=new WeakMap,Vt=new WeakMap,dr=new WeakMap,cr={})}},dd=(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]"))),J_(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
|
|
2265
|
+
*/class Q_{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=dd(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
|
|
2269
|
+
*/class e0{saveFocus(e){this.focusNode=e||mo()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;mo()===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
|
|
2273
|
+
*/const Oi=[];class t0{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return V_(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(U_).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.");Oi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Oi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Oi).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/
|
|
2277
|
-
*/const
|
|
2277
|
+
*/const dn=Oe(n=>typeof n.prototype.addController=="function"?n:class extends n{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(t=>{t.hostConnected&&t.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(t=>{t.hostDisconnected&&t.hostDisconnected()})}addController(t){this.__controllers.add(t),this.$!==void 0&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}});/**
|
|
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
|
|
2281
|
+
*/const n0=n=>class extends dn(n){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Q_(this),this.__focusTrapController=new t0(this),this.__focusRestorationController=new e0}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=!Vo();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=mo();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
|
|
2285
|
+
*/const cd=()=>Array.from(document.body.children).filter(n=>n instanceof HTMLElement&&n._hasOverlayStackMixin&&!n.hasAttribute("closing")).sort((n,e)=>n.__zIndex-e.__zIndex||0),vo=()=>cd().filter(n=>n.$.overlay),r0=n=>n===vo().pop(),i0=n=>class extends n{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return r0(this)}bringToFront(){let t="";const r=cd().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"),vo().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=vo();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
|
|
2289
|
+
*/const o0=n=>class extends n0(i0(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),ud&&(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(),ld(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
|
|
2293
|
+
*/function s0(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 $o(n){return n?new Set(n.split(" ")):new Set}function ri(n){return n?[...n].join(" "):""}function hd(n,e,t){const r=$o(n.getAttribute(e));r.add(t),n.setAttribute(e,ri(r))}function a0(n,e,t){const r=$o(n.getAttribute(e));if(r.delete(t),r.size===0){n.removeAttribute(e);return}n.setAttribute(e,ri(r))}function l0(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
|
|
2297
|
+
*/function u0(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)),_=Math.floor(r.clientHeight-(u+c)),b=Math.floor(l),v={rootMargin:`${-h}px ${-f}px ${-_}px ${-b}px`,threshold:Math.max(0,Math.min(1,a))||1};let g=!0;function T(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(T,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
|
|
2301
|
+
*/const Ii={start:"top",end:"bottom"},Ni={start:"left",end:"right"},ua=new ResizeObserver(n=>{setTimeout(()=>{n.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),d0=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=s0(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=u0(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,ua.unobserve(r),t&&(this.__addUpdatePositionEventListeners(),r.__overlay=this,ua.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,Ii,this,r),u=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,Ni,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,Ni)}__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,Ii)}__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===Ii.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===Ni.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
|
|
2305
|
+
*/const c0=n=>class extends d0(o0(n)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!id(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
|
|
2309
|
+
*/const h0=_e`
|
|
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",[
|
|
2328
|
+
*/De("vaadin-date-picker-overlay",[L_,h0],{moduleId:"vaadin-date-picker-overlay-styles"});class f0 extends c0(ti(Lt(wt))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Rt`
|
|
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(
|
|
2335
|
+
`}}rt(f0);const p0=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,vr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function m0(){function n(){return!0}return fd(n)}function _0(){try{return g0()?!0:b0()?vr?!v0():!m0():!1}catch(n){return!1}}function g0(){return localStorage.getItem("vaadin.developmentmode.force")}function b0(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function v0(){return!!(vr&&Object.keys(vr).map(e=>vr[e]).filter(e=>e.productionMode).length>0)}function fd(n,e){if(typeof n!="function")return;const t=p0.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 da=function(n,e){if(window.Vaadin.developmentMode)return fd(n,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=_0());function y0(){/*! 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
|
|
2813
|
+
vaadin-dev-mode:end **/}const w0=function(){if(typeof da=="function")return da(y0)};/**
|
|
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
|
|
2821
|
+
*/let ca=0,pd=0;const Xt=[];let yo=!1;function C0(){yo=!1;const n=Xt.length;for(let e=0;e<n;e++){const t=Xt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Xt.splice(0,n),pd+=n}const Ir={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)}},E0={run(n){return window.requestAnimationFrame(n)},cancel(n){window.cancelAnimationFrame(n)}},x0={run(n){return window.requestIdleCallback?window.requestIdleCallback(n):window.setTimeout(n,16)},cancel(n){window.cancelIdleCallback?window.cancelIdleCallback(n):window.clearTimeout(n)}},T0={run(n){yo||(yo=!0,queueMicrotask(()=>C0())),Xt.push(n);const e=ca;return ca+=1,e},cancel(n){const e=n-pd;if(e>=0){if(!Xt[e])throw new Error(`invalid async handle: ${n}`);Xt[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
|
|
2829
|
+
*/const wo=new Set;let rn=class Co{static debounce(e,t,r){return e instanceof Co?e._cancelAsync():e=new Co,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,wo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),wo.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 A0(n){wo.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(){
|
|
2833
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){w0()};let Li;const ha=new Set,md=n=>class extends ti(n){static finalize(){super.finalize();const{is:t}=this;t&&!ha.has(t)&&(window.Vaadin.registrations.push(this),ha.add(t),window.Vaadin.developmentModeCallback&&(Li=rn.debounce(Li,x0,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),A0(Li)))}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
|
|
2837
|
+
*/class P0{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
|
|
2841
|
+
*/let S0=0;function _d(){return S0++}/**
|
|
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
|
|
2845
|
+
*/class Dt extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${_d()}`}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 P0(r,({addedNodes:i,removedNodes:o})=>{const s=this.multiple?this.nodes:[this.node],a=i.filter(l=>!l0(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
|
|
2849
|
+
*/class gd extends Dt{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
|
|
2853
|
+
*/const k0=_e`
|
|
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
|
-
`,
|
|
2913
|
+
`,D0=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
|
|
2934
|
+
*/const M0=n=>n,bd=typeof document.head.style.touchAction=="string",Eo="__polymerGestures",Hi="__polymerGesturesHandled",xo="__polymerGesturesTouchAction",fa=25,pa=5,B0=2,O0=["mousedown","mousemove","mouseup","click"],I0=[0,1,4,2],N0=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(n){return!1}}();function Wo(n){return O0.indexOf(n)>-1}let L0=!1;(function(){try{const n=Object.defineProperty({},"passive",{get(){L0=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}})();function H0(n){Wo(n)}const R0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),F0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ot(n){const e=n.type;if(!Wo(e))return!1;if(e==="mousemove"){let r=n.buttons===void 0?1:n.buttons;return n instanceof window.MouseEvent&&!N0&&(r=I0[n.which]||0),!!(r&1)}return(n.button===void 0?0:n.button)===0}function U0(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 st={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function z0(n){let e="auto";const t=yd(n);for(let r=0,i;r<t.length;r++)if(i=t[r],i[xo]){e=i[xo];break}return e}function vd(n,e,t){n.movefn=e,n.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Zt(n){document.removeEventListener("mousemove",n.movefn),document.removeEventListener("mouseup",n.upfn),n.movefn=null,n.upfn=null}const yd=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:n=>n.composedPath&&n.composedPath()||[],jo={},Mt=[];function V0(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=yd(n);return e.length>0?e[0]:n.target}function $0(n){const e=n.type,r=n.currentTarget[Eo];if(!r)return;const i=r[e];if(!i)return;if(!n[Hi]&&(n[Hi]={},e.startsWith("touch"))){const s=n.changedTouches[0];if(e==="touchstart"&&n.touches.length===1&&(st.touch.id=s.identifier),st.touch.id!==s.identifier)return;bd||(e==="touchstart"||e==="touchmove")&&W0(n)}const o=n[Hi];if(!o.skip){for(let s=0,a;s<Mt.length;s++)a=Mt[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<Mt.length;s++)a=Mt[s],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](n))}}function W0(n){const e=n.changedTouches[0],t=n.type;if(t==="touchstart")st.touch.x=e.clientX,st.touch.y=e.clientY,st.touch.scrollDecided=!1;else if(t==="touchmove"){if(st.touch.scrollDecided)return;st.touch.scrollDecided=!0;const r=z0(n);let i=!1;const o=Math.abs(st.touch.x-e.clientX),s=Math.abs(st.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():Nr("track")}}function et(n,e,t){return jo[e]?(j0(n,e,t),!0):!1}function j0(n,e,t){const r=jo[e],i=r.deps,o=r.name;let s=n[Eo];s||(n[Eo]=s={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(R0&&Wo(l)&&l!=="click")&&(u=s[l],u||(s[l]=u={_count:0}),u._count===0&&n.addEventListener(l,$0,H0(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);n.addEventListener(e,t),r.touchAction&&wd(n,r.touchAction)}function Go(n){Mt.push(n),n.emits.forEach(e=>{jo[e]=n})}function G0(n){for(let e=0,t;e<Mt.length;e++){t=Mt[e];for(let r=0,i;r<t.emits.length;r++)if(i=t.emits[r],i===n)return t}return null}function wd(n,e){bd&&n instanceof HTMLElement&&T0.run(()=>{n.style.touchAction=e}),n[xo]=e}function Yo(n,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,M0(n).dispatchEvent(r),r.defaultPrevented){const i=t.preventer||t.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Nr(n){const e=G0(n);e.info&&(e.info.prevent=!0)}Go({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Zt(this.info)},mousedown(n){if(!Ot(n))return;const e=vt(n),t=this,r=o=>{Ot(o)||(vn("up",e,o),Zt(t.info))},i=o=>{Ot(o)&&vn("up",e,o),Zt(t.info)};vd(this.info,r,i),vn("down",e,n)},touchstart(n){vn("down",vt(n),n.changedTouches[0],n)},touchend(n){vn("up",vt(n),n.changedTouches[0],n)}});function vn(n,e,t,r){e&&Yo(e,n,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(i){return Nr(i)}})}Go({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>B0&&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,Zt(this.info)},mousedown(n){if(!Ot(n))return;const e=vt(n),t=this,r=o=>{const s=o.clientX,a=o.clientY;ma(t.info,s,a)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Nr("tap"),t.info.addMove({x:s,y:a}),Ot(o)||(t.info.state="end",Zt(t.info)),e&&Ri(t.info,e,o),t.info.started=!0)},i=o=>{t.info.started&&r(o),Zt(t.info)};vd(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;ma(this.info,r,i)&&(this.info.state==="start"&&Nr("tap"),this.info.addMove({x:r,y:i}),Ri(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}),Ri(this.info,e,t))}});function ma(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>=pa||i>=pa}function Ri(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),Yo(e,"track",{state:n.state,x:t.clientX,y:t.clientY,dx:o,dy:s,ddx:a,ddy:l,sourceEvent:t,hover(){return V0(t.clientX,t.clientY)}})}Go({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){Ot(n)&&(this.info.x=n.clientX,this.info.y=n.clientY)},click(n){Ot(n)&&_a(this.info,n)},touchstart(n){const e=n.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(n){_a(this.info,n.changedTouches[0],n)}});function _a(n,e,t){const r=Math.abs(e.clientX-n.x),i=Math.abs(e.clientY-n.y),o=vt(t||e);!o||F0[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(i)||r<=fa&&i<=fa||U0(e))&&(n.prevent||Yo(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
|
|
2938
|
+
*/const Cd=Oe(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
|
|
2942
|
+
*/const ii=Oe(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
|
|
2946
|
+
*/const Y0=n=>class extends Cd(ii(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
|
|
2950
|
+
*/const qo=Oe(n=>class extends n{get _keyboardActive(){return Vo()}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
|
|
2954
|
+
*/const Ed=n=>class extends Cd(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
|
|
2958
|
+
*/const q0=n=>class extends Y0(Ed(qo(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",
|
|
2962
|
+
*/De("vaadin-button",k0,{moduleId:"vaadin-button-styles"});class X0 extends q0(md(Lt(dn(wt)))){static get is(){return"vaadin-button"}static get template(){return D0(Rt)}ready(){super.ready(),this._tooltipController=new gd(this),this.addController(this._tooltipController)}}rt(X0);/**
|
|
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
|
|
2966
|
+
*/function Z0(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 To(n){const e=new Date(n);return e.setHours(0,0,0,0),e}function ut(n,e,t=To){return n instanceof Date&&e instanceof Date&&t(n).getTime()===t(e).getTime()}function Xo(n){return{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()}}function on(n,e,t,r){let i=!1;if(typeof r=="function"&&n){const o=Xo(n);i=r(o)}return(!e||n>=e)&&(!t||n<=t)&&!i}function xd(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 Td(n){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(n)+e.getMonth()),t}function K0(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 J0(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 Q0(n){return n instanceof Date?J0({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
|
|
2974
|
+
*/class Lr{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 Lr?e._cancelAsync():e=new Lr,e.setConfig(t,r),e}}let Fn=new Set;const eg=function(n){Fn.add(n)},tg=function(){const n=!!Fn.size;return Fn.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
|
|
2982
|
+
*/const Zo=function(){let n,e;do n=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=tg();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
|
|
2986
|
+
*/const Ad=document.createElement("template");Ad.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
|
|
3036
|
+
`;class Pd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Ad.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()),Zo()}_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=rn.debounce(this._debouncerScrollFinish,Ir.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=rn.debounce(this._debouncerUpdateClones,Ir.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-${_d()}`,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
|
|
3040
|
+
*/const Sd=document.createElement("template");Sd.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
|
|
3052
|
+
`;class ng extends Pd{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Sd.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Td(t)}}rt(ng);/**
|
|
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
|
|
3056
|
+
*/const kd=document.createElement("template");kd.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
|
|
3090
|
+
`;class rg extends Pd{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(kd.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(rg);/**
|
|
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
|
|
3094
|
+
*/const ig=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
|
|
3098
|
+
*/class og extends Lt(ig(wt)){static get is(){return"vaadin-date-picker-year"}static get template(){return Rt`
|
|
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(
|
|
3107
|
+
`}}rt(og);/**
|
|
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
|
|
3115
|
+
*/function Ko(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 Jo=Oe(n=>{class e extends n{_shouldPropertyChange(r,i,o){return Ko(this,r,i,o,!0)}}return e}),sg=Oe(n=>{class e extends n{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,i,o){return Ko(this,r,i,o,this.mutableData)}}return e});Jo._mutablePropertyChange=Ko;/**
|
|
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
|
|
3123
|
+
*/let Ao=null;function Po(){return Ao}Po.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Po,writable:!0}});const Dd=Uo(Po),ag=Jo(Dd);function lg(n,e){Ao=n,Object.setPrototypeOf(n,e.prototype),new e,Ao=null}const ug=Uo(class{});function dg(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 ug{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){dg(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 cg=Jo(Ct);function ga(n){let e=n.__dataHost;return e&&e._methodHost||e}function hg(n,e,t){let r=t.mutableData?cg:Ct;So.mixin&&(r=So.mixin(r));let i=class extends r{};return i.prototype.__templatizeOptions=t,i.prototype._bindTemplate(n),mg(i,n,e,t),i}function fg(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?ag:Dd;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:pg(l,i)}),s.prototype._createNotifyingProperty("_host_"+l);Nu&&r&&bg(e,t,r)}if(n.__dataProto&&Object.assign(n.__data,n.__dataProto),o)lg(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 pg(n,e){return function(r,i,o){e.call(r.__templatizeOwner,i.substring(6),o[i])}}function mg(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:_g(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:gg()})}function _g(n,e){return function(r,i,o){e.call(r.__templatizeOwner,r,i,o[i])}}function gg(){return function(e,t,r){e.__dataHost._setPendingPropertyOrPath("_host_"+t,r[t],!0,!0)}}function So(n,e,t){if(Br&&!ga(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=hg(n,i,t),i.templatizeInstanceClass=o);const s=ga(n);fg(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 bg(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 vg(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
|
|
3131
|
+
*/let ba=!1;function yg(){if(Iu&&!Ou){if(!ba){ba=!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
|
|
3139
|
+
*/const wg=sg(wt);class va extends wg{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:!js,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(),yg()||(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=So(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(Tm(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=Lr.debounce(this.__renderDebouncer,t>0?Mm.after(t):ju,e.bind(this)),eg(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Zo()}__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),(!js||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 vg(this.template,e)}}customElements.define(va.is,va);/**
|
|
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
|
|
3143
|
+
*/const Cg=n=>class extends qo(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=>ut(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:!on(o,r,i)&&!on(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=>ut(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 ut(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 Z0(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
|
|
3147
|
+
*/const Eg=_e`
|
|
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",
|
|
3207
|
+
*/De("vaadin-month-calendar",Eg,{moduleId:"vaadin-month-calendar-styles"});class xg extends Cg(Lt(wt)){static get template(){return Rt`
|
|
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>
|
|
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>To(new Date),u=e<To(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 ut(e,t)}__isDaySelected(e,t){return ut(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,i){return!on(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(xg);/**
|
|
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
|
|
3253
|
+
*/class Md{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 Eg=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&<(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}};/**
|
|
3257
|
+
*/const Tg=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(){wd(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 Md(this._desktopMediaQuery,t=>{this._desktopMode=t})),this.addController(new Dt(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 Dt(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 Dt(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 Dt(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=rn.debounce(this._debouncer,Ir.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(t,r,i){return t&&r&&typeof r.formatDate=="function"?r.formatDate(Xo(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 Td(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){ut(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&&ut(r.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,r.focus())}}focusDate(t,r){return Fe(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 Fe(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(r=>{ld(this,()=>{Zo(),r()})})),t&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(t){this.focusDate(xd(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 on(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
|
|
3261
|
+
*/const Ag=_e`
|
|
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",
|
|
3325
|
+
*/De("vaadin-date-picker-overlay-content",Ag,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Pg extends Tg(dn(Lt(ti(wt)))){static get template(){return Rt`
|
|
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(
|
|
3345
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}rt(Pg);/**
|
|
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
|
|
3349
|
+
*/const Bd=Oe(n=>class extends qo(Ed(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
|
|
3353
|
+
*/const Fi=new WeakMap;function Sg(n){return Fi.has(n)||Fi.set(n,new Set),Fi.get(n)}function kg(n,e){const t=document.createElement("style");t.textContent=n,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Dg=Oe(n=>class extends n{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),r=Sg(t);this.slotStyles.forEach(i=>{r.has(i)||(kg(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
|
|
3357
|
+
*/const Od=Oe(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
|
|
3361
|
+
*/const Mg=n=>class extends Od(ii(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(),Z_||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
|
|
3365
|
+
*/const Ui=new Map;function Qo(n){return Ui.has(n)||Ui.set(n,new WeakMap),Ui.get(n)}function Id(n,e){n&&n.removeAttribute(e)}function Nd(n,e){if(!n||!e)return;const t=Qo(e);if(t.has(n))return;const r=$o(n.getAttribute(e));t.set(n,new Set(r))}function Bg(n,e){if(!n||!e)return;const t=Qo(e),r=t.get(n);!r||r.size===0?n.removeAttribute(e):hd(n,e,ri(r)),t.delete(n)}function zi(n,e,t={newId:null,oldId:null,fromUser:!1}){if(!n||!e)return;const{newId:r,oldId:i,fromUser:o}=t,s=Qo(e),a=s.get(n);if(!o&&a){i&&a.delete(i),r&&a.add(r);return}o&&(a?r||s.delete(n):Nd(n,e),Id(n,e)),a0(n,e,i);const l=r||ri(a);l&&hd(n,e,l)}function Og(n,e){Nd(n,e),Id(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
|
|
3369
|
+
*/class Ig{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?(Og(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Bg(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){zi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){zi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){zi(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
|
|
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 hr;function Ng(n,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(Xe.removeAttribute("aria-live"),Xe.removeAttribute("role"),hr=rn.debounce(hr,E0,()=>{Xe.setAttribute("role","alert")})):(hr&&hr.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
|
|
3377
|
+
*/class es extends Dt{constructor(e,t,r,i={}){super(e,t,r,ir(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
|
|
3381
|
+
*/class Lg extends es{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&&Ng(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
|
|
3385
|
+
*/class Hg extends es{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
|
|
3389
|
+
*/class Rg extends es{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
|
|
3393
|
+
*/const Fg=Oe(n=>class extends dn(n){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Rg(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
|
|
3397
|
+
*/const Ld=Oe(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
|
|
3401
|
+
*/const Ug=n=>class extends Ld(Fg(dn(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 Ig(this),this._helperController=new Hg(this),this._errorController=new Lg(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
|
|
3405
|
+
*/const zg=Oe(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
|
|
3409
|
+
*/const Hd=Oe(n=>class extends zg(Ld(Od(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
|
|
3413
|
+
*/const Vg=n=>class extends Dg(Bd(Hd(Ug(Mg(ii(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=
|
|
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=rn.debounce(this._preventInputDebouncer,Ir.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
|
|
3422
|
+
*/class $g extends Dt{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
|
|
3426
|
+
*/class Wg{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
|
|
3430
|
+
*/const jg=_e`
|
|
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
|
|
3447
|
+
*/const Gg=_e`
|
|
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
|
|
3485
|
+
*/const Yg=_e`
|
|
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
|
|
3497
|
+
*/const qg=[Gg,Yg,jg];/**
|
|
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
|
|
3501
|
+
*/const Xg=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
|
|
3505
|
+
*/class Zg{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 Xg=n=>class extends Yg(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=X0(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 qg(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 K0(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)}};/**
|
|
3509
|
+
*/const Kg=n=>class extends Xg(dn(Bd(Hd(ii(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=K0(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:ud},_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&&!Vo()&&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 Md(this._fullscreenMediaQuery,r=>{this._fullscreen=r})),this.addController(new Zg(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(Xo(t))}checkValidity(){const t=this._inputElementValue,r=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||on(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 Q0(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?ut(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=dd(s)}_getInitialPosition(){const t=yn(this.initialPosition),r=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||on(r,this._minDate,this._maxDate,this.isDateDisabled)?r:this._minDate||this._maxDate?xd(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,ut(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return yn(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
|
|
3513
|
+
*/const Jg=_e`
|
|
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",[
|
|
3530
|
+
*/De("vaadin-date-picker",[qg,Jg],{moduleId:"vaadin-date-picker-styles"});class Qg extends Kg(Vg(Lt(md(wt)))){static get is(){return"vaadin-date-picker"}static get template(){return Rt`
|
|
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 zg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new $g(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(Kg);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"},Jg=6,Qg=3,cr={TYPES:"standard,freeBet,freeRound,cashBack,stakeBack,oddsBoost,wagering",STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function eb(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 tb(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&&fe(t,i[0])},d(i){i&&O(e)}}}function nb(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||tb(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,_){N(f,e,_),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,[_]){(!u||_&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||_&2)&&le(i,"Completed",f[1]===oe.COMPLETED),(!u||_&2)&&le(s,"Completed",f[1]===oe.COMPLETED),c?c.p&&(!u||_&512)&&jn(c,d,f,f[9],u?Wn(d,f[9],_,null):Gn(f[9]),null):h&&h.p&&(!u||_&1)&&h.p(f,u?_:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){ut(h,f),u=!1},d(f){f&&O(e),n[11](null),h&&h.d(f),n[12](null)}}}let ga=64.5;function rb(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,_;Hr(()=>()=>{});function b(v){st[v?"unshift":"push"](()=>{c=v,t(3,c)})}function w(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`,_),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,b,w]}class ib extends Ur{constructor(e){super(),Rr(this,e,rb,nb,$n,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},eb)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",Fr(ib,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const ba=n=>ob[n],ob={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 sb(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ab(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 lb(n){return typeof n=="string"&&n.trim().length>0}function ub(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function db(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 cb(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[82]=e[t],r[84]=t,r}function ya(n,e,t){const r=n.slice();return r[85]=e[t],r}function wa(n,e,t){const r=n.slice();return r[76]=e[t],r}function Ca(n,e,t){const r=n.slice();return r[79]=e[t],r}function Ea(n,e,t){const r=n.slice();return r[88]=e[t],r[90]=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,w,v,g=s&&Aa(),A=l&&Ta(),y=[L("TitleIcon")],S={};for(let C=0;C<y.length;C+=1)S=k(S,y[C]);let x=[L("BonusCardRowTitle")],F={};for(let C=0;C<x.length;C+=1)F=k(F,x[C]);function j(C,B){if(C[0]===oe.ACTIVE)return fb;if(C[0]===oe.COMPLETED)return hb}let G=j(n),R=G&&G(n),I=[L("BonusCardHeader")],V={};for(let C=0;C<I.length;C+=1)V=k(V,I[C]);let Z=pb(n),J=n[10]&&za(n);function H(C,B){return C[14]?Ib:Ob}let M=H(n),ie=M(n),ge=[L("BonusCardFooter")],ue={};for(let C=0;C<ge.length;C+=1)ue=k(ue,ge[C]);let q=[L("BonusCardInfo")],ae={};for(let C=0;C<q.length;C+=1)ae=k(ae,q[C]);let K=n[9]&&Za(n),se=[L("BonusCard")],Q={};for(let C=0;C<se.length;C+=1)Q=k(Q,se[C]);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(),Z&&Z.c(),_=z(),b=E("div"),J&&J.c(),w=z(),ie.c(),v=z(),K&&K.c(),T(o,S),T(i,F),T(r,V),T(b,ue),le(b,"Active",n[11]||n[12]),T(t,ae),T(e,Q)},m(C,B){N(C,e,B),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),Z&&Z.m(t,null),p(t,_),p(t,b),J&&J.m(b,null),p(b,w),ie.m(b,null),p(e,v),K&&K.m(e,null),n[58](e)},p(C,B){var pe;B[0]&32&&(s=C[33](C[5]).indexOf("Casino")>-1),s?g||(g=Aa(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),B[0]&32&&(l=C[33](C[5]).indexOf("Sports")>-1),l?A||(A=Ta(),A.c(),A.m(o,null)):A&&(A.d(1),A=null),B[0]&32&&d!==(d=(C[5].name||((pe=C[5].presentation)==null?void 0:pe.name.content))+"")&&re(c,d,F.contenteditable),G===(G=j(C))&&R?R.p(C,B):(R&&R.d(1),R=G&&G(C),R&&(R.c(),R.m(r,null))),Z.p(C,B),C[10]?J?J.p(C,B):(J=za(C),J.c(),J.m(b,w)):J&&(J.d(1),J=null),M===(M=H(C))&&ie?ie.p(C,B):(ie.d(1),ie=M(C),ie&&(ie.c(),ie.m(b,null))),B[0]&6144&&le(b,"Active",C[11]||C[12]),C[9]?K?K.p(C,B):(K=Za(C),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(C){C&&O(e),g&&g.d(),A&&A.d(),R&&R.d(),Z&&Z.d(),J&&J.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,_=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],b={};for(let w=0;w<_.length;w+=1)b=k(b,_[w]);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,b)},m(w,v){N(w,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(w){w&&O(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&&O(e)}}}function hb(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&&O(e)}}}function fb(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&&O(e)}}}function pb(n){let e,t,r;function i(h,f){return h[0]===oe.CLAIMABLE?_b:mb}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&&O(e),s.d(),u&&u.d()}}}function mb(n){let e,t,r=n[25]("bonusCard.bonusStatus")+"",i,o,s,a,l,u,d,c=n[25]("bonusCard.bonusType")+"",h,f,_,b,w=n[25](`bonusType.${n[5].type}`)+"",v,g,A,y,S,x,F=[L("BonusCardLabel")],j={};for(let C=0;C<F.length;C+=1)j=k(j,F[C]);function G(C,B){return C[0]===oe.ACTIVE?bb:gb}let R=G(n),I=R(n),V=[L("BonusCardRowText")],Z={};for(let C=0;C<V.length;C+=1)Z=k(Z,V[C]);let J=[L("BonusCardRow")],H={};for(let C=0;C<J.length;C+=1)H=k(H,J[C]);let M=[L("BonusCardLabel")],ie={};for(let C=0;C<M.length;C+=1)ie=k(ie,M[C]);let ge=[L("BonusCardRowText","Type")],ue={};for(let C=0;C<ge.length;C+=1)ue=k(ue,ge[C]);let q=[L("BonusCardRow")],ae={};for(let C=0;C<q.length;C+=1)ae=k(ae,q[C]);let K=n[5].type==="standard"&&Pa(n),se=n[5].type==="freeBet"&&Sa(n),Q=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"),I.c(),l=z(),u=E("p"),d=E("span"),h=D(c),f=D(":"),_=z(),b=E("span"),v=D(w),g=z(),K&&K.c(),A=z(),se&&se.c(),y=z(),Q&&Q.c(),S=z(),ee&&ee.c(),x=nt(),T(t,j),T(a,Z),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(b,ue),T(u,ae)},m(C,B){N(C,e,B),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),I.m(a,null),N(C,l,B),N(C,u,B),p(u,d),p(d,h),p(d,f),p(u,_),p(u,b),p(b,v),N(C,g,B),K&&K.m(C,B),N(C,A,B),se&&se.m(C,B),N(C,y,B),Q&&Q.m(C,B),N(C,S,B),ee&&ee.m(C,B),N(C,x,B)},p(C,B){B[0]&33554432&&r!==(r=C[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),R===(R=G(C))&&I?I.p(C,B):(I.d(1),I=R(C),I&&(I.c(),I.m(a,null))),B[0]&1&&le(a,"StatusActive",C[0]===oe.ACTIVE),B[0]&1&&le(a,"StatusCompleted",C[0]===oe.COMPLETED),B[0]&1&&le(a,"StatusClaimable",C[0]===oe.CLAIMABLE),B[0]&33554432&&c!==(c=C[25]("bonusCard.bonusType")+"")&&re(h,c,ie.contenteditable),B[0]&33554464&&w!==(w=C[25](`bonusType.${C[5].type}`)+"")&&re(v,w,ue.contenteditable),C[5].type==="standard"?K?K.p(C,B):(K=Pa(C),K.c(),K.m(A.parentNode,A)):K&&(K.d(1),K=null),C[5].type==="freeBet"?se?se.p(C,B):(se=Sa(C),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),C[5].type==="freeRound"?Q?Q.p(C,B):(Q=ka(C),Q.c(),Q.m(S.parentNode,S)):Q&&(Q.d(1),Q=null),C[5].type==="wagering"?ee?ee.p(C,B):(ee=Ba(C),ee.c(),ee.m(x.parentNode,x)):ee&&(ee.d(1),ee=null)},d(C){C&&(O(e),O(l),O(u),O(g),O(A),O(y),O(S),O(x)),I.d(),K&&K.d(C),se&&se.d(C),Q&&Q.d(C),ee&&ee.d(C)}}}function _b(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,w,v=n[25]("bonusCard.validity")+"",g,A,y,S,x=n[32](n[5])+"",F,j,G,R,I=n[25]("bonusCard.validUntil")+"",V,Z,J,H,M=n[39](n[5].trigger.endTime)+"",ie,ge=[L("BonusCardLabel")],ue={};for(let $=0;$<ge.length;$+=1)ue=k(ue,ge[$]);let q=[L("BonusCardRowText","Type")],ae={};for(let $=0;$<q.length;$+=1)ae=k(ae,q[$]);let K=[L("BonusCardRow")],se={};for(let $=0;$<K.length;$+=1)se=k(se,K[$]);let Q=n[5].type==="standard"&&Ia(n),ee=n[5].type==="freeBet"&&Na(n),C=n[5].type==="freeRound"&&La(n),B=n[5].type==="wagering"&&Ha(n),pe=[L("BonusCardLabel")],Oe={};for(let $=0;$<pe.length;$+=1)Oe=k(Oe,pe[$]);let X=[L("BonusCardRowText")],W={};for(let $=0;$<X.length;$+=1)W=k(W,X[$]);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(),Q&&Q.c(),c=z(),ee&&ee.c(),h=z(),C&&C.c(),f=z(),B&&B.c(),_=z(),b=E("p"),w=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(I),Z=D(":"),J=z(),H=E("span"),ie=D(M),T(t,ue),T(a,ae),T(e,se),T(w,Oe),T(S,W),T(b,Ce),T(R,ct),T(H,Je),T(G,Et)},m($,ye){N($,e,ye),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N($,d,ye),Q&&Q.m($,ye),N($,c,ye),ee&&ee.m($,ye),N($,h,ye),C&&C.m($,ye),N($,f,ye),B&&B.m($,ye),N($,_,ye),N($,b,ye),p(b,w),p(w,g),p(w,A),p(b,y),p(b,S),p(S,F),N($,j,ye),N($,G,ye),p(G,R),p(R,V),p(R,Z),p(G,J),p(G,H),p(H,ie)},p($,ye){ye[0]&33554432&&r!==(r=$[25]("bonusCard.bonusType")+"")&&re(i,r,ue.contenteditable),ye[0]&33554464&&l!==(l=$[25](`bonusType.${$[5].type}`)+"")&&re(u,l,ae.contenteditable),$[5].type==="standard"?Q?Q.p($,ye):(Q=Ia($),Q.c(),Q.m(c.parentNode,c)):Q&&(Q.d(1),Q=null),$[5].type==="freeBet"?ee?ee.p($,ye):(ee=Na($),ee.c(),ee.m(h.parentNode,h)):ee&&(ee.d(1),ee=null),$[5].type==="freeRound"?C?C.p($,ye):(C=La($),C.c(),C.m(f.parentNode,f)):C&&(C.d(1),C=null),$[5].type==="wagering"?B?B.p($,ye):(B=Ha($),B.c(),B.m(_.parentNode,_)):B&&(B.d(1),B=null),ye[0]&33554432&&v!==(v=$[25]("bonusCard.validity")+"")&&re(g,v,Oe.contenteditable),ye[0]&32&&x!==(x=$[32]($[5])+"")&&re(F,x,W.contenteditable),ye[0]&33554432&&I!==(I=$[25]("bonusCard.validUntil")+"")&&re(V,I,ct.contenteditable),ye[0]&32&&M!==(M=$[39]($[5].trigger.endTime)+"")&&re(ie,M,Je.contenteditable)},d($){$&&(O(e),O(d),O(c),O(h),O(f),O(_),O(b),O(j),O(G)),Q&&Q.d($),ee&&ee.d($),C&&C.d($),B&&B.d($)}}}function gb(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}`)+"")&&fe(t,e)},d(r){r&&O(t)}}}function bb(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]}`)+"")&&fe(t,e)},d(r){r&&O(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,_=n[5].amount+"",b,w,v,g,A,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,G=n[29](n[5])+n[17]+"",R,I,V=[L("BonusCardLabel")],Z={};for(let B=0;B<V.length;B+=1)Z=k(Z,V[B]);let J=[L("BonusCardRowText")],H={};for(let B=0;B<J.length;B+=1)H=k(H,J[B]);let M=[L("BonusCardRow")],ie={};for(let B=0;B<M.length;B+=1)ie=k(ie,M[B]);let ge=[L("BonusCardLabel")],ue={};for(let B=0;B<ge.length;B+=1)ue=k(ue,ge[B]);function q(B,pe){return B[5].initialWagerRequirementAmount>=2147483647?yb:vb}let ae=q(n),K=ae(n),se=[L("BonusCardRowText")],Q={};for(let B=0;B<se.length;B+=1)Q=k(Q,se[B]);let ee=[L("BonusCardRow")],C={};for(let B=0;B<ee.length;B+=1)C=k(C,ee[B]);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
|
-
`),f=E("span"),b=
|
|
3574
|
-
`),K.c(),
|
|
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]+"")&&
|
|
3576
|
-
`),a=
|
|
3577
|
-
`),w.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),w.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===(b=_(x))&&w?w.p(x,F):(w.d(1),w=b(x),w&&(w.c(),w.m(o,null)))},d(x){x&&O(e),w.d()}}}function Pb(n){let e;return{c(){e=D("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function Sb(n){let e;return{c(){e=D(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&fe(e,t[8])},d(t){t&&O(e)}}}function za(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,_=[L("BonusCardAdditionalTitle")],b={};for(let R=0;R<_.length;R+=1)b=k(b,_[R]);function w(R,I){return R[11]?kb:Db}let v=w(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,b),T(d,y),T(t,x),le(t,"Active",n[11]),T(e,G)},m(R,I){N(R,e,I),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,I){I[0]&33554432&&a!==(a=R[25]("bonusCard.rewards")+"")&&re(l,a,b.contenteditable),v!==(v=w(R))&&(g.d(1),g=v(R),g&&(g.c(),g.m(d,null))),I[0]&2048&&le(t,"Active",R[11]),R[11]?F?F.p(R,I):(F=$a(R),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(R){R&&O(e),g.d(),F&&F.d(),h=!1,f()}}}function kb(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&&O(e)}}}function Db(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&&O(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&&O(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 Bb;if(l[5].levels)return Mb}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&&(O(e),O(r)),s&&s.d(l),a&&a.d(l)}}}function Mb(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&&O(e),yt(r,i)}}}function Bb(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&&O(e),yt(r,i)}}}function Wa(n){let e=n[35](n[82],n[85])+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&fe(t,e)},d(r){r&&O(t)}}}function ja(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[84])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=k(f,h[g]);let _=Re(n[82].bonuses),b=[];for(let g=0;g<_.length;g+=1)b[g]=Wa(ya(n,_,g));let w=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[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<b.length;g+=1)b[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<b.length;y+=1)b[y]&&b[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[84])+"")&&re(a,s,f.contenteditable),A[0]&48|A[1]&16){_=Re(g[82].bonuses);let y;for(y=0;y<_.length;y+=1){const S=ya(g,_,y);b[y]?b[y].p(S,A):(b[y]=Wa(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&O(e),yt(b,g)}}}function Ga(n){let e=n[79]+"",t;return{c(){t=D(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&fe(t,e)},d(r){r&&O(t)}}}function Ya(n){let e,t,r=n[25](`bonusCard.${n[76].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 _=Re(n[76].desc),b=[];for(let g=0;g<_.length;g+=1)b[g]=Ga(Ca(n,_,g));let w=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<w.length;g+=1)v=k(v,w[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<b.length;g+=1)b[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<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,A){if(A[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].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){_=Re(g[76].desc);let y;for(y=0;y<_.length;y+=1){const S=Ca(g,_,y);b[y]?b[y].p(S,A):(b[y]=Ga(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&O(e),yt(b,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&&O(e),i=!1,o()}}}function Ob(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"}],_={};for(let v=0;v<f.length;v+=1)_=k(_,f[v]);let b=[L("BonusCardTerms")],w={};for(let v=0;v<b.length;v+=1)w=k(w,b[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,_),T(e,w)},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,_.contenteditable),T(t,_=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&O(e)}}}function Ib(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,_,b,w,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]?Nb:Lb}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")],I={};for(let H=0;H<R.length;H+=1)I=k(I,R[H]);let V=n[12]&&Xa(n),Z=[L("BonusCardTerms")],J={};for(let H=0;H<Z.length;H+=1)J=k(J,Z[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),_=z(),b=E("span"),F.c(),w=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(b,G),T(t,I),le(t,"Active",n[12]),T(e,J)},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,_),p(t,b),F.m(b,null),p(e,w),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(b,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&&O(e),F.d(),V&&V.d(),v=!1,g()}}}function Nb(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&&O(e)}}}function Lb(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&&O(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=jd(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&&O(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&&O(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),w=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<w.length;x+=1)v=k(v,w[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"),b&&b.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),b&&b.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||(_=Pe(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?b?b.p(x,F):(b=Ja(x),b.c(),b.m(e,t)):b&&(b.d(1),b=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&&O(e),b&&b.d(),f=!1,_()}}}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&&O(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&&O(e),o=!1,s()}}}function Hb(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&&O(e),t&&t.d(r)}}}function Rb(n,e,t){let r;Cl(n,Ql,P=>t(25,r=P));let{rawbonus:i=""}=e,{lang:o="en"}=e,{status:s=""}=e,{mbsource:a}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{cmsendpoint:d=""}=e,{translationurl:c=""}=e,{levelcountlimit:h=""}=e,{currency:f=""}=e,_=null,b=[],w,v=!1,g=!1,A=!1,y=!1,S=!0,x=!1,F=!1,j={},G,R,I="",V=1e3*30,Z,J,H="",M=!1,ie,ge=[],ue=0,q=!1;const ae=()=>{fetch(c).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])});const K=P=>P.some(U=>Array.isArray(U==null?void 0:U.bonuses)&&U.bonuses.length>0);Hr(()=>(window.addEventListener("message",Oe,!1),()=>{window.removeEventListener("message",Oe)}));const se=()=>{var P,U;try{t(5,_=JSON.parse(i))}catch(ne){t(5,_=null)}_&&(t(17,G=ba(_.currency||f)),t(7,b=ee(_.levels||((U=(P=_.wallet)==null?void 0:P.wagering)==null?void 0:U.levels))),t(10,g=_.type==="wagering"&&K(b)),g||t(11,A=!1),_.type==="freeRound"&&t(23,ge=Q(_.freeSpin)),Fe())},Q=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},ee=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,w=0):t(8,w=U.length),U},C=()=>{t(13,S=!1),t(15,F=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},B=()=>{t(13,S=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},pe=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},Oe=P=>{switch(P.data.type){case"OnBonusClaimedDone":t(13,S=!0);break;case"OnBonusForfeitedDone":t(13,S=!0);break;case"OnBonusClaimError":P.data.bonusCode===_.code&&t(15,F=!0);break}},X=(P,U)=>({remainder:P%U,quotient:Math.floor(P/U)}),W=P=>{const U=new Date;return new Date(P).getTime()-U.getTime()},xe=P=>{const U=W(P)/6e4,{quotient:ne,remainder:be}=X(U,1440),{quotient:we,remainder:Te}=X(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(" ")},Ce=(P,U,ne,be)=>{const we=W(P);we<0?ne():(be(xe(P)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},Fe=()=>{var be;if(!_)return;const P=(we,Te,Ge)=>{Ce(we,V,()=>Te(Ge),Te)},U=r("bonusCard.expired"),ne=_.endTime||((be=_.trigger)==null?void 0:be.endTime);ne&&P(ne,we=>{t(19,I=we),t(18,R=we)},U),_.expiryDate&&P(_.expiryDate,we=>t(18,R=we),U)},ct=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()},ht=P=>{var U,ne;return(((U=P.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=P.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},Je=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)},Rt=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"):r("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${r(we===1?"bonusCard.day":"bonusCard.days")}`},Et=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}},$=(P,U)=>{const ne=r(`bonusType.${U.type}`),be=ba(U.amountCurrency||_.currency||f);return U.mode==="percentage"?`${U.bonusAmount*100}% ${r("bonusCard.upTo")} ${be}${U.capAmount} ${ne}`:U.mode==="fixed"?`${be}${U.bonusAmount} ${ne}`:ne},ye=(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}`},Zn=(P,U)=>{switch(U.type){case"standard":case"freeBet":return $(P,U);case"freeRound":return r("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return r("bonusCard.enrollTo",{values:{name:r(`bonusType.${U.type}`)}});default:return""}},Kn=P=>{var U,ne;return Number((ne=(U=P==null?void 0:P[f])!=null?U:P==null?void 0:P.EUR)!=null?ne:0)},oi=P=>{var be,we,Te,Ge;const U=Kn((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(Ud=>Zn(er,Ud))}});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,H=P.url?P.url:(ne=(U=P.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Y=P=>{window.postMessage({type:"BonusGameAction",gameId:P.id,name:P.name,gameLaunchUrl:P.href},window.location.href)},Ae=P=>{t(21,M=!0),t(22,ie=P)},Ne=()=>{t(21,M=!1),t(22,ie=-1)},xt=P=>{fetch(`${d}/${o}/bonuses-information/${P}`).then(U=>U.json()).then(U=>{U&&U[P]&&(t(14,x=!0),t(16,j=U[P]))})},hn=(P,U)=>{const ne=document.createElement("div");ne.innerHTML=U,P.append(ne)},Nd=()=>t(24,ue+=300),Ld=P=>Y(P),Hd=P=>Ae(P),Jn=()=>Ne(),Qn=()=>t(24,ue-=300),Ft=()=>{t(11,A=!A)},Rd=()=>{t(12,y=!y)};function Fd(P){st[P?"unshift":"push"](()=>{Z=P,t(6,Z)})}return n.$$set=P=>{"rawbonus"in P&&t(45,i=P.rawbonus),"lang"in P&&t(46,o=P.lang),"status"in P&&t(0,s=P.status),"mbsource"in P&&t(1,a=P.mbsource),"clientstyling"in P&&t(2,l=P.clientstyling),"clientstylingurl"in P&&t(3,u=P.clientstylingurl),"cmsendpoint"in P&&t(47,d=P.cmsendpoint),"translationurl"in P&&t(48,c=P.translationurl),"levelcountlimit"in P&&t(4,h=P.levelcountlimit),"currency"in P&&t(49,f=P.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(s===oe.CLAIMABLE&&t(9,v=!0),s===oe.ACTIVE&&t(9,v=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,q=!!(i&&o&&s)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&i&&o&&s&&se(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&q&&_&&(o&&eu(o),d?xt(_.bonusId||_.id):ui(_)),n.$$.dirty[0]&68&&l&&Z&&Yr(Z,l),n.$$.dirty[0]&72&&u&&Z&&qr(Z,u),n.$$.dirty[0]&66&&a&&Z&&Xr(Z,`${a}.Style`,J),n.$$.dirty[1]&131072&&c&&ae()},[s,a,l,u,h,_,Z,b,w,v,g,A,y,S,x,F,j,G,R,I,H,M,ie,ge,ue,r,C,B,pe,ct,ht,Je,Rt,Et,ye,Zn,Kn,oi,si,ai,li,Y,Ae,Ne,hn,i,o,d,c,f,q,Nd,Ld,Hd,Jn,Qn,Ft,Rd,Fd]}class Fb extends Ur{constructor(e){super(),Rr(this,e,Rb,Hb,$n,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},cb,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",Fr(Fb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function Ub({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>Vb(r)?$b({totalPages:i,limit:r,currentPage:t}):zb({totalPages:i});return[{type:"symbol",symbol:"<",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:">",value:t>=i?i:t+1}]}function zb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function $b({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 Vb(n){return n*2+3+2}function Wb(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 jb=n=>({}),tl=n=>({}),Gb=n=>({}),nl=n=>({}),Yb=n=>({}),rl=n=>({}),qb=n=>({value:n[0]&32}),il=n=>({value:n[29].value});function Xb(n){let e;const t=n[21].next,r=Vn(t,n,n[20],tl),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]),tl)},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].prev,r=Vn(t,n,n[20],nl),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]),nl)},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].ellipsis,r=Vn(t,n,n[20],rl),i=r||tv();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,Yb):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 Jb(n){let e;const t=n[21].number,r=Vn(t,n,n[20],il),i=r||nv(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,qb):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 Qb(n){let e;return{c(){e=D(">")},m(t,r){N(t,e,r)},d(t){t&&O(e)}}}function ev(n){let e;return{c(){e=D("<")},m(t,r){N(t,e,r)},d(t){t&&O(e)}}}function tv(n){let e;return{c(){e=E("span"),e.textContent="..."},m(t,r){N(t,e,r)},p:Me,d(t){t&&O(e)}}}function nv(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+"")&&fe(r,t)},d(i){i&&O(e)}}}function ol(n){let e,t,r,i,o,s,a,l;const u=[Jb,Kb,Zb,Xb],d=[];function c(f,_){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?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===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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==="<"),le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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,_){N(f,e,_),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Pe(e,"click",h),a=!0)},p(f,_){n=f;let b=t;t=c(n),t===b?~t&&d[t].p(n,_):(r&&(Tl(),ut(d[b],1,1,()=>{d[b]=null}),Pl()),~t?(r=d[t],r?r.p(n,_):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||_[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1))&&(e.disabled=o),(!s||_[0]&32)&&le(e,"number",n[29].type==="number"),(!s||_[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="<"),(!s||_[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),(!s||_[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1),(!s||_[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||_[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&&O(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&&O(e),a=!1,qe(l)}}}function rv(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 _=el(c,a,f);l[f]?(l[f].p(_,h),Ze(l[f],1)):(l[f]=ol(_),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&&O(e),yt(l,c),d&&d.d(),n[26](null)}}}function iv(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:_=""}=e,{mbsource:b}=e,{clientstyling:w=""}=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 I=M=>G(M);function V(){x=Al(this.value),t(3,x)}const Z=()=>R(x),J=()=>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,_=M.showinput),"mbsource"in M&&t(15,b=M.mbsource),"clientstyling"in M&&t(16,w=M.clientstyling),"clientstylingurl"in M&&t(17,v=M.clientstylingurl),"$$scope"in M&&t(20,u=M.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&w&&S&&Yr(S,w),n.$$.dirty[0]&131073&&v&&S&&qr(S,v),n.$$.dirty[0]&32769&&b&&S&&Xr(S,`${b}.Style`,A),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=_),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=Ub({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,w,v,s,r,u,l,I,V,Z,J,H]}class ov extends Ur{constructor(e){super(),Rr(this,e,iv,rv,$n,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Wb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",Fr(ov,{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 sv(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 av(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 lv(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 uv(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 dv(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&&O(e),o=!1,s()}}}function cv(n){let e,t,r=n[29]("bonus.canlendarTitle")+"",i,o,s,a,l,u,d=n[29]("bonus.from")+"",c,h,f,_,b,w,v=n[29]("bonus.to")+"",g,A,y,S,x,F=n[29]("bonus.filter")+"",j,G,R,I,V=[L("BonusCalendarTitle")],Z={};for(let X=0;X<V.length;X+=1)Z=k(Z,V[X]);let J=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],H={};for(let X=0;X<J.length;X+=1)H=k(H,J[X]);let M=[n[28]("BonusCalendarStartDate")],ie={};for(let X=0;X<M.length;X+=1)ie=k(ie,M[X]);let ge=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],ue={};for(let X=0;X<ge.length;X+=1)ue=k(ue,ge[X]);let q=[n[28]("BonusCalendarEndDate")],ae={};for(let X=0;X<q.length;X+=1)ae=k(ae,q[X]);let K=[n[28]("BonusCalendarContainer")],se={};for(let X=0;X<K.length;X+=1)se=k(se,K[X]);let Q=[n[28]("BonusFilterButton"),{disabled:G=n[13]||n[21]}],ee={};for(let X=0;X<Q.length;X+=1)ee=k(ee,Q[X]);let C=[L("BonusCalendarContent")],B={};for(let X=0;X<C.length;X+=1)B=k(B,C[X]);let pe=[n[28]("BonusCalendarWrapper")],Oe={};for(let X=0;X<pe.length;X+=1)Oe=k(Oe,pe[X]);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"),_=z(),b=E("div"),w=E("label"),g=D(v),A=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=D(F),T(t,Z),m(u,"for","BonusCalendarStartDate"),T(f,H),T(l,ie),m(w,"for","BonusCalendarEndDate"),T(y,ue),T(b,ae),T(a,se),T(x,ee),T(s,B),T(e,Oe)},m(X,W){N(X,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,_),p(a,b),p(b,w),p(w,g),p(b,A),p(b,y),n[47](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),R||(I=[Pe(f,"validated",n[37]),Pe(y,"validated",n[37]),Pe(x,"click",n[48])],R=!0)},p(X,W){W[0]&536870912&&r!==(r=X[29]("bonus.canlendarTitle")+"")&&re(i,r,Z.contenteditable),W[0]&536870912&&d!==(d=X[29]("bonus.from")+"")&&fe(c,d),T(f,H=ke(J,[{min:X[30]},{max:X[31]},W[0]&8388608&&{value:X[23]},{placeholder:"From"},L("VaadinDatePicker")])),T(l,ie=ke(M,[W[0]&268435456&&X[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=X[29]("bonus.to")+"")&&fe(g,v),T(y,ue=ke(ge,[{min:X[30]},{max:X[31]},W[0]&16777216&&{value:X[24]},{placeholder:"To"},L("VaadinDatePicker")])),T(b,ae=ke(q,[W[0]&268435456&&X[28]("BonusCalendarEndDate")])),T(a,se=ke(K,[W[0]&268435456&&X[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=X[29]("bonus.filter")+"")&&re(j,F,ee.contenteditable),T(x,ee=ke(Q,[W[0]&268435456&&X[28]("BonusFilterButton"),W[0]&2105344&&G!==(G=X[13]||X[21])&&{disabled:G}])),T(e,Oe=ke(pe,[W[0]&268435456&&X[28]("BonusCalendarWrapper")]))},d(X){X&&O(e),n[46](null),n[47](null),R=!1,qe(I)}}}function hv(n){let e,t,r,i=n[29]("bonus.bonusCode")+"",o,s,a,l,u,d,c,h=n[29]("bonus.claim")+"",f,_,b,w,v,g=[n[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},{placeholder:u=n[29]("bonus.placeholder")}],A={};for(let I=0;I<g.length;I+=1)A=k(A,g[I]);let y=[n[28]("BonusClaimButton"),{disabled:_=n[19]||!n[26]}],S={};for(let I=0;I<y.length;I+=1)S=k(S,y[I]);let x=[n[28]("BonusCodeWrapper")],F={};for(let I=0;I<x.length;I+=1)F=k(F,x[I]);let j=n[20]&&dl(n),G=[n[28]("BonusCodeContainer")],R={};for(let I=0;I<G.length;I+=1)R=k(R,G[I]);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),b=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(I,V){N(I,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,b),j&&j.m(e,null),w||(v=[Pe(l,"input",n[44]),Pe(l,"keyup",n[36]),Pe(c,"click",n[45])],w=!0)},p(I,V){V[0]&536870912&&i!==(i=I[29]("bonus.bonusCode")+"")&&fe(o,i),T(l,A=ke(g,[V[0]&268435456&&I[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},V[0]&536870912&&u!==(u=I[29]("bonus.placeholder"))&&{placeholder:u}])),V[0]&262144&&l.value!==I[18]&&vr(l,I[18]),V[0]&536870912&&h!==(h=I[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),T(c,S=ke(y,[V[0]&268435456&&I[28]("BonusClaimButton"),V[0]&67633152&&_!==(_=I[19]||!I[26])&&{disabled:_}])),T(a,F=ke(x,[V[0]&268435456&&I[28]("BonusCodeWrapper")])),I[20]?j?j.p(I,V):(j=dl(I),j.c(),j.m(e,null)):j&&(j.d(1),j=null),T(e,R=ke(G,[V[0]&268435456&&I[28]("BonusCodeContainer")]))},d(I){I&&O(e),j&&j.d(),w=!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")+"")&&fe(r,t)},d(i){i&&O(e)}}}function fv(n){let e,t;function r(a,l){return a[12].length>0?gv:a[14]?_v:mv}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&&(O(e),O(t)),o.d(a),s&&s.d(a)}}}function pv(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&&O(e)}}}function mv(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")+"")&&fe(r,t)},d(i){i&&O(e)}}}function _v(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")+"")&&fe(r,t),a[0]&16384&&fe(o,s[14])},d(s){s&&O(e)}}}function gv(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&&O(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&&O(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&&O(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,_=n[29]("bonus.forfeitConfirm")+"",b,w,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")],I={};for(let M=0;M<R.length;M+=1)I=k(I,R[M]);let V=[L("ModalContent")],Z={};for(let M=0;M<V.length;M+=1)Z=k(Z,V[M]);let J=[n[28]("ModalWrapper")],H={};for(let M=0;M<J.length;M+=1)H=k(H,J[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"),b=D(_),T(i,A),T(u,S),T(f,F),T(l,G),T(r,I),T(t,Z),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,b),f.autofocus&&f.focus(),w||(v=[Pe(u,"click",n[34]),Pe(f,"click",n[49])],w=!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&&_!==(_=M[29]("bonus.forfeitConfirm")+"")&&re(b,_,F.contenteditable),T(e,H=ke(J,[ie[0]&268435456&&M[28]("ModalWrapper")]))},d(M){M&&O(e),w=!1,qe(v)}}}function bv(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 hv;if(y[25]===oe.COMPLETED)return cv}let h=c(n),f=h&&h(n);function _(y,S){return y[13]?pv:fv}let b=_(n),w=b(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(),w.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),w.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===(b=_(y))&&w?w.p(y,S):(w.d(1),w=b(y),w&&(w.c(),w.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&&O(e),yt(l,y),f&&f.d(),w.d(),v&&v.d(),n[50](null)}}}function vv(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:_=""}=e,{translationurl:b=""}=e,{levelcountlimit:w="3"}=e,{onlyoneclick:v=!1}=e,g=window.navigator.userAgent,A=!1,y=[],S=!0,x="",F="",j=1,G=0,R=2,I=An(Ss(new Date,Jg),"yyyy-MM-dd"),V=An(new Date,"yyyy-MM-dd"),Z=An(Ss(new Date,Qg),"yyyy-MM-dd"),J,H,M="",ie=!0,ge=!1,ue=!1,q=!1,ae=Z,K=V,se,Q,ee=oe.ACTIVE,C=!0,B="";au(g)&&(A=!0,R=1);const pe=()=>{fetch(b).then(Ae=>Ae.json()).then(Ae=>{Object.keys(Ae).forEach(Ne=>{Er(Ne,Ae[Ne])})}).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),Q==null||Q.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,B=Y.data.bonus.id),t(22,q=!0);break}},X=()=>Ue(this,null,function*(){Fe(1)}),W=(Y,Ae)=>Ue(this,null,function*(){t(26,C=!1);const Ne=yield sv(s,l,{bonusCode:Y,currency:u});if(!Ne.success){F=Ne.errorMessage||"",Ae?t(20,ge=!0):window.postMessage({type:"OnBonusClaimError",message:F,bonusCode:Y}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,C=!0);return}t(20,ge=!1),Fe(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,C=!0)}),xe=Y=>Ue(this,null,function*(){t(26,C=!1);const Ae=yield av(s,l,{bonusWalletID:Y});if(!Ae.success){t(14,x=Ae.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,C=!0),t(22,q=!1);return}Fe(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,C=!0),t(22,q=!1)}),Ce=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,q=!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 Ne=yield ct(s,l,Ae,{lang:a,limit:d});if(!Ne.success){t(14,x=Ne.errorMessage),t(13,S=!1);return}const{list:xt,total:hn}=ab(Ne);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,Ne,xt={}){const{limit:Jn="",lang:Qn=a}=xt;switch(ee){case oe.CLAIMABLE:{const Ft={pagination:`limit=${Jn},offset=${Ne}`,language:Qn};return v===!0&&(Ft.selectable=v),yield uv(Y,Ae,Ft)}default:{const Ft=db({limit:Jn,language:Qn,offset:Ne,bonusStatus:ee,bonusCalendarStartDate:ae,bonusCalendarEndDate:K,invalidDate:ue,lastMonth:Z,maxDate:V});return yield lv(Y,Ae,Ft)}}}),ht=Y=>{t(23,ae=Y.target.value)},Je=Y=>{t(24,K=Y.target.value)},Rt=()=>{se.removeEventListener("change",ht),Q.removeEventListener("change",Je),se.addEventListener("change",ht,!1),Q.addEventListener("change",Je,!1)},Et=()=>{t(20,ge=!1),t(19,ie=!lb(M))},$=Y=>{const{valid:Ae}=Y.detail,{start:Ne,end:xt}=sb(ae,K);t(23,ae=Ne),t(24,K=xt);const hn=ub(ae,K,Ae);t(21,ue=hn.invalidDate)},ye=Y=>{t(25,ee=Y),Fe(1)};function Zn(){M=this.value,t(18,M)}const Kn=()=>{W(M,!0)};function oi(Y){st[Y?"unshift":"push"](()=>{se=Y,t(10,se)})}function si(Y){st[Y?"unshift":"push"](()=>{Q=Y,t(11,Q)})}const ai=()=>Fe(1),li=()=>xe(B);function ui(Y){st[Y?"unshift":"push"](()=>{J=Y,t(9,J)})}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,_=Y.clientstylingurl),"translationurl"in Y&&t(7,b=Y.translationurl),"levelcountlimit"in Y&&t(8,w=Y.levelcountlimit),"onlyoneclick"in Y&&t(40,v=Y.onlyoneclick)},n.$$.update=()=>{n.$$.dirty[0]&3072&&se&&Q&&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&&X(),n.$$.dirty[0]&544&&f&&J&&Yr(J,f),n.$$.dirty[0]&576&&_&&J&&qr(J,_),n.$$.dirty[0]&528&&h&&J&&Xr(J,`${h}.Style`,H),n.$$.dirty[0]&128&&b&&pe()},[a,u,d,c,h,f,_,b,w,J,se,Q,y,S,x,j,G,R,M,ie,ge,ue,q,ae,K,ee,C,B,r,o,I,V,W,xe,Ce,Fe,Et,$,s,l,v,A,i,ye,Zn,Kn,oi,si,ai,li,ui]}class Id extends Ur{constructor(e){super(),Rr(this,e,vv,bv,$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},dv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),de()}}Fr(Id,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"}},[],[],!0);exports.default=Id;
|
|
3572
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $g(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new Wg(this.inputElement,this._labelController)),this._tooltipController=new gd(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(Qg);const ie={ACTIVE:"active",COMPLETED:"completed",CLAIMABLE:"claimable",RELEASED:"released"},ya=[ie.ACTIVE,ie.COMPLETED,ie.CLAIMABLE],oi={CLAIM:"/v1/bonus/claim",FORFEIT:"/v1/bonus/forfeit",GRANTED:"/v1/bonus/granted",CLAIMABLE:"/v1/bonus/claimable"},eb=6,tb=3,Rd=["standard","freeBet","freeRound","cashBack","stakeBack","oddsBoost","wagering"],Hr={TYPES:Rd.join(","),STATUS_ACTIVE:"active",STATUS_COMPLETED:"completed,released,forfeited,expired,closed"};function nb(n){Rr(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 rb(n){let e,t,r;return{c(){e=E("span"),t=M(n[0]),r=M(" %"),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&&me(t,i[0])},d(i){i&&I(e)}}}function ib(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||rb(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]===ie.COMPLETED),m(s,"class","CircularProgressCenter"),m(s,"cx","73"),m(s,"cy","73.5"),m(s,"r","50.5"),le(s,"Completed",n[1]===ie.COMPLETED),m(t,"viewBox","0 0 147 147"),m(e,"class","CircularProgress"),m(e,"part","CircularProgress")},m(f,_){N(f,e,_),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,[_]){(!u||_&16&&o!==(o=f[4]()))&&m(i,"stroke-dashoffset",o),(!u||_&2)&&le(i,"Completed",f[1]===ie.COMPLETED),(!u||_&2)&&le(s,"Completed",f[1]===ie.COMPLETED),c?c.p&&(!u||_&512)&&Wn(c,d,f,f[9],u?$n(d,f[9],_,null):jn(f[9]),null):h&&h.p&&(!u||_&1)&&h.p(f,u?_:-1)},i(f){u||(Ze(h,f),u=!0)},o(f){dt(h,f),u=!1},d(f){f&&I(e),n[11](null),h&&h.d(f),n[12](null)}}}let wa=64.5;function ob(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*(wa*2),f,_;Fr(()=>()=>{});function b(v){at[v?"unshift":"push"](()=>{c=v,t(3,c)})}function C(v){at[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&&Xr(f,u),n.$$.dirty&260&&d&&f&&Zr(f,d),n.$$.dirty&68&&l&&f&&Kr(f,`${l}.Style`,_),n.$$.dirty&1&&t(4,r=()=>{const v=Math.PI*(wa*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,b,C]}class sb extends Vr{constructor(e){super(),Ur(this,e,ob,ib,zn,{value:0,status:1,mbsource:6,clientstyling:7,clientstylingurl:8},nb)}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),de()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-progress",zr(sb,{value:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0));const Ca=n=>ab[n],ab={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 lb(n,e){return e<n?{start:e,end:n}:{start:n,end:e}}function ub(n){return typeof n!="string"||!n.trim()?[]:n.split(",").map(e=>e.trim()).filter(Boolean)}function Fd(n=[]){if(!n.length)return Hr.TYPES;const e=new Set(n.map(r=>r.toLowerCase())),t=Rd.filter(r=>!e.has(r.toLowerCase()));return t.length>0?t.join(","):Hr.TYPES}function db(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 cb(n){return typeof n=="string"&&n.trim().length>0}function hb(n,e,t){const r=n===""||e===""||t===!1;return{valid:!r,invalidDate:r}}function fb(n){const{limit:e,language:t,offset:r,bonusStatus:i,bonusCalendarStartDate:o,bonusCalendarEndDate:s,invalidDate:a,lastMonth:l,maxDate:u,excludedTypes:d=[]}=n,c=Fd(d),h={pagination:`limit=${e},offset=${r}`,language:t,sortOrder:"desc",expand:"freeSpin"};switch(i){case ie.COMPLETED:{const f=o!==""&&!a?o:l,_=s!==""&&!a?s:u,b=new Date(_);b.setUTCHours(23,59,59),h.startTime=new Date(f).toISOString(),h.endTime=b.toISOString(),h.type=c,h.status=Hr.STATUS_COMPLETED;break}case ie.ACTIVE:h.type=c,h.status=Hr.STATUS_ACTIVE;break}return h}function L(n,e=""){return{part:n,class:[n,e].filter(Boolean).join(" ")}}function pb(n){Rr(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 Ea(n,e,t){const r=n.slice();return r[82]=e[t],r[84]=t,r}function xa(n,e,t){const r=n.slice();return r[85]=e[t],r}function Ta(n,e,t){const r=n.slice();return r[76]=e[t],r}function Aa(n,e,t){const r=n.slice();return r[79]=e[t],r}function Pa(n,e,t){const r=n.slice();return r[88]=e[t],r[90]=t,r}function Sa(n){var J;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||((J=n[5].presentation)==null?void 0:J.name.content))+"",c,h,f,_,b,C,v,g=s&&ka(),T=l&&Da(),y=[L("TitleIcon")],S={};for(let w=0;w<y.length;w+=1)S=D(S,y[w]);let x=[L("BonusCardRowTitle")],F={};for(let w=0;w<x.length;w+=1)F=D(F,x[w]);function j(w,B){if(w[0]===ie.ACTIVE)return _b;if(w[0]===ie.COMPLETED)return mb}let Y=j(n),H=Y&&Y(n),O=[L("BonusCardHeader")],$={};for(let w=0;w<O.length;w+=1)$=D($,O[w]);let Z=gb(n),ee=n[10]&&ja(n);function R(w,B){return w[14]?Hb:Lb}let k=R(n),oe=k(n),ge=[L("BonusCardFooter")],ce={};for(let w=0;w<ge.length;w+=1)ce=D(ce,ge[w]);let X=[L("BonusCardInfo")],ae={};for(let w=0;w<X.length;w+=1)ae=D(ae,X[w]);let K=n[9]&&el(n),se=[L("BonusCard")],Q={};for(let w=0;w<se.length;w+=1)Q=D(Q,se[w]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),o=E("span"),g&&g.c(),a=z(),T&&T.c(),u=z(),c=M(d),h=z(),H&&H.c(),f=z(),Z&&Z.c(),_=z(),b=E("div"),ee&&ee.c(),C=z(),oe.c(),v=z(),K&&K.c(),P(o,S),P(i,F),P(r,$),P(b,ce),le(b,"Active",n[11]||n[12]),P(t,ae),P(e,Q)},m(w,B){N(w,e,B),p(e,t),p(t,r),p(r,i),p(i,o),g&&g.m(o,null),p(o,a),T&&T.m(o,null),p(i,u),p(i,c),p(r,h),H&&H.m(r,null),p(t,f),Z&&Z.m(t,null),p(t,_),p(t,b),ee&&ee.m(b,null),p(b,C),oe.m(b,null),p(e,v),K&&K.m(e,null),n[58](e)},p(w,B){var ue;B[0]&32&&(s=w[33](w[5]).indexOf("Casino")>-1),s?g||(g=ka(),g.c(),g.m(o,a)):g&&(g.d(1),g=null),B[0]&32&&(l=w[33](w[5]).indexOf("Sports")>-1),l?T||(T=Da(),T.c(),T.m(o,null)):T&&(T.d(1),T=null),B[0]&32&&d!==(d=(w[5].name||((ue=w[5].presentation)==null?void 0:ue.name.content))+"")&&re(c,d,F.contenteditable),Y===(Y=j(w))&&H?H.p(w,B):(H&&H.d(1),H=Y&&Y(w),H&&(H.c(),H.m(r,null))),Z.p(w,B),w[10]?ee?ee.p(w,B):(ee=ja(w),ee.c(),ee.m(b,C)):ee&&(ee.d(1),ee=null),k===(k=R(w))&&oe?oe.p(w,B):(oe.d(1),oe=k(w),oe&&(oe.c(),oe.m(b,null))),B[0]&6144&&le(b,"Active",w[11]||w[12]),w[9]?K?K.p(w,B):(K=el(w),K.c(),K.m(e,null)):K&&(K.d(1),K=null)},d(w){w&&I(e),g&&g.d(),T&&T.d(),H&&H.d(),Z&&Z.d(),ee&&ee.d(),oe.d(),K&&K.d(),n[58](null)}}}function ka(n){let e,t,r,i,o,s,a,l,u,d,c,h,f,_=[L("CasinoIcon"),{viewBox:"0 0 41 41"}],b={};for(let C=0;C<_.length;C+=1)b=D(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"),Sl(e,b)},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 Da(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=D(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"),Sl(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 mb(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=D(o,i[s]);return{c(){e=E("p"),r=M(t),P(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 _b(n){let e,t,r,i,o,s=[L("BonusCardTitleSub")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("span"),t=te("svg"),r=te("path"),i=z(),o=M(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"),P(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 gb(n){let e,t,r;function i(h,f){return h[0]===ie.CLAIMABLE?vb:bb}let o=i(n),s=o(n),a=[L("BonusCardDataContent")],l={};for(let h=0;h<a.length;h+=1)l=D(l,a[h]);let u=(n[0]===ie.ACTIVE||n[0]===ie.COMPLETED)&&Va(n),d=[L("BonusCardData")],c={};for(let h=0;h<d.length;h+=1)c=D(c,d[h]);return{c(){e=E("div"),t=E("div"),s.c(),r=z(),u&&u.c(),P(t,l),P(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]===ie.ACTIVE||h[0]===ie.COMPLETED?u?u.p(h,f):(u=Va(h),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(h){h&&I(e),s.d(),u&&u.d()}}}function bb(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,T,y,S,x,F=[L("BonusCardLabel")],j={};for(let w=0;w<F.length;w+=1)j=D(j,F[w]);function Y(w,B){return w[0]===ie.ACTIVE?wb:yb}let H=Y(n),O=H(n),$=[L("BonusCardRowText")],Z={};for(let w=0;w<$.length;w+=1)Z=D(Z,$[w]);let ee=[L("BonusCardRow")],R={};for(let w=0;w<ee.length;w+=1)R=D(R,ee[w]);let k=[L("BonusCardLabel")],oe={};for(let w=0;w<k.length;w+=1)oe=D(oe,k[w]);let ge=[L("BonusCardRowText","Type")],ce={};for(let w=0;w<ge.length;w+=1)ce=D(ce,ge[w]);let X=[L("BonusCardRow")],ae={};for(let w=0;w<X.length;w+=1)ae=D(ae,X[w]);let K=n[5].type==="standard"&&Ma(n),se=n[5].type==="freeBet"&&Ba(n),Q=n[5].type==="freeRound"&&Oa(n),J=n[5].type==="wagering"&&La(n);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),O.c(),l=z(),u=E("p"),d=E("span"),h=M(c),f=M(":"),_=z(),b=E("span"),v=M(C),g=z(),K&&K.c(),T=z(),se&&se.c(),y=z(),Q&&Q.c(),S=z(),J&&J.c(),x=nt(),P(t,j),P(a,Z),le(a,"StatusActive",n[0]===ie.ACTIVE),le(a,"StatusCompleted",n[0]===ie.COMPLETED),le(a,"StatusClaimable",n[0]===ie.CLAIMABLE),P(e,R),P(d,oe),P(b,ce),P(u,ae)},m(w,B){N(w,e,B),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),O.m(a,null),N(w,l,B),N(w,u,B),p(u,d),p(d,h),p(d,f),p(u,_),p(u,b),p(b,v),N(w,g,B),K&&K.m(w,B),N(w,T,B),se&&se.m(w,B),N(w,y,B),Q&&Q.m(w,B),N(w,S,B),J&&J.m(w,B),N(w,x,B)},p(w,B){B[0]&33554432&&r!==(r=w[25]("bonusCard.bonusStatus")+"")&&re(i,r,j.contenteditable),H===(H=Y(w))&&O?O.p(w,B):(O.d(1),O=H(w),O&&(O.c(),O.m(a,null))),B[0]&1&&le(a,"StatusActive",w[0]===ie.ACTIVE),B[0]&1&&le(a,"StatusCompleted",w[0]===ie.COMPLETED),B[0]&1&&le(a,"StatusClaimable",w[0]===ie.CLAIMABLE),B[0]&33554432&&c!==(c=w[25]("bonusCard.bonusType")+"")&&re(h,c,oe.contenteditable),B[0]&33554464&&C!==(C=w[25](`bonusType.${w[5].type}`)+"")&&re(v,C,ce.contenteditable),w[5].type==="standard"?K?K.p(w,B):(K=Ma(w),K.c(),K.m(T.parentNode,T)):K&&(K.d(1),K=null),w[5].type==="freeBet"?se?se.p(w,B):(se=Ba(w),se.c(),se.m(y.parentNode,y)):se&&(se.d(1),se=null),w[5].type==="freeRound"?Q?Q.p(w,B):(Q=Oa(w),Q.c(),Q.m(S.parentNode,S)):Q&&(Q.d(1),Q=null),w[5].type==="wagering"?J?J.p(w,B):(J=La(w),J.c(),J.m(x.parentNode,x)):J&&(J.d(1),J=null)},d(w){w&&(I(e),I(l),I(u),I(g),I(T),I(y),I(S),I(x)),O.d(),K&&K.d(w),se&&se.d(w),Q&&Q.d(w),J&&J.d(w)}}}function vb(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,T,y,S,x=n[32](n[5])+"",F,j,Y,H,O=n[25]("bonusCard.validUntil")+"",$,Z,ee,R,k=n[39](n[5].trigger.endTime)+"",oe,ge=[L("BonusCardLabel")],ce={};for(let V=0;V<ge.length;V+=1)ce=D(ce,ge[V]);let X=[L("BonusCardRowText","Type")],ae={};for(let V=0;V<X.length;V+=1)ae=D(ae,X[V]);let K=[L("BonusCardRow")],se={};for(let V=0;V<K.length;V+=1)se=D(se,K[V]);let Q=n[5].type==="standard"&&Ra(n),J=n[5].type==="freeBet"&&Fa(n),w=n[5].type==="freeRound"&&Ua(n),B=n[5].type==="wagering"&&za(n),ue=[L("BonusCardLabel")],Be={};for(let V=0;V<ue.length;V+=1)Be=D(Be,ue[V]);let q=[L("BonusCardRowText")],W={};for(let V=0;V<q.length;V+=1)W=D(W,q[V]);let Ae=[L("BonusCardRow")],Ce={};for(let V=0;V<Ae.length;V+=1)Ce=D(Ce,Ae[V]);let it=[L("BonusCardLabel")],Je={};for(let V=0;V<it.length;V+=1)Je=D(Je,it[V]);let Et=[L("BonusCardRowText")],ht={};for(let V=0;V<Et.length;V+=1)ht=D(ht,Et[V]);let $e=[L("BonusCardRow")],xt={};for(let V=0;V<$e.length;V+=1)xt=D(xt,$e[V]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),Q&&Q.c(),c=z(),J&&J.c(),h=z(),w&&w.c(),f=z(),B&&B.c(),_=z(),b=E("p"),C=E("span"),g=M(v),T=M(":"),y=z(),S=E("span"),F=M(x),j=z(),Y=E("p"),H=E("span"),$=M(O),Z=M(":"),ee=z(),R=E("span"),oe=M(k),P(t,ce),P(a,ae),P(e,se),P(C,Be),P(S,W),P(b,Ce),P(H,Je),P(R,ht),P(Y,xt)},m(V,ve){N(V,e,ve),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(V,d,ve),Q&&Q.m(V,ve),N(V,c,ve),J&&J.m(V,ve),N(V,h,ve),w&&w.m(V,ve),N(V,f,ve),B&&B.m(V,ve),N(V,_,ve),N(V,b,ve),p(b,C),p(C,g),p(C,T),p(b,y),p(b,S),p(S,F),N(V,j,ve),N(V,Y,ve),p(Y,H),p(H,$),p(H,Z),p(Y,ee),p(Y,R),p(R,oe)},p(V,ve){ve[0]&33554432&&r!==(r=V[25]("bonusCard.bonusType")+"")&&re(i,r,ce.contenteditable),ve[0]&33554464&&l!==(l=V[25](`bonusType.${V[5].type}`)+"")&&re(u,l,ae.contenteditable),V[5].type==="standard"?Q?Q.p(V,ve):(Q=Ra(V),Q.c(),Q.m(c.parentNode,c)):Q&&(Q.d(1),Q=null),V[5].type==="freeBet"?J?J.p(V,ve):(J=Fa(V),J.c(),J.m(h.parentNode,h)):J&&(J.d(1),J=null),V[5].type==="freeRound"?w?w.p(V,ve):(w=Ua(V),w.c(),w.m(f.parentNode,f)):w&&(w.d(1),w=null),V[5].type==="wagering"?B?B.p(V,ve):(B=za(V),B.c(),B.m(_.parentNode,_)):B&&(B.d(1),B=null),ve[0]&33554432&&v!==(v=V[25]("bonusCard.validity")+"")&&re(g,v,Be.contenteditable),ve[0]&32&&x!==(x=V[32](V[5])+"")&&re(F,x,W.contenteditable),ve[0]&33554432&&O!==(O=V[25]("bonusCard.validUntil")+"")&&re($,O,Je.contenteditable),ve[0]&32&&k!==(k=V[39](V[5].trigger.endTime)+"")&&re(oe,k,ht.contenteditable)},d(V){V&&(I(e),I(d),I(c),I(h),I(f),I(_),I(b),I(j),I(Y)),Q&&Q.d(V),J&&J.d(V),w&&w.d(V),B&&B.d(V)}}}function yb(n){let e=n[25](`bonusCard.${n[5].status}`)+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554464&&e!==(e=r[25](`bonusCard.${r[5].status}`)+"")&&me(t,e)},d(r){r&&I(t)}}}function wb(n){let e=n[25](`bonusCard.${n[0]}`)+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&33554433&&e!==(e=r[25](`bonusCard.${r[0]}`)+"")&&me(t,e)},d(r){r&&I(t)}}}function Ma(n){let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[5].remainingAmount+"",d,c,h,f,_=n[5].amount+"",b,C,v,g,T,y=n[25]("bonusCard.wageredAmount")+"",S,x,F,j,Y=n[29](n[5])+n[17]+"",H,O,$=[L("BonusCardLabel")],Z={};for(let B=0;B<$.length;B+=1)Z=D(Z,$[B]);let ee=[L("BonusCardRowText")],R={};for(let B=0;B<ee.length;B+=1)R=D(R,ee[B]);let k=[L("BonusCardRow")],oe={};for(let B=0;B<k.length;B+=1)oe=D(oe,k[B]);let ge=[L("BonusCardLabel")],ce={};for(let B=0;B<ge.length;B+=1)ce=D(ce,ge[B]);function X(B,ue){return B[5].initialWagerRequirementAmount>=2147483647?Eb:Cb}let ae=X(n),K=ae(n),se=[L("BonusCardRowText")],Q={};for(let B=0;B<se.length;B+=1)Q=D(Q,se[B]);let J=[L("BonusCardRow")],w={};for(let B=0;B<J.length;B+=1)w=D(w,J[B]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),h=M(` /
|
|
3573
|
+
`),f=E("span"),b=M(_),C=M(n[17]),v=z(),g=E("p"),T=E("span"),S=M(y),x=M(":"),F=z(),j=E("span"),H=M(Y),O=M(` /
|
|
3574
|
+
`),K.c(),P(t,Z),le(l,"BonusAmount",n[0]===ie.ACTIVE),le(f,"Amount",n[0]===ie.ACTIVE),P(a,R),P(e,oe),P(T,ce),P(j,Q),P(g,w)},m(B,ue){N(B,e,ue),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,b),p(f,C),N(B,v,ue),N(B,g,ue),p(g,T),p(T,S),p(T,x),p(g,F),p(g,j),p(j,H),p(j,O),K.m(j,null)},p(B,ue){ue[0]&33554432&&r!==(r=B[25]("bonusCard.bonusAmount")+"")&&re(i,r,Z.contenteditable),ue[0]&32&&u!==(u=B[5].remainingAmount+"")&&me(d,u),ue[0]&131072&&me(c,B[17]),ue[0]&1&&le(l,"BonusAmount",B[0]===ie.ACTIVE),ue[0]&32&&_!==(_=B[5].amount+"")&&me(b,_),ue[0]&131072&&me(C,B[17]),ue[0]&1&&le(f,"Amount",B[0]===ie.ACTIVE),ue[0]&33554432&&y!==(y=B[25]("bonusCard.wageredAmount")+"")&&re(S,y,ce.contenteditable),ue[0]&131104&&Y!==(Y=B[29](B[5])+B[17]+"")&&re(H,Y,Q.contenteditable),ae===(ae=X(B))&&K?K.p(B,ue):(K.d(1),K=ae(B),K&&(K.c(),K.m(j,null)))},d(B){B&&(I(e),I(v),I(g)),K.d()}}}function Cb(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&me(t,e)},d(r){r&&I(t)}}}function Eb(n){let e;return{c(){e=M("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Ba(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=D(f,h[g]);let _=[L("BonusCardRowText")],b={};for(let g=0;g<_.length;g+=1)b=D(b,_[g]);let C=[L("BonusCardRow")],v={};for(let g=0;g<C.length;g+=1)v=D(v,C[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),P(t,f),le(l,"BonusAmount",n[0]===ie.ACTIVE),P(a,b),P(e,v)},m(g,T){N(g,e,T),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,T){T[0]&33554432&&r!==(r=g[25]("bonusCard.bonusAmount")+"")&&re(i,r,f.contenteditable),T[0]&32&&u!==(u=g[5].remainingAmount+"")&&me(d,u),T[0]&131072&&me(c,g[17]),T[0]&1&&le(l,"BonusAmount",g[0]===ie.ACTIVE)},d(g){g&&I(e)}}}function Oa(n){let e,t=n[5].status===ie.ACTIVE&&Ia(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===ie.ACTIVE?t?t.p(r,i):(t=Ia(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(r){r&&I(e),t&&t.d(r)}}}function Ia(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,T,y,S,x,F,j,Y,H,O,$,Z,ee,R,k,oe=[L("BonusCardLabel")],ge={};for(let W=0;W<oe.length;W+=1)ge=D(ge,oe[W]);let ce=[L("BonusCardRowText")],X={};for(let W=0;W<ce.length;W+=1)X=D(X,ce[W]);let ae=[L("BonusCardRow")],K={};for(let W=0;W<ae.length;W+=1)K=D(K,ae[W]);let se=[L("BonusCardLabel")],Q={};for(let W=0;W<se.length;W+=1)Q=D(Q,se[W]);let J=Re(n[23]),w=[];for(let W=0;W<J.length;W+=1)w[W]=Na(Pa(n,J,W));let B=[L("BonusCardRowText")],ue={};for(let W=0;W<B.length;W+=1)ue=D(ue,B[W]);let Be=[L("BonusCardRow")],q={};for(let W=0;W<Be.length;W+=1)q=D(q,Be[W]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),c=E("div"),h=E("div"),_=M(f),b=M(":"),C=z(),v=E("div"),g=E("div"),T=E("button"),y=te("svg"),S=te("path"),F=z(),j=E("div"),Y=E("span");for(let W=0;W<w.length;W+=1)w[W].c();H=z(),O=E("button"),$=te("svg"),Z=te("path"),P(t,ge),P(a,X),P(e,K),P(h,Q),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(T,"class","SliderNavButton"),m(T,"part","SliderNavButton"),T.disabled=x=n[24]==0,le(T,"Hide",n[23].length<=3),m(Y,"class","Games"),ss(Y,"transform","translateX("+n[24]+"px)"),m(j,"class","Main"),m(Z,"stroke-linecap","round"),m(Z,"stroke-linejoin","round"),m(Z,"stroke-width","2"),m(Z,"d","M9 5l7 7-7 7"),m($,"fill","none"),m($,"stroke","currentColor"),m($,"viewBox","0 0 24 24"),m($,"xmlns","http://www.w3.org/2000/svg"),m(O,"class","SliderNavButton"),m(O,"part","SliderNavButton"),O.disabled=ee=n[24]<=-(n[23].length-3)*100,le(O,"Hide",n[23].length<=3),m(g,"class","BonusGamesSlider"),P(v,ue),P(c,q)},m(W,Ae){N(W,e,Ae),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(W,d,Ae),N(W,c,Ae),p(c,h),p(h,_),p(h,b),p(c,C),p(c,v),p(v,g),p(g,T),p(T,y),p(y,S),p(g,F),p(g,j),p(j,Y);for(let Ce=0;Ce<w.length;Ce+=1)w[Ce]&&w[Ce].m(Y,null);p(g,H),p(g,O),p(O,$),p($,Z),R||(k=[Te(T,"click",n[51]),Te(O,"click",n[55])],R=!0)},p(W,Ae){if(Ae[0]&33554432&&r!==(r=W[25]("bonusCard.roundNumber")+"")&&re(i,r,ge.contenteditable),Ae[0]&32&&l!==(l=W[5].numberOfFreeSpin+"")&&re(u,l,X.contenteditable),Ae[0]&33554432&&f!==(f=W[25]("bonusCard.game")+"")&&re(_,f,Q.contenteditable),Ae[0]&16777216&&x!==(x=W[24]==0)&&(T.disabled=x),Ae[0]&8388608&&le(T,"Hide",W[23].length<=3),Ae[0]&48234496|Ae[1]&7168){J=Re(W[23]);let Ce;for(Ce=0;Ce<J.length;Ce+=1){const it=Pa(W,J,Ce);w[Ce]?w[Ce].p(it,Ae):(w[Ce]=Na(it),w[Ce].c(),w[Ce].m(Y,null))}for(;Ce<w.length;Ce+=1)w[Ce].d(1);w.length=J.length}Ae[0]&16777216&&ss(Y,"transform","translateX("+W[24]+"px)"),Ae[0]&25165824&&ee!==(ee=W[24]<=-(W[23].length-3)*100)&&(O.disabled=ee),Ae[0]&8388608&&le(O,"Hide",W[23].length<=3)},d(W){W&&(I(e),I(d),I(c)),yt(w,W),R=!1,qe(k)}}}function Na(n){let e,t,r=n[25]("bonusCard.playNow")+"",i,o,s,a,l,u,d,c,h,f,_;function b(){return n[52](n[88])}function C(){return n[53](n[90])}return{c(){e=E("span"),t=E("span"),i=M(r),a=z(),l=E("img"),h=z(),m(t,"class",o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":"")),m(t,"part",s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":"")),os(l.src,u=n[88].thumbnail)||m(l,"src",u),m(l,"width","100px"),m(l,"height","75px"),m(l,"alt",d=n[88].name),m(l,"title",c=n[88].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||(_=[Te(e,"click",b),Te(e,"mouseenter",C),Te(e,"mouseleave",n[54])],f=!0)},p(v,g){n=v,g[0]&33554432&&r!==(r=n[25]("bonusCard.playNow")+"")&&me(i,r),g[0]&6291456&&o!==(o="PlayNowButton "+(n[21]&&n[22]==n[90]?"ItemHover":""))&&m(t,"class",o),g[0]&6291456&&s!==(s="PlayNowButton "+(n[21]&&n[22]==n[90]?"itemHover":""))&&m(t,"part",s),g[0]&8388608&&!os(l.src,u=n[88].thumbnail)&&m(l,"src",u),g[0]&8388608&&d!==(d=n[88].name)&&m(l,"alt",d),g[0]&8388608&&c!==(c=n[88].name)&&m(l,"title",c)},d(v){v&&I(e),f=!1,qe(_)}}}function La(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")],T={};for(let R=0;R<g.length;R+=1)T=D(T,g[R]);let y=[L("BonusCardRowText")],S={};for(let R=0;R<y.length;R+=1)S=D(S,y[R]);let x=[L("BonusCardRow")],F={};for(let R=0;R<x.length;R+=1)F=D(F,x[R]);let j=[L("BonusCardLabel")],Y={};for(let R=0;R<j.length;R+=1)Y=D(Y,j[R]);let H=n[5].wageringType==="money"&&Ha(n),O=[L("BonusCardRowText")],$={};for(let R=0;R<O.length;R+=1)$=D($,O[R]);let Z=[L("BonusCardRow")],ee={};for(let R=0;R<Z.length;R+=1)ee=D(ee,Z[R]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),d=z(),c=E("p"),h=E("span"),_=M(f),b=M(":"),C=z(),v=E("span"),H&&H.c(),P(t,T),P(a,S),P(e,F),P(h,Y),P(v,$),P(c,ee)},m(R,k){N(R,e,k),p(e,t),p(t,i),p(t,o),p(e,s),p(e,a),p(a,u),N(R,d,k),N(R,c,k),p(c,h),p(h,_),p(h,b),p(c,C),p(c,v),H&&H.m(v,null)},p(R,k){k[0]&33554432&&r!==(r=R[25]("bonusCard.wageringType")+"")&&re(i,r,T.contenteditable),k[0]&33554464&&l!==(l=R[25](`bonusCard.${R[5].wageringType}`)+"")&&re(u,l,S.contenteditable),k[0]&33554432&&f!==(f=R[25]("bonusCard.wagered")+"")&&re(_,f,Y.contenteditable),R[5].wageringType==="money"?H?H.p(R,k):(H=Ha(R),H.c(),H.m(v,null)):H&&(H.d(1),H=null)},d(R){R&&(I(e),I(d),I(c)),H&&H.d()}}}function Ha(n){let e;function t(o,s){return o[0]===ie.ACTIVE?Tb:xb}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 xb(n){let e=n[29](n[5])+n[17]+"",t,r,i;function o(l,u){return l[5].initialWagerRequirementAmount>=2147483647?Pb:Ab}let s=o(n),a=s(n);return{c(){t=M(e),r=M(` /
|
|
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]+"")&&me(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 Tb(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=M(e),r=z(),i=M(n[17]),o=M(` /
|
|
3576
|
+
`),a=M(s),l=z(),u=M(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])+"")&&me(t,e),h[0]&131072&&me(i,c[17]),h[0]&32&&s!==(s=((f=c[5].wageringProgress)==null?void 0:f.currentLevelIncrement)+"")&&me(a,s),h[0]&131072&&me(u,c[17])},d(c){c&&(I(t),I(r),I(i),I(o),I(a),I(l),I(u))}}}function Ab(n){let e=n[5].initialWagerRequirementAmount+n[17]+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&131104&&e!==(e=r[5].initialWagerRequirementAmount+r[17]+"")&&me(t,e)},d(r){r&&I(t)}}}function Pb(n){let e;return{c(){e=M("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Ra(n){var ge,ce;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((ce=(ge=n[5].wallet.standard)==null?void 0:ge.initialAmount)==null?void 0:ce.fixedAmount)+"",d,c,h,f,_,b=n[25]("bonusCard.wageringRequirement")+"",C,v,g,T,y=n[37](n[5])+n[17]+"",S,x=[L("BonusCardLabel")],F={};for(let X=0;X<x.length;X+=1)F=D(F,x[X]);let j=[L("BonusCardRowText")],Y={};for(let X=0;X<j.length;X+=1)Y=D(Y,j[X]);let H=[L("BonusCardRow")],O={};for(let X=0;X<H.length;X+=1)O=D(O,H[X]);let $=[L("BonusCardLabel")],Z={};for(let X=0;X<$.length;X+=1)Z=D(Z,$[X]);let ee=[L("BonusCardRowText")],R={};for(let X=0;X<ee.length;X+=1)R=D(R,ee[X]);let k=[L("BonusCardRow")],oe={};for(let X=0;X<k.length;X+=1)oe=D(oe,k[X]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),h=z(),f=E("p"),_=E("span"),C=M(b),v=M(":"),g=z(),T=E("span"),S=M(y),P(t,F),P(a,Y),P(e,O),P(_,Z),P(T,R),P(f,oe)},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,_),p(_,C),p(_,v),p(f,g),p(f,T),p(T,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)+"")&&me(d,u),ae[0]&131072&&me(c,X[17]),ae[0]&33554432&&b!==(b=X[25]("bonusCard.wageringRequirement")+"")&&re(C,b,Z.contenteditable),ae[0]&131104&&y!==(y=X[37](X[5])+X[17]+"")&&re(S,y,R.contenteditable)},d(X){X&&(I(e),I(h),I(f))}}}function Fa(n){var g,T;let e,t,r=n[25]("bonusCard.bonusAmount")+"",i,o,s,a,l,u=n[36]((T=(g=n[5].wallet.freeBet)==null?void 0:g.initialAmount)==null?void 0:T.fixedAmount)+"",d,c,h=[L("BonusCardLabel")],f={};for(let y=0;y<h.length;y+=1)f=D(f,h[y]);let _=[L("BonusCardRowText")],b={};for(let y=0;y<_.length;y+=1)b=D(b,_[y]);let C=[L("BonusCardRow")],v={};for(let y=0;y<C.length;y+=1)v=D(v,C[y]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),l=E("span"),d=M(u),c=M(n[17]),P(t,f),P(a,b),P(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)+"")&&me(d,u),S[0]&131072&&me(c,y[17])},d(y){y&&I(e)}}}function Ua(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=D(c,d[C]);let h=[L("BonusCardRowText")],f={};for(let C=0;C<h.length;C+=1)f=D(f,h[C]);let _=[L("BonusCardRow")],b={};for(let C=0;C<_.length;C+=1)b=D(b,_[C]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),u=M(l),P(t,c),P(a,f),P(e,b)},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 za(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=D(u,l[v]);function d(v,g){return v[8]>0?kb:Sb}let c=d(n),h=c(n),f=[L("BonusCardRowText")],_={};for(let v=0;v<f.length;v+=1)_=D(_,f[v]);let b=[L("BonusCardRow")],C={};for(let v=0;v<b.length;v+=1)C=D(C,b[v]);return{c(){e=E("p"),t=E("span"),i=M(r),o=M(":"),s=z(),a=E("span"),h.c(),P(t,u),P(a,_),P(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 Sb(n){let e;return{c(){e=M("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function kb(n){let e;return{c(){e=M(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&me(e,t[8])},d(t){t&&I(e)}}}function Va(n){let e,t,r=n[5].type==="standard"&&$a(n),i=n[5].type==="wagering"&&Wa(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=$a(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[5].type==="wagering"?i?i.p(o,s):(i=Wa(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 $a(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=D(o,i[l]);let s=[L("BonusCardProgress")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("div"),t=E("casino-bonus-progress"),P(t,o),P(e,a)},m(l,u){N(l,e,u),p(e,t)},p(l,u){P(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 Wa(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=D(f,h[x]);function _(x,F){return x[8]>0?Mb:Db}let b=_(n),C=b(n),v=[L("CircularProgressText")],g={};for(let x=0;x<v.length;x+=1)g=D(g,v[x]);let T=[L("BonusCardProgress")],y={};for(let x=0;x<T.length;x+=1)y=D(y,T[x]);return{c(){e=E("div"),t=E("casino-bonus-progress"),i=z(),o=E("div"),a=M(s),l=M(": "),d=M(u),c=M(` /
|
|
3577
|
+
`),C.c(),P(t,f),P(o,g),P(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;P(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===(b=_(x))&&C?C.p(x,F):(C.d(1),C=b(x),C&&(C.c(),C.m(o,null)))},d(x){x&&I(e),C.d()}}}function Db(n){let e;return{c(){e=M("∞")},m(t,r){N(t,e,r)},p:Me,d(t){t&&I(e)}}}function Mb(n){let e;return{c(){e=M(n[8])},m(t,r){N(t,e,r)},p(t,r){r[0]&256&&me(e,t[8])},d(t){t&&I(e)}}}function ja(n){let e,t,r,i,o,s,a=n[25]("bonusCard.rewards")+"",l,u,d,c,h,f,_=[L("BonusCardAdditionalTitle")],b={};for(let H=0;H<_.length;H+=1)b=D(b,_[H]);function C(H,O){return H[11]?Bb:Ob}let v=C(n),g=v(n),T=[L("BonusCardAdditionalButton")],y={};for(let H=0;H<T.length;H+=1)y=D(y,T[H]);let S=[L("BonusCardAdditionalHeader")],x={};for(let H=0;H<S.length;H+=1)x=D(x,S[H]);let F=n[11]&&Ga(n),j=[L("BonusCardAdditional")],Y={};for(let H=0;H<j.length;H+=1)Y=D(Y,j[H]);return{c(){e=E("div"),t=E("div"),r=E("span"),i=te("svg"),o=te("path"),s=z(),l=M(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"),P(r,b),P(d,y),P(t,x),le(t,"Active",n[11]),P(e,Y)},m(H,O){N(H,e,O),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=Te(t,"click",n[56]),h=!0)},p(H,O){O[0]&33554432&&a!==(a=H[25]("bonusCard.rewards")+"")&&re(l,a,b.contenteditable),v!==(v=C(H))&&(g.d(1),g=v(H),g&&(g.c(),g.m(d,null))),O[0]&2048&&le(t,"Active",H[11]),H[11]?F?F.p(H,O):(F=Ga(H),F.c(),F.m(e,null)):F&&(F.d(1),F=null)},d(H){H&&I(e),g.d(),F&&F.d(),h=!1,f()}}}function Bb(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 Ob(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 Ga(n){let e,t=n[5].type==="wagering"&&Ya(n),r=[L("BonusCardAdditionalContent")],i={};for(let o=0;o<r.length;o+=1)i=D(i,r[o]);return{c(){e=E("div"),t&&t.c(),P(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=Ya(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&I(e),t&&t.d()}}}function Ya(n){let e,t=n[5].levels.length>Number(n[4]),r;function i(l,u){if(l[5].status)return Nb;if(l[5].levels)return Ib}let o=i(n),s=o&&o(n),a=t&&Ja(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=Ja(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 Ib(n){let e,t=Re(n[5].levels.slice(0,n[4])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Xa(Ea(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=Ea(i,t,s);r[s]?r[s].p(a,o):(r[s]=Xa(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 Nb(n){let e,t=Re(n[40](n[5],n[7])),r=[];for(let i=0;i<t.length;i+=1)r[i]=Ka(Ta(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=Ta(i,t,s);r[s]?r[s].p(a,o):(r[s]=Ka(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 qa(n){let e=n[35](n[82],n[85])+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&48&&e!==(e=r[35](r[82],r[85])+"")&&me(t,e)},d(r){r&&I(t)}}}function Xa(n){let e,t,r=n[25]("bonusCard.level")+"",i,o,s=n[34](n[5].levels,n[84])+"",a,l,u,d,c,h=[L("BonusRewardsLevelsItemPosition")],f={};for(let g=0;g<h.length;g+=1)f=D(f,h[g]);let _=Re(n[82].bonuses),b=[];for(let g=0;g<_.length;g+=1)b[g]=qa(xa(n,_,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=D(v,C[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=z(),a=M(s),l=M(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),P(t,f),P(e,v)},m(g,T){N(g,e,T),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<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,T){if(T[0]&33554432&&r!==(r=g[25]("bonusCard.level")+"")&&re(i,r,f.contenteditable),T[0]&32&&s!==(s=g[34](g[5].levels,g[84])+"")&&re(a,s,f.contenteditable),T[0]&48|T[1]&16){_=Re(g[82].bonuses);let y;for(y=0;y<_.length;y+=1){const S=xa(g,_,y);b[y]?b[y].p(S,T):(b[y]=qa(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&I(e),yt(b,g)}}}function Za(n){let e=n[79]+"",t;return{c(){t=M(e)},m(r,i){N(r,t,i)},p(r,i){i[0]&160&&e!==(e=r[79]+"")&&me(t,e)},d(r){r&&I(t)}}}function Ka(n){let e,t,r=n[25](`bonusCard.${n[76].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=D(f,h[g]);let _=Re(n[76].desc),b=[];for(let g=0;g<_.length;g+=1)b[g]=Za(Aa(n,_,g));let C=[L("BonusRewardsLevelsItem")],v={};for(let g=0;g<C.length;g+=1)v=D(v,C[g]);return{c(){e=E("p"),t=E("span"),i=M(r),o=z(),a=M(s),l=M(":"),u=z(),d=E("span");for(let g=0;g<b.length;g+=1)b[g].c();c=z(),P(t,f),P(e,v)},m(g,T){N(g,e,T),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<b.length;y+=1)b[y]&&b[y].m(d,null);p(e,c)},p(g,T){if(T[0]&33554592&&r!==(r=g[25](`bonusCard.${g[76].label}`)+"")&&re(i,r,f.contenteditable),T[0]&33554432&&s!==(s=g[25]("bonusCard.level")+"")&&re(a,s,f.contenteditable),T[0]&160|T[1]&512){_=Re(g[76].desc);let y;for(y=0;y<_.length;y+=1){const S=Aa(g,_,y);b[y]?b[y].p(S,T):(b[y]=Za(S),b[y].c(),b[y].m(d,null))}for(;y<b.length;y+=1)b[y].d(1);b.length=_.length}},d(g){g&&I(e),yt(b,g)}}}function Ja(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=D(a,s[l]);return{c(){e=E("a"),r=M(t),P(e,a)},m(l,u){N(l,e,u),p(e,r),i||(o=Te(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 Lb(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"}],_={};for(let v=0;v<f.length;v+=1)_=D(_,f[v]);let b=[L("BonusCardTerms")],C={};for(let v=0;v<b.length;v+=1)C=D(C,b[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=M(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"),P(t,_),P(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,_.contenteditable),P(t,_=ke(f,[L("BonusCardTermsLink"),g[0]&1048576&&{href:v[20]},{target:"__blank"}]))},d(v){v&&I(e)}}}function Hb(n){let e,t,r,i,o,s,a,l,u,d,c,h=n[25]("bonusCard.terms")+"",f,_,b,C,v,g,T=[L("BonusCardTermsTitle")],y={};for(let R=0;R<T.length;R+=1)y=D(y,T[R]);function S(R,k){return R[12]?Rb:Fb}let x=S(n),F=x(n),j=[L("BonusCardTermsButton")],Y={};for(let R=0;R<j.length;R+=1)Y=D(Y,j[R]);let H=[L("BonusCardTermsHeader")],O={};for(let R=0;R<H.length;R+=1)O=D(O,H[R]);let $=n[12]&&Qa(n),Z=[L("BonusCardTerms")],ee={};for(let R=0;R<Z.length;R+=1)ee=D(ee,Z[R]);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=M(h),_=z(),b=E("span"),F.c(),C=z(),$&&$.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"),P(r,y),P(b,Y),P(t,O),le(t,"Active",n[12]),P(e,ee)},m(R,k){N(R,e,k),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,_),p(t,b),F.m(b,null),p(e,C),$&&$.m(e,null),v||(g=Te(t,"click",n[57]),v=!0)},p(R,k){k[0]&33554432&&h!==(h=R[25]("bonusCard.terms")+"")&&re(f,h,y.contenteditable),x!==(x=S(R))&&(F.d(1),F=x(R),F&&(F.c(),F.m(b,null))),k[0]&4096&&le(t,"Active",R[12]),R[12]?$?$.p(R,k):($=Qa(R),$.c(),$.m(e,null)):$&&($.d(1),$=null)},d(R){R&&I(e),F.d(),$&&$.d(),v=!1,g()}}}function Rb(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 Fb(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=D(s,o[a]);return{c(){e=E("div"),e.innerHTML="",P(e,s)},m(a,l){N(a,e,l),r||(i=Yd(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 el(n){let e,t,r,i=n[0]===ie.CLAIMABLE&&tl(n),o=n[0]===ie.ACTIVE&&n[5].status===ie.ACTIVE&&rl(n),s=[L("BonusCardActionContent")],a={};for(let d=0;d<s.length;d+=1)a=D(a,s[d]);let l=[L("BonusCardAction")],u={};for(let d=0;d<l.length;d+=1)u=D(u,l[d]);return{c(){e=E("div"),t=E("div"),i&&i.c(),r=z(),o&&o.c(),P(t,a),P(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]===ie.CLAIMABLE?i?i.p(d,c):(i=tl(d),i.c(),i.m(t,r)):i&&(i.d(1),i=null),d[0]===ie.ACTIVE&&d[5].status===ie.ACTIVE?o?o.p(d,c):(o=rl(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 tl(n){let e,t,r,i,o,s,a,l,u,d=n[25]("bonusCard.join")+"",c,h,f,_,b=n[15]===!0&&nl(n),C=[L("BonusCardJoinCountdown")],v={};for(let x=0;x<C.length;x+=1)v=D(v,C[x]);let g=[L("BonusJoinButton"),{type:"button"},{disabled:h=!n[13]}],T={};for(let x=0;x<g.length;x+=1)T=D(T,g[x]);let y=[L("BonusCardJoinWrapper")],S={};for(let x=0;x<y.length;x+=1)S=D(S,y[x]);return{c(){e=E("div"),b&&b.c(),t=z(),r=E("span"),i=te("svg"),o=te("path"),s=z(),a=M(n[19]),l=z(),u=E("button"),c=M(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"),P(r,v),P(u,T),P(e,S)},m(x,F){N(x,e,F),b&&b.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||(_=Te(u,"click",n[26]),f=!0)},p(x,F){x[15]===!0?b?b.p(x,F):(b=nl(x),b.c(),b.m(e,t)):b&&(b.d(1),b=null),F[0]&524288&&re(a,x[19],v.contenteditable),F[0]&33554432&&d!==(d=x[25]("bonusCard.join")+"")&&re(c,d,T.contenteditable),P(u,T=ke(g,[L("BonusJoinButton"),{type:"button"},F[0]&8192&&h!==(h=!x[13])&&{disabled:h}]))},d(x){x&&I(e),b&&b.d(),f=!1,_()}}}function nl(n){let e,t=n[25]("bonusCard.error")+"",r,i=[L("BonusCardJoinError")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("span"),r=M(t),P(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 rl(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=D(l,a[u]);return{c(){e=E("button"),r=M(t),P(e,l)},m(u,d){N(u,e,d),p(e,r),e.autofocus&&e.focus(),o||(s=Te(e,"click",n[27]),o=!0)},p(u,d){d[0]&33554432&&t!==(t=u[25]("bonusCard.forfeit")+"")&&re(r,t,l.contenteditable),P(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 Ub(n){let e,t=n[5]&&Sa(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=Sa(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 zb(n,e,t){let r;Al(n,ru,A=>t(25,r=A));let{rawbonus:i=""}=e,{lang:o="en"}=e,{status:s=""}=e,{mbsource:a}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{cmsendpoint:d=""}=e,{translationurl:c=""}=e,{levelcountlimit:h=""}=e,{currency:f=""}=e,_=null,b=[],C,v=!1,g=!1,T=!1,y=!1,S=!0,x=!1,F=!1,j={},Y,H,O="",$=1e3*30,Z,ee,R="",k=!1,oe,ge=[],ce=0,X=!1;const ae=()=>{fetch(c).then(U=>U.json()).then(U=>{Object.keys(U).forEach(ne=>{xr(ne,U[ne])})}).catch(U=>{console.log(U)})};Object.keys(Tr).forEach(A=>{xr(A,Tr[A])});const K=A=>A.some(U=>Array.isArray(U==null?void 0:U.bonuses)&&U.bonuses.length>0);Fr(()=>(window.addEventListener("message",Be,!1),()=>{window.removeEventListener("message",Be)}));const se=()=>{var A,U;try{t(5,_=JSON.parse(i))}catch(ne){t(5,_=null)}_&&(t(17,Y=Ca(_.currency||f)),t(7,b=J(_.levels||((U=(A=_.wallet)==null?void 0:A.wagering)==null?void 0:U.levels))),t(10,g=_.type==="wagering"&&K(b)),g||t(11,T=!1),_.type==="freeRound"&&t(23,ge=Q(_.freeSpin)),it())},Q=A=>{if(!A||!A.vendorGamesDetail)return[];let U=[];return Object.keys(A.vendorGamesDetail).length>0&&Object.keys(A.vendorGamesDetail).forEach(ne=>{U=A.vendorGamesDetail[ne]}),U},J=A=>{if(!A)return[];const U=[];let ne=!1;return A.map((he,we)=>{const ft=he,{maxRepeats:xe,completedTime:Ge}=ft,Qe=rs(ft,["maxRepeats","completedTime"]);xe===0&&(ne=!0,U.push(pt({},Qe)));for(let We=0;We<xe;We++)U.push(pt({},Qe))}),ne?t(8,C=0):t(8,C=U.length),U},w=()=>{t(13,S=!1),t(15,F=!1),window.postMessage({type:"OnBonusClaimed",bonusCode:_.code})},B=()=>{t(13,S=!1),window.postMessage({type:"OnBonusForfeit",bonus:_})},ue=()=>{window.postMessage({type:"OnWageringBonusAllRewardsClick",bonusWalletID:_.id})},Be=A=>{switch(A.data.type){case"OnBonusClaimedDone":t(13,S=!0);break;case"OnBonusForfeitedDone":t(13,S=!0);break;case"OnBonusClaimError":A.data.bonusCode===_.code&&t(15,F=!0);break}},q=(A,U)=>({remainder:A%U,quotient:Math.floor(A/U)}),W=A=>{const U=new Date;return new Date(A).getTime()-U.getTime()},Ae=A=>{const U=W(A)/6e4,{quotient:ne,remainder:he}=q(U,1440),{quotient:we,remainder:xe}=q(he,60),Ge=Math.floor(xe),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(" ")},Ce=(A,U,ne,he)=>{const we=W(A);we<0?ne():(he(Ae(A)),we<U&&setTimeout(()=>{window.postMessage({type:"OnWageringBonusExpired"})},we))},it=()=>{var he;if(!_)return;const A=(we,xe,Ge)=>{Ce(we,$,()=>xe(Ge),xe)},U=r("bonusCard.expired"),ne=_.endTime||((he=_.trigger)==null?void 0:he.endTime);ne&&A(ne,we=>{t(19,O=we),t(18,H=we)},U),_.expiryDate&&A(_.expiryDate,we=>t(18,H=we),U)},Je=A=>{let U=(A.initialWagerRequirementAmount-A.remainingWagerRequirementAmount).toFixed(2);return A.status===ie.RELEASED&&A.type==="wagering"&&(U=(Number(U)+A.remainingAmount).toFixed(2)),parseFloat(U).toString()},Et=A=>{var U,ne;return(((U=A.wageringProgress)==null?void 0:U.currentLevelIncrement)-((ne=A.wageringProgress)==null?void 0:ne.gap)).toFixed(2)},ht=A=>{var he,we,xe;let U,ne;return A.type==="wagering"&&A.status===ie.ACTIVE&&A.wageringType==="money"?(ne=(he=A.wageringProgress)==null?void 0:he.currentLevelIncrement,ne!=0&&(U=((((we=A.wageringProgress)==null?void 0:we.currentLevelIncrement)-((xe=A.wageringProgress)==null?void 0:xe.gap))/ne*100).toFixed(2))):A.status===ie.RELEASED?U=100:(ne=A.initialWagerRequirementAmount,ne!=0&&(U=((A.initialWagerRequirementAmount-A.remainingWagerRequirementAmount)/ne*100).toFixed(2))),Number(U)},$e=A=>{if(!A.wallet)return"";const U=["freeBet","freeRound"].includes(A.type)?A.wallet[A.type]:A.wallet,{validityMinutes:ne,expiryTime:he}=U;if(ne===0)return he?xn(new Date(he),"yyyy-MM-dd HH:mm:ss"):r("bonusCard.infinite");const we=Math.round(ne/1440);return`${we} ${r(we===1?"bonusCard.day":"bonusCard.days")}`},xt=A=>{if(A.products)return A.products;{let U=[];return A.wallet&&(A.wallet.casino&&U.push("Casino"),A.wallet.sports&&U.push("Sports")),U}},V=(A,U)=>{const ne=r(`bonusType.${U.type}`),he=Ca(U.amountCurrency||_.currency||f);return U.mode==="percentage"?`${U.bonusAmount*100}% ${r("bonusCard.upTo")} ${he}${U.capAmount} ${ne}`:U.mode==="fixed"?`${he}${U.bonusAmount} ${ne}`:ne},ve=(A,U)=>{const ne=Qe=>Qe===0?0:A.slice(0,Qe).reduce((ft,We)=>ft+We.maxRepeats,0),he=A[U],xe=ne(U)+1,Ge=xe+he.maxRepeats-1;return he.maxRepeats>1?`${xe}-${Ge}`:`${U+1}`},Xn=(A,U)=>{switch(U.type){case"standard":case"freeBet":return V(A,U);case"freeRound":return r("bonusCard.freeSpins",{values:{count:U.freespinNumber}});case"tournamentTicket":case"oddsBoost":case"cashBack":case"stakeBack":return r("bonusCard.enrollTo",{values:{name:r(`bonusType.${U.type}`)}});default:return""}},Zn=A=>{var U,ne;return Number((ne=(U=A==null?void 0:A[f])!=null?U:A==null?void 0:A.EUR)!=null?ne:0)},ai=A=>{var he,we,xe,Ge;const U=Zn((xe=(we=(he=A.wallet)==null?void 0:he.standard)==null?void 0:we.initialAmount)==null?void 0:xe.fixedAmount),ne=((Ge=A.wallet)==null?void 0:Ge.wageringRequirementCoefficient)||0;return Number((U*ne).toFixed(2))},li=A=>{var he,we,xe;const U=(we=(he=A.wallet)==null?void 0:he.freeRound)==null?void 0:we.vendor;if(!U)return 0;const ne=Object.keys(U)[0];return((xe=U[ne])==null?void 0:xe.roundNumber)||0},ui=A=>A===void 0?"":xn(new Date(A),"yyyy-MM-dd HH:mm:ss"),di=(A,U)=>{var Ge,Qe,ft;const ne=((Ge=A.wageringProgress)==null?void 0:Ge.currentLevel)-1||0,he=U.length-1,we=((ft=(Qe=A.levels)==null?void 0:Qe[0])==null?void 0:ft.maxRepeats)===0,xe=We=>We.filter(hn=>hn.index>=0&&hn.index<=he||we).map(hn=>{const nr=U[hn.index]||U[0];return{label:hn.label,desc:((nr==null?void 0:nr.bonuses)||[]).map(Vd=>Xn(nr,Vd))}});switch(A.status){case ie.ACTIVE:return xe([{label:"current",index:ne},{label:"next",index:ne+1}]);case void 0:case null:case"":return xe([{label:"first",index:0},{label:"next",index:1}]);default:return xe([{label:"last",index:he},{label:"previous",index:he-1}])}},ci=A=>{var U,ne;t(20,R=A.url?A.url:(ne=(U=A.presentation)==null?void 0:U.url)==null?void 0:ne.content)},Kn=A=>{window.postMessage({type:"BonusGameAction",gameId:A.id,name:A.name,gameLaunchUrl:A.href},window.location.href)},Jn=A=>{t(21,k=!0),t(22,oe=A)},Qn=()=>{t(21,k=!1),t(22,oe=-1)},hi=A=>{fetch(`${d}/${o}/bonuses-information/${A}`).then(U=>U.json()).then(U=>{U&&U[A]&&(t(14,x=!0),t(16,j=U[A]))})},G=(A,U)=>{const ne=document.createElement("div");ne.innerHTML=U,A.append(ne)},Pe=()=>t(24,ce+=300),He=A=>Kn(A),Tt=A=>Jn(A),cn=()=>Qn(),er=()=>t(24,ce-=300),fi=()=>{t(11,T=!T)},zd=()=>{t(12,y=!y)};function tr(A){at[A?"unshift":"push"](()=>{Z=A,t(6,Z)})}return n.$$set=A=>{"rawbonus"in A&&t(45,i=A.rawbonus),"lang"in A&&t(46,o=A.lang),"status"in A&&t(0,s=A.status),"mbsource"in A&&t(1,a=A.mbsource),"clientstyling"in A&&t(2,l=A.clientstyling),"clientstylingurl"in A&&t(3,u=A.clientstylingurl),"cmsendpoint"in A&&t(47,d=A.cmsendpoint),"translationurl"in A&&t(48,c=A.translationurl),"levelcountlimit"in A&&t(4,h=A.levelcountlimit),"currency"in A&&t(49,f=A.currency)},n.$$.update=()=>{n.$$.dirty[0]&1&&(s===ie.CLAIMABLE&&t(9,v=!0),s===ie.ACTIVE&&t(9,v=!0)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&t(50,X=!!(i&&o&&s)),n.$$.dirty[0]&1|n.$$.dirty[1]&49152&&i&&o&&s&&se(),n.$$.dirty[0]&32|n.$$.dirty[1]&622592&&X&&_&&(o&&iu(o),d?hi(_.bonusId||_.id):ci(_)),n.$$.dirty[0]&68&&l&&Z&&Xr(Z,l),n.$$.dirty[0]&72&&u&&Z&&Zr(Z,u),n.$$.dirty[0]&66&&a&&Z&&Kr(Z,`${a}.Style`,ee),n.$$.dirty[1]&131072&&c&&ae()},[s,a,l,u,h,_,Z,b,C,v,g,T,y,S,x,F,j,Y,H,O,R,k,oe,ge,ce,r,w,B,ue,Je,Et,ht,$e,xt,ve,Xn,Zn,ai,li,ui,di,Kn,Jn,Qn,G,i,o,d,c,f,X,Pe,He,Tt,cn,er,fi,zd,tr]}class Vb extends Vr{constructor(e){super(),Ur(this,e,zb,Ub,zn,{rawbonus:45,lang:46,status:0,mbsource:1,clientstyling:2,clientstylingurl:3,cmsendpoint:47,translationurl:48,levelcountlimit:4,currency:49},pb,[-1,-1,-1])}get rawbonus(){return this.$$.ctx[45]}set rawbonus(e){this.$$set({rawbonus:e}),de()}get lang(){return this.$$.ctx[46]}set lang(e){this.$$set({lang:e}),de()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),de()}get mbsource(){return this.$$.ctx[1]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get cmsendpoint(){return this.$$.ctx[47]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[4]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get currency(){return this.$$.ctx[49]}set currency(e){this.$$set({currency:e}),de()}}customElements.define("casino-bonus-card",zr(Vb,{rawbonus:{},lang:{},status:{},mbsource:{},clientstyling:{},clientstylingurl:{},cmsendpoint:{},translationurl:{},levelcountlimit:{},currency:{}},[],[],!0));function $b({totalItems:n,pageSize:e,currentPage:t,limit:r}){const i=Math.ceil(n/e),s=r&&i>Gb(r)?jb({totalPages:i,limit:r,currentPage:t}):Wb({totalPages:i});return[{type:"symbol",symbol:"<",value:t<=1?1:t-1},...s||[],{type:"symbol",symbol:">",value:t>=i?i:t+1}]}function Wb({totalPages:n}){return new Array(n).fill(null).map((e,t)=>({type:"number",value:t+1}))}function jb({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 Gb(n){return n*2+3+2}function Yb(n){Rr(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 il(n,e,t){const r=n.slice();return r[29]=e[t],r}const qb=n=>({}),ol=n=>({}),Xb=n=>({}),sl=n=>({}),Zb=n=>({}),al=n=>({}),Kb=n=>({value:n[0]&32}),ll=n=>({value:n[29].value});function Jb(n){let e;const t=n[21].next,r=Vn(t,n,n[20],ol),i=r||nv();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?$n(t,o[20],s,qb):jn(o[20]),ol)},i(o){e||(Ze(i,o),e=!0)},o(o){dt(i,o),e=!1},d(o){i&&i.d(o)}}}function Qb(n){let e;const t=n[21].prev,r=Vn(t,n,n[20],sl),i=r||rv();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?$n(t,o[20],s,Xb):jn(o[20]),sl)},i(o){e||(Ze(i,o),e=!0)},o(o){dt(i,o),e=!1},d(o){i&&i.d(o)}}}function ev(n){let e;const t=n[21].ellipsis,r=Vn(t,n,n[20],al),i=r||iv();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?$n(t,o[20],s,Zb):jn(o[20]),al)},i(o){e||(Ze(i,o),e=!0)},o(o){dt(i,o),e=!1},d(o){i&&i.d(o)}}}function tv(n){let e;const t=n[21].number,r=Vn(t,n,n[20],ll),i=r||ov(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?$n(t,o[20],s,Kb):jn(o[20]),ll):i&&i.p&&(!e||s[0]&32)&&i.p(o,e?s:[-1,-1])},i(o){e||(Ze(i,o),e=!0)},o(o){dt(i,o),e=!1},d(o){i&&i.d(o)}}}function nv(n){let e;return{c(){e=M(">")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function rv(n){let e;return{c(){e=M("<")},m(t,r){N(t,e,r)},d(t){t&&I(e)}}}function iv(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 ov(n){let e,t=n[29].value+"",r;return{c(){e=E("span"),r=M(t)},m(i,o){N(i,e,o),p(e,r)},p(i,o){o[0]&32&&t!==(t=i[29].value+"")&&me(r,t)},d(i){i&&I(e)}}}function ul(n){let e,t,r,i,o,s,a,l;const u=[tv,ev,Qb,Jb],d=[];function c(f,_){return f[29].type==="number"?0:f[29].type==="symbol"&&f[29].symbol==="."?1:f[29].type==="symbol"&&f[29].symbol==="<"?2:f[29].type==="symbol"&&f[29].symbol===">"?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===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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==="<"),le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&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,_){N(f,e,_),~t&&d[t].m(e,null),p(e,i),s=!0,a||(l=Te(e,"click",h),a=!0)},p(f,_){n=f;let b=t;t=c(n),t===b?~t&&d[t].p(n,_):(r&&(Dl(),dt(d[b],1,1,()=>{d[b]=null}),Ml()),~t?(r=d[t],r?r.p(n,_):(r=d[t]=u[t](n),r.c()),Ze(r,1),r.m(e,i)):r=null),(!s||_[0]&98&&o!==(o=n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1))&&(e.disabled=o),(!s||_[0]&32)&&le(e,"number",n[29].type==="number"),(!s||_[0]&32)&&le(e,"prev",n[29].type==="symbol"&&n[29].symbol==="<"),(!s||_[0]&32)&&le(e,"next",n[29].type==="symbol"&&n[29].symbol===">"),(!s||_[0]&98)&&le(e,"disabled",n[29].type==="symbol"&&n[29].symbol===">"&&n[1]>=n[6]||n[29].type==="symbol"&&n[29].symbol==="<"&&n[1]<=1),(!s||_[0]&32)&&le(e,"ellipsis",n[29].type==="symbol"&&n[29].symbol==="."),(!s||_[0]&34)&&le(e,"active",n[29].type==="number"&&n[29].value===n[1])},i(f){s||(Ze(r),s=!0)},o(f){dt(r),s=!1},d(f){f&&I(e),~t&&d[t].d(),a=!1,l()}}}function dl(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),yr(i,n[3]),p(e,o),p(e,s),a||(l=[Te(i,"input",n[23]),Te(i,"change",n[24]),Te(s,"click",n[25])],a=!0)},p(u,d){d[0]&8&&kl(i.value)!==u[3]&&yr(i,u[3])},d(u){u&&I(e),a=!1,qe(l)}}}function sv(n){let e,t,r,i,o,s,a=Re(n[5]),l=[];for(let c=0;c<a.length;c+=1)l[c]=ul(il(n,a,c));const u=c=>dt(l[c],1,1,()=>{l[c]=null});let d=n[7]&&dl(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 _=il(c,a,f);l[f]?(l[f].p(_,h),Ze(l[f],1)):(l[f]=ul(_),l[f].c(),Ze(l[f],1),l[f].m(t,null))}for(Dl(),f=a.length;f<l.length;f+=1)u(f);Ml()}(!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=dl(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)dt(l[h]);s=!1},d(c){c&&I(e),yt(l,c),d&&d.d(),n[26](null)}}}function av(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:_=""}=e,{mbsource:b}=e,{clientstyling:C=""}=e,{clientstylingurl:v=""}=e,g=window.navigator.userAgent,T,y=!1,S;cu(g)&&(y=!0);let x,F,j;const Y=k=>{window.postMessage({type:"PaginationChange",page:k.value})},H=k=>{t(4,F=k>a?a:k)};Fr(()=>()=>{});const O=k=>Y(k);function $(){x=kl(this.value),t(3,x)}const Z=()=>H(x),ee=()=>Y({value:F});function R(k){at[k?"unshift":"push"](()=>{S=k,t(0,S)})}return n.$$set=k=>{"totalitems"in k&&t(10,d=k.totalitems),"pagesize"in k&&t(11,c=k.pagesize),"currentpage"in k&&t(12,h=k.currentpage),"limit"in k&&t(13,f=k.limit),"showinput"in k&&t(14,_=k.showinput),"mbsource"in k&&t(15,b=k.mbsource),"clientstyling"in k&&t(16,C=k.clientstyling),"clientstylingurl"in k&&t(17,v=k.clientstylingurl),"$$scope"in k&&t(20,u=k.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65537&&C&&S&&Xr(S,C),n.$$.dirty[0]&131073&&v&&S&&Zr(S,v),n.$$.dirty[0]&32769&&b&&S&&Kr(S,`${b}.Style`,T),n.$$.dirty[0]&1024&&t(19,r=Number(d)),n.$$.dirty[0]&16384&&t(7,i=_),n.$$.dirty[0]&4096&&t(1,o=Number(h)),n.$$.dirty[0]&2048&&t(18,s=c),n.$$.dirty[0]&794626&&t(5,j=$b({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,Y,H,d,c,h,f,_,b,C,v,s,r,u,l,O,$,Z,ee,R]}class lv extends Vr{constructor(e){super(),Ur(this,e,av,sv,zn,{totalitems:10,pagesize:11,currentpage:12,limit:13,showinput:14,mbsource:15,clientstyling:16,clientstylingurl:17},Yb,[-1,-1])}get totalitems(){return this.$$.ctx[10]}set totalitems(e){this.$$set({totalitems:e}),de()}get pagesize(){return this.$$.ctx[11]}set pagesize(e){this.$$set({pagesize:e}),de()}get currentpage(){return this.$$.ctx[12]}set currentpage(e){this.$$set({currentpage:e}),de()}get limit(){return this.$$.ctx[13]}set limit(e){this.$$set({limit:e}),de()}get showinput(){return this.$$.ctx[14]}set showinput(e){this.$$set({showinput:e}),de()}get mbsource(){return this.$$.ctx[15]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}}customElements.define("casino-bonus-pagination",zr(lv,{totalitems:{},pagesize:{},currentpage:{},limit:{},showinput:{},mbsource:{},clientstyling:{},clientstylingurl:{}},["number","ellipsis","prev","next"],[],!0));function si(t){return Fe(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 uv(n,e,t){return Fe(this,null,function*(){const r=`${n}${oi.CLAIM}`;return si(r,{method:"PUT",headers:{"x-SessionId":e,accept:"application/json","Content-Type":"application/json-patch+json"},body:JSON.stringify(t)})})}function dv(n,e,t){return Fe(this,null,function*(){const r=new URL(`${n}${oi.FORFEIT}`);return r.searchParams.append("bonusWalletID",t.bonusWalletID),si(r,{method:"DELETE",headers:{"x-SessionId":e,accept:"application/json"}})})}function cv(n,e,t){return Fe(this,null,function*(){const r=new URL(`${n}${oi.GRANTED}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),si(r,{headers:i})})}function hv(n,e,t){return Fe(this,null,function*(){const r=new URL(`${n}${oi.CLAIMABLE}`);Object.entries(t).forEach(([o,s])=>{s!=null&&r.searchParams.append(o,String(s))});const i={};return e&&(i["x-SessionId"]=e),si(r,{headers:i})})}function fv(n){Rr(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 cl(n,e,t){const r=n.slice();return r[66]=e[t],r}function hl(n,e,t){const r=n.slice();return r[69]=e[t],r}function fl(n){let e,t=n[29](`bonusCard.${n[69]}`)+"",r,i,o,s,a=[{type:"button"},n[28]("BonusStatusFilter"),{disabled:n[13]}],l={};for(let d=0;d<a.length;d+=1)l=D(l,a[d]);function u(){return n[47](n[69])}return{c(){e=E("button"),r=M(t),i=z(),P(e,l),le(e,"active",n[69]===n[25])},m(d,c){N(d,e,c),p(e,r),p(e,i),e.autofocus&&e.focus(),o||(s=Te(e,"click",u),o=!0)},p(d,c){n=d,c[0]&536870912&&t!==(t=n[29](`bonusCard.${n[69]}`)+"")&&re(r,t,l.contenteditable),P(e,l=ke(a,[{type:"button"},c[0]&268435456&&n[28]("BonusStatusFilter"),c[0]&8192&&{disabled:n[13]}])),le(e,"active",n[69]===n[25])},d(d){d&&I(e),o=!1,s()}}}function pv(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,T,y,S,x,F=n[29]("bonus.filter")+"",j,Y,H,O,$=[L("BonusCalendarTitle")],Z={};for(let q=0;q<$.length;q+=1)Z=D(Z,$[q]);let ee=[{min:n[30]},{max:n[31]},{value:n[23]},{placeholder:"From"},L("VaadinDatePicker")],R={};for(let q=0;q<ee.length;q+=1)R=D(R,ee[q]);let k=[n[28]("BonusCalendarStartDate")],oe={};for(let q=0;q<k.length;q+=1)oe=D(oe,k[q]);let ge=[{min:n[30]},{max:n[31]},{value:n[24]},{placeholder:"To"},L("VaadinDatePicker")],ce={};for(let q=0;q<ge.length;q+=1)ce=D(ce,ge[q]);let X=[n[28]("BonusCalendarEndDate")],ae={};for(let q=0;q<X.length;q+=1)ae=D(ae,X[q]);let K=[n[28]("BonusCalendarContainer")],se={};for(let q=0;q<K.length;q+=1)se=D(se,K[q]);let Q=[n[28]("BonusFilterButton"),{disabled:Y=n[13]||n[21]}],J={};for(let q=0;q<Q.length;q+=1)J=D(J,Q[q]);let w=[L("BonusCalendarContent")],B={};for(let q=0;q<w.length;q+=1)B=D(B,w[q]);let ue=[n[28]("BonusCalendarWrapper")],Be={};for(let q=0;q<ue.length;q+=1)Be=D(Be,ue[q]);return{c(){e=E("div"),t=E("div"),i=M(r),o=z(),s=E("div"),a=E("div"),l=E("div"),u=E("label"),c=M(d),h=z(),f=E("vaadin-date-picker"),_=z(),b=E("div"),C=E("label"),g=M(v),T=z(),y=E("vaadin-date-picker"),S=z(),x=E("button"),j=M(F),P(t,Z),m(u,"for","BonusCalendarStartDate"),P(f,R),P(l,oe),m(C,"for","BonusCalendarEndDate"),P(y,ce),P(b,ae),P(a,se),P(x,J),P(s,B),P(e,Be)},m(q,W){N(q,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[50](f),p(a,_),p(a,b),p(b,C),p(C,g),p(b,T),p(b,y),n[51](y),p(s,S),p(s,x),p(x,j),x.autofocus&&x.focus(),H||(O=[Te(f,"validated",n[37]),Te(y,"validated",n[37]),Te(x,"click",n[52])],H=!0)},p(q,W){W[0]&536870912&&r!==(r=q[29]("bonus.canlendarTitle")+"")&&re(i,r,Z.contenteditable),W[0]&536870912&&d!==(d=q[29]("bonus.from")+"")&&me(c,d),P(f,R=ke(ee,[{min:q[30]},{max:q[31]},W[0]&8388608&&{value:q[23]},{placeholder:"From"},L("VaadinDatePicker")])),P(l,oe=ke(k,[W[0]&268435456&&q[28]("BonusCalendarStartDate")])),W[0]&536870912&&v!==(v=q[29]("bonus.to")+"")&&me(g,v),P(y,ce=ke(ge,[{min:q[30]},{max:q[31]},W[0]&16777216&&{value:q[24]},{placeholder:"To"},L("VaadinDatePicker")])),P(b,ae=ke(X,[W[0]&268435456&&q[28]("BonusCalendarEndDate")])),P(a,se=ke(K,[W[0]&268435456&&q[28]("BonusCalendarContainer")])),W[0]&536870912&&F!==(F=q[29]("bonus.filter")+"")&&re(j,F,J.contenteditable),P(x,J=ke(Q,[W[0]&268435456&&q[28]("BonusFilterButton"),W[0]&2105344&&Y!==(Y=q[13]||q[21])&&{disabled:Y}])),P(e,Be=ke(ue,[W[0]&268435456&&q[28]("BonusCalendarWrapper")]))},d(q){q&&I(e),n[50](null),n[51](null),H=!1,qe(O)}}}function mv(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")}],T={};for(let O=0;O<g.length;O+=1)T=D(T,g[O]);let y=[n[28]("BonusClaimButton"),{disabled:_=n[19]||!n[26]}],S={};for(let O=0;O<y.length;O+=1)S=D(S,y[O]);let x=[n[28]("BonusCodeWrapper")],F={};for(let O=0;O<x.length;O+=1)F=D(F,x[O]);let j=n[20]&&pl(n),Y=[n[28]("BonusCodeContainer")],H={};for(let O=0;O<Y.length;O+=1)H=D(H,Y[O]);return{c(){e=E("div"),t=E("label"),r=E("span"),r.textContent="*",o=M(i),s=z(),a=E("div"),l=E("input"),d=z(),c=E("button"),f=M(h),b=z(),j&&j.c(),m(r,"class","Asterisk"),m(t,"for","BonusCode"),P(l,T),P(c,S),P(a,F),P(e,H)},m(O,$){N(O,e,$),p(e,t),p(t,r),p(t,o),p(e,s),p(e,a),p(a,l),l.autofocus&&l.focus(),yr(l,n[18]),p(a,d),p(a,c),p(c,f),c.autofocus&&c.focus(),p(e,b),j&&j.m(e,null),C||(v=[Te(l,"input",n[48]),Te(l,"keyup",n[36]),Te(c,"click",n[49])],C=!0)},p(O,$){$[0]&536870912&&i!==(i=O[29]("bonus.bonusCode")+"")&&me(o,i),P(l,T=ke(g,[$[0]&268435456&&O[28]("BonusCodeInput"),{type:"text"},{id:"BonusCode"},$[0]&536870912&&u!==(u=O[29]("bonus.placeholder"))&&{placeholder:u}])),$[0]&262144&&l.value!==O[18]&&yr(l,O[18]),$[0]&536870912&&h!==(h=O[29]("bonus.claim")+"")&&re(f,h,S.contenteditable),P(c,S=ke(y,[$[0]&268435456&&O[28]("BonusClaimButton"),$[0]&67633152&&_!==(_=O[19]||!O[26])&&{disabled:_}])),P(a,F=ke(x,[$[0]&268435456&&O[28]("BonusCodeWrapper")])),O[20]?j?j.p(O,$):(j=pl(O),j.c(),j.m(e,null)):j&&(j.d(1),j=null),P(e,H=ke(Y,[$[0]&268435456&&O[28]("BonusCodeContainer")]))},d(O){O&&I(e),j&&j.d(),C=!1,qe(v)}}}function pl(n){let e,t=n[29]("bonus.invalidBonusCode")+"",r;return{c(){e=E("p"),r=M(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")+"")&&me(r,t)},d(i){i&&I(e)}}}function _v(n){let e,t;function r(a,l){return a[12].length>0?yv:a[14]?vv:bv}let i=r(n),o=i(n),s=n[12].length!==0&&_l(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=_l(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 gv(n){let e,t=[L("ModalLoader")],r={};for(let i=0;i<t.length;i+=1)r=D(r,t[i]);return{c(){e=E("div"),P(e,r)},m(i,o){N(i,e,o)},p:Me,d(i){i&&I(e)}}}function bv(n){let e,t=n[29]("bonus.noBonus")+"",r;return{c(){e=E("span"),r=M(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")+"")&&me(r,t)},d(i){i&&I(e)}}}function vv(n){let e,t=n[29]("bonus.error")+"",r,i,o;return{c(){e=E("div"),r=M(t),i=M(": "),o=M(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")+"")&&me(r,t),a[0]&16384&&me(o,s[14])},d(s){s&&I(e)}}}function yv(n){let e,t=Re(n[12]),r=[];for(let s=0;s<t.length;s+=1)r[s]=ml(cl(n,t,s));let i=[L("BonusList")],o={};for(let s=0;s<i.length;s+=1)o=D(o,i[s]);return{c(){e=E("ul");for(let s=0;s<r.length;s+=1)r[s].c();P(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=cl(s,t,l);r[l]?r[l].p(u,a):(r[l]=ml(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 ml(n){let e,t,r,i=[{rawbonus:JSON.stringify(n[66]),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=D(o,i[l]);let s=[n[28]("BonusItem")],a={};for(let l=0;l<s.length;l+=1)a=D(a,s[l]);return{c(){e=E("li"),t=E("casino-bonus-card"),r=z(),P(t,o),P(e,a)},m(l,u){N(l,e,u),p(e,t),p(e,r)},p(l,u){P(t,o=ke(i,[u[0]&33559035&&{rawbonus:JSON.stringify(l[66]),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]}])),P(e,a=ke(s,[u[0]&268435456&&l[28]("BonusItem")]))},d(l){l&&I(e)}}}function _l(n){let e;return{c(){e=E("casino-bonus-pagination"),ze(e,"totalitems",n[16]),ze(e,"currentpage",n[15]),ze(e,"pagesize",n[2]),ze(e,"limit",n[17]),ze(e,"clientstyling",n[5]),ze(e,"clientstylingurl",n[6]),ze(e,"mbsource",n[4])},m(t,r){N(t,e,r)},p(t,r){r[0]&65536&&ze(e,"totalitems",t[16]),r[0]&32768&&ze(e,"currentpage",t[15]),r[0]&4&&ze(e,"pagesize",t[2]),r[0]&131072&&ze(e,"limit",t[17]),r[0]&32&&ze(e,"clientstyling",t[5]),r[0]&64&&ze(e,"clientstylingurl",t[6]),r[0]&16&&ze(e,"mbsource",t[4])},d(t){t&&I(e)}}}function gl(n){let e,t,r,i,o=n[29]("bonus.forfeitMessage")+"",s,a,l,u,d=n[29]("bonus.forfeitCancel")+"",c,h,f,_=n[29]("bonus.forfeitConfirm")+"",b,C,v,g=[L("ModalText")],T={};for(let k=0;k<g.length;k+=1)T=D(T,g[k]);let y=[L("ModalCancel")],S={};for(let k=0;k<y.length;k+=1)S=D(S,y[k]);let x=[L("ModalConfirm")],F={};for(let k=0;k<x.length;k+=1)F=D(F,x[k]);let j=[L("ModalButtons")],Y={};for(let k=0;k<j.length;k+=1)Y=D(Y,j[k]);let H=[L("ModalBody")],O={};for(let k=0;k<H.length;k+=1)O=D(O,H[k]);let $=[L("ModalContent")],Z={};for(let k=0;k<$.length;k+=1)Z=D(Z,$[k]);let ee=[n[28]("ModalWrapper")],R={};for(let k=0;k<ee.length;k+=1)R=D(R,ee[k]);return{c(){e=E("div"),t=E("div"),r=E("div"),i=E("p"),s=M(o),a=z(),l=E("div"),u=E("button"),c=M(d),h=z(),f=E("button"),b=M(_),P(i,T),P(u,S),P(f,F),P(l,Y),P(r,O),P(t,Z),P(e,R)},m(k,oe){N(k,e,oe),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,b),f.autofocus&&f.focus(),C||(v=[Te(u,"click",n[34]),Te(f,"click",n[53])],C=!0)},p(k,oe){oe[0]&536870912&&o!==(o=k[29]("bonus.forfeitMessage")+"")&&re(s,o,T.contenteditable),oe[0]&536870912&&d!==(d=k[29]("bonus.forfeitCancel")+"")&&re(c,d,S.contenteditable),oe[0]&536870912&&_!==(_=k[29]("bonus.forfeitConfirm")+"")&&re(b,_,F.contenteditable),P(e,R=ke(ee,[oe[0]&268435456&&k[28]("ModalWrapper")]))},d(k){k&&I(e),C=!1,qe(v)}}}function wv(n){let e,t,r,i,o,s,a=Re(ya),l=[];for(let y=0;y<a.length;y+=1)l[y]=fl(hl(n,a,y));let u=[n[28]("BonusFilterWrapper")],d={};for(let y=0;y<u.length;y+=1)d=D(d,u[y]);function c(y,S){if(y[25]===ie.CLAIMABLE)return mv;if(y[25]===ie.COMPLETED)return pv}let h=c(n),f=h&&h(n);function _(y,S){return y[13]?gv:_v}let b=_(n),C=b(n),v=n[22]&&gl(n),g=[L("BonusesController")],T={};for(let y=0;y<g.length;y+=1)T=D(T,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"),P(t,d),P(e,T)},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[54](e)},p(y,S){if(S[0]&838868992|S[1]&16){a=Re(ya);let x;for(x=0;x<a.length;x+=1){const F=hl(y,a,x);l[x]?l[x].p(F,S):(l[x]=fl(F),l[x].c(),l[x].m(r,null))}for(;x<l.length;x+=1)l[x].d(1);l.length=a.length}P(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===(b=_(y))&&C?C.p(y,S):(C.d(1),C=b(y),C&&(C.c(),C.m(e,s))),y[22]?v?v.p(y,S):(v=gl(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[54](null)}}}function Cv(n,e,t){let r,i,o;Al(n,ru,G=>t(29,o=G));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:_=""}=e,{translationurl:b=""}=e,{levelcountlimit:C="3"}=e,{onlyoneclick:v=!1}=e,{excludedtypes:g=""}=e,{filterbyselectable:T=!1}=e,y=window.navigator.userAgent,S=!1,x=[],F=!0,j="",Y="",H=1,O=0,$=2,Z=xn(Bs(new Date,eb),"yyyy-MM-dd"),ee=xn(new Date,"yyyy-MM-dd"),R=xn(Bs(new Date,tb),"yyyy-MM-dd"),k,oe,ge="",ce=!0,X=!1,ae=!1,K=!1,se=R,Q=ee,J,w,B=ie.ACTIVE,ue=!0,Be="";cu(y)&&(S=!0,$=1);let q=!1,W=g;const Ae=()=>{fetch(b).then(Pe=>Pe.json()).then(Pe=>{Object.keys(Pe).forEach(He=>{xr(He,Pe[He])})}).catch(Pe=>{console.log(Pe)})};Object.keys(Tr).forEach(G=>{xr(G,Tr[G])}),Fr(()=>(window.addEventListener("message",Ce,!1),t(44,q=!0),()=>{J==null||J.removeEventListener("change",V),w==null||w.removeEventListener("change",ve),window.removeEventListener("message",Ce),t(44,q=!1)}));const Ce=G=>{switch(G.data.type){case"PaginationChange":t(15,H=G.data.page),$e(H);break;case"OnBonusClaimed":Je(G.data.bonusCode);break;case"OnBonusForfeit":t(27,Be=G.data.bonus.id),t(22,K=!0);break}},it=()=>Fe(this,null,function*(){$e(1)}),Je=(G,Pe)=>Fe(this,null,function*(){t(26,ue=!1);const He=yield uv(s,l,{bonusCode:G,currency:u});if(!He.success){Y=He.errorMessage||"",Pe?t(20,X=!0):window.postMessage({type:"OnBonusClaimError",message:Y,bonusCode:G}),window.postMessage({type:"OnBonusClaimedDone"}),t(26,ue=!0);return}t(20,X=!1),$e(1),window.postMessage({type:"OnBonusClaimedDone"}),t(26,ue=!0)}),Et=G=>Fe(this,null,function*(){t(26,ue=!1);const Pe=yield dv(s,l,{bonusWalletID:G});if(!Pe.success){t(14,j=Pe.errorMessage||""),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,ue=!0),t(22,K=!1);return}$e(1),window.postMessage({type:"OnBonusForfeitedDone"}),t(26,ue=!0),t(22,K=!1)}),ht=()=>{window.postMessage({type:"EnableScroll"},window.location.href),window.postMessage({type:"OnBonusForfeitedDone"}),t(22,K=!1)},$e=G=>Fe(this,null,function*(){H!==G&&t(15,H=G);const Pe=(G-1)*Number(d);t(13,F=!0),t(12,x=[]);const He=yield xt(s,l,Pe,{lang:a,limit:d});if(!He.success){t(14,j=He.errorMessage),t(13,F=!1);return}const{list:Tt,total:cn}=db(He);t(16,O=cn);const er=Tt;t(12,x=B===ie.CLAIMABLE&&T?er.filter(fi=>fi.selectable===!0):er),t(13,F=!1)}),xt=(cn,er,fi,...zd)=>Fe(this,[cn,er,fi,...zd],function*(G,Pe,He,Tt={}){const{limit:tr="",lang:A=a}=Tt,U=ub(g),ne=Fd(U);switch(B){case ie.CLAIMABLE:{const he={pagination:`limit=${tr},offset=${He}`,language:A,type:ne};return v===!0&&(he.selectable=v),yield hv(G,Pe,he)}default:{const he=fb({limit:tr,language:A,offset:He,bonusStatus:B,bonusCalendarStartDate:se,bonusCalendarEndDate:Q,invalidDate:ae,lastMonth:R,maxDate:ee,excludedTypes:U});return yield cv(G,Pe,he)}}}),V=G=>{t(23,se=G.target.value)},ve=G=>{t(24,Q=G.target.value)},Xn=()=>{J.removeEventListener("change",V),w.removeEventListener("change",ve),J.addEventListener("change",V,!1),w.addEventListener("change",ve,!1)},Zn=()=>{t(20,X=!1),t(19,ce=!cb(ge))},ai=G=>{const{valid:Pe}=G.detail,{start:He,end:Tt}=lb(se,Q);t(23,se=He),t(24,Q=Tt);const cn=hb(se,Q,Pe);t(21,ae=cn.invalidDate)},li=G=>{t(25,B=G),$e(1)};function ui(){ge=this.value,t(18,ge)}const di=()=>{Je(ge,!0)};function ci(G){at[G?"unshift":"push"](()=>{J=G,t(10,J)})}function Kn(G){at[G?"unshift":"push"](()=>{w=G,t(11,w)})}const Jn=()=>$e(1),Qn=()=>Et(Be);function hi(G){at[G?"unshift":"push"](()=>{k=G,t(9,k)})}return n.$$set=G=>{"endpoint"in G&&t(38,s=G.endpoint),"lang"in G&&t(0,a=G.lang),"session"in G&&t(39,l=G.session),"currency"in G&&t(1,u=G.currency),"limit"in G&&t(2,d=G.limit),"cmsendpoint"in G&&t(3,c=G.cmsendpoint),"mbsource"in G&&t(4,h=G.mbsource),"clientstyling"in G&&t(5,f=G.clientstyling),"clientstylingurl"in G&&t(6,_=G.clientstylingurl),"translationurl"in G&&t(7,b=G.translationurl),"levelcountlimit"in G&&t(8,C=G.levelcountlimit),"onlyoneclick"in G&&t(40,v=G.onlyoneclick),"excludedtypes"in G&&t(41,g=G.excludedtypes),"filterbyselectable"in G&&t(42,T=G.filterbyselectable)},n.$$.update=()=>{n.$$.dirty[0]&3072&&J&&w&&Xn(),n.$$.dirty[1]&4096&&t(28,r=(G,Pe="")=>L(`${G}${S?` ${G}Mobile`:""}`,Pe)),n.$$.dirty[0]&1&&a&&iu(a),n.$$.dirty[0]&5|n.$$.dirty[1]&384&&t(46,i=s&&l&&a&&d),n.$$.dirty[1]&32768&&i&&it(),n.$$.dirty[1]&58368&&q&&i&&g!==W&&(t(45,W=g),$e(1)),n.$$.dirty[0]&544&&f&&k&&Xr(k,f),n.$$.dirty[0]&576&&_&&k&&Zr(k,_),n.$$.dirty[0]&528&&h&&k&&Kr(k,`${h}.Style`,oe),n.$$.dirty[0]&128&&b&&Ae()},[a,u,d,c,h,f,_,b,C,k,J,w,x,F,j,H,O,$,ge,ce,X,ae,K,se,Q,B,ue,Be,r,o,Z,ee,Je,Et,ht,$e,Zn,ai,s,l,v,g,T,S,q,W,i,li,ui,di,ci,Kn,Jn,Qn,hi]}class Ud extends Vr{constructor(e){super(),Ur(this,e,Cv,wv,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,excludedtypes:41,filterbyselectable:42},fv,[-1,-1,-1])}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),de()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),de()}get session(){return this.$$.ctx[39]}set session(e){this.$$set({session:e}),de()}get currency(){return this.$$.ctx[1]}set currency(e){this.$$set({currency:e}),de()}get limit(){return this.$$.ctx[2]}set limit(e){this.$$set({limit:e}),de()}get cmsendpoint(){return this.$$.ctx[3]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),de()}get mbsource(){return this.$$.ctx[4]}set mbsource(e){this.$$set({mbsource:e}),de()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),de()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),de()}get translationurl(){return this.$$.ctx[7]}set translationurl(e){this.$$set({translationurl:e}),de()}get levelcountlimit(){return this.$$.ctx[8]}set levelcountlimit(e){this.$$set({levelcountlimit:e}),de()}get onlyoneclick(){return this.$$.ctx[40]}set onlyoneclick(e){this.$$set({onlyoneclick:e}),de()}get excludedtypes(){return this.$$.ctx[41]}set excludedtypes(e){this.$$set({excludedtypes:e}),de()}get filterbyselectable(){return this.$$.ctx[42]}set filterbyselectable(e){this.$$set({filterbyselectable:e}),de()}}zr(Ud,{endpoint:{},lang:{},session:{},currency:{},limit:{},cmsendpoint:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},levelcountlimit:{},onlyoneclick:{type:"Boolean"},excludedtypes:{},filterbyselectable:{type:"Boolean"}},[],[],!0);exports.default=Ud;
|