@everymatrix/player-account-controller 1.24.7 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(s){"use strict";(u=s)&&"object"==typeof u&&0 in u;function oe(){}const w=e=>e;function h(e){return e()}function m(){return Object.create(null)}function ai(e){e.forEach(h)}function ue(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l;function b(e,t){return(l=l||document.createElement("a")).href=t,e===l.href}function d(e,...t){if(null==e)return oe;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Le(e,t,i){e.$$.on_destroy.push(d(t,i))}function c(e){return e&&ue(e.destroy)?e.destroy:oe}var u="undefined"!=typeof window;let _=u?()=>window.performance.now():()=>Date.now(),x=u?e=>requestAnimationFrame(e):oe;const P=new Set;function E(t){P.forEach(e=>{e.c(t)||(P.delete(e),e.f())}),0!==P.size&&x(E)}u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function si(e,t){e.appendChild(t)}function A(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function li(e,t,i){e.insertBefore(t,i||null)}function ci(e){e.parentNode&&e.parentNode.removeChild(e)}function ui(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function di(e){return document.createElement(e)}function pi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function hi(e){return document.createTextNode(e)}function mi(){return hi(" ")}function I(){return hi("")}function fi(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)}function V(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gi(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ae(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:gi(e,t,i)}function de(e){return""===e?null:+e}function yi(e,t){e.data!==(t=""+t)&&(e.data=t)}function vi(e,t){e.value=null==t?"":t}function L(e,t,i,r){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,r?"important":"")}function wi(t,i,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===i)return r.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function pe(e){e=e.querySelector(":checked");return e&&e.__value}function T(e,t,i){e.classList[i?"add":"remove"](t)}function r(e){var t={};for(const i of e)t[i.name]=i.value;return t}const M=new Map;let D,S=0;function $(e,t,i,r,n,o,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(i-t)*o(e);c+=100*e+`%{${a(r,1-r)}}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(s){"use strict";(u=s)&&"object"==typeof u&&0 in u;function oe(){}const w=e=>e;function h(e){return e()}function m(){return Object.create(null)}function ai(e){e.forEach(h)}function ue(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l;function b(e,t){return(l=l||document.createElement("a")).href=t,e===l.href}function d(e,...t){if(null==e)return oe;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function Le(e,t,i){e.$$.on_destroy.push(d(t,i))}function c(e){return e&&ue(e.destroy)?e.destroy:oe}var u="undefined"!=typeof window;let _=u?()=>window.performance.now():()=>Date.now(),x=u?e=>requestAnimationFrame(e):oe;const P=new Set;function E(t){P.forEach(e=>{e.c(t)||(P.delete(e),e.f())}),0!==P.size&&x(E)}u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function si(e,t){e.appendChild(t)}function T(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function li(e,t,i){e.insertBefore(t,i||null)}function ci(e){e.parentNode&&e.parentNode.removeChild(e)}function ui(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function di(e){return document.createElement(e)}function pi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function hi(e){return document.createTextNode(e)}function mi(){return hi(" ")}function I(){return hi("")}function fi(e,t,i,r){return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)}function V(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gi(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ae(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:gi(e,t,i)}function de(e){return""===e?null:+e}function yi(e,t){e.data!==(t=""+t)&&(e.data=t)}function vi(e,t){e.value=null==t?"":t}function L(e,t,i,r){null==i?e.style.removeProperty(t):e.style.setProperty(t,i,r?"important":"")}function wi(t,i,e){for(let e=0;e<t.options.length;e+=1){var r=t.options[e];if(r.__value===i)return r.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function pe(e){e=e.querySelector(":checked");return e&&e.__value}function A(e,t,i){e.classList[i?"add":"remove"](t)}function r(e){var t={};for(const i of e)t[i.name]=i.value;return t}const k=new Map;let M,S=0;function D(e,t,i,r,n,o,a,s=0){var l=16.666/r;let c="{\n";for(let e=0;e<=1;e+=l){const r=t+(i-t)*o(e);c+=100*e+`%{${a(r,1-r)}}
2
2
  `}var u,d=c+`100% {${a(i,1-i)}}
3
- }`,s=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,p=A(e),{stylesheet:h,rules:m}=M.get(p)||(p=p,u={stylesheet:(u=e,m=di("style"),u=A(u),h=m,si(u.head||u,h),h.sheet,m.sheet),rules:{}},M.set(p,u),u),p=(m[s]||(m[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(p?p+", ":"")+s+` ${r}ms linear ${n}ms 1 both`,S+=1,s}function k(e){D=e}function Me(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const N=[],De=[];let F=[];const O=[],R=Promise.resolve();let H=!1;function Be(){H||(H=!0,R.then(p))}function bi(e){F.push(e)}const z=new Set;let j,U=0;function p(){if(0===U){const r=D;do{try{for(;U<N.length;){const r=N[U];U++,k(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),ai(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bi))}}catch(r){throw N.length=0,U=0,r}for(k(null),N.length=0,U=0;De.length;)De.pop()();for(let e=0;e<F.length;e+=1){var i=F[e];z.has(i)||(z.add(i),i())}}while(F.length=0,N.length);for(;O.length;)O.pop()();H=!1,z.clear(),k(r)}}function Y(e,t,i){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),r))}const G=new Set;let q;function Z(){q={r:0,c:[],p:q}}function X(){q.r||ai(q.c),q=q.p}function K(e,t){e&&e.i&&(G.delete(e),e.i(t))}function J(e,t,i,r){e&&e.o?G.has(e)||(G.add(e),q.c.push(()=>{G.delete(e),r&&(i&&e.d(1),r())}),e.o(t)):r&&r()}const Q={duration:0};function ee(l,e,t,i){const r={direction:"both"};let c=e(l,t,r),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,r;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),r=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-r.length)||(e.style.animation=r.join(", "),S-=i)||x(()=>{S||(M.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),M.clear())}))}function f(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:r=w,tick:n=oe,css:o}=c||Q,a={start:_()+t,b:e};if(e||((a.group=q).r+=1),d||p)p=a;else{o&&(m(),h=$(l,u,e,i,t,r,o)),e&&n(0,1),d=f(a,i),bi(()=>Y(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,i),p=null,Y(l,d.b,"start"),o)&&(m(),h=$(l,u,d.b,d.duration,0,r,c.css)),d)if(e>=d.end)n(u=d.b,1-u),Y(l,d.b,"end"),p||(d.b?m():--d.group.r||ai(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*r(l/d.duration),n(u,1-u)}return!(!d&&!p)};let t;0===P.size&&x(E),new Promise(e=>{P.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(j||(j=Promise.resolve()).then(()=>{j=null}),j.then(()=>{c=c(r),n(e)})):n(e)},end(){m(),d=p=null}}}function n(r,e,t,i,n,o,a,s=[-1]){var l=D;k(r);const c=r.$$={fragment:null,ctx:[],props:o,update:oe,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:m(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=r).$$.dirty[0]&&(N.push(e),Be(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],c.update(),u=!0,ai(c.before_update),c.fragment=!!i&&i(c.ctx),e.target){if(e.hydrate){o=e.target;const r=Array.from(o.childNodes);c.fragment&&c.fragment.l(r),r.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&K(r.$$.fragment);var d=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:i,after_update:o}=d.$$;i&&i.m(s,a),t||bi(()=>{var e=d.$$.on_mount.map(h).filter(ue);d.$$.on_destroy?d.$$.on_destroy.push(...e):ai(e),d.$$.on_mount=[]}),o.forEach(bi),p()}k(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(ue);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){ai(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const r=[],n=[];F.forEach(e=>(-1===i.indexOf(e)?r:n).push(e)),n.forEach(e=>e()),F=r}ai(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=oe}$on(e,t){if(!ue(t))return oe;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var te,ie,re="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ne="URLSearchParams"in re,se="Symbol"in re&&"iterator"in Symbol,le="FileReader"in re&&"Blob"in re&&function(){try{return new Blob,!0}catch(e){return!1}}(),he="FormData"in re,me="ArrayBuffer"in re;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ge(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return se&&(e[Symbol.iterator]=function(){return e}),e}function ve(t){this.map={},t instanceof ve?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function we(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function be(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function _e(e){var t=new FileReader,i=be(t);return t.readAsArrayBuffer(e),i}function xe(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Ce(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:le&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:he&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ne&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&le&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=xe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ie(e))?this._bodyArrayBuffer=xe(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ne&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},le&&(this.blob=function(){var e=we(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return we(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(le)return this.blob().then(_e);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r=we(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=be(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?i[1]:"utf-8",e.readAsText(r,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},he&&(this.formData=function(){return this.text().then(Ae)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(te=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ie=ArrayBuffer.isView||function(e){return e&&-1<te.indexOf(Object.prototype.toString.call(e))}),ve.prototype.append=function(e,t){e=fe(e),t=ge(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},ve.prototype.delete=function(e){delete this.map[fe(e)]},ve.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},ve.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},ve.prototype.set=function(e,t){this.map[fe(e)]=ge(t)},ve.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},ve.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),ye(i)},ve.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},ve.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),ye(i)},se&&(ve.prototype[Symbol.iterator]=ve.prototype.entries);var Pe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,r=(t=t||{}).body;if(e instanceof Ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ve(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ve(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Pe.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in re)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Ae(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function Te(e,t){if(!(this instanceof Te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ve(t.headers),this.url=t.url||"",this._initBody(e)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},Ce.call(Ee.prototype),Ce.call(Te.prototype),Te.prototype.clone=function(){return new Te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ve(this.headers),url:this.url})},Te.error=function(){var e=new Te(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ie=[301,302,303,307,308],Ne=(Te.redirect=function(e,t){if(-1===Ie.indexOf(t))throw new RangeError("Invalid status code");return new Te(null,{status:t,headers:{location:e}})},re.DOMException);try{new Ne}catch(s){(Ne=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ne.prototype.constructor=Ne}function Fe(r,s){return new Promise(function(n,e){var o=new Ee(r,s);if(o.signal&&o.signal.aborted)return e(new Ne("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,r,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new ve,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),i=t.shift().trim();if(i){t=t.join(":").trim();try{r.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),r)},i=(o.url.startsWith("file://")&&(a.status<200||599<a.status)?t.status=200:t.status=a.status,t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){n(new Te(i,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){e(new Ne("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&re.location.href?re.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(le?a.responseType="blob":me&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof ve||re.Headers&&s.headers instanceof re.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(fe(e)),a.setRequestHeader(e,ge(s.headers[e]))}),o.headers.forEach(function(e,t){-1===i.indexOf(t)&&a.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",t)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}function Di(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Fe.polyfill=!0,re.fetch||(re.fetch=Fe,re.Headers=ve,re.Request=Ee,re.Response=Te),self.fetch.bind(self);var Oe=function(e,t){return(Oe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function He(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function We(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function je(e){return"function"==typeof e}function Ue(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ye=Ue(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Ve(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ze.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=He(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(je(o))try{o()}catch(e){n=e instanceof Ye?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=He(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ke(u)}catch(e){n=null!=n?n:[],e instanceof Ye?n=We(We([],ze(n)),ze(e.errors)):n.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}if(n)throw new Ye(n)}},Ze.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ke(e);else{if(e instanceof Ze){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ze.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ze.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ze.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Ze.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Ze&&e._removeParent(this)},Ze.EMPTY=((t=new Ze).closed=!0,t);var Ge=Ze,qe=Ge.EMPTY;function Ze(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Xe(e){return e instanceof Ge||e&&"closed"in e&&je(e.remove)&&je(e.add)&&je(e.unsubscribe)}function Ke(e){je(e)?e():e.unsubscribe()}var Je=void 0,Qe=!1,et=!1,tt={setTimeout:function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n=tt.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,We([e,t],ze(i))):setTimeout.apply(void 0,We([e,t],ze(i)))},clearTimeout:function(e){var t=tt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function it(){}var rt=null;function nt(e){if(Qe){var t=!rt;if(t&&(rt={errorThrown:!1,error:null}),e(),t){var t=rt,i=t.errorThrown,t=t.error;if(rt=null,i)throw t}}else e()}Re(lt,ot=Ge),lt.create=function(e,t,i){return new pt(e,t,i)},lt.prototype.next=function(e){this.isStopped||this._next(e)},lt.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},lt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},lt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ot.prototype.unsubscribe.call(this),this.destination=null)},lt.prototype._next=function(e){this.destination.next(e)},lt.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},lt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var ot,at=lt,st=Function.prototype.bind;function lt(e){var t=ot.call(this)||this;return t.isStopped=!1,e?Xe(t.destination=e)&&e.add(t):t.destination=gt,t}function ct(e,t){return st.call(e,t)}mt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ft(e)}},mt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ft(e)}else ft(e)},mt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ft(e)}};var ut,dt=mt,pt=(Re(ht,ut=at),ht);function ht(e,t,i){var r=ut.call(this)||this,i=je(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:r&&et?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ct(e.next,t),error:e.error&&ct(e.error,t),complete:e.complete&&ct(e.complete,t)}):e;return r.destination=new dt(i),r}function mt(e){this.partialObserver=e}function ft(e){var t=e;tt.setTimeout(function(){throw t})}var gt={closed:!0,next:it,error:function(e){throw e},complete:it},t="function"==typeof Symbol&&Symbol.observable||"@@observable";vt.prototype.lift=function(e){var t=new vt;return t.source=this,t.operator=e,t},vt.prototype.subscribe=function(e,t,i){var r,n=this,o=(r=e)&&r instanceof at||r&&je(r.next)&&je(r.error)&&je(r.complete)&&Xe(r)?e:new pt(e,t,i);return nt(function(){var e=n.operator,t=n.source;o.add(e?e.call(o,t):t?n._subscribe(o):n._trySubscribe(o))}),o},vt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},vt.prototype.forEach=function(r,e){var n=this;return new(e=wt(e))(function(e,t){var i=new pt({next:function(e){try{r(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});n.subscribe(i)})},vt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},vt.prototype[t]=function(){return this},vt.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},vt.prototype.toPromise=function(e){var r=this;return new(e=wt(e))(function(e,t){var i;r.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},vt.create=function(e){return new vt(e)};var yt=vt;function vt(e){e&&(this._subscribe=e)}function wt(e){return null!=(e=null!=e?e:Je)?e:Promise}var bt,_t,xt,Ct=Ue(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),t=(Re(Mt,xt=yt),Mt.prototype.lift=function(e){var t=new Pt(this,this);return t.operator=e,t},Mt.prototype._throwIfClosed=function(){if(this.closed)throw new Ct},Mt.prototype.next=function(n){var o=this;nt(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=He(o.currentObservers),r=i.next();!r.done;r=i.next())r.value.next(n)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},Mt.prototype.error=function(t){var i=this;nt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},Mt.prototype.complete=function(){var t=this;nt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},Mt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(Mt.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),Mt.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},Mt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},Mt.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,r=this.isStopped,n=this.observers;return i||r?qe:(this.currentObservers=null,n.push(e),new Ge(function(){t.currentObservers=null,Ve(n,e)}))},Mt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,r=this.isStopped;t?e.error(i):r&&e.complete()},Mt.prototype.asObservable=function(){var e=new yt;return e.source=this,e},Mt.create=function(e,t){return new Pt(e,t)},Mt),Pt=(Re(Lt,_t=t),Lt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Lt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:qe},Lt),Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0},At=(Re(Tt,bt=t),Tt.prototype.next=function(e){var t=this,i=t.isStopped,r=t._buffer,n=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(r.push(e),n)||r.push(o.now()+t),this._trimBuffer(),bt.prototype.next.call(this,e)},Tt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,r=this._buffer.slice(),n=0;n<r.length&&!e.closed;n+=i?1:2)e.next(r[n]);return this._checkFinalizedStatuses(e),t},Tt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,r=this._infiniteTimeWindow,n=(r?1:2)*e;if(e<1/0&&n<i.length&&i.splice(0,i.length-n),!r){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},Tt);function Tt(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Et);var r=bt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=i,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Lt(e,t){var i=_t.call(this)||this;return i.destination=e,i.source=t,i}function Mt(){var e=xt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Dt=[],St={};const $t=[];function kt(r,n=oe){let o;const a=new Set;function s(e){if(i(r,e)&&(r=e,o)){const e=!$t.length;for(const e of a)e[1](),$t.push(e,r);if(e){for(let e=0;e<$t.length;e+=2)$t[e][0]($t[e+1]);$t.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=oe){const i=[e,t];return a.add(i),1===a.size&&(o=n(s)||oe),e(r),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Bt(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:kt(t,t=>{let i=!1;const r=[];let n=0,o=oe;const a=()=>{var e;n||(o(),e=s(l?r[0]:r,t),u?t(e):o=ue(e)?e:oe)},e=c.map((e,t)=>d(e,e=>{r[t]=e,n&=~(1<<t),i&&a()},()=>{n|=1<<t}));return i=!0,a(),function(){ai(e),o(),i=!1}}).subscribe}}function It(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Nt);var t}var Nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Wt(Array.isArray(e)?[]:{},e,t):e}function Ot(e,t,i){return e.concat(t).map(function(e){return Ft(e,i)})}function Rt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Ht(e,t){try{return t in e}catch(e){return!1}}function zt(r,n,o){var a={};return o.isMergeableObject(r)&&Rt(r).forEach(function(e){a[e]=Ft(r[e],o)}),Rt(n).forEach(function(e){var t,i;(!Ht(t=r,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Ht(r,e)&&o.isMergeableObject(n[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Wt)(r[e],n[e],o):a[e]=Ft(n[e],o))}),a}function Wt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Ot,i.isMergeableObject=i.isMergeableObject||It,i.cloneUnlessOtherwiseSpecified=Ft;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):zt(e,t,i):Ft(t,i)}Wt.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return Wt(e,t,i)},{});throw new Error("first argument should be an array")};var jt=Wt,Ut=function(e,t){return(Ut=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ut(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,g=function(){return(g=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function Gt(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function qt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Xt(e){return e.type===y.date}function Kt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Qt(e){return e.type===y.plural}function ei(e){return e.type===y.tag}function ti(e){return e&&"object"==typeof e&&e.type===Vt.number}function ii(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(t=f=f||{})[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(t=y=y||{})[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",(t=Vt=Vt||{})[t.number=0]="number",t[t.dateTime=1]="dateTime";var t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ri=/(?:[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;var ni=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,oi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_i=/^(@+)?(\+|#+)?[rs]?$/g,xi=/(\*)(0+)|(#+)(0+)|(0+)/g,Ci=/^(0+)$/;function Pi(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(_i,function(e,t,i){return"string"!=typeof i?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===i?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),r}function Ei(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ai(e){return Ei(e)||{}}function Ti(e){for(var a={},t=0,i=e;t<i.length;t++){var r,n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=g(g(g({},a),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),Ai(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),Ai(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(xi,function(e,t,i,r,n,o){if(t)a.minimumIntegerDigits=i.length;else{if(r&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ci.test(n.stem))a.minimumIntegerDigits=n.stem.length;else if(oi.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(oi,function(e,t,i,r,n,o){return"*"===i?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:n&&o?(a.minimumFractionDigits=n.length,a.maximumFractionDigits=n.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Pi(o)))}else _i.test(n.stem)?a=g(g({},a),Pi(n.stem)):((o=Ei(n.stem))&&(a=g(g({},a),o)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ci.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(a=g(g({},a),r)))}return a}var Li={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Mi=new RegExp("^".concat(t.source,"*")),Si=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,$i=!!String.fromCodePoint,ki=!!Object.fromEntries,Bi=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ni=!!String.prototype.trimEnd,Fi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oi=!0;try{Oi="a"===(null==(or=Gi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:or[0])}catch(yo){Oi=!1}var Ri,Hi,zi=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Wi=$i?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;o<n;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},ji=ki?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];t[o]=n}return t},Ui=Bi?function(e,t){return e.codePointAt(t)}:function(e,t){var i,r=e.length;if(!(t<0||r<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536},Yi=Ii?function(e){return e.trimStart()}:function(e){return e.replace(Mi,"")},Vi=Ni?function(e){return e.trimEnd()}:function(e){return e.replace(Si,"")};function Gi(e,t){return new RegExp(e,t)}Hi=Oi?(Ri=Gi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ri.lastIndex=t,null!=(t=Ri.exec(e)[1])?t:""}):function(e,t){for(var i,r=[];;){var n=Ui(e,t);if(void 0===n||Xi(n)||33<=(i=n)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094)break;r.push(n),t+=65536<=n?2:1}return Wi.apply(void 0,r)};o.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},o.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n,o=this.char();if(123===o){if((n=this.parseArgument(e,i)).err)return n;r.push(n.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Zi(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;r.push(n.val)}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:r,err:null}},o.prototype.parseTag=function(e,t){var i,r=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Zi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(r,this.clonePosition()))):this.error(f.INVALID_TAG,v(r,this.clonePosition()))},o.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},o.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{n=this.tryParseUnquoted(e,t);if(n)r+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:r,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Zi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},o.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Wi.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var i;return this.isEOF()||60===(i=this.char())||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),Wi(i))},o.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:v(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Hi(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=Vi(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(h=v(r,this.clonePosition()),l&&zi(null==l?void 0:l.style,"::",0)?(m=Yi(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,h):(u=m,this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(Li[t||""]||Li[i||""]||Li["".concat(i,"-001")]||Li["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===n?"H":n}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(ri,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"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":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<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""}),n):{}},{val:{type:"date"===a?y.date:y.time,value:i,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,p=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),p=this.parseIdentifierIfPossible(),h=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,a,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(m=v(r,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:ji(l.val),location:m},err:null}:{val:{type:y.plural,value:i,options:ji(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(o,s))}},o.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},o.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},o.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,r=e.split(ni).filter(function(e){return 0<e.length});i<r.length;i++){var n=r[i].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var o=n[0],n=n.slice(1),a=0,s=n;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Ti(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n=!1,o=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,i);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([s,{value:c.val,location:v(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;n=!0,o=10*o+(a-48),this.bump()}r=v(r,this.clonePosition());return n?Fi(o*=i)?{val:o,err:null}:this.error(t,r):this.error(e,r)},o.prototype.offset=function(){return this.position.offset},o.prototype.isEOF=function(){return this.offset()===this.message.length},o.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},o.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ui(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},o.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},o.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},o.prototype.bumpIf=function(e){if(zi(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},o.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},o.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(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},o.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xi(this.char());)this.bump()},o.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var qi=o;function o(e,t){void 0===t&&(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}function Zi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Xi(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ki(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new qi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Jt(e)||Qt(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Zt(e)&&ti(e.style)||(Xt(e)||Kt(e))&&ii(e.style)?delete e.style.location:ei(e)&&i(e.children)})}(e.val),e.val}function Ji(e,t){var i=t&&t.cache?t.cache:ar,r=t&&t.serializer?t.serializer:ir;return(t&&t.strategy?t.strategy:function(e,t){return tr(e,this,1===e.length?Qi:er,t.cache.create(),t.serializer)})(e,{cache:i,serializer:r})}function Qi(e,t,i,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:i(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function er(e,t,i){var r=Array.prototype.slice.call(arguments,3),i=i(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function tr(e,t,i,r,n){return i.bind(t,e,r,n)}var ir=function(){return JSON.stringify(arguments)};function rr(){this.cache=Object.create(null)}rr.prototype.get=function(e){return this.cache[e]},rr.prototype.set=function(e,t){this.cache[e]=t};var nr,or,ar={create:function(){return new rr}},sr={variadic:function(e,t){return tr(e,this,er,t.cache.create(),t.serializer)},monadic:function(e,t){return tr(e,this,Qi,t.cache.create(),t.serializer)}};(or=nr=nr||{}).MISSING_VALUE="MISSING_VALUE",or.INVALID_VALUE="INVALID_VALUE",or.MISSING_INTL_API="MISSING_INTL_API";Yt(br,pr=Error),br.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var lr,cr,ur,dr,pr,hr=br,mr=(Yt(wr,dr=hr),wr),fr=(Yt(vr,ur=hr),vr),gr=(Yt(yr,cr=hr),yr);function yr(e,t){return cr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),nr.MISSING_VALUE,t)||this}function vr(e,t,i){return ur.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),nr.INVALID_VALUE,i)||this}function wr(e,t,i,r){return dr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),nr.INVALID_VALUE,r)||this}function br(e,t,i){e=pr.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function _r(e,t,i,r,n,o,a){if(1===e.length&&qt(e[0]))return[{type:lr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(qt(u))s.push({type:lr.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:lr.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(n&&d in n))throw new gr(d,a);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?lr.literal:lr.object,value:d});else if(Xt(u)){var p="string"==typeof u.style?r.date[u.style]:ii(u.style)?u.style.parsedOptions:void 0;s.push({type:lr.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Kt(u))p="string"==typeof u.style?r.time[u.style]:ii(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:lr.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Zt(u))(p="string"==typeof u.style?r.number[u.style]:ti(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:lr.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ei(u)){var h=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new fr(m,"function",a);m=f(_r(h,t,i,r,n,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?lr.literal:lr.object,value:e}}))}if(Jt(u)){if(!(g=u.options[d]||u.options.other))throw new mr(u.value,d,Object.keys(u.options),a);s.push.apply(s,_r(g.value,t,i,r,n))}else if(Qt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new hr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',nr.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new mr(u.value,d,Object.keys(u.options),a);s.push.apply(s,_r(g.value,t,i,r,n,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===lr.literal&&t.type===lr.literal?i.value+=t.value:e.push(t),e},[])}function xr(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=lr=lr||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(Pr,"defaultLocale",{get:function(){return Pr.memoizedDefaultLocale||(Pr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Pr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Pr.memoizedDefaultLocale=null,Pr.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},Pr.__parse=Ki,Pr.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"}}};var Cr=Pr;function Pr(e,t,i,r){var n,o,a=this;if(void 0===t&&(t=Pr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===lr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return _r(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=Pr.resolveLocale(t),"string"==typeof e){if(this.message=e,!Pr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Pr.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(n=Pr.formats,(o=i)?Object.keys(n).reduce(function(e,t){var i,r;return e[t]=(i=n[t],(r=o[t])?g(g(g({},i||{}),r||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),r[t]||{}),e},{})):i),e},g({},n)):n),this.formatters=r&&r.formatters||{getNumberFormat:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:sr.variadic}),getDateTimeFormat:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr(t.dateTime),strategy:sr.variadic}),getPluralRules:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr(t.pluralRules),strategy:sr.variadic})}}const Er={},Ar=(e,t,i)=>i&&(t in Er||(Er[t]={}),e in Er[t]||(Er[t][e]=i),i),Tr=(t,i)=>{if(null!=i){if(i in Er&&t in Er[i])return Er[i][t];var r=qr(i);for(let e=0;e<r.length;e++){var n=function(e,t){if(!Dr(e))return null;e=function(e){return Lr[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var r=i.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const i=r.slice(e,r.length).join(".");if(i in t){t=t[i];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(n)return Ar(t,i,n)}}};let Lr;const Mr=kt({});function Dr(e){return e in Lr}function B(t,...i){delete Er[t],Mr.update(e=>(e[t]=jt.all([e[t]||{},...i]),e))}Bt([Mr],([e])=>Object.keys(e)),Mr.subscribe(e=>Lr=e);const Sr={};function $r(e){return Sr[e]}function kr(e){return null!=e&&qr(e).some(e=>{return null==(e=$r(e))?void 0:e.size})}function Br(r,e){return Promise.all(e.map(e=>{return t=r,i=e,Sr[t].delete(i),0===Sr[t].size&&delete Sr[t],e().then(e=>e.default||e);var t,i})).then(e=>B(r,...e))}const Ir={};function Nr(e){var t;return kr(e)?(t=qr(e).map(e=>{var t=$r(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Ir[e]=Promise.all(t.map(([e,t])=>Br(e,t))).then(()=>{if(kr(e))return Nr(e);delete Ir[e]}),Ir[e]):e in Ir?Ir[e]:Promise.resolve()}const Fr={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Or(){return Fr}const Rr=kt(!1);var Hr=Object.defineProperty,$i=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Ur=(e,t,i)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Yr;const Vr=kt(null);function Gr(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function qr(e,t=Fr.fallbackLocale){e=Gr(e);return t?[...new Set([...e,...Gr(t)])]:e}function Zr(){return null!=Yr?Yr:void 0}Vr.subscribe(e=>{Yr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});Bi=((e,t)=>{for(var i in t=t||{})Wr.call(t,i)&&Ur(e,i,t[i]);if(zr)for(var i of zr(t))jr.call(t,i)&&Ur(e,i,t[i]);return e})({},Vr);const Se=$i(Bi,ki({set:t=>{if(t&&function(e){if(null==e)return;const t=qr(e);for(let e=0;e<t.length;e++){const i=t[e];if(Dr(i))return i}}(t)&&kr(t)){const{loadingDelay:i}=Or();let e;return"undefined"!=typeof window&&null!=Zr()&&i?e=window.setTimeout(()=>Rr.set(!0),i):Rr.set(!0),Nr(t).then(()=>{Vr.set(t)}).finally(()=>{clearTimeout(e),Rr.set(!1)})}return Vr.set(t)}})),Xr=i=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=i(e)}};var Kr=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,tn=(e,t,i)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,rn=(e,t)=>{for(var i in t=t||{})Qr.call(t,i)&&tn(e,i,t[i]);if(Jr)for(var i of Jr(t))en.call(t,i)&&tn(e,i,t[i]);return e},nn=(e,t)=>{var i={};for(r in e)Qr.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Jr)for(var r of Jr(e))t.indexOf(r)<0&&en.call(e,r)&&(i[r]=e[r]);return i};const on=(e,t)=>{var i=Fr["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},an=Xr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=on("number",i)),new Intl.NumberFormat(t,e)}),sn=Xr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=on("date",i):0===Object.keys(e).length&&(e=on("date","short")),new Intl.DateTimeFormat(t,e)}),ln=Xr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=on("time",i):0===Object.keys(e).length&&(e=on("time","short")),new Intl.DateTimeFormat(t,e)}),cn=Xr((e,t=Zr())=>new Cr(e,t,Fr.formats,{ignoreTag:Fr.ignoreTag})),$e=Bt([Se,Mr],()=>(e,t={})=>{var i,r;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:o,locale:a=Zr(),default:s}=n;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Tr(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(i=null==(i=(r=Fr).handleMissingMessage)?void 0:i.call(r,{locale:a,id:e,defaultValue:s}))?i:s)?r:e;if(!o)return l;let c=l;try{c=cn(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),un=(Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return ln(rn({locale:t},e))})(t).format(e)),Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return sn(rn({locale:t},e))})(t).format(e)),Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return an(rn({locale:t},e))})(t).format(e)),Bt([Se,Mr],()=>(e,t=Zr())=>Tr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new At(t),St[e]=t,Dt.push(e)),St[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),ke=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function dn(e,t){B(e,t)}const pn={en:{profileUpdateSuccess:"Profile updated!",timeoutSuccess:"Timeout active",selfExclusionSuccess:"Self exclusion active",accountClosureSuccess:"Account closed",limitsUpdateSuccess:"Limits updated",limitsDeleteSuccess:"Limits deleted",passwordChangedSuccess:"Password changed successfully",realityCheckSuccess:"Reality check options saved"},"zh-hk":{profileUpdateSuccess:"資料更新!",timeoutSuccess:"超時有效",selfExclusionSuccess:"自我排斥活躍",accountClosureSuccess:"賬戶關閉",limitsUpdateSuccess:"限制已更新",limitsDeleteSuccess:"已刪除限制",passwordChangedSuccess:"密碼修改成功",realityCheckSuccess:"現實檢查選項已保存"},fr:{profileUpdateSuccess:"Mise à jour du profil!",timeoutSuccess:"Délai d'attente actif",selfExclusionSuccess:"Auto exclusion active",accountClosureSuccess:"Compte fermé",limitsUpdateSuccess:"Limites des mises à jour",limitsDeleteSuccess:"Limites supprimées",passwordChangedSuccess:"Le mot de passe a été modifié avec succés",realityCheckSuccess:"Options de contrôle de la réalité sauvegardées"},ro:{profileUpdateSuccess:"Profil updatat!",timeoutSuccess:"Timeout activ",selfExclusionSuccess:"Auto-excludere activa",accountClosureSuccess:"Cont inchis",limitsUpdateSuccess:"Limite updatate",limitsDeleteSuccess:"Limite sterse",passwordChangedSuccess:"Parola schimbata cu success",realityCheckSuccess:"Optiunile de verificare de timp salvate"},es:{profileUpdateSuccess:"Perfil actualizado!",timeoutSuccess:"Pausa activa",selfExclusionSuccess:"Auto Exclusión activa.",accountClosureSuccess:"Cuenta cerrada",limitsUpdateSuccess:"Limites actualizados",limitsDeleteSuccess:"Limites delegados",passwordChangedSuccess:"Cambio de Contraseña satisfactorio",realityCheckSuccess:"Opciones de verificación de realidad guardadas"},pt:{profileUpdateSuccess:"Perfil atualizado!",timeoutSuccess:"Tempo Limite ativo",selfExclusionSuccess:"Autoexclusão ativa",accountClosureSuccess:"Conta encerrada",limitsUpdateSuccess:"Limites atualizados",limitsDeleteSuccess:"Limites excluídos",passwordChangedSuccess:"Senha alterada com sucesso",realityCheckSuccess:"Opções de verificação de realidade salvas"}};function hn(e,t){B(e,t)}const mn={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"}};function fn(e,t){B(e,t)}const gn={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"}};function yn(i){let r,n,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){r=di("div"),n=di("button"),o=di("span"),a=hi(c),gi(r,"class","GeneralLogout")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),s||(l=fi(n,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(r),s=!1,l()}}}function vn(o){let i,r,n,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,r,n=o[2]("logoutButton")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&n!==(n=e[2]("logoutButton")+"")&&yi(r,n)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),r=di("span"),n=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=pi("path"),u=pi("path"),d=mi(),m&&m.c(),gi(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(c,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),gi(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),gi(n,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(n,"data-name","Layer 1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"viewBox","0 0 150 150"),L(r,"width",o[3]?o[4].matches?"50px":"24px":"20px"),gi(i,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,a),si(a,s),si(s,l),si(n,c),si(n,u),si(i,d),m&&m.m(i,null),p||(h=fi(i,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&ci(i),m&&m.d(),p=!1,h()}}}function wn(i){let r;function n(e){return"PlayerAccountMenu"===e[0]?vn:yn}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[14](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[14](null)}}}function bn(t,e,i){let r;Le(t,$e,e=>i(2,r=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{buttonlocation:s=""}=e,{lang:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p="",h=!1,m=window.navigator.userAgent,f="PC"!==ke(m);e=window.matchMedia("(min-width: 768px)");Object.keys(gn).forEach(e=>{fn(e,gn[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/v1/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"buttonlocation"in e&&i(0,s=e.buttonlocation),"lang"in e&&i(8,l=e.lang),"clientstyling"in e&&i(9,c=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,d=e.translationurl)},t.$$.update=()=>{if(193&t.$$.dirty&&o&&a&&s&&(o||(p="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(p)),a||(p="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(p))),256&t.$$.dirty&&l&&(e=l,Se.set(e)),514&t.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),1026&t.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fn(e,t[e])})}).catch(e=>{console.log(e)})},[s,n,r,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){De[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}function _n(e,t,i){e=e.slice();return e[32]=t[i],e}function xn(i){let r,n,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){r=di("div"),n=di("p"),o=di("img"),s=mi(),l=di("span"),c=hi(m),u=mi(),gi(o,"class","PlayerAccountMenuItemIcon "+(i[10]?"PlayerAccountMenuItemIconMobile":"")),b(o.src,a=i[32].img)||gi(o,"src",a),gi(l,"class","PlayerAccountMenuItemTitle"),gi(n,"class","PlayerAccountMenuItemWrapper"),gi(r,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(n,s),si(n,l),si(l,c),si(r,u),p||(h=fi(r,"click",f),p=!0)},p(e,t){i=e,32&t[0]&&!b(o.src,a=i[32].img)&&gi(o,"src",a),32&t[0]&&m!==(m=i[32].label+"")&&yi(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))&&gi(r,"class",d)},d(e){e&&ci(r),p=!1,h()}}}function Cn(i){let r,n=function(t){let i,r,n,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h3"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(r,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=[fi(n,"click",i[12]),fi(p,"click",i[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,r;return{c(){i=di("div"),ae(r=di("general-logout"),"endpoint",e[1]),ae(r,"session",e[0]),ae(r,"buttonlocation","PlayerAccountMenu"),ae(r,"clientstyling",e[2]),ae(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&ae(r,"endpoint",e[1]),1&t[0]&&ae(r,"session",e[0]),4&t[0]&&ae(r,"clientstyling",e[2]),8&t[0]&&ae(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=xn(_n(t,g,e));let v=!t[10]&&function(e){let i,r;return{c(){i=di("div"),ae(r=di("general-logout"),"endpoint",e[1]),ae(r,"session",e[0]),ae(r,"buttonlocation","PlayerAccountMenu"),ae(r,"clientstyling",e[2]),ae(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&ae(r,"endpoint",e[1]),1&t[0]&&ae(r,"session",e[0]),4&t[0]&&ae(r,"clientstyling",e[2]),8&t[0]&&ae(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),r=di("div"),m&&m.c(),n=mi(),o=di("p"),a=hi(t[7]),s=mi(),l=di("p"),c=hi(t[8]),u=mi(),f&&f.c(),d=mi(),p=di("div");for(let e=0;e<y.length;e+=1)y[e].c();h=mi(),v&&v.c(),gi(o,"class","PlayerAccountMenuUser"),gi(l,"class","PlayerAccountMenuEmail"),gi(r,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),gi(p,"class","PlayerAccountMenuList"),gi(i,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){li(e,i,t),si(i,r),m&&m.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(r,u),f&&f.m(r,null),si(i,d),si(i,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);si(i,h),v&&v.m(i,null)},p(t,i){if(t[10]&&m.p(t,i),128&i[0]&&yi(a,t[7]),256&i[0]&&yi(c,t[8]),t[10]&&f.p(t,i),9312&i[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var r=_n(t,g,e);y[e]?y[e].p(r,i):(y[e]=xn(r),y[e].c(),y[e].m(p,null))}for(;e<y.length;e+=1)y[e].d(1);y.length=g.length}t[10]||v.p(t,i)},d(e){e&&ci(i),m&&m.d(),f&&f.d(),ui(y,e),v&&v.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[20](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[20](null)}}}function Pn(i,e,r){let t;Le(i,$e,e=>r(9,t=e));let n,o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{selecteditem:u=""}=e,{userroles:d=""}=e,{clientstyling:p=""}=e,{clientstylingurl:h=""}=e,{translationurl:m=""}=e,f=[],g=window.navigator.userAgent,y="PC"!==ke(g),v="",w="";e=window.matchMedia("(min-width: 768px)");Object.keys(mn).forEach(e=>{hn(e,mn[e])});const b=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":r(5,f=e.data.accountMenuInfo);break;case"UserSessionID":r(0,s=e.data.session)}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),r(6,o=e.id)};return Me(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),i.$$set=e=>{"endpoint"in e&&r(1,a=e.endpoint),"session"in e&&r(0,s=e.session),"playerid"in e&&r(14,l=e.playerid),"lang"in e&&r(15,c=e.lang),"selecteditem"in e&&r(16,u=e.selecteditem),"userroles"in e&&r(17,d=e.userroles),"clientstyling"in e&&r(2,p=e.clientstyling),"clientstylingurl"in e&&r(3,h=e.clientstylingurl),"translationurl"in e&&r(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,Se.set(t)),49155&i.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/v1/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(7,v=e.username),r(8,w=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&r(6,o=u),24&i.$$.dirty[0]&&h&&n){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&n&&((e=document.createElement("style")).innerHTML=p,n.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,n,f,o,v,w,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){De[e?"unshift":"push"](()=>{n=e,r(4,n)})}]}function En(e,t,i){e=e.slice();return e[14]=t[i],e}function An(t){let n,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tn(En(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(n,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var r=En(t,o,e);a[e]?a[e].p(r,i):(a[e]=Tn(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function Tn(e){let i,r,n,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),r=di("div"),n=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(n,"class","PlayerAccountNotificationIcon"),b(n.src,o=e[14].icon)||gi(n,"src",o),gi(n,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(r,"class","PlayerAccountNotificationBoxHeader"),gi(d,"class","PlayerAccountNotificationText"),gi(i,"class","PlayerAccountNotificationBox"),L(i,"background",e[14].backgroundColor)},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,s),si(r,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!b(n.src,o=e[14].icon)&&gi(n,"src",o),2&t&&a!==(a=e[14].title)&&gi(n,"alt",a),2&t&&h!==(h=e[14].title+"")&&yi(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&L(i,"background",e[14].backgroundColor)},d(e){e&&ci(i)}}}function Ln(i){let r;function n(e){if(e[1].length)return An}let o=n(i),a=o&&o(i);return{c(){r=di("div"),a&&a.c(),this.c=oe},m(e,t){li(e,r,t),a&&a.m(r,null),i[7](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a&&a.d(),i[7](null)}}}function Mn(t,e,i){let r,{customnotif:n=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==ke(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(i(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{n.replace(" ",""),u=n.split(",")};return Me(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,n=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&n&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&r){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&r&&((e=document.createElement("style")).innerHTML=o,r.appendChild(e))},[r,c,l,d,n,o,a,function(e){De[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Dn(e,t){B(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},bn,wn,i,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","buttonlocation","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-menu")||customElements.define("player-account-menu",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Pn,Cn,i,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","selecteditem","userroles","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),p()}get selecteditem(){return this.$$.ctx[16]}set selecteditem(e){this.$$set({selecteditem:e}),p()}get userroles(){return this.$$.ctx[17]}set userroles(e){this.$$set({userroles:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-notifications")||customElements.define("player-account-notifications",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Mn,Ln,i,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["customnotif","clientstyling","clientstylingurl"]}get customnotif(){return this.$$.ctx[4]}set customnotif(e){this.$$set({customnotif:e}),p()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const Sn={en:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"},"zh-hk":{title:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",cooloff24:"冷卻 24 小時",cooloff7:"冷卻 7 天",cooloff30:"冷卻 30 天",cooloff3:"冷靜3個月",cooloff24Text:"24小時",cooloff7Text:"7天",cooloff30Text:"30天",cooloff3Text:"3個月"},fr:{title:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:'Veuillez noter que l\'"installation du temps mort" ne remplace en aucun cas "l\'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d\'auto exclusion" ou nous contacter dès que possible.',save:"Savez",cooloff24:"Pause de 24 heures",cooloff7:"Pause de 7 jours",cooloff30:"Pause de 30 jours",cooloff3:"Pause de 3 mois",cooloff24Text:"24 heures",cooloff7Text:"7 jours",cooloff30Text:"30 jours",cooloff3Text:"3 mois"},ro:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"},es:{title:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",cooloff24:"CoolOffPor24Horas",cooloff7:"CoolOffPor7Días",cooloff30:"CoolOffPor30Días",cooloff3:"CoolOffPor3Meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"},pt:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"}};function $n(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function kn(e){let i,r,t=e[22]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Bn(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,e=i[3]("title")+"",P=i[3]("timeoutTextFirst",{values:{operatorname:i[0]}})+"",E=i[3]("timeoutTextSecondary")+"",A=i[3]("save")+"",T=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),L=i[5],M=[];for(let e=0;e<L.length;e+=1)M[e]=kn($n(i,L,e));return{c(){r=di("div"),n=di("form"),T&&T.c(),o=mi(),a=di("h2"),s=hi(e),l=mi(),c=di("div"),u=di("p"),d=hi(P),p=mi(),h=di("p"),m=hi(E),f=mi(),g=di("div"),y=di("select");for(let e=0;e<M.length;e+=1)M[e].c();v=mi(),w=di("div"),b=di("button"),_=hi(A),this.c=oe,gi(a,"class","TimeoutTitle "+(i[4]?"TimeoutTitleNone":"")),gi(c,"class","TimeoutDescription "+(i[4]?"TimeoutDescriptionMobile":"")),gi(y,"class","TimeoutSelect "+(i[4]?"TimeoutSelectMobile":"")),void 0===i[2]&&bi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(b,"class","TimeoutSave"),gi(w,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(n,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),T&&T.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),si(n,f),si(n,g),si(g,y);for(let e=0;e<M.length;e+=1)M[e]&&M[e].m(y,null);wi(y,i[2],!0),si(n,v),si(n,w),si(w,b),si(b,_),i[15](r),x||(C=[fi(y,"change",i[13]),fi(b,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&T.p(t,i),8&i&&e!==(e=t[3]("title")+"")&&yi(s,e),9&i&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&yi(d,P),8&i&&E!==(E=t[3]("timeoutTextSecondary")+"")&&yi(m,E),32&i){let e;for(L=t[5],e=0;e<L.length;e+=1){var r=$n(t,L,e);M[e]?M[e].p(r,i):(M[e]=kn(r),M[e].c(),M[e].m(y,null))}for(;e<M.length;e+=1)M[e].d(1);M.length=L.length}36&i&&wi(y,t[2]),8&i&&A!==(A=t[3]("save")+"")&&yi(_,A)},i:oe,o:oe,d(e){e&&ci(r),T&&T.d(),ui(M,e),i[15](null),x=!1,ai(C)}}}function In(t,e,i){let r;Le(t,$e,e=>i(3,r=e));let n,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==ke(u),p=(Object.keys(Sn).forEach(e=>{Dn(e,Sn[e])}),[{value:r("cooloff24"),text:r("cooloff24Text")},{value:r("cooloff7"),text:r("cooloff7Text")},{value:r("cooloff30"),text:r("cooloff30Text")},{value:r("cooloff3"),text:r("cooloff3Text")}]),h=p[0].value;const m=e=>{e.preventDefault(),window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:h},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)};return t.$$set=e=>{"operator"in e&&i(0,o=e.operator),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,Se.set(e)),1026&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;514&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Dn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,h,r,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){De[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},In,Bn,i,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["operator","lang","clientstyling","clientstylingurl","translationurl"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});Fn=Nn={path:void 0,exports:{},require:function(e,t){return Di(null==t&&Nn.path)}},Nn.exports,Fn.exports=function(){var N;function m(){return N.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function s(e){return void 0===e}function R(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function H(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function z(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function W(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,r){return St(e,t,i,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function j(e){if(null==e._isValid){var t=g(e),i=Y.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function U(e){var t=c(NaN);return null!=e?W(g(t),e):g(t).userInvalidated=!0,t}var Y=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=m.momentProperties=[],G=!1;function q(e,t){var i,r,n,o=V.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(n=t[r=V[i]])||(e[r]=n);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return W(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,r=W({},e);for(i in t)f(t,i)&&(F(e[i])&&F(t[i])?(r[i]={},W(r[i],e[i]),W(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)f(e,i)&&!f(t,i)&&F(e[i])&&(r[i]=W({},r[i]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},oe={};function r(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=n),t&&(oe[t[0]]=function(){return o(n.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),ne[t]=ne[t]||function(r){for(var e,n=r.match(ie),t=0,o=n.length;t<o;t++)oe[n[t]]?n[t]=oe[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(n[i])?n[i].call(e,r):n[i];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=i&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,i,r={};for(i in e)f(e,i)&&(t=d(i))&&(r[t]=e[i]);return r}var ue={};function i(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?p(e):t}function pe(t,i){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=h(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Be(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ce=/\d+/,Pe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,r){Le[e]=u(i)?i:function(e,t){return e&&r?r:i}}function Te(e,t){return f(Le,e)?Le[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Le={},Me={};function x(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),R(i)&&(n=function(e,t){t[i]=h(e)}),r=e.length,t=0;t<r;t++)Me[e[t]]=n}function De(e,n){x(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var C,P=0,E=1,A=2,T=3,L=4,M=5,Se=6,$e=7,ke=8;function Be(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[E]=h(e)-1}),x(["MMM","MMMM"],function(e,t,i,r){r=i._locale.monthsParse(e,r,i._strict);null!=r?t[E]=r:g(i).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=w,Re=w;function He(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function ze(e){return null!=e?(He(this,e),m.updateOffset(this,!0),this):he(this,"Month")}function We(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),o=0;o<12;o++)i[o]=_(i[o]),r[o]=_(r[o]);for(o=0;o<24;o++)n[o]=_(n[o]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),b("Y",Pe),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],P),x("YYYY",function(e,t){t[P]=2===e.length?m.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[P]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[P]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ue=pe("FullYear",!0);function Ye(e,t,i,r,n,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,o,a),s}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,i){i=7+t-i;return-(7+Ve(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,r,n){var o,t=1+7*(t-1)+(7+i-r)%7+Ge(e,r,n),i=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var r,n,o=Ge(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+D(n=e.year()-1,t,i):o>D(e.year(),t,i)?(r=o-D(e.year(),t,i),n=e.year()+1):(n=e.year(),r=o),{week:r,year:n}}function D(e,t,i){var r=Ge(e,t,i),t=Ge(e+1,t,i);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),De(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=h(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),De(["dd","ddd","dddd"],function(e,t,i,r){r=i._locale.weekdaysParse(e,r,i._strict);null!=r?t.d=r:g(i).invalidWeekday=e}),De(["d","e","E"],function(e,t,i,r){t[r]=h(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function rt(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],o=[],a=[],s=[],l=0;l<7;l++)r=c([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),i=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),n.push(t),o.push(i),a.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nt),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),x(["H","HH"],T),x(["k","kk"],function(e,t,i){e=h(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),x(["h","hh"],function(e,t,i){t[T]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var r=e.length-2;t[T]=h(e.substr(0,r)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[T]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var r=e.length-2;t[T]=h(e.substr(0,r)),t[L]=h(e.substr(r))}),x("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[T]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[M]=h(e.substr(n))});w=pe("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},S={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,r,n,o=0;o<e.length;){for(t=(n=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(r=pt(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===S[t]&&Fn&&Fn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Di(),ht(e)}catch(e){S[t]=null}return S[t]}function ht(e,t){return e&&((t=s(t)?$(e):mt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function mt(e,t){if(null===t)return delete S[e],null;var i,r=lt;if(t.abbr=e,null!=S[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=S[e]._config;else if(null!=t.parentLocale)if(null!=S[t.parentLocale])r=S[t.parentLocale]._config;else{if(null==(i=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=i._config}return S[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),S[e]}function $(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=pt(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[E]<0||11<t[E]?E:t[A]<1||t[A]>Be(t[P],t[E])?A:t[T]<0||24<t[T]||24===t[T]&&(0!==t[L]||0!==t[M]||0!==t[Se])?T:t[L]<0||59<t[L]?L:t[M]<0||59<t[M]?M:t[Se]<0||999<t[Se]?Se:-1,g(e)._overflowDayOfYear&&(t<P||A<t)&&(t=A),g(e)._overflowWeeks&&-1===t&&(t=$e),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e){var t,i,r,n,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,c=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){n=wt[t][0],r=!1!==wt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,i=c;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=n+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Et(e,t,i,r,n,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(n,10)];return o&&e.push(parseInt(o,10)),e}function At(e){var t,i,r,n,o=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],r=t,n=e,i&&Je.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=o[8],r=o[9],n=o[10],i?Ct[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,i){return null!=e?e:null!=t?t:i}function Lt(e){var t,i,r,n,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),i=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[A]&&null==e._a[E]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,r=Tt(d.GG,u._a[P],Ze(k(),1,4).year),n=Tt(d.W,1),((o=Tt(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Ze(k(),a,s),r=Tt(d.gg,u._a[P],c.year),n=Tt(d.w,c.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+a,(d.e<0||6<d.e)&&(l=!0)):o=a),n<1||n>D(r,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(r,n,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=Tt(e._a[P],i[P]),(e._dayOfYear>je(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[A]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=i[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[T]&&0===e._a[L]&&0===e._a[M]&&0===e._a[Se]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ve:Ye).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,r,n=""+e._i,o=n.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)r=i[l],(t=(n.match(Te(r,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),a+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),d=r,h=e,null!=(p=t)&&f(Me,d)&&Me[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-a,0<n.length&&g(e).unusedInput.push(n),e._a[T]<=12&&!0===g(e).bigHour&&0<e._a[T]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[T]=(o=e._locale,c=e._a[T],null==(u=e._meridiem)?c:null!=o.meridiemHour?o.meridiemHour(c,u):null!=o.isPM?((o=o.isPM(u))&&c<12&&(c+=12),c=o||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Lt(e),ft(e)}else At(e);else Pt(e);var c,u,d,p,h}function Dt(e){var t,i=e._i,r=e._f;{var n,o;return(e._locale=e._locale||$(e._l),null===i||void 0===r&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(H(i)?e._d=i:a(r)?function(e){var t,i,r,n,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],Mt(t),j(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,i=t):(null==r||o<r||a)&&(r=o,i=t,a)&&(s=!0);W(e,i||t)}(e):r?Mt(e):s(r=(i=e)._i)?i._d=new Date(m.now()):H(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null===(o=_t.exec(n._i))?(Pt(n),!1===n._isValid&&(delete n._isValid,At(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n))):n._d=new Date(+o[1])):a(r)?(i._a=z(r.slice(0),function(e){return parseInt(e,10)}),Lt(i)):F(r)?(n=i)._d||(t=void 0===(o=ce(n._i)).day?o.date:o.day,n._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Lt(n)):R(r)?i._d=new Date(r):m.createFromInputFallback(i),j(e)||(e._d=null),e))}}function St(e,t,i,r,n){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(F(e)&&O(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=i,o._i=e,o._f=t,o._strict=r,(n=new Z(ft(Dt(n=o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function k(e,t,i,r){return St(e,t,i,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function $t(e,t){var i,r;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return k();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}var kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=ce(e),t=e.year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,s=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=kt.length;for(t in e)if(f(e,t)&&(-1===C.call(kt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[kt[i]]){if(r)return!1;parseFloat(e[kt[i]])!==h(e[kt[i]])&&(r=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=$(),this._bubble()}function It(e){return e instanceof Bt}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,i){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),b("Z",Ae),b("ZZ",Ae),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Ae,e)});var Ot=/([\+\-]|\d\d)/gi;function Rt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ot)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||H(e)?e:k(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):k(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var i,r,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=jt.exec(e))?(i="-"===t[1]?-1:1,n={y:0,d:h(t[A])*i,h:h(t[T])*i,m:h(t[L])*i,s:h(t[M])*i,ms:h(Nt(1e3*t[Se]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,n={y:Yt(t[2],i),M:Yt(t[3],i),w:Yt(t[4],i),d:Yt(t[5],i),h:Yt(t[6],i),m:Yt(t[7],i),s:Yt(t[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=k(n.from),i=k(n.to),t=t.isValid()&&i.isValid()?(i=Ht(i,t),t.isBefore(i)?r=Vt(t,i):((r=Vt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),r=new Bt(n),It(e)&&f(e,"_locale")&&(r._locale=e._locale),It(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Gt(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(J(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),qt(this,B(e,t),r),this}}function qt(e,t,i,r){var n=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&He(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),n&&e._d.setTime(e._d.valueOf()+n*i),r)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Gt(1,"add"),Ke=Gt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||H(e)||Zt(e)||R(e)||(i=a(t=e),r=!1,i&&(r=0===t.filter(function(e){return!R(e)&&Zt(t)}).length),i&&r)||function(e){var t,i,r=F(e)&&!O(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)i=o[t],n=n||f(e,i);return r&&n}(e)||null==e;var t,i,r}function Kt(e,t){var i,r;return e.date()<t.date()?-Kt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(i,"months"))<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=$(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ri(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ni(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],r=[],n=this.eras(),o=0,a=n.length;o<a;++o)t.push(_(n[o].name)),e.push(_(n[o].abbr)),i.push(_(n[o].narrow)),r.push(_(n[o].name)),r.push(_(n[o].abbr)),r.push(_(n[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){r(0,[e,e.length],0,t)}function si(e,t,i,r,n){var o;return null==e?Ze(this,r,n).year:(t>(o=D(e,r,n))&&(t=o),function(e,t,i,r,n){e=qe(e,t,i,r,n),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,r,n))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",ni),b("NN",ni),b("NNN",ni),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){r=i._locale.erasParse(e,r,i._strict);r?g(i).era=r:g(i).invalidEra=e}),b("y",Ce),b("yy",Ce),b("yyy",Ce),b("yyyy",Ce),b("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,n):t[P]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),b("G",Pe),b("g",Pe),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",xe,ye),b("ggggg",xe,ye),De(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=h(e)}),De(["gg","GG"],function(e,t,i,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",n),x("Q",function(e,t){t[E]=3*(h(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],A),x("Do",function(e,t){t[A]=h(e.match(v)[0])});_e=pe("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),x(["m","mm"],L);ge=pe("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),x(["s","ss"],M);var li,xe=pe("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),b("S",be,n),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,Ce);function ci(e,t){t[Se]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")x(li,ci);ye=pe("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");n=Z.prototype;function ui(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!O(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||f(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||k(),i=Ht(e,this).startOf("day"),i=m.calendarFormat(this,i)||"sameElse",t=t&&(u(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,k(e)))},n.clone=function(){return new Z(this)},n.diff=function(e,t,i){var r,n,o;if(!this.isValid())return NaN;if(!(r=Ht(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-n)/864e5;break;case"week":o=(this-r-n)/6048e5;break;default:o=this-r}return i?o:p(o)},n.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from(k(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||k(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to(k(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:k(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,i,r){return e=l(e)?e:k(e),t=l(t)?t:k(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},n.isSame=function(e,t){var e=l(e)?e:k(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return j(this)},n.lang=Qe,n.locale=Jt,n.localeData=Qt,n.max=we,n.min=ve,n.parsingFlags=function(){return W({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ue[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ce(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.subtract=Ke,n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?ae(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ae(t,"Z")):ae(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,i;return this.isValid()?(t="moment",i="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},n.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-m(i[r].since).year())*e+i[r].offset;return this.year()},n.year=Ue,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=ze,n.daysInMonth=function(){return Be(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return D(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return D(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return D(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return D(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,i,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,r=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=r.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=w,n.minute=n.minutes=ge,n.second=n.seconds=xe,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:zt(this);if("string"==typeof e){if(null===(e=Rt(Ae,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?qt(this,B(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Rt(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=Wt,n.isUTC=Wt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",ze),n.years=e("years accessor is deprecated. Use year instead",Ue),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return s(this._isDSTShifted)&&(q(t={},this),(t=Dt(t))._a?(e=(t._isUTC?c:k)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,a=0;a<r;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,r){var n=$(),r=c().set(r,t);return n[i](r,e)}function pi(e,t,i){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=di(e,n,i,"month");return r}function hi(e,t,i,r){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var n,o=$(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,r,"day");for(n=0;n<7;n++)s[n]=di(t,(n+a)%7,r,"day");return s}y.calendar=function(e,t,i){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ui,y.postformat=ui,y.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return u(n)?n(e,t,i,r):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(u(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,r=this._eras||$("en")._eras,n=0,o=r.length;n<o;++n)switch("string"==typeof r[n].since&&(i=m(r[n].since).startOf("day"),r[n].since=i.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=m(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}return r},y.erasParse=function(e,t,i){var r,n,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,n=l.length;r<n;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if(0<=[o,a,s].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))||-1!==(n=C.call(this._longMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))||-1!==(n=C.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=c([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=c([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",$);var mi=Math.abs;function fi(e,t,i,r){t=B(t,i);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ie=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),xe=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),Ue=bi("minutes"),y=bi("hours"),_i=bi("days"),xi=bi("months"),Ci=bi("years");var Pi=Math.round,Ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ai(e,t,i,r){var n=B(e).abs(),o=Pi(n.as("s")),a=Pi(n.as("m")),s=Pi(n.as("h")),l=Pi(n.as("d")),c=Pi(n.as("M")),u=Pi(n.as("w")),n=Pi(n.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(a<=1?["m"]:a<i.m&&["mm",a])||(s<=1?["h"]:s<i.h&&["hh",s])||(l<=1?["d"]:l<i.d&&["dd",l]);return(o=(o=null!=i.w?o||(u<=1?["w"]:u<i.w&&["ww",u]):o)||(c<=1?["M"]:c<i.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,o)}var Ti=Math.abs;function Li(e){return(0<e)-(e<0)||+e}function Mi(){var e,t,i,r,n,o,a,s,l,c,u;return this.isValid()?(s=Ti(this._milliseconds)/1e3,l=Ti(this._days),c=Ti(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=Li(this._months)!==Li(u)?"-":"",o=Li(this._days)!==Li(u)?"-":"",a=Li(this._milliseconds)!==Li(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(c?n+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+r+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Bt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),e.milliseconds=mi(e.milliseconds),e.seconds=mi(e.seconds),e.minutes=mi(e.minutes),e.hours=mi(e.hours),e.months=mi(e.months),e.years=mi(e.years),this},I.add=function(e,t){return fi(this,e,t,1)},I.subtract=function(e,t){return fi(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=be,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=we,I.asDays=ve,I.asWeeks=Ke,I.asMonths=w,I.asQuarters=ge,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),r.milliseconds=e%1e3,e=p(e/1e3),r.seconds=e%60,e=p(e/60),r.minutes=e%60,e=p(e/60),r.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},I.clone=function(){return B(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=Ue,I.hours=y,I.days=_i,I.weeks=function(){return p(this.days()/7)},I.months=xi,I.years=Ci,I.humanize=function(e,t){var i,r;return this.isValid()?(i=!1,r=Ei,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Ei,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Ai(this,!i,r,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=Mi,I.toString=Mi,I.toJSON=Mi,I.locale=Jt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mi),I.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Pe),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,i){i._d=new Date(h(e))}),m.version="2.29.4",N=k,m.fn=n,m.min=function(){return $t("isBefore",[].slice.call(arguments,0))},m.max=function(){return $t("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return k(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=U,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},m.parseZone=function(){return k.apply(null,arguments).parseZone()},m.localeData=$,m.isDuration=It,m.monthsShort=function(e,t){return pi(e,t,"monthsShort")},m.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var i,r;return null!=t?(r=lt,null!=S[e]&&null!=S[e].parentLocale?S[e].set(Q(S[e]._config,t)):(t=Q(r=null!=(i=pt(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new ee(t)).parentLocale=S[e],S[e]=r),ht(e)):null!=S[e]&&(null!=S[e].parentLocale?(S[e]=S[e].parentLocale,e===ht()&&ht(e)):null!=S[e]&&delete S[e]),S[e]},m.locales=function(){return te(S)},m.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Pi:"function"==typeof e&&(Pi=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Ei[e]&&(void 0===t?Ei[e]:(Ei[e]=t,"s"===e&&(Ei.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=n,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Nn,Fn,W=Nn.exports;function On(e,t){B(e,t)}const Rn={en:{title:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."}};function Hn(e){var t,i=customElements.get(e.is);i?(t=i.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}class zn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Hn(zn);const Wn=window,jn=Wn.ShadowRoot&&(void 0===Wn.ShadyCSS||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Un=Symbol(),Yn=new WeakMap;class Vn{constructor(e,t,i){if(this._$cssResult$=!0,i!==Un)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return jn&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?Yn.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yn.set(i,e),e}toString(){return this.cssText}}const a=(r,...e)=>{e=1===r.length?r[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+r[i+1],r[0]);return new Vn(e,r,Un)},Gn=jn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const i of t.cssRules)e+=i.cssText;return t=e,new Vn("string"==typeof t?t:t+"",void 0,Un)}},qn=window,Zn=qn.trustedTypes,Xn=Zn?Zn.emptyScript:"",Kn=qn.reactiveElementPolyfillSupport,Jn={toAttribute(e,t){switch(t){case Boolean:e=e?Xn:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Qn=(e,t)=>t!==e&&(t==t||e==e),eo={attribute:!0,type:String,converter:Jn,reflect:!1,hasChanged:Qn},to="finalized";class io extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=eo){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,r,n){return{get(){return this[r]},set(e){var t=this[i];this[r]=e,this.requestUpdate(i,t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||eo}static finalize(){if(this.hasOwnProperty(to))return!1;this[to]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Gn(e))}else void 0!==e&&t.push(Gn(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,jn?r.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=Wn.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,r.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=eo){var r,n=this.constructor._$Ep(e,i);void 0!==n&&!0===i.reflect&&(r=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:Jn).toAttribute(t,i.type),this._$El=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null)}_$AK(e,t){var i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(i=e.converter)?void 0:i.fromAttribute)?e.converter:Jn;this._$El=r,this[r]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Qn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}io[to]=!0,io.elementProperties=new Map,io.elementStyles=[],io.shadowRootOptions={mode:"open"},null!=Kn&&Kn({ReactiveElement:io}),(null!=(Ii=qn.reactiveElementVersions)?Ii:qn.reactiveElementVersions=[]).push("1.6.3");const ro=window,no=ro.trustedTypes,oo=no?no.createPolicy("lit-html",{createHTML:e=>e}):void 0,ao="$lit$",so=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+so,co=`<${lo}>`,uo=document,po=()=>uo.createComment(""),ho=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mo=Array.isArray,fo="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,vo=/>/g,wo=RegExp(`>|${fo}(?:([^\\s"'>=/]+)(${fo}*=${fo}*(?:[^
4
- \r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,_o=/"/g,xo=/^(?:script|style|textarea|title)$/i,Co=Symbol.for("lit-noChange"),Po=Symbol.for("lit-nothing"),Eo=new WeakMap,Ao=uo.createTreeWalker(uo,129,null,!1);function To(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==oo?oo.createHTML(t):t;throw Error("invalid template strings array")}class Lo{constructor({strings:t,_$litType$:i},e){var r;this.parts=[];let n=0,o=0;var a=t.length-1,s=this.parts,[t,l]=((o,e)=>{const a=o.length-1,s=[];let l,c=2===e?"<svg>":"",u=go;for(let n=0;n<a;n++){const a=o[n];let e,t,i=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===go?"!--"===t[1]?u=yo:void 0!==t[1]?u=vo:void 0!==t[2]?(xo.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=wo):void 0!==t[3]&&(u=wo):u===wo?">"===t[0]?(u=null!=l?l:go,i=-1):void 0===t[1]?i=-2:(i=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?wo:'"'===t[3]?_o:bo):u===_o||u===bo?u=wo:u===yo||u===vo?u=go:(u=wo,l=void 0);var d=u===wo&&o[n+1].startsWith("/>")?" ":"";c+=u===go?a+co:0<=i?(s.push(e),a.slice(0,i)+ao+a.slice(i)+so+d):a+so+(-2===i?(s.push(void 0),n):d)}return[To(o,c+(o[a]||"<?>")+(2===e?"</svg>":"")),s]})(t,i);if(this.el=Lo.createElement(t,e),Ao.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(r=Ao.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const i of r.getAttributeNames())if(i.endsWith(ao)||i.startsWith(so)){const e=l[o++];if(t.push(i),void 0!==e){const t=r.getAttribute(e.toLowerCase()+ao).split(so),i=/([.?@])?(.*)/.exec(e);s.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ko:"?"===i[1]?Io:"@"===i[1]?No:$o})}else s.push({type:6,index:n})}for(const i of t)r.removeAttribute(i)}if(xo.test(r.tagName)){const t=r.textContent.split(so),i=t.length-1;if(0<i){r.textContent=no?no.emptyScript:"";for(let e=0;e<i;e++)r.append(t[e],po()),Ao.nextNode(),s.push({type:2,index:++n});r.append(t[i],po())}}}else if(8===r.nodeType)if(r.data===lo)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=r.data.indexOf(so,e+1));)s.push({type:7,index:n}),e+=so.length-1}n++}}static createElement(e,t){var i=uo.createElement("template");return i.innerHTML=e,i}}function Mo(t,i,r=t,n){var o;if(i!==Co){let e=void 0!==n?null==(a=r._$Co)?void 0:a[n]:r._$Cl;var a=ho(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,n),void 0!==n?(null!=(o=r._$Co)?o:r._$Co=[])[n]=e:r._$Cl=e),void 0!==e&&(i=Mo(t,e._$AS(t,i.values),e,n))}return i}class Do{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(t){var{el:{content:e},parts:i}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:uo).importNode(e,!0);Ao.currentNode=r;let n=Ao.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new So(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new Fo(n,this,t)),this._$AV.push(e),s=i[++a]}o!==(null==s?void 0:s.index)&&(n=Ao.nextNode(),o++)}return Ao.currentNode=uo,r}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class So{constructor(e,t,i,r){this.type=2,this._$AH=Po,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=null==(e=null==r?void 0:r.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Mo(this,e,t),ho(e)?e===Po||null==e||""===e?(this._$AH!==Po&&this._$AR(),this._$AH=Po):e!==this._$AH&&e!==Co&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,mo(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Po&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.$(uo.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Lo.createElement(To(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(i);else{const e=new Do(r,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Eo.get(e.strings);return void 0===t&&Eo.set(e.strings,t=new Lo(e)),t}T(e){mo(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new So(this.k(po()),this.k(po()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class $o{constructor(e,t,i,r,n){this.type=1,this._$AH=Po,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Po}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,r=this,n,o){var a=this.strings;let s=!1;if(void 0===a)i=Mo(this,i,r,0),(s=!ho(i)||i!==this._$AH&&i!==Co)&&(this._$AH=i);else{const o=i;let e,t;for(i=a[0],e=0;e<a.length-1;e++)(t=Mo(this,o[n+e],r,e))===Co&&(t=this._$AH[e]),s=s||!ho(t)||t!==this._$AH[e],t===Po?i=Po:i!==Po&&(i+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!o&&this.j(i)}j(e){e===Po?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ko extends $o{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Po?void 0:e}}const Bo=no?no.emptyScript:"";class Io extends $o{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Po?this.element.setAttribute(this.name,Bo):this.element.removeAttribute(this.name)}}class No extends $o{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){var i,r;(e=null!=(t=Mo(this,e,t,0))?t:Po)!==Co&&(t=this._$AH,i=e===Po&&t!==Po||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==Po&&(t===Po||i),i&&this.element.removeEventListener(this.name,this,t),r&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Fo{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Mo(this,e)}}Ni=ro.litHtmlPolyfillSupport;null!=Ni&&Ni(Lo,So),(null!=(Oi=ro.litHtmlVersions)?Oi:ro.litHtmlVersions=[]).push("2.8.0");class Oo extends io{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var r,n=null!=(n=null==i?void 0:i.renderBefore)?n:t;let o=n._$litPart$;if(void 0===o){const e=null!=(r=null==i?void 0:i.renderBefore)?r:null;n._$litPart$=o=new So(t.insertBefore(po(),e),e,void 0,null!=i?i:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return Co}}Oo.finalized=!0,Oo._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:Oo});$i=globalThis.litElementPolyfillSupport;null!=$i&&$i({LitElement:Oo}),(null!=(Bi=globalThis.litElementVersions)?Bi:globalThis.litElementVersions=[]).push("3.3.3");const Ro=[];function Ho(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function zo(e,t,i={}){var r;e&&Ho(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
3
+ }`,s=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,p=T(e),{stylesheet:h,rules:m}=k.get(p)||(p=p,u={stylesheet:(u=e,m=di("style"),u=T(u),h=m,si(u.head||u,h),h.sheet,m.sheet),rules:{}},k.set(p,u),u),p=(m[s]||(m[s]=!0,h.insertRule(`@keyframes ${s} `+d,h.cssRules.length)),e.style.animation||"");return e.style.animation=(p?p+", ":"")+s+` ${r}ms linear ${n}ms 1 both`,S+=1,s}function $(e){M=e}function ke(e){!function(){if(M)return M;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const N=[],Me=[];let F=[];const O=[],R=Promise.resolve();let H=!1;function Be(){H||(H=!0,R.then(p))}function bi(e){F.push(e)}const j=new Set;let W,U=0;function p(){if(0===U){const r=M;do{try{for(;U<N.length;){const r=N[U];U++,$(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),ai(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bi))}}catch(r){throw N.length=0,U=0,r}for($(null),N.length=0,U=0;Me.length;)Me.pop()();for(let e=0;e<F.length;e+=1){var i=F[e];j.has(i)||(j.add(i),i())}}while(F.length=0,N.length);for(;O.length;)O.pop()();H=!1,j.clear(),$(r)}}function Y(e,t,i){var r;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(r=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),r))}const G=new Set;let q;function Z(){q={r:0,c:[],p:q}}function K(){q.r||ai(q.c),q=q.p}function X(e,t){e&&e.i&&(G.delete(e),e.i(t))}function J(e,t,i,r){e&&e.o?G.has(e)||(G.add(e),q.c.push(()=>{G.delete(e),r&&(i&&e.d(1),r())}),e.o(t)):r&&r()}const Q={duration:0};function ee(l,e,t,i){const r={direction:"both"};let c=e(l,t,r),u=i?0:1,d=null,p=null,h=null;function m(){var e,t,i,r;h&&(e=l,t=h,i=(e.style.animation||"").split(", "),r=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-r.length)||(e.style.animation=r.join(", "),S-=i)||x(()=>{S||(k.forEach(e=>{e=e.stylesheet.ownerNode;e&&ci(e)}),k.clear())}))}function f(e,t){var i=e.b-u;return t*=Math.abs(i),{a:u,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:r=w,tick:n=oe,css:o}=c||Q,a={start:_()+t,b:e};if(e||((a.group=q).r+=1),d||p)p=a;else{o&&(m(),h=D(l,u,e,i,t,r,o)),e&&n(0,1),d=f(a,i),bi(()=>Y(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,i),p=null,Y(l,d.b,"start"),o)&&(m(),h=D(l,u,d.b,d.duration,0,r,c.css)),d)if(e>=d.end)n(u=d.b,1-u),Y(l,d.b,"end"),p||(d.b?m():--d.group.r||ai(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*r(l/d.duration),n(u,1-u)}return!(!d&&!p)};let t;0===P.size&&x(E),new Promise(e=>{P.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(W||(W=Promise.resolve()).then(()=>{W=null}),W.then(()=>{c=c(r),n(e)})):n(e)},end(){m(),d=p=null}}}function n(r,e,t,i,n,o,a,s=[-1]){var l=M;$(r);const c=r.$$={fragment:null,ctx:[],props:o,update:oe,not_equal:n,bound:m(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:m(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return c.ctx&&n(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u)&&(i=e,-1===(e=r).$$.dirty[0]&&(N.push(e),Be(),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],c.update(),u=!0,ai(c.before_update),c.fragment=!!i&&i(c.ctx),e.target){if(e.hydrate){o=e.target;const r=Array.from(o.childNodes);c.fragment&&c.fragment.l(r),r.forEach(ci)}else c.fragment&&c.fragment.c();e.intro&&X(r.$$.fragment);var d=r,s=e.target,a=e.anchor,t=e.customElement,{fragment:i,after_update:o}=d.$$;i&&i.m(s,a),t||bi(()=>{var e=d.$$.on_mount.map(h).filter(ue);d.$$.on_destroy?d.$$.on_destroy.push(...e):ai(e),d.$$.on_mount=[]}),o.forEach(bi),p()}$(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(ue);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){ai(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const r=[],n=[];F.forEach(e=>(-1===i.indexOf(e)?r:n).push(e)),n.forEach(e=>e()),F=r}ai(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=oe}$on(e,t){if(!ue(t))return oe;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var te,ie,re="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ne="URLSearchParams"in re,se="Symbol"in re&&"iterator"in Symbol,le="FileReader"in re&&"Blob"in re&&function(){try{return new Blob,!0}catch(e){return!1}}(),he="FormData"in re,me="ArrayBuffer"in re;function fe(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ge(e){return e="string"!=typeof e?String(e):e}function ye(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return se&&(e[Symbol.iterator]=function(){return e}),e}function ve(t){this.map={},t instanceof ve?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function we(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function be(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function _e(e){var t=new FileReader,i=be(t);return t.readAsArrayBuffer(e),i}function xe(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Ce(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:le&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:he&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ne&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&le&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=xe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ie(e))?this._bodyArrayBuffer=xe(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ne&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},le&&(this.blob=function(){var e=we(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return we(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(le)return this.blob().then(_e);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r=we(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=new FileReader,t=be(e),i=(i=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?i[1]:"utf-8",e.readAsText(r,i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},he&&(this.formData=function(){return this.text().then(Te)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(te=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ie=ArrayBuffer.isView||function(e){return e&&-1<te.indexOf(Object.prototype.toString.call(e))}),ve.prototype.append=function(e,t){e=fe(e),t=ge(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},ve.prototype.delete=function(e){delete this.map[fe(e)]},ve.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},ve.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},ve.prototype.set=function(e,t){this.map[fe(e)]=ge(t)},ve.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},ve.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),ye(i)},ve.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),ye(t)},ve.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),ye(i)},se&&(ve.prototype[Symbol.iterator]=ve.prototype.entries);var Pe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,r=(t=t||{}).body;if(e instanceof Ee){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ve(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ve(t.headers)),this.method=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Pe.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in re)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Te(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function Ae(e,t){if(!(this instanceof Ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ve(t.headers),this.url=t.url||"",this._initBody(e)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},Ce.call(Ee.prototype),Ce.call(Ae.prototype),Ae.prototype.clone=function(){return new Ae(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ve(this.headers),url:this.url})},Ae.error=function(){var e=new Ae(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ie=[301,302,303,307,308],Ne=(Ae.redirect=function(e,t){if(-1===Ie.indexOf(t))throw new RangeError("Invalid status code");return new Ae(null,{status:t,headers:{location:e}})},re.DOMException);try{new Ne}catch(s){(Ne=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ne.prototype.constructor=Ne}function Fe(r,s){return new Promise(function(n,e){var o=new Ee(r,s);if(o.signal&&o.signal.aborted)return e(new Ne("Aborted","AbortError"));var i,a=new XMLHttpRequest;function t(){a.abort()}a.onload=function(){var e,r,t={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",r=new ve,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),i=t.shift().trim();if(i){t=t.join(":").trim();try{r.append(i,t)}catch(e){console.warn("Response "+e.message)}}}),r)},i=(o.url.startsWith("file://")&&(a.status<200||599<a.status)?t.status=200:t.status=a.status,t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL"),"response"in a?a.response:a.responseText);setTimeout(function(){n(new Ae(i,t))},0)},a.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){e(new Ne("Aborted","AbortError"))},0)},a.open(o.method,function(t){try{return""===t&&re.location.href?re.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(le?a.responseType="blob":me&&(a.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof ve||re.Headers&&s.headers instanceof re.Headers)?(i=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){i.push(fe(e)),a.setRequestHeader(e,ge(s.headers[e]))}),o.headers.forEach(function(e,t){-1===i.indexOf(t)&&a.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",t)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}function Mi(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Fe.polyfill=!0,re.fetch||(re.fetch=Fe,re.Headers=ve,re.Request=Ee,re.Response=Ae),self.fetch.bind(self);var Oe=function(e,t){return(Oe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function He(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function je(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}function ze(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function We(e){return"function"==typeof e}function Ue(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ye=Ue(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Ve(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}Ze.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=He(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(We(o))try{o()}catch(e){n=e instanceof Ye?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=He(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Xe(u)}catch(e){n=null!=n?n:[],e instanceof Ye?n=ze(ze([],je(n)),je(e.errors)):n.push(e)}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}if(n)throw new Ye(n)}},Ze.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Xe(e);else{if(e instanceof Ze){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},Ze.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},Ze.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},Ze.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ve(t,e)},Ze.prototype.remove=function(e){var t=this._finalizers;t&&Ve(t,e),e instanceof Ze&&e._removeParent(this)},Ze.EMPTY=((t=new Ze).closed=!0,t);var Ge=Ze,qe=Ge.EMPTY;function Ze(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ke(e){return e instanceof Ge||e&&"closed"in e&&We(e.remove)&&We(e.add)&&We(e.unsubscribe)}function Xe(e){We(e)?e():e.unsubscribe()}var Je=void 0,Qe=!1,et=!1,tt={setTimeout:function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n=tt.delegate;return null!=n&&n.setTimeout?n.setTimeout.apply(n,ze([e,t],je(i))):setTimeout.apply(void 0,ze([e,t],je(i)))},clearTimeout:function(e){var t=tt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function it(){}var rt=null;function nt(e){if(Qe){var t=!rt;if(t&&(rt={errorThrown:!1,error:null}),e(),t){var t=rt,i=t.errorThrown,t=t.error;if(rt=null,i)throw t}}else e()}Re(lt,ot=Ge),lt.create=function(e,t,i){return new pt(e,t,i)},lt.prototype.next=function(e){this.isStopped||this._next(e)},lt.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},lt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},lt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,ot.prototype.unsubscribe.call(this),this.destination=null)},lt.prototype._next=function(e){this.destination.next(e)},lt.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},lt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var ot,at=lt,st=Function.prototype.bind;function lt(e){var t=ot.call(this)||this;return t.isStopped=!1,e?Ke(t.destination=e)&&e.add(t):t.destination=gt,t}function ct(e,t){return st.call(e,t)}mt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){ft(e)}},mt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){ft(e)}else ft(e)},mt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){ft(e)}};var ut,dt=mt,pt=(Re(ht,ut=at),ht);function ht(e,t,i){var r=ut.call(this)||this,i=We(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:r&&et?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&ct(e.next,t),error:e.error&&ct(e.error,t),complete:e.complete&&ct(e.complete,t)}):e;return r.destination=new dt(i),r}function mt(e){this.partialObserver=e}function ft(e){var t=e;tt.setTimeout(function(){throw t})}var gt={closed:!0,next:it,error:function(e){throw e},complete:it},t="function"==typeof Symbol&&Symbol.observable||"@@observable";vt.prototype.lift=function(e){var t=new vt;return t.source=this,t.operator=e,t},vt.prototype.subscribe=function(e,t,i){var r,n=this,o=(r=e)&&r instanceof at||r&&We(r.next)&&We(r.error)&&We(r.complete)&&Ke(r)?e:new pt(e,t,i);return nt(function(){var e=n.operator,t=n.source;o.add(e?e.call(o,t):t?n._subscribe(o):n._trySubscribe(o))}),o},vt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},vt.prototype.forEach=function(r,e){var n=this;return new(e=wt(e))(function(e,t){var i=new pt({next:function(e){try{r(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});n.subscribe(i)})},vt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},vt.prototype[t]=function(){return this},vt.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},vt.prototype.toPromise=function(e){var r=this;return new(e=wt(e))(function(e,t){var i;r.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},vt.create=function(e){return new vt(e)};var yt=vt;function vt(e){e&&(this._subscribe=e)}function wt(e){return null!=(e=null!=e?e:Je)?e:Promise}var bt,_t,xt,Ct=Ue(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),t=(Re(kt,xt=yt),kt.prototype.lift=function(e){var t=new Pt(this,this);return t.operator=e,t},kt.prototype._throwIfClosed=function(){if(this.closed)throw new Ct},kt.prototype.next=function(n){var o=this;nt(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=He(o.currentObservers),r=i.next();!r.done;r=i.next())r.value.next(n)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},kt.prototype.error=function(t){var i=this;nt(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},kt.prototype.complete=function(){var t=this;nt(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},kt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(kt.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),kt.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},kt.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},kt.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,r=this.isStopped,n=this.observers;return i||r?qe:(this.currentObservers=null,n.push(e),new Ge(function(){t.currentObservers=null,Ve(n,e)}))},kt.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,r=this.isStopped;t?e.error(i):r&&e.complete()},kt.prototype.asObservable=function(){var e=new yt;return e.source=this,e},kt.create=function(e,t){return new Pt(e,t)},kt),Pt=(Re(Lt,_t=t),Lt.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},Lt.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},Lt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Lt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:qe},Lt),Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0},Tt=(Re(At,bt=t),At.prototype.next=function(e){var t=this,i=t.isStopped,r=t._buffer,n=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(r.push(e),n)||r.push(o.now()+t),this._trimBuffer(),bt.prototype.next.call(this,e)},At.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,r=this._buffer.slice(),n=0;n<r.length&&!e.closed;n+=i?1:2)e.next(r[n]);return this._checkFinalizedStatuses(e),t},At.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,r=this._infiniteTimeWindow,n=(r?1:2)*e;if(e<1/0&&n<i.length&&i.splice(0,i.length-n),!r){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},At);function At(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Et);var r=bt.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=i,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function Lt(e,t){var i=_t.call(this)||this;return i.destination=e,i.source=t,i}function kt(){var e=xt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Mt=[],St={};const Dt=[];function $t(r,n=oe){let o;const a=new Set;function s(e){if(i(r,e)&&(r=e,o)){const e=!Dt.length;for(const e of a)e[1](),Dt.push(e,r);if(e){for(let e=0;e<Dt.length;e+=2)Dt[e][0](Dt[e+1]);Dt.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=oe){const i=[e,t];return a.add(i),1===a.size&&(o=n(s)||oe),e(r),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Bt(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,u=s.length<2;return{subscribe:$t(t,t=>{let i=!1;const r=[];let n=0,o=oe;const a=()=>{var e;n||(o(),e=s(l?r[0]:r,t),u?t(e):o=ue(e)?e:oe)},e=c.map((e,t)=>d(e,e=>{r[t]=e,n&=~(1<<t),i&&a()},()=>{n|=1<<t}));return i=!0,a(),function(){ai(e),o(),i=!1}}).subscribe}}function It(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Nt);var t}var Nt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ft(e,t){return!1!==t.clone&&t.isMergeableObject(e)?zt(Array.isArray(e)?[]:{},e,t):e}function Ot(e,t,i){return e.concat(t).map(function(e){return Ft(e,i)})}function Rt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function Ht(e,t){try{return t in e}catch(e){return!1}}function jt(r,n,o){var a={};return o.isMergeableObject(r)&&Rt(r).forEach(function(e){a[e]=Ft(r[e],o)}),Rt(n).forEach(function(e){var t,i;(!Ht(t=r,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Ht(r,e)&&o.isMergeableObject(n[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:zt)(r[e],n[e],o):a[e]=Ft(n[e],o))}),a}function zt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Ot,i.isMergeableObject=i.isMergeableObject||It,i.cloneUnlessOtherwiseSpecified=Ft;var r=Array.isArray(t);return r===Array.isArray(e)?r?i.arrayMerge(e,t,i):jt(e,t,i):Ft(t,i)}zt.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return zt(e,t,i)},{});throw new Error("first argument should be an array")};var Wt=zt,Ut=function(e,t){return(Ut=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ut(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,g=function(){return(g=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function Gt(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||((r=r||Array.prototype.slice.call(t,0,n))[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function qt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Kt(e){return e.type===y.date}function Xt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Qt(e){return e.type===y.plural}function ei(e){return e.type===y.tag}function ti(e){return e&&"object"==typeof e&&e.type===Vt.number}function ii(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(t=f=f||{})[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(t=y=y||{})[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",(t=Vt=Vt||{})[t.number=0]="number",t[t.dateTime=1]="dateTime";var t=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ri=/(?:[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;var ni=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,oi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_i=/^(@+)?(\+|#+)?[rs]?$/g,xi=/(\*)(0+)|(#+)(0+)|(0+)/g,Ci=/^(0+)$/;function Pi(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(_i,function(e,t,i){return"string"!=typeof i?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===i?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),r}function Ei(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ti(e){return Ei(e)||{}}function Ai(e){for(var a={},t=0,i=e;t<i.length;t++){var r,n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=g(g(g({},a),{notation:"scientific"}),n.options.reduce(function(e,t){return g(g({},e),Ti(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),n.options.reduce(function(e,t){return g(g({},e),Ti(t))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"integer-width":if(1<n.options.length)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(xi,function(e,t,i,r,n,o){if(t)a.minimumIntegerDigits=i.length;else{if(r&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ci.test(n.stem))a.minimumIntegerDigits=n.stem.length;else if(oi.test(n.stem)){if(1<n.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(oi,function(e,t,i,r,n,o){return"*"===i?a.minimumFractionDigits=t.length:r&&"#"===r[0]?a.maximumFractionDigits=r.length:n&&o?(a.minimumFractionDigits=n.length,a.maximumFractionDigits=n.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=n.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Pi(o)))}else _i.test(n.stem)?a=g(g({},a),Pi(n.stem)):((o=Ei(n.stem))&&(a=g(g({},a),o)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ci.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem))&&(a=g(g({},a),r)))}return a}var Li={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var ki=new RegExp("^".concat(t.source,"*")),Si=new RegExp("".concat(t.source,"*$"));function v(e,t){return{start:e,end:t}}var t=!!String.prototype.startsWith,Di=!!String.fromCodePoint,$i=!!Object.fromEntries,Bi=!!String.prototype.codePointAt,Ii=!!String.prototype.trimStart,Ni=!!String.prototype.trimEnd,Fi=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oi=!0;try{Oi="a"===(null==(or=Gi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:or[0])}catch(yo){Oi=!1}var Ri,Hi,ji=t?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},zi=Di?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,r="",n=e.length,o=0;o<n;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Wi=$i?Object.fromEntries:function(e){for(var t={},i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];t[o]=n}return t},Ui=Bi?function(e,t){return e.codePointAt(t)}:function(e,t){var i,r=e.length;if(!(t<0||r<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?i:r-56320+(i-55296<<10)+65536},Yi=Ii?function(e){return e.trimStart()}:function(e){return e.replace(ki,"")},Vi=Ni?function(e){return e.trimEnd()}:function(e){return e.replace(Si,"")};function Gi(e,t){return new RegExp(e,t)}Hi=Oi?(Ri=Gi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ri.lastIndex=t,null!=(t=Ri.exec(e)[1])?t:""}):function(e,t){for(var i,r=[];;){var n=Ui(e,t);if(void 0===n||Ki(n)||33<=(i=n)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094)break;r.push(n),t+=65536<=n?2:1}return zi.apply(void 0,r)};o.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},o.prototype.parseMessage=function(e,t,i){for(var r=[];!this.isEOF();){var n,o=this.char();if(123===o){if((n=this.parseArgument(e,i)).err)return n;r.push(n.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Zi(this.peek()||0)){if((n=this.parseTag(e,t)).err)return n}else if((n=this.parseLiteral(e,t)).err)return n;r.push(n.val)}else{o=this.clonePosition();this.bump(),r.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:r,err:null}},o.prototype.parseTag=function(e,t){var i,r=this.clonePosition(),n=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(n,"/>"),location:v(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Zi(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(i=this.clonePosition(),n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:n,children:t,location:v(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(r,this.clonePosition()))):this.error(f.INVALID_TAG,v(r,this.clonePosition()))},o.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},o.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),r="";;){var n=this.tryParseQuote(t);if(n)r+=n;else{n=this.tryParseUnquoted(e,t);if(n)r+=n;else{n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}i=v(i,this.clonePosition());return{val:{type:y.literal,value:r,location:i},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Zi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},o.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return zi.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var i;return this.isEOF()||60===(i=this.char())||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),zi(i))},o.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:r,location:v(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(i,this.clonePosition())):this.parseArgumentOptions(e,t,r,i);default:return this.error(f.MALFORMED_ARGUMENT,v(i,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Hi(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,i,r){var n,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,v(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(p=Vi(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:v(c,this.clonePosition())}}return(c=this.tryParseArgumentClose(r)).err?c:(h=v(r,this.clonePosition()),l&&ji(null==l?void 0:l.style,"::",0)?(m=Yi(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:h,style:d.val},err:null}:0===m.length?this.error(f.EXPECT_DATE_TIME_SKELETON,h):(u=m,this.locale&&(u=function(e,t){for(var i="",r=0;r<e.length;r++){var n=e.charAt(r);if("j"===n){for(var o=0;r+1<e.length&&e.charAt(r+1)===n;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(Li[t||""]||Li[i||""]||Li["".concat(i,"-001")]||Li["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===n?"H":n}return i}(m,this.locale)),p={type:Vt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(n={},u.replace(ri,function(e){var t=e.length;switch(e[0]){case"G":n.era=4===t?"long":5===t?"narrow":"short";break;case"y":n.year=2===t?"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":n.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][t-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][t-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][t-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][t-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][t-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":n.minute=["numeric","2-digit"][t-1];break;case"s":n.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=t<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""}),n):{}},{val:{type:"date"===a?y.date:y.time,value:i,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:h,style:null!=(m=null==l?void 0:l.style)?m:null},err:null});case"plural":case"selectordinal":case"select":var u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,v(u,g({},u)));this.bumpSpace();var d,p=this.parseIdentifierIfPossible(),h=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),p=this.parseIdentifierIfPossible(),h=d.val}var m,l=this.tryParsePluralOrSelectOptions(e,a,t,p);return l.err?l:(c=this.tryParseArgumentClose(r)).err?c:(m=v(r,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Wi(l.val),location:m},err:null}:{val:{type:y.plural,value:i,options:Wi(l.val),offset:h,pluralType:"plural"===a?"cardinal":"ordinal",location:m},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,v(o,s))}},o.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},o.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},o.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,r=e.split(ni).filter(function(e){return 0<e.length});i<r.length;i++){var n=r[i].split("/");if(0===n.length)throw new Error("Invalid number skeleton");for(var o=n[0],n=n.slice(1),a=0,s=n;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:n})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Vt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Ai(i):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,i,r){for(var n=!1,o=[],a=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=v(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(a.has(s))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(n=!0),this.bumpSpace();u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,i);if(c.err)return c;var d=this.tryParseArgumentClose(u);if(d.err)return d;o.push([s,{value:c.val,location:v(u,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(d=this.parseIdentifierIfPossible()).value,l=d.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var n=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;n=!0,o=10*o+(a-48),this.bump()}r=v(r,this.clonePosition());return n?Fi(o*=i)?{val:o,err:null}:this.error(t,r):this.error(e,r)},o.prototype.offset=function(){return this.position.offset},o.prototype.isEOF=function(){return this.offset()===this.message.length},o.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},o.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ui(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},o.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},o.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},o.prototype.bumpIf=function(e){if(ji(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},o.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},o.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(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},o.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ki(this.char());)this.bump()},o.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var qi=o;function o(e,t){void 0===t&&(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}function Zi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ki(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Xi(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new qi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Jt(e)||Qt(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Zt(e)&&ti(e.style)||(Kt(e)||Xt(e))&&ii(e.style)?delete e.style.location:ei(e)&&i(e.children)})}(e.val),e.val}function Ji(e,t){var i=t&&t.cache?t.cache:ar,r=t&&t.serializer?t.serializer:ir;return(t&&t.strategy?t.strategy:function(e,t){return tr(e,this,1===e.length?Qi:er,t.cache.create(),t.serializer)})(e,{cache:i,serializer:r})}function Qi(e,t,i,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:i(r),n=t.get(i);return void 0===n&&(n=e.call(this,r),t.set(i,n)),n}function er(e,t,i){var r=Array.prototype.slice.call(arguments,3),i=i(r),n=t.get(i);return void 0===n&&(n=e.apply(this,r),t.set(i,n)),n}function tr(e,t,i,r,n){return i.bind(t,e,r,n)}var ir=function(){return JSON.stringify(arguments)};function rr(){this.cache=Object.create(null)}rr.prototype.get=function(e){return this.cache[e]},rr.prototype.set=function(e,t){this.cache[e]=t};var nr,or,ar={create:function(){return new rr}},sr={variadic:function(e,t){return tr(e,this,er,t.cache.create(),t.serializer)},monadic:function(e,t){return tr(e,this,Qi,t.cache.create(),t.serializer)}};(or=nr=nr||{}).MISSING_VALUE="MISSING_VALUE",or.INVALID_VALUE="INVALID_VALUE",or.MISSING_INTL_API="MISSING_INTL_API";Yt(br,pr=Error),br.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var lr,cr,ur,dr,pr,hr=br,mr=(Yt(wr,dr=hr),wr),fr=(Yt(vr,ur=hr),vr),gr=(Yt(yr,cr=hr),yr);function yr(e,t){return cr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),nr.MISSING_VALUE,t)||this}function vr(e,t,i){return ur.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),nr.INVALID_VALUE,i)||this}function wr(e,t,i,r){return dr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),nr.INVALID_VALUE,r)||this}function br(e,t,i){e=pr.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function _r(e,t,i,r,n,o,a){if(1===e.length&&qt(e[0]))return[{type:lr.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(qt(u))s.push({type:lr.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:lr.literal,value:i.getNumberFormat(t).format(o)});else{var d=u.value;if(!(n&&d in n))throw new gr(d,a);d=n[d];if(u.type===y.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?lr.literal:lr.object,value:d});else if(Kt(u)){var p="string"==typeof u.style?r.date[u.style]:ii(u.style)?u.style.parsedOptions:void 0;s.push({type:lr.literal,value:i.getDateTimeFormat(t,p).format(d)})}else if(Xt(u))p="string"==typeof u.style?r.time[u.style]:ii(u.style)?u.style.parsedOptions:r.time.medium,s.push({type:lr.literal,value:i.getDateTimeFormat(t,p).format(d)});else if(Zt(u))(p="string"==typeof u.style?r.number[u.style]:ti(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:lr.literal,value:i.getNumberFormat(t,p).format(d)});else{if(ei(u)){var h=u.children,m=u.value,f=n[m];if("function"!=typeof f)throw new fr(m,"function",a);m=f(_r(h,t,i,r,n,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),s.push.apply(s,m.map(function(e){return{type:"string"==typeof e?lr.literal:lr.object,value:e}}))}if(Jt(u)){if(!(g=u.options[d]||u.options.other))throw new mr(u.value,d,Object.keys(u.options),a);s.push.apply(s,_r(g.value,t,i,r,n))}else if(Qt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new hr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',nr.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new mr(u.value,d,Object.keys(u.options),a);s.push.apply(s,_r(g.value,t,i,r,n,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===lr.literal&&t.type===lr.literal?i.value+=t.value:e.push(t),e},[])}function xr(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(t=lr=lr||{})[t.literal=0]="literal",t[t.object=1]="object";Object.defineProperty(Pr,"defaultLocale",{get:function(){return Pr.memoizedDefaultLocale||(Pr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Pr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Pr.memoizedDefaultLocale=null,Pr.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},Pr.__parse=Xi,Pr.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"}}};var Cr=Pr;function Pr(e,t,i,r){var n,o,a=this;if(void 0===t&&(t=Pr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=a.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===lr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return _r(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=t,this.resolvedLocale=Pr.resolveLocale(t),"string"==typeof e){if(this.message=e,!Pr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Pr.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,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=(n=Pr.formats,(o=i)?Object.keys(n).reduce(function(e,t){var i,r;return e[t]=(i=n[t],(r=o[t])?g(g(g({},i||{}),r||{}),Object.keys(i).reduce(function(e,t){return e[t]=g(g({},i[t]),r[t]||{}),e},{})):i),e},g({},n)):n),this.formatters=r&&r.formatters||{getNumberFormat:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:sr.variadic}),getDateTimeFormat:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr(t.dateTime),strategy:sr.variadic}),getPluralRules:Ji(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,Gt([void 0],t,!1)))},{cache:xr(t.pluralRules),strategy:sr.variadic})}}const Er={},Tr=(e,t,i)=>i&&(t in Er||(Er[t]={}),e in Er[t]||(Er[t][e]=i),i),Ar=(t,i)=>{if(null!=i){if(i in Er&&t in Er[i])return Er[i][t];var r=qr(i);for(let e=0;e<r.length;e++){var n=function(e,t){if(!Mr(e))return null;e=function(e){return Lr[e]||null}(e),e=function(e,i){if(null!=i){if(i in e)return e[i];var r=i.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const i=r.slice(e,r.length).join(".");if(i in t){t=t[i];break}}t=t[r[e]]}else t=void 0;return t}}(e,t);return e}(r[e],t);if(n)return Tr(t,i,n)}}};let Lr;const kr=$t({});function Mr(e){return e in Lr}function B(t,...i){delete Er[t],kr.update(e=>(e[t]=Wt.all([e[t]||{},...i]),e))}Bt([kr],([e])=>Object.keys(e)),kr.subscribe(e=>Lr=e);const Sr={};function Dr(e){return Sr[e]}function $r(e){return null!=e&&qr(e).some(e=>{return null==(e=Dr(e))?void 0:e.size})}function Br(r,e){return Promise.all(e.map(e=>{return t=r,i=e,Sr[t].delete(i),0===Sr[t].size&&delete Sr[t],e().then(e=>e.default||e);var t,i})).then(e=>B(r,...e))}const Ir={};function Nr(e){var t;return $r(e)?(t=qr(e).map(e=>{var t=Dr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),Ir[e]=Promise.all(t.map(([e,t])=>Br(e,t))).then(()=>{if($r(e))return Nr(e);delete Ir[e]}),Ir[e]):e in Ir?Ir[e]:Promise.resolve()}const Fr={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Or(){return Fr}const Rr=$t(!1);var Hr=Object.defineProperty,Di=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,Ur=(e,t,i)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;let Yr;const Vr=$t(null);function Gr(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function qr(e,t=Fr.fallbackLocale){e=Gr(e);return t?[...new Set([...e,...Gr(t)])]:e}function Zr(){return null!=Yr?Yr:void 0}Vr.subscribe(e=>{Yr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});Bi=((e,t)=>{for(var i in t=t||{})zr.call(t,i)&&Ur(e,i,t[i]);if(jr)for(var i of jr(t))Wr.call(t,i)&&Ur(e,i,t[i]);return e})({},Vr);const Se=Di(Bi,$i({set:t=>{if(t&&function(e){if(null==e)return;const t=qr(e);for(let e=0;e<t.length;e++){const i=t[e];if(Mr(i))return i}}(t)&&$r(t)){const{loadingDelay:i}=Or();let e;return"undefined"!=typeof window&&null!=Zr()&&i?e=window.setTimeout(()=>Rr.set(!0),i):Rr.set(!0),Nr(t).then(()=>{Vr.set(t)}).finally(()=>{clearTimeout(e),Rr.set(!1)})}return Vr.set(t)}})),Kr=i=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=i(e)}};var Xr=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,tn=(e,t,i)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,rn=(e,t)=>{for(var i in t=t||{})Qr.call(t,i)&&tn(e,i,t[i]);if(Jr)for(var i of Jr(t))en.call(t,i)&&tn(e,i,t[i]);return e},nn=(e,t)=>{var i={};for(r in e)Qr.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Jr)for(var r of Jr(e))t.indexOf(r)<0&&en.call(e,r)&&(i[r]=e[r]);return i};const on=(e,t)=>{var i=Fr["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},an=Kr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=on("number",i)),new Intl.NumberFormat(t,e)}),sn=Kr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=on("date",i):0===Object.keys(e).length&&(e=on("date","short")),new Intl.DateTimeFormat(t,e)}),ln=Kr(e=>{var{locale:t,format:i}=e,e=nn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=on("time",i):0===Object.keys(e).length&&(e=on("time","short")),new Intl.DateTimeFormat(t,e)}),cn=Kr((e,t=Zr())=>new Cr(e,t,Fr.formats,{ignoreTag:Fr.ignoreTag})),De=Bt([Se,kr],()=>(e,t={})=>{var i,r;let n=t;"object"==typeof e&&(e=(n=e).id);var{values:o,locale:a=Zr(),default:s}=n;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ar(e,a);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(i=null==(i=(r=Fr).handleMissingMessage)?void 0:i.call(r,{locale:a,id:e,defaultValue:s}))?i:s)?r:e;if(!o)return l;let c=l;try{c=cn(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),un=(Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return ln(rn({locale:t},e))})(t).format(e)),Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return sn(rn({locale:t},e))})(t).format(e)),Bt([Se],()=>(e,t)=>((e={})=>{var{locale:t=Zr()}=e,e=nn(e,["locale"]);return an(rn({locale:t},e))})(t).format(e)),Bt([Se,kr],()=>(e,t=Zr())=>Ar(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Mt.indexOf(e)&&(t=new Tt(t),St[e]=t,Mt.push(e)),St[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),$e=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function dn(e,t){B(e,t)}const pn={en:{profileUpdateSuccess:"Profile updated!",timeoutSuccess:"Timeout active",selfExclusionSuccess:"Self exclusion active",accountClosureSuccess:"Account closed",limitsUpdateSuccess:"Limits updated",limitsDeleteSuccess:"Limits deleted",passwordChangedSuccess:"Password changed successfully",realityCheckSuccess:"Reality check options saved"},"zh-hk":{profileUpdateSuccess:"資料更新!",timeoutSuccess:"超時有效",selfExclusionSuccess:"自我排斥活躍",accountClosureSuccess:"賬戶關閉",limitsUpdateSuccess:"限制已更新",limitsDeleteSuccess:"已刪除限制",passwordChangedSuccess:"密碼修改成功",realityCheckSuccess:"現實檢查選項已保存"},fr:{profileUpdateSuccess:"Mise à jour du profil!",timeoutSuccess:"Délai d'attente actif",selfExclusionSuccess:"Auto exclusion active",accountClosureSuccess:"Compte fermé",limitsUpdateSuccess:"Limites des mises à jour",limitsDeleteSuccess:"Limites supprimées",passwordChangedSuccess:"Le mot de passe a été modifié avec succés",realityCheckSuccess:"Options de contrôle de la réalité sauvegardées"},ro:{profileUpdateSuccess:"Profil updatat!",timeoutSuccess:"Timeout activ",selfExclusionSuccess:"Auto-excludere activa",accountClosureSuccess:"Cont inchis",limitsUpdateSuccess:"Limite updatate",limitsDeleteSuccess:"Limite sterse",passwordChangedSuccess:"Parola schimbata cu success",realityCheckSuccess:"Optiunile de verificare de timp salvate"},es:{profileUpdateSuccess:"Perfil actualizado!",timeoutSuccess:"Pausa activa",selfExclusionSuccess:"Auto Exclusión activa.",accountClosureSuccess:"Cuenta cerrada",limitsUpdateSuccess:"Limites actualizados",limitsDeleteSuccess:"Limites delegados",passwordChangedSuccess:"Cambio de Contraseña satisfactorio",realityCheckSuccess:"Opciones de verificación de realidad guardadas"},pt:{profileUpdateSuccess:"Perfil atualizado!",timeoutSuccess:"Tempo Limite ativo",selfExclusionSuccess:"Autoexclusão ativa",accountClosureSuccess:"Conta encerrada",limitsUpdateSuccess:"Limites atualizados",limitsDeleteSuccess:"Limites excluídos",passwordChangedSuccess:"Senha alterada com sucesso",realityCheckSuccess:"Opções de verificação de realidade salvas"},hr:{profileUpdateSuccess:"Profil ažuriran!",timeoutSuccess:"Pauza je aktivna",selfExclusionSuccess:"Aktivno samoisključivanje",accountClosureSuccess:"Račun zatvoren",limitsUpdateSuccess:"Ograničenja ažurirana",limitsDeleteSuccess:"Ograničenja izbrisana",passwordChangedSuccess:"Lozinka je uspješno promijenjena",realityCheckSuccess:"Opcije provjere stvarnosti spremljene"}};function hn(e,t){B(e,t)}const mn={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"}};function fn(e,t){B(e,t)}const gn={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"}};function yn(i){let r,n,o,a,s,l,c=i[2]("logoutButton")+"";return{c(){r=di("div"),n=di("button"),o=di("span"),a=hi(c),gi(r,"class","GeneralLogout")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),s||(l=fi(n,"click",i[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yi(a,c)},d(e){e&&ci(r),s=!1,l()}}}function vn(o){let i,r,n,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let i,r,n=o[2]("logoutButton")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","PlayerLogoutText")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&n!==(n=e[2]("logoutButton")+"")&&yi(r,n)},d(e){e&&ci(i)}}}();return{c(){i=di("p"),r=di("span"),n=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=pi("path"),u=pi("path"),d=mi(),m&&m.c(),gi(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(c,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),gi(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gi(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),gi(n,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gi(n,"data-name","Layer 1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"viewBox","0 0 150 150"),L(r,"width",o[3]?o[4].matches?"50px":"24px":"20px"),gi(i,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,a),si(a,s),si(s,l),si(n,c),si(n,u),si(i,d),m&&m.m(i,null),p||(h=fi(i,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&ci(i),m&&m.d(),p=!1,h()}}}function wn(i){let r;function n(e){return"PlayerAccountMenu"===e[0]?vn:yn}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[14](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[14](null)}}}function bn(t,e,i){let r;Le(t,De,e=>i(2,r=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{buttonlocation:s=""}=e,{lang:l=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p="",h=!1,m=window.navigator.userAgent,f="PC"!==$e(m);e=window.matchMedia("(min-width: 768px)");Object.keys(gn).forEach(e=>{fn(e,gn[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/v1/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"buttonlocation"in e&&i(0,s=e.buttonlocation),"lang"in e&&i(8,l=e.lang),"clientstyling"in e&&i(9,c=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,d=e.translationurl)},t.$$.update=()=>{if(193&t.$$.dirty&&o&&a&&s&&(o||(p="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(p)),a||(p="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(p))),256&t.$$.dirty&&l&&(e=l,Se.set(e)),514&t.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),1026&t.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{fn(e,t[e])})}).catch(e=>{console.log(e)})},[s,n,r,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){Me[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}function _n(e,t,i){e=e.slice();return e[32]=t[i],e}function xn(i){let r,n,o,a,s,l,c,u,d,p,h,m=i[32].label+"";function f(){return i[19](i[32])}return{c(){r=di("div"),n=di("p"),o=di("img"),s=mi(),l=di("span"),c=hi(m),u=mi(),gi(o,"class","PlayerAccountMenuItemIcon "+(i[10]?"PlayerAccountMenuItemIconMobile":"")),b(o.src,a=i[32].img)||gi(o,"src",a),gi(l,"class","PlayerAccountMenuItemTitle"),gi(n,"class","PlayerAccountMenuItemWrapper"),gi(r,"class",d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(n,s),si(n,l),si(l,c),si(r,u),p||(h=fi(r,"click",f),p=!0)},p(e,t){i=e,32&t[0]&&!b(o.src,a=i[32].img)&&gi(o,"src",a),32&t[0]&&m!==(m=i[32].label+"")&&yi(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(i[6]!==i[32].id||i[10]?"":"PlayerAccountMenuActiveItemBox"))&&gi(r,"class",d)},d(e){e&&ci(r),p=!1,h()}}}function Cn(i){let r,n=function(t){let i,r,n,o,a,s,l,c,u,d,p,h,m=t[10]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[9]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h3"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerAccountMenuCategoryTitle"),gi(r,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=[fi(n,"click",i[12]),fi(p,"click",i[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,ai(f)}}}(t),f=t[10]&&function(e){let i,r;return{c(){i=di("div"),ae(r=di("general-logout"),"endpoint",e[1]),ae(r,"session",e[0]),ae(r,"buttonlocation","PlayerAccountMenu"),ae(r,"clientstyling",e[2]),ae(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&ae(r,"endpoint",e[1]),1&t[0]&&ae(r,"session",e[0]),4&t[0]&&ae(r,"clientstyling",e[2]),8&t[0]&&ae(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=xn(_n(t,g,e));let v=!t[10]&&function(e){let i,r;return{c(){i=di("div"),ae(r=di("general-logout"),"endpoint",e[1]),ae(r,"session",e[0]),ae(r,"buttonlocation","PlayerAccountMenu"),ae(r,"clientstyling",e[2]),ae(r,"clientstylingurl",e[3]),gi(i,"class","PlayerAccountLogOutArea")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]&&ae(r,"endpoint",e[1]),1&t[0]&&ae(r,"session",e[0]),4&t[0]&&ae(r,"clientstyling",e[2]),8&t[0]&&ae(r,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}(t);return{c(){i=di("div"),r=di("div"),m&&m.c(),n=mi(),o=di("p"),a=hi(t[7]),s=mi(),l=di("p"),c=hi(t[8]),u=mi(),f&&f.c(),d=mi(),p=di("div");for(let e=0;e<y.length;e+=1)y[e].c();h=mi(),v&&v.c(),gi(o,"class","PlayerAccountMenuUser"),gi(l,"class","PlayerAccountMenuEmail"),gi(r,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),gi(p,"class","PlayerAccountMenuList"),gi(i,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){li(e,i,t),si(i,r),m&&m.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(r,u),f&&f.m(r,null),si(i,d),si(i,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);si(i,h),v&&v.m(i,null)},p(t,i){if(t[10]&&m.p(t,i),128&i[0]&&yi(a,t[7]),256&i[0]&&yi(c,t[8]),t[10]&&f.p(t,i),9312&i[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var r=_n(t,g,e);y[e]?y[e].p(r,i):(y[e]=xn(r),y[e].c(),y[e].m(p,null))}for(;e<y.length;e+=1)y[e].d(1);y.length=g.length}t[10]||v.p(t,i)},d(e){e&&ci(i),m&&m.d(),f&&f.d(),ui(y,e),v&&v.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[20](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[20](null)}}}function Pn(i,e,r){let t;Le(i,De,e=>r(9,t=e));let n,o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{selecteditem:u=""}=e,{userroles:d=""}=e,{clientstyling:p=""}=e,{clientstylingurl:h=""}=e,{translationurl:m=""}=e,f=[],g=window.navigator.userAgent,y="PC"!==$e(g),v="",w="";e=window.matchMedia("(min-width: 768px)");Object.keys(mn).forEach(e=>{hn(e,mn[e])});const b=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":r(5,f=e.data.accountMenuInfo);break;case"UserSessionID":r(0,s=e.data.session)}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),r(6,o=e.id)};return ke(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),i.$$set=e=>{"endpoint"in e&&r(1,a=e.endpoint),"session"in e&&r(0,s=e.session),"playerid"in e&&r(14,l=e.playerid),"lang"in e&&r(15,c=e.lang),"selecteditem"in e&&r(16,u=e.selecteditem),"userroles"in e&&r(17,d=e.userroles),"clientstyling"in e&&r(2,p=e.clientstyling),"clientstylingurl"in e&&r(3,h=e.clientstylingurl),"translationurl"in e&&r(18,m=e.translationurl)},i.$$.update=()=>{if(32768&i.$$.dirty[0]&&c&&(t=c,Se.set(t)),49155&i.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/v1/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(7,v=e.username),r(8,w=e.email)},e=>{console.error(e)})),65536&i.$$.dirty[0]&&u&&r(6,o=u),24&i.$$.dirty[0]&&h&&n){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;20&i.$$.dirty[0]&&p&&n&&((e=document.createElement("style")).innerHTML=p,n.appendChild(e)),262144&i.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{hn(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,n,f,o,v,w,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){Me[e?"unshift":"push"](()=>{n=e,r(4,n)})}]}function En(e,t,i){e=e.slice();return e[14]=t[i],e}function Tn(t){let n,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=An(En(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gi(n,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(2&i){let e;for(o=t[1],e=0;e<o.length;e+=1){var r=En(t,o,e);a[e]?a[e].p(r,i):(a[e]=An(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function An(e){let i,r,n,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){i=di("div"),r=di("div"),n=di("img"),s=mi(),l=di("p"),c=hi(h),u=mi(),d=di("p"),p=mi(),gi(n,"class","PlayerAccountNotificationIcon"),b(n.src,o=e[14].icon)||gi(n,"src",o),gi(n,"alt",a=e[14].title),gi(l,"class","PlayerAccountNotificationTitle"),gi(r,"class","PlayerAccountNotificationBoxHeader"),gi(d,"class","PlayerAccountNotificationText"),gi(i,"class","PlayerAccountNotificationBox"),L(i,"background",e[14].backgroundColor)},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,s),si(r,l),si(l,c),si(i,u),si(i,d),d.innerHTML=m,si(i,p)},p(e,t){2&t&&!b(n.src,o=e[14].icon)&&gi(n,"src",o),2&t&&a!==(a=e[14].title)&&gi(n,"alt",a),2&t&&h!==(h=e[14].title+"")&&yi(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&L(i,"background",e[14].backgroundColor)},d(e){e&&ci(i)}}}function Ln(i){let r;function n(e){if(e[1].length)return Tn}let o=n(i),a=o&&o(i);return{c(){r=di("div"),a&&a.c(),this.c=oe},m(e,t){li(e,r,t),a&&a.m(r,null),i[7](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a&&a.d(),i[7](null)}}}function kn(t,e,i){let r,{customnotif:n=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==$e(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(i(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{n.replace(" ",""),u=n.split(",")};return ke(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&i(4,n=e.customnotif),"clientstyling"in e&&i(5,o=e.clientstyling),"clientstylingurl"in e&&i(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&n&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&r){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&r&&((e=document.createElement("style")).innerHTML=o,r.appendChild(e))},[r,c,l,d,n,o,a,function(e){Me[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function Mn(e,t){B(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},bn,wn,i,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","buttonlocation","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-menu")||customElements.define("player-account-menu",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Pn,Cn,i,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","selecteditem","userroles","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[14]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),p()}get selecteditem(){return this.$$.ctx[16]}set selecteditem(e){this.$$set({selecteditem:e}),p()}get userroles(){return this.$$.ctx[17]}set userroles(e){this.$$set({userroles:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-notifications")||customElements.define("player-account-notifications",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},kn,Ln,i,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["customnotif","clientstyling","clientstylingurl"]}get customnotif(){return this.$$.ctx[4]}set customnotif(e){this.$$set({customnotif:e}),p()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const Sn={en:{title:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",cooloff24:"CoolOffFor24Hours",cooloff7:"CoolOffFor7Days",cooloff30:"CoolOffFor30Days",cooloff3:"CoolOffFor3Months",cooloff24Text:"24 hours",cooloff7Text:"7 days",cooloff30Text:"30 days",cooloff3Text:"3 months"},"zh-hk":{title:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",cooloff24:"冷卻 24 小時",cooloff7:"冷卻 7 天",cooloff30:"冷卻 30 天",cooloff3:"冷靜3個月",cooloff24Text:"24小時",cooloff7Text:"7天",cooloff30Text:"30天",cooloff3Text:"3個月"},fr:{title:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:'Veuillez noter que l\'"installation du temps mort" ne remplace en aucun cas "l\'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d\'auto exclusion" ou nous contacter dès que possible.',save:"Savez",cooloff24:"Pause de 24 heures",cooloff7:"Pause de 7 jours",cooloff30:"Pause de 30 jours",cooloff3:"Pause de 3 mois",cooloff24Text:"24 heures",cooloff7Text:"7 jours",cooloff30Text:"30 jours",cooloff3Text:"3 mois"},ro:{title:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",cooloff24:"24 ore",cooloff7:"7 zile",cooloff30:"30 zile",cooloff3:"3 luni",cooloff24Text:"24 ore",cooloff7Text:"7 zile",cooloff30Text:"30 zile",cooloff3Text:"3 luni"},es:{title:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",cooloff24:"CoolOffPor24Horas",cooloff7:"CoolOffPor7Días",cooloff30:"CoolOffPor30Días",cooloff3:"CoolOffPor3Meses",cooloff24Text:"24 horas",cooloff7Text:"7 días",cooloff30Text:"30 días",cooloff3Text:"3 meses"},pt:{title:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",cooloff24:"Autoexclusão por 24 horas",cooloff7:"Autoexclusão por 7 dias",cooloff30:"Autoexclusão por 30 dias",cooloff3:"Autoexclusão por 3 meses",cooloff24Text:"24 horas",cooloff7Text:"7 dias",cooloff30Text:"30 dias30 dias",cooloff3Text:"3 meses"},hr:{title:"Pauza",timeoutTextFirst:"{operatorname} vam pruža jednostavan način da se odmorite od igara. Možete zatražiti automatsko blokiranje računa na 24 sata. Tijekom privremene zabrane",timeoutTextSecondary:'Imajte na umu da "Mogućnost pauze" ni u kojem slučaju ne zamjenjuje "Samoisključenje". Ako mislite da imate problem ovisnosti o kockanju',save:"Spremi",cooloff24:"PauzaZa24Sata",cooloff7:"PauzaZa7Dana",cooloff30:"PauzaZa30Dana",cooloff3:"PauzaZa3Mjeseca",cooloff24Text:"24 sata",cooloff7Text:"7 dana",cooloff30Text:"30 dana",cooloff3Text:"3 mjeseca"}};function Dn(e,t,i){e=e.slice();return e[21]=t[i].value,e[22]=t[i].text,e}function $n(e){let i,r,t=e[22]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[21],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Bn(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,e=i[3]("title")+"",P=i[3]("timeoutTextFirst",{values:{operatorname:i[0]}})+"",E=i[3]("timeoutTextSecondary")+"",T=i[3]("save")+"",A=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TimeoutTitleMobile"),gi(p,"part","TimeoutTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),L=i[5],k=[];for(let e=0;e<L.length;e+=1)k[e]=$n(Dn(i,L,e));return{c(){r=di("div"),n=di("form"),A&&A.c(),o=mi(),a=di("h2"),s=hi(e),l=mi(),c=di("div"),u=di("p"),d=hi(P),p=mi(),h=di("p"),m=hi(E),f=mi(),g=di("div"),y=di("select");for(let e=0;e<k.length;e+=1)k[e].c();v=mi(),w=di("div"),b=di("button"),_=hi(T),this.c=oe,gi(a,"class","TimeoutTitle "+(i[4]?"TimeoutTitleNone":"")),gi(c,"class","TimeoutDescription "+(i[4]?"TimeoutDescriptionMobile":"")),gi(y,"class","TimeoutSelect "+(i[4]?"TimeoutSelectMobile":"")),void 0===i[2]&&bi(()=>i[13].call(y)),gi(g,"class","TimeoutSelectWrapper"),gi(b,"class","TimeoutSave"),gi(w,"class","TimeoutActionButtons "+(i[4]?"TimeoutActionButtonsMobile":"")),gi(n,"class","TimeoutWrapper "+(i[4]?"TimeoutWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),A&&A.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),si(n,f),si(n,g),si(g,y);for(let e=0;e<k.length;e+=1)k[e]&&k[e].m(y,null);wi(y,i[2],!0),si(n,v),si(n,w),si(w,b),si(b,_),i[15](r),x||(C=[fi(y,"change",i[13]),fi(b,"click",i[14])],x=!0)},p(t,[i]){if(t[4]&&A.p(t,i),8&i&&e!==(e=t[3]("title")+"")&&yi(s,e),9&i&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&yi(d,P),8&i&&E!==(E=t[3]("timeoutTextSecondary")+"")&&yi(m,E),32&i){let e;for(L=t[5],e=0;e<L.length;e+=1){var r=Dn(t,L,e);k[e]?k[e].p(r,i):(k[e]=$n(r),k[e].c(),k[e].m(y,null))}for(;e<k.length;e+=1)k[e].d(1);k.length=L.length}36&i&&wi(y,t[2]),8&i&&T!==(T=t[3]("save")+"")&&yi(_,T)},i:oe,o:oe,d(e){e&&ci(r),A&&A.d(),ui(k,e),i[15](null),x=!1,ai(C)}}}function In(t,e,i){let r;Le(t,De,e=>i(3,r=e));let n,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=(Object.keys(Sn).forEach(e=>{Mn(e,Sn[e])}),[{value:r("cooloff24"),text:r("cooloff24Text")},{value:r("cooloff7"),text:r("cooloff7Text")},{value:r("cooloff30"),text:r("cooloff30Text")},{value:r("cooloff3"),text:r("cooloff3Text")}]),h=p[0].value;const m=e=>{e.preventDefault(),window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:h},window.location.href)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)};return t.$$set=e=>{"operator"in e&&i(0,o=e.operator),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,Se.set(e)),1026&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;514&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mn(e,t[e])})}).catch(e=>{console.log(e)})},[o,n,h,r,d,p,m,f,a,s,l,c,()=>f(),function(){h=pe(this),i(2,h),i(5,p)},e=>m(e),function(e){Me[e?"unshift":"push"](()=>{n=e,i(1,n)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},In,Bn,i,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["operator","lang","clientstyling","clientstylingurl","translationurl"]}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});Fn=Nn={path:void 0,exports:{},require:function(e,t){return Mi(null==t&&Nn.path)}},Nn.exports,Fn.exports=function(){var N;function m(){return N.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(f(e,t))return;return 1}function s(e){return void 0===e}function R(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function H(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function j(e,t){for(var i=[],r=e.length,n=0;n<r;++n)i.push(t(e[n],n));return i}function z(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,r){return St(e,t,i,r,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function W(e){if(null==e._isValid){var t=g(e),i=Y.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function U(e){var t=c(NaN);return null!=e?z(g(t),e):g(t).userInvalidated=!0,t}var Y=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,r=0;r<i;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},V=m.momentProperties=[],G=!1;function q(e,t){var i,r,n,o=V.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(n=t[r=V[i]])||(e[r]=n);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,m.updateOffset(this),G=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function K(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return z(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,o),s){for(var e,t,i=[],r=arguments.length,n=0;n<r;n++){if(e="","object"==typeof arguments[n]){for(t in e+="\n["+n+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[n];i.push(e)}K(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var X={};function J(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),X[e]||(K(t),X[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,r=z({},e);for(i in t)f(t,i)&&(F(e[i])&&F(t[i])?(r[i]={},z(r[i],e[i]),z(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)f(e,i)&&!f(t,i)&&F(e[i])&&(r[i]=z({},r[i]));return r}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var r=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ne={},oe={};function r(e,t,i,r){var n="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=n),t&&(oe[t[0]]=function(){return o(n.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),ne[t]=ne[t]||function(r){for(var e,n=r.match(ie),t=0,o=n.length;t<o;t++)oe[n[t]]?n[t]=oe[n[t]]:n[t]=(e=n[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",i=0;i<o;i++)t+=u(n[i])?n[i].call(e,r):n[i];return t}}(t),ne[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=i&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,i,r={};for(i in e)f(e,i)&&(t=d(i))&&(r[t]=e[i]);return r}var ue={};function i(e,t){ue[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function h(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?p(e):t}function pe(t,i){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,i),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=h(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Be(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var n=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ce=/\d+/,Pe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,r){Le[e]=u(i)?i:function(e,t){return e&&r?r:i}}function Ae(e,t){return f(Le,e)?Le[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,r,n){return t||i||r||n})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Le={},ke={};function x(e,i){var t,r,n=i;for("string"==typeof e&&(e=[e]),R(i)&&(n=function(e,t){t[i]=h(e)}),r=e.length,t=0;t<r;t++)ke[e[t]]=n}function Me(e,n){x(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}var C,P=0,E=1,T=2,A=3,L=4,k=5,Se=6,De=7,$e=8;function Be(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),x(["M","MM"],function(e,t){t[E]=h(e)-1}),x(["MMM","MMMM"],function(e,t,i,r){r=i._locale.monthsParse(e,r,i._strict);null!=r?t[E]=r:g(i).invalidMonth=e});var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=w,Re=w;function He(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function je(e){return null!=e?(He(this,e),m.updateOffset(this,!0),this):he(this,"Month")}function ze(){function e(e,t){return t.length-e.length}for(var t,i=[],r=[],n=[],o=0;o<12;o++)t=c([2e3,o]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),n.push(this.months(t,"")),n.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),n.sort(e),o=0;o<12;o++)i[o]=_(i[o]),r[o]=_(r[o]);for(o=0;o<24;o++)n[o]=_(n[o]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function We(e){return de(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),b("Y",Pe),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",xe,ye),b("YYYYYY",xe,ye),x(["YYYYY","YYYYYY"],P),x("YYYY",function(e,t){t[P]=2===e.length?m.parseTwoDigitYear(e):h(e)}),x("YY",function(e,t){t[P]=m.parseTwoDigitYear(e)}),x("Y",function(e,t){t[P]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return h(e)+(68<h(e)?1900:2e3)};var Ue=pe("FullYear",!0);function Ye(e,t,i,r,n,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,r,n,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,r,n,o,a),s}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,i){i=7+t-i;return-(7+Ve(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,r,n){var o,t=1+7*(t-1)+(7+i-r)%7+Ge(e,r,n),i=t<=0?We(o=e-1)+t:t>We(e)?(o=e+1,t-We(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var r,n,o=Ge(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+M(n=e.year()-1,t,i):o>M(e.year(),t,i)?(r=o-M(e.year(),t,i),n=e.year()+1):(n=e.year(),r=o),{week:r,year:n}}function M(e,t,i){var r=Ge(e,t,i),t=Ge(e+1,t,i);return(We(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),Me(["w","ww","W","WW"],function(e,t,i,r){t[r.substr(0,1)]=h(e)});function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,t,i,r){r=i._locale.weekdaysParse(e,r,i._strict);null!=r?t.d=r:g(i).invalidWeekday=e}),Me(["d","e","E"],function(e,t,i,r){t[r]=h(e)});var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function rt(){function e(e,t){return t.length-e.length}for(var t,i,r,n=[],o=[],a=[],s=[],l=0;l<7;l++)r=c([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),i=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),n.push(t),o.push(i),a.push(r),s.push(t),s.push(i),s.push(r);n.sort(e),o.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function nt(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nt),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),x(["H","HH"],A),x(["k","kk"],function(e,t,i){e=h(e);t[A]=24===e?0:e}),x(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),x(["h","hh"],function(e,t,i){t[A]=h(e),g(i).bigHour=!0}),x("hmm",function(e,t,i){var r=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r)),g(i).bigHour=!0}),x("hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[k]=h(e.substr(n)),g(i).bigHour=!0}),x("Hmm",function(e,t,i){var r=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r))}),x("Hmmss",function(e,t,i){var r=e.length-4,n=e.length-2;t[A]=h(e.substr(0,r)),t[L]=h(e.substr(r,2)),t[k]=h(e.substr(n))});w=pe("Hours",!0);var st,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},S={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,r,n,o=0;o<e.length;){for(t=(n=ut(e[o]).split("-")).length,i=(i=ut(e[o+1]))?i.split("-"):null;0<t;){if(r=pt(n.slice(0,t).join("-")))return r;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,i)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===S[t]&&Fn&&Fn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Mi(),ht(e)}catch(e){S[t]=null}return S[t]}function ht(e,t){return e&&((t=s(t)?D(e):mt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function mt(e,t){if(null===t)return delete S[e],null;var i,r=lt;if(t.abbr=e,null!=S[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=S[e]._config;else if(null!=t.parentLocale)if(null!=S[t.parentLocale])r=S[t.parentLocale]._config;else{if(null==(i=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;r=i._config}return S[e]=new ee(Q(r,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),S[e]}function D(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=pt(e))return t;e=[e]}return dt(e)}function ft(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[E]<0||11<t[E]?E:t[T]<1||t[T]>Be(t[P],t[E])?T:t[A]<0||24<t[A]||24===t[A]&&(0!==t[L]||0!==t[k]||0!==t[Se])?A:t[L]<0||59<t[L]?L:t[k]<0||59<t[k]?k:t[Se]<0||999<t[Se]?Se:-1,g(e)._overflowDayOfYear&&(t<P||T<t)&&(t=T),g(e)._overflowWeeks&&-1===t&&(t=De),g(e)._overflowWeekday&&-1===t&&(t=$e),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e){var t,i,r,n,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,c=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){n=wt[t][0],r=!1!==wt[t][2];break}if(null==n)return e._isValid=!1;if(l[3]){for(t=0,i=c;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=n+(o||"")+(a||""),kt(e)}else e._isValid=!1}function Et(e,t,i,r,n,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(i,10),parseInt(r,10),parseInt(n,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,i,r,n,o=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],r=t,n=e,i&&Je.indexOf(i)!==new Date(r[0],r[1],r[2]).getDay()?(g(n).weekdayMismatch=!0,n._isValid=!1):(e._a=t,e._tzm=(i=o[8],r=o[9],n=o[10],i?Ct[i]:r?0:((i=parseInt(n,10))-(r=i%100))/100*60+r),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function At(e,t,i){return null!=e?e:null!=t?t:i}function Lt(e){var t,i,r,n,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),i=u._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[T]&&null==e._a[E]&&(null!=(d=(u=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,r=At(d.GG,u._a[P],Ze($(),1,4).year),n=At(d.W,1),((o=At(d.E,1))<1||7<o)&&(l=!0)):(a=u._locale._week.dow,s=u._locale._week.doy,c=Ze($(),a,s),r=At(d.gg,u._a[P],c.year),n=At(d.w,c.week),null!=d.d?((o=d.d)<0||6<o)&&(l=!0):null!=d.e?(o=d.e+a,(d.e<0||6<d.e)&&(l=!0)):o=a),n<1||n>M(r,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(r,n,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=At(e._a[P],i[P]),(e._dayOfYear>We(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[T]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=p[t]=i[t];for(;t<7;t++)e._a[t]=p[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[A]&&0===e._a[L]&&0===e._a[k]&&0===e._a[Se]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ve:Ye).apply(null,p),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[A]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,r,n=""+e._i,o=n.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)r=i[l],(t=(n.match(Ae(r,e))||[])[0])&&(0<(d=n.substr(0,n.indexOf(t))).length&&g(e).unusedInput.push(d),n=n.slice(n.indexOf(t)+t.length),a+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),d=r,h=e,null!=(p=t)&&f(ke,d)&&ke[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-a,0<n.length&&g(e).unusedInput.push(n),e._a[A]<=12&&!0===g(e).bigHour&&0<e._a[A]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[A]=(o=e._locale,c=e._a[A],null==(u=e._meridiem)?c:null!=o.meridiemHour?o.meridiemHour(c,u):null!=o.isPM?((o=o.isPM(u))&&c<12&&(c+=12),c=o||12!==c?c:0):c),null!==(u=g(e).era)&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Lt(e),ft(e)}else Tt(e);else Pt(e);var c,u,d,p,h}function Mt(e){var t,i=e._i,r=e._f;{var n,o;return(e._locale=e._locale||D(e._l),null===i||void 0===r&&""===i)?U({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(H(i)?e._d=i:a(r)?function(e){var t,i,r,n,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<l;n++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],kt(t),W(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,i=t):(null==r||o<r||a)&&(r=o,i=t,a)&&(s=!0);z(e,i||t)}(e):r?kt(e):s(r=(i=e)._i)?i._d=new Date(m.now()):H(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null===(o=_t.exec(n._i))?(Pt(n),!1===n._isValid&&(delete n._isValid,Tt(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:m.createFromInputFallback(n))):n._d=new Date(+o[1])):a(r)?(i._a=j(r.slice(0),function(e){return parseInt(e,10)}),Lt(i)):F(r)?(n=i)._d||(t=void 0===(o=ce(n._i)).day?o.date:o.day,n._a=j([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Lt(n)):R(r)?i._d=new Date(r):m.createFromInputFallback(i),W(e)||(e._d=null),e))}}function St(e,t,i,r,n){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(F(e)&&O(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=n,o._l=i,o._i=e,o._f=t,o._strict=r,(n=new Z(ft(Mt(n=o))))._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function $(e,t,i,r){return St(e,t,i,r,!1)}m.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:U()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=$.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:U()});function Dt(e,t){var i,r;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return $();for(i=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](i)||(i=t[r]);return i}var $t=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var e=ce(e),t=e.year||0,i=e.quarter||0,r=e.month||0,n=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,s=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(e){var t,i,r=!1,n=$t.length;for(t in e)if(f(e,t)&&(-1===C.call($t,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<n;++i)if(e[$t[i]]){if(r)return!1;parseFloat(e[$t[i]])!==h(e[$t[i]])&&(r=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*n,this._months=+r+3*i+12*t,this._data={},this._locale=D(),this._bubble()}function It(e){return e instanceof Bt}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,i){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),b("Z",Te),b("ZZ",Te),x(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Rt(Te,e)});var Ot=/([\+\-]|\d\d)/gi;function Rt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ot)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||H(e)?e:$(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),m.updateOffset(t,!1),t):$(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var Wt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B(e,t){var i,r,n=e;return It(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(t=Wt.exec(e))?(i="-"===t[1]?-1:1,n={y:0,d:h(t[T])*i,h:h(t[A])*i,m:h(t[L])*i,s:h(t[k])*i,ms:h(Nt(1e3*t[Se]))*i}):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,n={y:Yt(t[2],i),M:Yt(t[3],i),w:Yt(t[4],i),d:Yt(t[5],i),h:Yt(t[6],i),m:Yt(t[7],i),s:Yt(t[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(t=$(n.from),i=$(n.to),t=t.isValid()&&i.isValid()?(i=Ht(i,t),t.isBefore(i)?r=Vt(t,i):((r=Vt(i,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(n={}).ms=t.milliseconds,n.M=t.months),r=new Bt(n),It(e)&&f(e,"_locale")&&(r._locale=e._locale),It(e)&&f(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Gt(r,n){return function(e,t){var i;return null===t||isNaN(+t)||(J(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),qt(this,B(e,t),r),this}}function qt(e,t,i,r){var n=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&He(e,he(e,"Month")+t*i),o&&me(e,"Date",he(e,"Date")+o*i),n&&e._d.setTime(e._d.valueOf()+n*i),r)&&m.updateOffset(e,o||t)}B.fn=Bt.prototype,B.invalid=function(){return B(NaN)};Ie=Gt(1,"add"),Xe=Gt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Kt(e){return l(e)||H(e)||Zt(e)||R(e)||(i=a(t=e),r=!1,i&&(r=0===t.filter(function(e){return!R(e)&&Zt(t)}).length),i&&r)||function(e){var t,i,r=F(e)&&!O(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)i=o[t],n=n||f(e,i);return r&&n}(e)||null==e;var t,i,r}function Xt(e,t){var i,r;return e.date()<t.date()?-Xt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(i,"months"))<0?(t-r)/(r-e.clone().add(i-1,"months")):(t-r)/(e.clone().add(1+i,"months")-r)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=D(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ri(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ni(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],r=[],n=this.eras(),o=0,a=n.length;o<a;++o)t.push(_(n[o].name)),e.push(_(n[o].abbr)),i.push(_(n[o].narrow)),r.push(_(n[o].name)),r.push(_(n[o].abbr)),r.push(_(n[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){r(0,[e,e.length],0,t)}function si(e,t,i,r,n){var o;return null==e?Ze(this,r,n).year:(t>(o=M(e,r,n))&&(t=o),function(e,t,i,r,n){e=qe(e,t,i,r,n),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,r,n))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),b("N",ni),b("NN",ni),b("NNN",ni),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,r){r=i._locale.erasParse(e,r,i._strict);r?g(i).era=r:g(i).invalidEra=e}),b("y",Ce),b("yy",Ce),b("yyy",Ce),b("yyyy",Ce),b("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,i,r){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[P]=i._locale.eraYearOrdinalParse(e,n):t[P]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),b("G",Pe),b("g",Pe),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",xe,ye),b("ggggg",xe,ye),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,r){t[r.substr(0,2)]=h(e)}),Me(["gg","GG"],function(e,t,i,r){t[r]=m.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",n),x("Q",function(e,t){t[E]=3*(h(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),x(["D","DD"],T),x("Do",function(e,t){t[T]=h(e.match(v)[0])});_e=pe("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),x(["DDD","DDDD"],function(e,t,i){i._dayOfYear=h(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),x(["m","mm"],L);ge=pe("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),x(["s","ss"],k);var li,xe=pe("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),b("S",be,n),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,Ce);function ci(e,t){t[Se]=h(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")x(li,ci);ye=pe("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");n=Z.prototype;function ui(e){return e}n.add=Ie,n.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!O(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n=0;n<r.length;n+=1)i=i||f(e,r[n]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||$(),i=Ht(e,this).startOf("day"),i=m.calendarFormat(this,i)||"sameElse",t=t&&(u(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,$(e)))},n.clone=function(){return new Z(this)},n.diff=function(e,t,i){var r,n,o;if(!this.isValid())return NaN;if(!(r=Ht(e,this)).isValid())return NaN;switch(n=6e4*(r.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-n)/864e5;break;case"week":o=(this-r-n)/6048e5;break;default:o=this-r}return i?o:p(o)},n.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},n.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.fromNow=function(e){return this.from($(),e)},n.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||$(e).isValid())?B({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},n.toNow=function(e){return this.to($(),e)},n.get=function(e){return u(this[e=d(e)])?this[e]():this},n.invalidAt=function(){return g(this).overflow},n.isAfter=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},n.isBefore=function(e,t){return e=l(e)?e:$(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},n.isBetween=function(e,t,i,r){return e=l(e)?e:$(e),t=l(t)?t:$(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===r[1]?this.isBefore(t,i):!this.isAfter(t,i))},n.isSame=function(e,t){var e=l(e)?e:$(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},n.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},n.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},n.isValid=function(){return W(this)},n.lang=Qe,n.locale=Jt,n.localeData=Qt,n.max=we,n.min=ve,n.parsingFlags=function(){return z({},g(this))},n.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ue[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ce(e)),r=i.length,n=0;n<r;n++)this[i[n].unit](e[i[n].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},n.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ri:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},n.subtract=Xe,n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},n.toDate=function(){return new Date(this.valueOf())},n.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?ae(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):u(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ae(t,"Z")):ae(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},n.inspect=function(){var e,t,i;return this.isValid()?(t="moment",i="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},n.eraName=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},n.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},n.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,r=t.length;i<r;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},n.eraYear=function(){for(var e,t,i=this.localeData().eras(),r=0,n=i.length;r<n;++r)if(e=i[r].since<=i[r].until?1:-1,t=this.clone().startOf("day").valueOf(),i[r].since<=t&&t<=i[r].until||i[r].until<=t&&t<=i[r].since)return(this.year()-m(i[r].since).year())*e+i[r].offset;return this.year()},n.year=Ue,n.isLeapYear=function(){return de(this.year())},n.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},n.isoWeekYear=function(e){return si.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},n.quarter=n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},n.month=je,n.daysInMonth=function(){return Be(this.year(),this.month())},n.week=n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},n.isoWeek=n.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},n.weeksInYear=function(){var e=this.localeData()._week;return M(this.year(),e.dow,e.doy)},n.weeksInWeekYear=function(){var e=this.localeData()._week;return M(this.weekYear(),e.dow,e.doy)},n.isoWeeksInYear=function(){return M(this.year(),1,4)},n.isoWeeksInISOWeekYear=function(){return M(this.isoWeekYear(),1,4)},n.date=_e,n.day=n.days=function(e){var t,i,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,r=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=r.weekdaysParse(i))?i:null:parseInt(i,10),this.add(e-t,"d")):t):null!=e?this:NaN},n.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},n.isoWeekday=function(e){var t,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},n.hour=n.hours=w,n.minute=n.minutes=ge,n.second=n.seconds=xe,n.millisecond=n.milliseconds=ye,n.utcOffset=function(e,t,i){var r,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?n:jt(this);if("string"==typeof e){if(null===(e=Rt(Te,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),n!==e&&(!t||this._changeInProgress?qt(this,B(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},n.utc=function(e){return this.utcOffset(0,e)},n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(jt(this),"m"),this},n.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Rt(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},n.isLocal=function(){return!!this.isValid()&&!this._isUTC},n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},n.isUtc=zt,n.isUTC=zt,n.zoneAbbr=function(){return this._isUTC?"UTC":""},n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},n.dates=e("dates accessor is deprecated. Use date instead.",_e),n.months=e("months accessor is deprecated. Use month instead",je),n.years=e("years accessor is deprecated. Use year instead",Ue),n.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),n.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return s(this._isDSTShifted)&&(q(t={},this),(t=Mt(t))._a?(e=(t._isUTC?c:$)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),o=0,a=0;a<r;a++)(i&&e[a]!==t[a]||!i&&h(e[a])!==h(t[a]))&&o++;return o+n}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,r){var n=D(),r=c().set(r,t);return n[i](r,e)}function pi(e,t,i){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var r=[],n=0;n<12;n++)r[n]=di(e,n,i,"month");return r}function hi(e,t,i,r){t=("boolean"==typeof e||(i=t=e,e=!1),R(t)&&(i=t,t=void 0),t||"");var n,o=D(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,r,"day");for(n=0;n<7;n++)s[n]=di(t,(n+a)%7,r,"day");return s}y.calendar=function(e,t,i){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ui,y.postformat=ui,y.relativeTime=function(e,t,i,r){var n=this._relativeTime[i];return u(n)?n(e,t,i,r):n.replace(/%d/i,e)},y.pastFuture=function(e,t){return u(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(u(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,r=this._eras||D("en")._eras,n=0,o=r.length;n<o;++n)switch("string"==typeof r[n].since&&(i=m(r[n].since).startOf("day"),r[n].since=i.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=m(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}return r},y.erasParse=function(e,t,i){var r,n,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,n=l.length;r<n;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if(0<=[o,a,s].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:a(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(a(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var r,n;if(this._monthsParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=c([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))?n:null:"MMM"===t?-1!==(n=C.call(this._shortMonthsParse,e))||-1!==(n=C.call(this._longMonthsParse,e))?n:null:-1!==(n=C.call(this._longMonthsParse,e))||-1!==(n=C.call(this._shortMonthsParse,e))?n:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=c([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(i&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!i&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Ke(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var r,n;if(this._weekdaysParseExact)return function(e,t,i){var r,n,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"dddd"===t?-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:"ddd"===t?-1!==(n=C.call(this._shortWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._minWeekdaysParse,e))?n:null:-1!==(n=C.call(this._minWeekdaysParse,e))||-1!==(n=C.call(this._weekdaysParse,e))||-1!==(n=C.call(this._shortWeekdaysParse,e))?n:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=c([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!i&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},ht("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===h(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ht),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",D);var mi=Math.abs;function fi(e,t,i,r){t=B(t,i);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ie=wi("m"),we=wi("h"),ve=wi("d"),Xe=wi("w"),w=wi("M"),ge=wi("Q"),xe=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),Ue=bi("minutes"),y=bi("hours"),_i=bi("days"),xi=bi("months"),Ci=bi("years");var Pi=Math.round,Ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ti(e,t,i,r){var n=B(e).abs(),o=Pi(n.as("s")),a=Pi(n.as("m")),s=Pi(n.as("h")),l=Pi(n.as("d")),c=Pi(n.as("M")),u=Pi(n.as("w")),n=Pi(n.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(a<=1?["m"]:a<i.m&&["mm",a])||(s<=1?["h"]:s<i.h&&["hh",s])||(l<=1?["d"]:l<i.d&&["dd",l]);return(o=(o=null!=i.w?o||(u<=1?["w"]:u<i.w&&["ww",u]):o)||(c<=1?["M"]:c<i.M&&["MM",c])||(n<=1?["y"]:["yy",n]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,i,r,n){return n.relativeTime(t||1,!!i,e,r)}.apply(null,o)}var Ai=Math.abs;function Li(e){return(0<e)-(e<0)||+e}function ki(){var e,t,i,r,n,o,a,s,l,c,u;return this.isValid()?(s=Ai(this._milliseconds)/1e3,l=Ai(this._days),c=Ai(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,i=p(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=Li(this._months)!==Li(u)?"-":"",o=Li(this._days)!==Li(u)?"-":"",a=Li(this._milliseconds)!==Li(u)?"-":"",(u<0?"-":"")+"P"+(i?n+i+"Y":"")+(c?n+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+r+"S":"")):"P0D"):this.localeData().invalidDate()}var I=Bt.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),e.milliseconds=mi(e.milliseconds),e.seconds=mi(e.seconds),e.minutes=mi(e.minutes),e.hours=mi(e.hours),e.months=mi(e.months),e.years=mi(e.years),this},I.add=function(e,t){return fi(this,e,t,1)},I.subtract=function(e,t){return fi(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,i,r=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=be,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=we,I.asDays=ve,I.asWeeks=Xe,I.asMonths=w,I.asQuarters=ge,I.asYears=xe,I.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*h(this._months/12):NaN},I._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,r=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),r.milliseconds=e%1e3,e=p(e/1e3),r.seconds=e%60,e=p(e/60),r.minutes=e%60,e=p(e/60),r.hours=e%24,t+=p(e/24),i+=e=p(yi(t)),t-=gi(vi(e)),e=p(i/12),i%=12,r.days=t,r.months=i,r.years=e,this},I.clone=function(){return B(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=Ue,I.hours=y,I.days=_i,I.weeks=function(){return p(this.days()/7)},I.months=xi,I.years=Ci,I.humanize=function(e,t){var i,r;return this.isValid()?(i=!1,r=Ei,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Ei,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Ti(this,!i,r,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=ki,I.toString=ki,I.toJSON=ki,I.locale=Jt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ki),I.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),b("x",Pe),b("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,i){i._d=new Date(h(e))}),m.version="2.29.4",N=$,m.fn=n,m.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return $(1e3*e)},m.months=function(e,t){return pi(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=U,m.duration=B,m.isMoment=l,m.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},m.parseZone=function(){return $.apply(null,arguments).parseZone()},m.localeData=D,m.isDuration=It,m.monthsShort=function(e,t){return pi(e,t,"monthsShort")},m.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var i,r;return null!=t?(r=lt,null!=S[e]&&null!=S[e].parentLocale?S[e].set(Q(S[e]._config,t)):(t=Q(r=null!=(i=pt(e))?i._config:r,t),null==i&&(t.abbr=e),(r=new ee(t)).parentLocale=S[e],S[e]=r),ht(e)):null!=S[e]&&(null!=S[e].parentLocale?(S[e]=S[e].parentLocale,e===ht()&&ht(e)):null!=S[e]&&delete S[e]),S[e]},m.locales=function(){return te(S)},m.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?Pi:"function"==typeof e&&(Pi=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Ei[e]&&(void 0===t?Ei[e]:(Ei[e]=t,"s"===e&&(Ei.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=n,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m}();var Nn,Fn,z=Nn.exports;function On(e,t){B(e,t)}const Rn={en:{title:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{title:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{title:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:'L\'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "confirmer".',selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{title:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{title:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Confirmar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{title:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Confirmar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."},hr:{title:"Samoisključenje",selfExclusionText1:"Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',selfExclusionText3:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja",selfExclusionText4:"E-mail:",duration:"Trajanje:",forever:"Trajno",save:"Spremi",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno."}};function Hn(e){var t,i=customElements.get(e.is);i?(t=i.version)&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`):customElements.define(e.is,e)}class jn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}Hn(jn);const zn=window,Wn=zn.ShadowRoot&&(void 0===zn.ShadyCSS||zn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Un=Symbol(),Yn=new WeakMap;class Vn{constructor(e,t,i){if(this._$cssResult$=!0,i!==Un)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;var t,i=this.t;return Wn&&void 0===e&&(t=void 0!==i&&1===i.length,void 0===(e=t?Yn.get(i):e))&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t)&&Yn.set(i,e),e}toString(){return this.cssText}}const a=(r,...e)=>{e=1===r.length?r[0]:e.reduce((e,t,i)=>e+(()=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})()+r[i+1],r[0]);return new Vn(e,r,Un)},Gn=Wn?e=>e:t=>{if(!(t instanceof CSSStyleSheet))return t;{let e="";for(const i of t.cssRules)e+=i.cssText;return t=e,new Vn("string"==typeof t?t:t+"",void 0,Un)}},qn=window,Zn=qn.trustedTypes,Kn=Zn?Zn.emptyScript:"",Xn=qn.reactiveElementPolyfillSupport,Jn={toAttribute(e,t){switch(t){case Boolean:e=e?Kn:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Qn=(e,t)=>t!==e&&(t==t||e==e),eo={attribute:!0,type:String,converter:Jn,reflect:!1,hasChanged:Qn},to="finalized";class io extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!=(t=this.h)?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const i=[];return this.elementProperties.forEach((e,t)=>{e=this._$Ep(t,e);void 0!==e&&(this._$Ev.set(e,t),i.push(e))}),i}static createProperty(e,t=eo){var i;t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e)||(i="symbol"==typeof e?Symbol():"__"+e,void 0!==(i=this.getPropertyDescriptor(e,i,t))&&Object.defineProperty(this.prototype,e,i))}static getPropertyDescriptor(i,r,n){return{get(){return this[r]},set(e){var t=this[i];this[r]=e,this.requestUpdate(i,t,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||eo}static finalize(){if(this.hasOwnProperty(to))return!1;this[to]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){var t=[];if(Array.isArray(e)){var i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(Gn(e))}else void 0!==e&&t.push(Gn(e));return t}static _$Ep(e,t){t=t.attribute;return!1===t?void 0:"string"==typeof t?t:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null!=(e=this.constructor.h)&&e.forEach(e=>e(this))}addController(e){var t;(null!=(t=this._$ES)?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&null!=(t=e.hostConnected)&&t.call(e)}removeController(e){var t;null!=(t=this._$ES)&&t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var r,e,t=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return r=t,e=this.constructor.elementStyles,Wn?r.adoptedStyleSheets=e.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):e.forEach(e=>{var t=document.createElement("style"),i=zn.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=e.cssText,r.appendChild(t)}),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null!=(e=this._$ES)&&e.forEach(e=>{var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=eo){var r,n=this.constructor._$Ep(e,i);void 0!==n&&!0===i.reflect&&(r=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:Jn).toAttribute(t,i.type),this._$El=e,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null)}_$AK(e,t){var i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null==(i=e.converter)?void 0:i.fromAttribute)?e.converter:Jn;this._$El=r,this[r]=n.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Qn)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}var e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let e=!1;var i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}}willUpdate(e){}_$AE(e){var t;null!=(t=this._$ES)&&t.forEach(e=>{var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}io[to]=!0,io.elementProperties=new Map,io.elementStyles=[],io.shadowRootOptions={mode:"open"},null!=Xn&&Xn({ReactiveElement:io}),(null!=(Ii=qn.reactiveElementVersions)?Ii:qn.reactiveElementVersions=[]).push("1.6.3");const ro=window,no=ro.trustedTypes,oo=no?no.createPolicy("lit-html",{createHTML:e=>e}):void 0,ao="$lit$",so=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+so,co=`<${lo}>`,uo=document,po=()=>uo.createComment(""),ho=e=>null===e||"object"!=typeof e&&"function"!=typeof e,mo=Array.isArray,fo="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,vo=/>/g,wo=RegExp(`>|${fo}(?:([^\\s"'>=/]+)(${fo}*=${fo}*(?:[^
4
+ \r"'\`<>=]|("|')|))|$)`,"g"),bo=/'/g,_o=/"/g,xo=/^(?:script|style|textarea|title)$/i,Co=Symbol.for("lit-noChange"),Po=Symbol.for("lit-nothing"),Eo=new WeakMap,To=uo.createTreeWalker(uo,129,null,!1);function Ao(e,t){if(Array.isArray(e)&&e.hasOwnProperty("raw"))return void 0!==oo?oo.createHTML(t):t;throw Error("invalid template strings array")}class Lo{constructor({strings:t,_$litType$:i},e){var r;this.parts=[];let n=0,o=0;var a=t.length-1,s=this.parts,[t,l]=((o,e)=>{const a=o.length-1,s=[];let l,c=2===e?"<svg>":"",u=go;for(let n=0;n<a;n++){const a=o[n];let e,t,i=-1,r=0;for(;r<a.length&&(u.lastIndex=r,null!==(t=u.exec(a)));)r=u.lastIndex,u===go?"!--"===t[1]?u=yo:void 0!==t[1]?u=vo:void 0!==t[2]?(xo.test(t[2])&&(l=RegExp("</"+t[2],"g")),u=wo):void 0!==t[3]&&(u=wo):u===wo?">"===t[0]?(u=null!=l?l:go,i=-1):void 0===t[1]?i=-2:(i=u.lastIndex-t[2].length,e=t[1],u=void 0===t[3]?wo:'"'===t[3]?_o:bo):u===_o||u===bo?u=wo:u===yo||u===vo?u=go:(u=wo,l=void 0);var d=u===wo&&o[n+1].startsWith("/>")?" ":"";c+=u===go?a+co:0<=i?(s.push(e),a.slice(0,i)+ao+a.slice(i)+so+d):a+so+(-2===i?(s.push(void 0),n):d)}return[Ao(o,c+(o[a]||"<?>")+(2===e?"</svg>":"")),s]})(t,i);if(this.el=Lo.createElement(t,e),To.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(r=To.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const i of r.getAttributeNames())if(i.endsWith(ao)||i.startsWith(so)){const e=l[o++];if(t.push(i),void 0!==e){const t=r.getAttribute(e.toLowerCase()+ao).split(so),i=/([.?@])?(.*)/.exec(e);s.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?$o:"?"===i[1]?Io:"@"===i[1]?No:Do})}else s.push({type:6,index:n})}for(const i of t)r.removeAttribute(i)}if(xo.test(r.tagName)){const t=r.textContent.split(so),i=t.length-1;if(0<i){r.textContent=no?no.emptyScript:"";for(let e=0;e<i;e++)r.append(t[e],po()),To.nextNode(),s.push({type:2,index:++n});r.append(t[i],po())}}}else if(8===r.nodeType)if(r.data===lo)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=r.data.indexOf(so,e+1));)s.push({type:7,index:n}),e+=so.length-1}n++}}static createElement(e,t){var i=uo.createElement("template");return i.innerHTML=e,i}}function ko(t,i,r=t,n){var o;if(i!==Co){let e=void 0!==n?null==(a=r._$Co)?void 0:a[n]:r._$Cl;var a=ho(i)?void 0:i._$litDirective$;(null==e?void 0:e.constructor)!==a&&(null!=(o=null==e?void 0:e._$AO)&&o.call(e,!1),void 0===a?e=void 0:(e=new a(t))._$AT(t,r,n),void 0!==n?(null!=(o=r._$Co)?o:r._$Co=[])[n]=e:r._$Cl=e),void 0!==e&&(i=ko(t,e._$AS(t,i.values),e,n))}return i}class Mo{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(t){var{el:{content:e},parts:i}=this._$AD,r=(null!=(r=null==t?void 0:t.creationScope)?r:uo).importNode(e,!0);To.currentNode=r;let n=To.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new So(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new Fo(n,this,t)),this._$AV.push(e),s=i[++a]}o!==(null==s?void 0:s.index)&&(n=To.nextNode(),o++)}return To.currentNode=uo,r}v(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class So{constructor(e,t,i,r){this.type=2,this._$AH=Po,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=null==(e=null==r?void 0:r.isConnected)||e}get _$AU(){var e;return null!=(e=null==(e=this._$AM)?void 0:e._$AU)?e:this._$Cp}get parentNode(){let e=this._$AA.parentNode;var t=this._$AM;return e=void 0!==t&&11===(null==e?void 0:e.nodeType)?t.parentNode:e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ko(this,e,t),ho(e)?e===Po||null==e||""===e?(this._$AH!==Po&&this._$AR(),this._$AH=Po):e!==this._$AH&&e!==Co&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(t=e,mo(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])?this.T(e):this._(e))}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Po&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.$(uo.createTextNode(e)),this._$AH=e}g(e){var t,{values:i,_$litType$:r}=e,r="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=Lo.createElement(Ao(r.h,r.h[0]),this.options)),r);if((null==(t=this._$AH)?void 0:t._$AD)===r)this._$AH.v(i);else{const e=new Mo(r,this),t=e.u(this.options);e.v(i),this.$(t),this._$AH=e}}_$AC(e){let t=Eo.get(e.strings);return void 0===t&&Eo.set(e.strings,t=new Lo(e)),t}T(e){mo(this._$AH)||(this._$AH=[],this._$AR());var t=this._$AH;let i,r=0;for(const n of e)r===t.length?t.push(i=new So(this.k(po()),this.k(po()),this,this.options)):i=t[r],i._$AI(n),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for(null!=(i=this._$AP)&&i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null!=(t=this._$AP))&&t.call(this,e)}}class Do{constructor(e,t,i,r,n){this.type=1,this._$AH=Po,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=n,2<i.length||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Po}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(i,r=this,n,o){var a=this.strings;let s=!1;if(void 0===a)i=ko(this,i,r,0),(s=!ho(i)||i!==this._$AH&&i!==Co)&&(this._$AH=i);else{const o=i;let e,t;for(i=a[0],e=0;e<a.length-1;e++)(t=ko(this,o[n+e],r,e))===Co&&(t=this._$AH[e]),s=s||!ho(t)||t!==this._$AH[e],t===Po?i=Po:i!==Po&&(i+=(null!=t?t:"")+a[e+1]),this._$AH[e]=t}s&&!o&&this.j(i)}j(e){e===Po?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class $o extends Do{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Po?void 0:e}}const Bo=no?no.emptyScript:"";class Io extends Do{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Po?this.element.setAttribute(this.name,Bo):this.element.removeAttribute(this.name)}}class No extends Do{constructor(e,t,i,r,n){super(e,t,i,r,n),this.type=5}_$AI(e,t=this){var i,r;(e=null!=(t=ko(this,e,t,0))?t:Po)!==Co&&(t=this._$AH,i=e===Po&&t!==Po||e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive,r=e!==Po&&(t===Po||i),i&&this.element.removeEventListener(this.name,this,t),r&&this.element.addEventListener(this.name,this,e),this._$AH=e)}handleEvent(e){var t;"function"==typeof this._$AH?this._$AH.call(null!=(t=null==(t=this.options)?void 0:t.host)?t:this.element,e):this._$AH.handleEvent(e)}}class Fo{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ko(this,e)}}Ni=ro.litHtmlPolyfillSupport;null!=Ni&&Ni(Lo,So),(null!=(Oi=ro.litHtmlVersions)?Oi:ro.litHtmlVersions=[]).push("2.8.0");class Oo extends io{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t=super.createRenderRoot();return null==(e=this.renderOptions).renderBefore&&(e.renderBefore=t.firstChild),t}update(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{var r,n=null!=(n=null==i?void 0:i.renderBefore)?n:t;let o=n._$litPart$;if(void 0===o){const e=null!=(r=null==i?void 0:i.renderBefore)?r:null;n._$litPart$=o=new So(t.insertBefore(po(),e),e,void 0,null!=i?i:{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null!=(e=this._$Do)&&e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null!=(e=this._$Do)&&e.setConnected(!1)}render(){return Co}}Oo.finalized=!0,Oo._$litElement$=!0,null!=(t=globalThis.litElementHydrateSupport)&&t.call(globalThis,{LitElement:Oo});Di=globalThis.litElementPolyfillSupport;null!=Di&&Di({LitElement:Oo}),(null!=(Bi=globalThis.litElementVersions)?Bi:globalThis.litElementVersions=[]).push("3.3.3");const Ro=[];function Ho(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function jo(e,t,i={}){var r;e&&Ho(customElements.get(e))&&console.warn(`The custom element definition for "${e}"
5
5
  was finalized before a style module was registered.
6
6
  Make sure to add component specific style modules before
7
- importing the corresponding custom element.`),[r=[]]=[t],t=[r].flat(1/0).filter(e=>e instanceof Vn||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):Ro.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId})}function Wo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ro}function jo(i){const r=i+"-default-theme",e=Wo().filter(e=>{return e.moduleId!==r&&(e=e.themeFor,t=i,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)));var t}).map(e=>({...e,styles:[...function i(e){const r=[];return e.include&&[].concat(e.include).forEach(t=>{var e=Wo().find(e=>e.moduleId===t);e?r.push(...i(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),r}(e),...e.styles],includePriority:function(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:Wo().filter(e=>e.moduleId===r)}ki=e=>{return class extends(e=e,class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._set_theme(i)}}){static finalize(){var e,t,i;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!Ho(this)&&(e=this.getStylesForThis(),t=t,(i=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(i))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...jo(this.is)];const i=this.__themes.flatMap(e=>e.styles);return i.filter((e,t)=>t===i.lastIndexOf(e))}}},Ii=(e,...t)=>{var i;e="lumo-"+e,t=[t],(i=document.createElement("style")).id=e,i.textContent=t.map(e=>e.toString()).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)},Ii("color-props",a`
7
+ importing the corresponding custom element.`),[r=[]]=[t],t=[r].flat(1/0).filter(e=>e instanceof Vn||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):Ro.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId})}function zo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ro}function Wo(i){const r=i+"-default-theme",e=zo().filter(e=>{return e.moduleId!==r&&(e=e.themeFor,t=i,(e||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)));var t}).map(e=>({...e,styles:[...function i(e){const r=[];return e.include&&[].concat(e.include).forEach(t=>{var e=zo().find(e=>e.moduleId===t);e?r.push(...i(e),...e.styles):console.warn(`Included moduleId ${t} not found in style registry`)},e.styles),r}(e),...e.styles],includePriority:function(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}(e.moduleId)})).sort((e,t)=>t.includePriority-e.includePriority);return 0<e.length?e:zo().filter(e=>e.moduleId===r)}$i=e=>{return class extends(e=e,class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._set_theme(i)}}){static finalize(){var e,t,i;super.finalize(),this.elementStyles||(t=this.prototype._template)&&!Ho(this)&&(e=this.getStylesForThis(),t=t,(i=document.createElement("style")).innerHTML=e.map(e=>e.cssText).join("\n"),t.content.appendChild(i))}static finalizeStyles(e){var t=this.getStylesForThis();return e?[...super.finalizeStyles(e),...t]:t}static getStylesForThis(){var e=Object.getPrototypeOf(this.prototype),e=(e?e.constructor.__themes:[])||[];this.__themes=[...e,...Wo(this.is)];const i=this.__themes.flatMap(e=>e.styles);return i.filter((e,t)=>t===i.lastIndexOf(e))}}},Ii=(e,...t)=>{var i;e="lumo-"+e,t=[t],(i=document.createElement("style")).id=e,i.textContent=t.map(e=>e.toString()).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)},Ii("color-props",a`
8
8
  :host {
9
9
  /* Base (background) */
10
10
  --lumo-base-color: #fff;
@@ -89,7 +89,7 @@
89
89
  --lumo-disabled-text-color: GrayText;
90
90
  }
91
91
  }
92
- `),zo("",a`
92
+ `),jo("",a`
93
93
  [theme~='dark'] {
94
94
  /* Base (background) */
95
95
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -262,7 +262,7 @@
262
262
  --lumo-line-height-s: 1.375;
263
263
  --lumo-line-height-m: 1.625;
264
264
  }
265
- `;zo("",a`
265
+ `;jo("",a`
266
266
  body,
267
267
  :host {
268
268
  font-family: var(--lumo-font-family);
@@ -354,7 +354,7 @@
354
354
  border-left: none;
355
355
  border-right: 2px solid var(--lumo-contrast-30pct);
356
356
  }
357
- `,{moduleId:"lumo-typography"}),Ii("typography-props",Ni),zo("vaadin-input-container",a`
357
+ `,{moduleId:"lumo-typography"}),Ii("typography-props",Ni),jo("vaadin-input-container",a`
358
358
  :host {
359
359
  background-color: var(--lumo-contrast-10pct);
360
360
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -521,7 +521,7 @@
521
521
  --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
522
522
  }
523
523
  }
524
- `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let Uo,Yo,Vo=/(url\()([^)]*)(\))/g,Go=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function qo(e,t){if(e&&Go.test(e))return e;if("//"===e)return e;if(void 0===Uo){Uo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Uo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Uo)try{return new URL(e,t).href}catch(t){return e}return Yo||((Yo=document.implementation.createHTMLDocument("temp")).base=Yo.createElement("base"),Yo.head.appendChild(Yo.base),Yo.anchor=Yo.createElement("a"),Yo.body.appendChild(Yo.anchor)),Yo.base.href=t,Yo.anchor.href=e,Yo.anchor.href||e}function Zo(e,n){return e.replace(Vo,function(e,t,i,r){return t+"'"+qo(i.replace(/["']/g,""),n)+"'"+r})}function Xo(e){return e.substring(0,e.lastIndexOf("/")+1)}const Ko=!window.ShadyDOM||!window.ShadyDOM.inUse,Jo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Ko&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Qo=window.Polymer&&window.Polymer.rootPath||Xo(document.baseURI||window.location.href),ea=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ta=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),ia=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ra=window.Polymer&&window.Polymer.legacyOptimizations||!1,na=window.Polymer&&window.Polymer.legacyWarnings||!1,oa=window.Polymer&&window.Polymer.syncInitialRender||!1,aa=window.Polymer&&window.Polymer.legacyUndefined||!1,sa=window.Polymer&&window.Polymer.orderedComputed||!1,la=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ca=window.Polymer&&window.Polymer.fastDomIf||!1,ua=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,da=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),pa=0;function ha(n){let o=n.__mixinApplications,a=(o||(o=new WeakMap,n.__mixinApplications=o),pa++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,r=i.get(e);return r||(r=n(e),i.set(e,r),(e=Object.create(r.__mixinSet||t||null))[a]=!0,r.__mixinSet=e),r}}let ma={},fa={};function ga(e,t){ma[e]=fa[e.toLowerCase()]=t}function ya(e){return ma[e]||fa[e.toLowerCase()]}class va extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=ya(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=qo(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Xo(e)),this.__assetpath}register(e){if(e=e||this.id){if(ta&&void 0!==ya(e))throw ga(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ga(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}va.prototype.modules=ma,customElements.define("dom-module",va);const wa="link[rel=import][type~=css]",ba="include",_a="shady-unscoped";function xa(e){return va.import(e)}function Ca(e){var e=Zo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Pa(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=xa(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Aa(t));var i=t.querySelector("template");i&&e.push(...Ea(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ea(e,t){if(!e._styles){var i=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var n=r[e],o=n.getAttribute(ba);o&&i.push(...Pa(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(n.textContent=Zo(n.textContent,t)),i.push(n)}e._styles=i}return e._styles}function Aa(t){const i=[],r=t.querySelectorAll(wa);for(let e=0;e<r.length;e++){var n=r[e];if(n.import){const t=n.import,r=n.hasAttribute(_a);if(r&&!t._unscopedStyle){const i=Ca(t);i.setAttribute(_a,""),t._unscopedStyle=i}else t._style||(t._style=Ca(t));i.push(r?t._unscopedStyle:t._style)}}return i}const Ta=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function La(e){return 0<=e.indexOf(".")}function Ma(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Da(e,t){return 0===e.indexOf(t+".")}function Sa(e,t){return 0===t.indexOf(e+".")}function $a(e,t,i){return t+i.slice(e.length)}function ka(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)i.push(r[e])}return i.join(".")}return t}function Ba(e){return(Array.isArray(e)?ka(e):e.toString()).split(".")}function Ia(e,t,i){let r=e,n=Ba(t);for(let e=0;e<n.length;e++){if(!r)return;r=r[n[e]]}return i&&(i.path=n.join(".")),r}function Na(e,t,i){let r=e,n=Ba(t),o=n[n.length-1];if(1<n.length){for(let e=0;e<n.length-1;e++)if(!(r=r[n[e]]))return;r[o]=i}else r[t]=i;return n.join(".")}const Fa={},Oa=/-[a-z]/g,Ra=/([A-Z])/g;function Ha(e){return Fa[e]||(Fa[e]=e.indexOf("-")<0?e:e.replace(Oa,e=>e[1].toUpperCase()))}function za(e){return Fa[e]||(Fa[e]=e.replace(Ra,"-$1").toLowerCase())}let Wa=0,ja=0,Ua=[],Ya=0,Va=!1,Ga=document.createTextNode("");new window.MutationObserver(function(){Va=!1;var t=Ua.length;for(let e=0;e<t;e++){var i=Ua[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}Ua.splice(0,t),ja+=t}).observe(Ga,{characterData:!0});const qa={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Za={run:e=>(Va||(Va=!0,Ga.textContent=Ya++),Ua.push(e),Wa++),cancel(e){var t=e-ja;if(0<=t){if(!Ua[t])throw new Error("invalid async handle: "+e);Ua[t]=null}}},Xa=Za,Ka=ha(e=>class extends e{static createProperties(e){var t,i=this.prototype;for(t in e)t in i||i._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){var r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Xa.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++;var e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){t=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=Ta(e)),void 0===t?e.removeAttribute(i):e.setAttribute(i,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Ja={};let Qa=HTMLElement.prototype;for(;Qa;){var es=Object.getOwnPropertyNames(Qa);for(let e=0;e<es.length;e++)Ja[es[e]]=!0;Qa=Object.getPrototypeOf(Qa)}const ts=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,is=ha(e=>{return class extends Ka(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Ha(t[e]))}static attributeNameForProperty(e){return za(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(ts(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=(isNaN(e)?String:Number)(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){var i,r,n;i=this,r=e,Ja[r]||void 0!==(n=i[r])&&(i.__data?i._setPendingProperty(r,n):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[r]=n)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),rs={"dom-if":!0,"dom-repeat":!0};let ns=!1,os=!1;const as=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);r&&i.startsWith("on-")?e.setAttribute(i,r.createScript(t,i)):e.setAttribute(i,t)}})();const ss=ha(e=>class extends e{static _parseTemplate(e,t){var i;return e._templateInfo||((i=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let r=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(n,t,i)||r,e=n,ns||(ns=!0,(o=document.createElement("textarea")).placeholder="a",os=o.placeholder===o.textContent),os&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),n.firstChild&&this._parseTemplateChildNodes(n,t,i),(r=n.hasAttributes&&n.hasAttributes()?this._parseTemplateNodeAttributes(n,t,i)||r:r)||i.noted;var o}static _parseTemplateChildNodes(r,n,o){if("script"!==r.localName&&"style"!==r.localName)for(let t,i=r.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&rs[t]){var i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const t=i.attributes[0]["name"];as(e,i,t),i.removeAttribute(t)}}return e}(i)),t=i.nextSibling,i.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)i.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(n.stripWhiteSpace&&!i.textContent.trim()){r.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,n,a)&&(a.infoIndex=n.nodeInfoList.push(a)-1),i.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,i){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),i.templateInfo=t,!0}static _parseTemplateNodeAttributes(i,r,n){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,r,n,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,r,n){return"on-"===r.slice(0,3)?(e.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:n}),!0):"id"===r&&(i.id=n,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var n,o,a=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!r.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++){var c=l[t]=function e(t,i){var r=i.parentInfo&&e(t,i.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(n=s.$,o=c,(p=e).id&&(n[p.id]=o),n=c,p=e,o=r,p.templateInfo&&(n._templateInfo=p.templateInfo,n._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,i=p.events;t<i.length&&(e=i[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,i,r){function n(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=r=r||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let ls=0;const cs=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},us="__computeInfo",ds=/[A-Z]/;function ps(e,t,i){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),i))for(var n in r){var o=r[n],a=r[n]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else r=e[t]={};return r}function hs(n,e,o,a,s,l){if(e){let r=!1;var c,u=ls++;for(c in o){var d=e[s?Ma(c):c];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!ms(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(n,c,o,a,e.info,s,l),r=!0)}return r}}function ms(e,t){var i;return!t||(i=t.name)==e||t.structured&&Da(i,e)||t.wildcard&&Sa(i,e)}function fs(e,t,i,r,n){var o="string"==typeof n.method?e[n.method]:n.method,a=n.property;o?o.call(e,e.__data[a],r[a]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function gs(e,t,i,r){i={value:i,queueProperty:!0};r&&(i.path=r),Ta(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function ys(e,t,i,r,n,o){let a=(o?Ma(t):t)!=t?t:null,s=a?Ia(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),gs(e,n.eventName,s,a)}function vs(e,t,i,r,n){let o=e.__data[t];ea&&(o=ea(o,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,o)}const ws=(e,t,i)=>{let r=0,n=t.length-1,o=-1;for(;r<=n;){var a=r+n>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)r=1+a;else{if(!(0<s)){o=a;break}n=a-1}}o<0&&(o=n+1),t.splice(o,0,e)},bs=(t,e,i,r,n)=>{var o=e[n?Ma(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===ls||n&&!ms(t,a.trigger)||(a.info.lastRun=ls,ws(a.info,i,r))}};function _s(e,t,i,r,n){t=As(e,t,i,0,n);return t!==cs&&(i=n.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function xs(t,i,e,r,n,o,a){e.bindings=e.bindings||[];var s={kind:r,target:n,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),r=s,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||za(n)+"-changed",s.listenerNegate=o),i.nodeInfoList.length);for(let e=0;e<s.parts.length;e++){var c=s.parts[e],u=(c.compoundIndex=e,g=f=m=h=p=d=u=void 0,t),d=i,p=s,h=c,m=l;if(!h.literal)if("attribute"===p.kind&&"-"===p.target[0])console.warn("Cannot set attribute "+p.target+' because "-" is not a valid attribute starting character');else{var f=h.dependencies,g={index:m,binding:p,part:h,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=ks(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Cs,info:g,trigger:e})}}}}function Cs(e,t,i,r,n,o,a){var s,a=a[n.index],l=n.binding,c=n.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=i[t],t=$a(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=n.evaluator._evaluateBinding(e,c,t,i,r,o))!==cs&&(n=e,t=c,r=i=a,e=o=s,(a=c=l).isCompound&&((l=r.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,ea&&(o=ea(o,c.target,c.kind,i)),"attribute"==c.kind?n._valueToNodeAttribute(i,o,c.target):(t=c.target,i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[t]?i[C.READ_ONLY]&&i[C.READ_ONLY][t]||i._setPendingProperty(t,o)&&n._enqueueClient(i):n._setUnmanagedPropertyToNode(i,t,o)))}function Ps(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var n=c,o=u.target,a=l.source,s=l.negate;let e,t=r.detail,i=t&&t.path;e=i?(a=$a(o,a,i),t&&t.value):r.currentTarget[o],e=s?!e:e,n[C.READ_ONLY]&&n[C.READ_ONLY][a]||!n._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||n._invalidateProperties()}})}}function Es(i,r,n,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var a={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,n,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(r.methodName,n,{fn:o,info:a}),a}function As(e,t,i,r,n){var o=e._methodHost||e,a=o[n.methodName];if(a)return(e=e._marshalArgs(n.args,t,i))===cs?cs:a.apply(o,e);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const Ts=[],Ls="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ms="(?:("+Ls+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ds=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ls+"\\s*(?:\\(\\s*(?:(?:"+Ms+"(?:,\\s*"+Ms+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ss(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function $s(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Ts},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=ks(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function ks(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=Ma(t),i.structured=La(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function Bs(e,t,i){let r=Ia(e,i);return r=void 0===r?t[i]:r}function Is(e,t,i,r){r={indexSplices:r};aa&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),aa&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Ns(e,t,i,r,n,o){Is(e,t,i,[{index:r,addedCount:n,removed:o,object:t,type:"splice"}])}const Fs=ha(e=>{const c=ss(is(e));return class extends c{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 C}_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(){var e;Os.length&&((e=Os[Os.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,i=this[C.READ_ONLY];for(t in e)i&&i[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=ps(this,t,!0)[e];(r=r||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=ps(this,t,!0)[e],e=t.indexOf(i);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,i,r){if(r||Ma(Array.isArray(e)?e[0]:e)!==e){if(!r){r=Ia(this,e);if(!(e=Na(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var n=this;var o=e;var a=t;var s=n.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];Sa(l,o)?(e=$a(l,c,o),n._setPendingPropertyOrPath(e,a,!0,!0)):Sa(c,o)&&(e=$a(c,l,o),n._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||((e="className"===t?Ta(e):e)[t]=i)}_setPendingProperty(e,t,i){var r=this.__dataHasPaths&&La(e),n=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var i in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,n,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=n,r=o,d=u,p=t[C.COMPUTE];if(p)if(sa){ls++;var h,m,f=function(n){let o=n.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=n[C.COMPUTE];let e,{counts:t,ready:i,total:r}=function(e){const t=e[us],i={},r=e[C.COMPUTE],n=[];let o=0;for(var a in t){const r=t[a];o+=i[a]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var s in r)t[s]||n.push(s);return{counts:i,ready:n,total:o}}(n);for(;e=i.shift();){o.set(e,o.size);const n=a[e];n&&n.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&i.push(e)})}if(0!==r){const o=n;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}n.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)bs(h,p,g,f,d);for(;m=g.shift();)_s(t,"",i,0,m)&&bs(m.methodInfo,p,g,f,d);Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;hs(t,p,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,u),this._flushClients(),hs(this,this[C.REFLECT],n,o,u),hs(this,this[C.OBSERVE],n,o,u),a){var y=this,v=a,w=n,b=o,_=u,x;let e,t,i=y[C.NOTIFY],r=ls++;for(x in v)v[x]&&(i&&function(r,e,n,o,a,s,l,c){let u=!1,d=e[l?Ma(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===n||l&&!ms(o,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(r,o,a,s,e.info,l,c),u=!0);return u}(y,i,r,x,w,b,_)||_&&(s=y,x=x,l=w,c=void 0,c=Ma(x),c!==x)&&(gs(s,za(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[C.PROPAGATE]&&hs(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(r,e,n,t){var i=(t,i)=>{hs(this,r.propertyEffects,t,n,i,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,n,i)};r.runEffects?r.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=ka(e),t=ka(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=ka(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};Is(this,Ia(this,e,i),i.path,t)}get(e,t){return Ia(t||this,e)}set(e,t,i){i?Na(i,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var i={path:""},e=Ia(this,e,i),r=e.length,n=e.push(...t);return t.length&&Ns(this,e,i.path,r,t.length,[]),n}pop(e){var t={path:""},e=Ia(this,e,t),i=Boolean(e.length),r=e.pop();return i&&Ns(this,e,t.path,e.length,0,[r]),r}splice(e,t,i,...r){var n={path:""},e=Ia(this,e,n);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...r),(r.length||i.length)&&Ns(this,e,n.path,t,r.length,i),i}shift(e){var t={path:""},e=Ia(this,e,t),i=Boolean(e.length),r=e.shift();return i&&Ns(this,e,t.path,0,0,[r]),r}unshift(e,...t){var i={path:""},e=Ia(this,e,i),r=e.unshift(...t);return t.length&&Ns(this,e,i.path,0,t.length,[]),r}notifyPath(e,t){let i;var r;i=1==arguments.length?(t=Ia(this,e,r={path:""}),r.path):Array.isArray(e)?ka(e):e,this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,i){var r={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:fs,info:r,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:fs,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var i=$s(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Es(this,i,C.OBSERVE,As,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:ys,info:{eventName:za(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,C.REFLECT,{fn:vs,info:{attrName:t}})}_createComputedProperty(e,t,i){var r=$s(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Es(this,r,C.COMPUTE,_s,e,i);ps(this,us)[e]=t}_marshalArgs(a,s,l){const c=this.__data,u=[];for(let o=0,e=a.length;o<e;o++){let{name:e,structured:t,wildcard:i,value:r,literal:n}=a[o];if(!n)if(i){const a=Sa(e,s),u=Bs(c,l,a?s:e);r={path:a?s:e,value:u,base:a?Ia(c,e):u}}else r=t?Bs(c,l,e):c[e];if(aa&&!this._overrideLegacyUndefined&&void 0===r&&1<a.length)return cs;u[o]=r}return u}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==i;if(!r)for(var n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if((i=Object.create(i)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=r)?r.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Os.push(this);t=super._stampTemplate(t,e);if(Os.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var i=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)i.push(e)}t.templateInfo=e;var r=this,{nodeList:n,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=n[e],l=a.bindings;if(l)for(let e=0;e<l.length;e++){var c=l[e],u=(f=m=h=p=d=u=void 0,s),d=c;if(d.isCompound){var p=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),h=d.parts,m=new Array(h.length);for(let e=0;e<h.length;e++)m[e]=h[e].literal;var f=d.target;p[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?Ta(u):u)[f]=d.literal)}Ps(s,r,c)}s.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:r}=e,n=(t?t.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<n.length;e++){var o=n[e];Ta(Ta(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let r=c._parseTemplateNode.call(this,e,t,i);var n;return e.nodeType===Node.TEXT_NODE&&(n=this._parseBindings(e.textContent,t))&&(e.textContent=Ss(n)||" ",xs(this,t,i,"text","textContent",n),r=!0),r}static _parseTemplateNodeAttribute(r,n,o,a,e){var s=this._parseBindings(e,n);if(s){let e=a,t="property",i=(ds.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),Ss(s));return i&&"attribute"==t&&("class"==a&&r.hasAttribute("class")&&(i+=" "+r.getAttribute(a)),r.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(a,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(a=Ha(a)),xs(this,n,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,r,n,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let r=c._parseTemplateNestedTemplate.call(this,e,t,i);var n=e.parentNode,o=i.templateInfo,a="dom-if"===n.localName,s="dom-repeat"===n.localName,s=(la&&(a||s)&&(n.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,r=!1),o.hostProps);if(ca&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),la||(i.parentInfo.noted=!0));else for(var l in s)xs(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ds.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),i=l[3].trim(),r=!1,n="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(n=i.substring(o+2),i=i.substring(0,o),r=!0);var d=$s(i),p=[];if(d){var{args:h,methodName:m}=d;for(let e=0;e<h.length;e++){var f=h[e];f.literal||p.push(f)}var g=s.dynamicFns;(g&&g[m]||d.static)&&(p.push(m),d.dynamicFn=!0)}else p.push(i);c.push({source:i,mode:e,negate:t,customEvent:r,signature:d,dependencies:p,event:n}),u=Ds.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,i,r,n,o){let a;return a=t.signature?As(e,i,r,0,t.signature):i!=t.source?Ia(e,t.source):o&&La(i)?Ia(e,i):e.__data[i],a=t.negate?!a:a}}}),Os=[],Rs=ha(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var i;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(i=t.properties)&&(e=function(e){var t,i={};for(t in e){var r=e[t];i[t]="function"==typeof r?{type:r}:r}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class r extends Ka(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=i(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,i(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),Hs=window.ShadyCSS&&window.ShadyCSS.cssBuild,zs=ha(e=>{const r=Rs(Fs(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):ra||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,r=t,t=e[t],n=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):i._createComputedProperty(r,t.computed,n)),t.readOnly&&!i._hasReadOnlyEffect(r)?i._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(r)?i._createReflectedProperty(r):!1===t.reflectToAttribute&&i._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!i._hasNotifyEffect(r)?i._createNotifyingProperty(r):!1===t.notify&&i._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&i._createPropertyObserver(r,t.observer,n[t.observer]),i._addPropertyToAttributeMap(r);var i,r,n}static createObservers(t,i){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],i)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||ta&&!ia||(t=va.import(e,"template"),!ta)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Xo(e.url):(e=va.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=Qo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,i=e._properties;for(t in i){var r=i[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var i=e[t];this._canApplyPropertyDefault(t)&&(i="function"==typeof i.value?i.value.call(this):i.value,this._hasAccessor(t)?this._setPendingProperty(t,i,!0):this[t]=i)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,n=this,o=t,a=e,s=i?qo(i):"";if(!Hs){var l=o.content.querySelectorAll("style"),c=Ea(o),u=(e=xa(a))?Aa(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=n._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let r=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=n._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),da&&Hs&&Jo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),n._styleSheet=new CSSStyleSheet,n._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=Ta(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=qo(this.importPath)),qo(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!na||t in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,i)}}}),Ws=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function js(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Us(r,...e){Ys(r,e);var t=document.createElement("template");let i=e.reduce((e,t,i)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return js(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[i+1],r[0]);return Ws&&(i=Ws.createHTML(i)),t.innerHTML=i,t}const Ys=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Vs=zs(HTMLElement),Gs=[];function qs(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function Zs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Zs();Gs.forEach(e=>{qs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xs=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),qs(this,Zs(),null))}attributeChangedCallback(e,t,i){var r,n;super.attributeChangedCallback(e,t,i),"dir"===e&&(r=i===(e=Zs())&&-1===Gs.indexOf(this),n=!i&&t&&-1===Gs.indexOf(this),t=i!==e&&t===e,r||n?(this.__subscribe(),qs(this,e,i)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Gs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){"dir"===i&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){Gs.includes(this)||Gs.push(this)}__unsubscribe(){Gs.includes(this)&&Gs.splice(Gs.indexOf(this),1)}};class Ks extends ki(Xs(Vs)){static get is(){return"vaadin-input-container"}static get template(){return Us`
524
+ `,{moduleId:"lumo-input-container"}),window.JSCompiler_renameProperty=function(e,t){return e};let Uo,Yo,Vo=/(url\()([^)]*)(\))/g,Go=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function qo(e,t){if(e&&Go.test(e))return e;if("//"===e)return e;if(void 0===Uo){Uo=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Uo="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Uo)try{return new URL(e,t).href}catch(t){return e}return Yo||((Yo=document.implementation.createHTMLDocument("temp")).base=Yo.createElement("base"),Yo.head.appendChild(Yo.base),Yo.anchor=Yo.createElement("a"),Yo.body.appendChild(Yo.anchor)),Yo.base.href=t,Yo.anchor.href=e,Yo.anchor.href||e}function Zo(e,n){return e.replace(Vo,function(e,t,i,r){return t+"'"+qo(i.replace(/["']/g,""),n)+"'"+r})}function Ko(e){return e.substring(0,e.lastIndexOf("/")+1)}const Xo=!window.ShadyDOM||!window.ShadyDOM.inUse,Jo=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Xo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{var e=new CSSStyleSheet,t=(e.replaceSync(""),document.createElement("div"));return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Qo=window.Polymer&&window.Polymer.rootPath||Ko(document.baseURI||window.location.href),ea=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ta=(window.Polymer&&window.Polymer.setPassiveTouchGestures,window.Polymer&&window.Polymer.strictTemplatePolicy||!1),ia=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ra=window.Polymer&&window.Polymer.legacyOptimizations||!1,na=window.Polymer&&window.Polymer.legacyWarnings||!1,oa=window.Polymer&&window.Polymer.syncInitialRender||!1,aa=window.Polymer&&window.Polymer.legacyUndefined||!1,sa=window.Polymer&&window.Polymer.orderedComputed||!1,la=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ca=window.Polymer&&window.Polymer.fastDomIf||!1,ua=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,da=(window.Polymer&&window.Polymer.legacyNoObservedAttributes,window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1),pa=0;function ha(n){let o=n.__mixinApplications,a=(o||(o=new WeakMap,n.__mixinApplications=o),pa++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let i=o,r=i.get(e);return r||(r=n(e),i.set(e,r),(e=Object.create(r.__mixinSet||t||null))[a]=!0,r.__mixinSet=e),r}}let ma={},fa={};function ga(e,t){ma[e]=fa[e.toLowerCase()]=t}function ya(e){return ma[e]||fa[e.toLowerCase()]}class va extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=ya(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,i,r){t!==i&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=qo(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Ko(e)),this.__assetpath}register(e){if(e=e||this.id){if(ta&&void 0!==ya(e))throw ga(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);ga(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}va.prototype.modules=ma,customElements.define("dom-module",va);const wa="link[rel=import][type~=css]",ba="include",_a="shady-unscoped";function xa(e){return va.import(e)}function Ca(e){var e=Zo((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Pa(e){var t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...function(e){var t=xa(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...Ta(t));var i=t.querySelector("template");i&&e.push(...Ea(i,t.assetpath)),t._styles=e}return t._styles}(t[e]));return i}function Ea(e,t){if(!e._styles){var i=[],r=e.content.querySelectorAll("style");for(let e=0;e<r.length;e++){var n=r[e],o=n.getAttribute(ba);o&&i.push(...Pa(o).filter(function(e,t,i){return i.indexOf(e)===t})),t&&(n.textContent=Zo(n.textContent,t)),i.push(n)}e._styles=i}return e._styles}function Ta(t){const i=[],r=t.querySelectorAll(wa);for(let e=0;e<r.length;e++){var n=r[e];if(n.import){const t=n.import,r=n.hasAttribute(_a);if(r&&!t._unscopedStyle){const i=Ca(t);i.setAttribute(_a,""),t._unscopedStyle=i}else t._style||(t._style=Ca(t));i.push(r?t._unscopedStyle:t._style)}}return i}const Aa=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function La(e){return 0<=e.indexOf(".")}function ka(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Ma(e,t){return 0===e.indexOf(t+".")}function Sa(e,t){return 0===t.indexOf(e+".")}function Da(e,t,i){return t+i.slice(e.length)}function $a(t){if(Array.isArray(t)){var i=[];for(let e=0;e<t.length;e++){var r=t[e].toString().split(".");for(let e=0;e<r.length;e++)i.push(r[e])}return i.join(".")}return t}function Ba(e){return(Array.isArray(e)?$a(e):e.toString()).split(".")}function Ia(e,t,i){let r=e,n=Ba(t);for(let e=0;e<n.length;e++){if(!r)return;r=r[n[e]]}return i&&(i.path=n.join(".")),r}function Na(e,t,i){let r=e,n=Ba(t),o=n[n.length-1];if(1<n.length){for(let e=0;e<n.length-1;e++)if(!(r=r[n[e]]))return;r[o]=i}else r[t]=i;return n.join(".")}const Fa={},Oa=/-[a-z]/g,Ra=/([A-Z])/g;function Ha(e){return Fa[e]||(Fa[e]=e.indexOf("-")<0?e:e.replace(Oa,e=>e[1].toUpperCase()))}function ja(e){return Fa[e]||(Fa[e]=e.replace(Ra,"-$1").toLowerCase())}let za=0,Wa=0,Ua=[],Ya=0,Va=!1,Ga=document.createTextNode("");new window.MutationObserver(function(){Va=!1;var t=Ua.length;for(let e=0;e<t;e++){var i=Ua[e];if(i)try{i()}catch(t){setTimeout(()=>{throw t})}}Ua.splice(0,t),Wa+=t}).observe(Ga,{characterData:!0});const qa={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Za={run:e=>(Va||(Va=!0,Ga.textContent=Ya++),Ua.push(e),za++),cancel(e){var t=e-Wa;if(0<=t){if(!Ua[t])throw new Error("invalid async handle: "+e);Ua[t]=null}}},Ka=Za,Xa=ha(e=>class extends e{static createProperties(e){var t,i=this.prototype;for(t in e)t in i||i._createPropertyAccessor(t)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){var r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ka.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++;var e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){var r;this.__serializing||(this[r=(r=this.__dataAttributes)&&r[e]||e]=this._deserializeValue(t,i||this.constructor.typeForProperty(r)))}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){t=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=Aa(e)),void 0===t?e.removeAttribute(i):e.setAttribute(i,""===t&&window.trustedTypes?window.trustedTypes.emptyScript:t)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}),Ja={};let Qa=HTMLElement.prototype;for(;Qa;){var es=Object.getOwnPropertyNames(Qa);for(let e=0;e<es.length;e++)Ja[es[e]]=!0;Qa=Object.getPrototypeOf(Qa)}const ts=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,is=ha(e=>{return class extends Xa(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Ha(t[e]))}static attributeNameForProperty(e){return ja(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(var t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}_serializeValue(e){if("object"==typeof e){if(e instanceof Date)return e.toString();if(e){if(ts(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=(isNaN(e)?String:Number)(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){var i,r,n;i=this,r=e,Ja[r]||void 0!==(n=i[r])&&(i.__data?i._setPendingProperty(r,n):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[r]=n)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),rs={"dom-if":!0,"dom-repeat":!0};let ns=!1,os=!1;const as=(()=>{const r=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{t=t.getAttribute(i);r&&i.startsWith("on-")?e.setAttribute(i,r.createScript(t,i)):e.setAttribute(i,t)}})();const ss=ha(e=>class extends e{static _parseTemplate(e,t){var i;return e._templateInfo||((i=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let r=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(n,t,i)||r,e=n,ns||(ns=!0,(o=document.createElement("textarea")).placeholder="a",os=o.placeholder===o.textContent),os&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),n.firstChild&&this._parseTemplateChildNodes(n,t,i),(r=n.hasAttributes&&n.hasAttributes()?this._parseTemplateNodeAttributes(n,t,i)||r:r)||i.noted;var o}static _parseTemplateChildNodes(r,n,o){if("script"!==r.localName&&"style"!==r.localName)for(let t,i=r.firstChild,e=0;i;i=t){if("template"==i.localName&&(i=function(e){let t=e.getAttribute("is");if(t&&rs[t]){var i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const t=i.attributes[0]["name"];as(e,i,t),i.removeAttribute(t)}}return e}(i)),t=i.nextSibling,i.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)i.textContent+=e.textContent,t=e.nextSibling,r.removeChild(e),e=t;if(n.stripWhiteSpace&&!i.textContent.trim()){r.removeChild(i);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(i,n,a)&&(a.infoIndex=n.nodeInfoList.push(a)-1),i.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,i){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),i.templateInfo=t,!0}static _parseTemplateNodeAttributes(i,r,n){let o=!1,a=Array.from(i.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(i,r,n,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,i,r,n){return"on-"===r.slice(0,3)?(e.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:n}),!0):"id"===r&&(i.id=n,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,r){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var n,o,a=(r=r||this.constructor._parseTemplate(e)).nodeInfoList,e=r.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!r.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,i=a.length;t<i&&(e=a[t]);t++){var c=l[t]=function e(t,i){var r=i.parentInfo&&e(t,i.parentInfo);if(!r)return t;for(let e=r.firstChild,t=0;e;e=e.nextSibling)if(i.parentIndex===t++)return e}(s,e),u=(n=s.$,o=c,(p=e).id&&(n[p.id]=o),n=c,p=e,o=r,p.templateInfo&&(n._templateInfo=p.templateInfo,n._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,i=p.events;t<i.length&&(e=i[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,i,r){function n(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=r=r||e,a=i,o=o._methodHost||o;return this._addEventListenerToNode(e,t,n),n}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}});let ls=0;const cs=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},us="__computeInfo",ds=/[A-Z]/;function ps(e,t,i){let r=e[t];if(r){if(!e.hasOwnProperty(t)&&(r=e[t]=Object.create(e[t]),i))for(var n in r){var o=r[n],a=r[n]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else r=e[t]={};return r}function hs(n,e,o,a,s,l){if(e){let r=!1;var c,u=ls++;for(c in o){var d=e[s?ka(c):c];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!ms(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(n,c,o,a,e.info,s,l),r=!0)}return r}}function ms(e,t){var i;return!t||(i=t.name)==e||t.structured&&Ma(i,e)||t.wildcard&&Sa(i,e)}function fs(e,t,i,r,n){var o="string"==typeof n.method?e[n.method]:n.method,a=n.property;o?o.call(e,e.__data[a],r[a]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function gs(e,t,i,r){i={value:i,queueProperty:!0};r&&(i.path=r),Aa(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function ys(e,t,i,r,n,o){let a=(o?ka(t):t)!=t?t:null,s=a?Ia(e,a):e.__data[t];a&&void 0===s&&(s=i[t]),gs(e,n.eventName,s,a)}function vs(e,t,i,r,n){let o=e.__data[t];ea&&(o=ea(o,n.attrName,"attribute",e)),e._propertyToAttribute(t,n.attrName,o)}const ws=(e,t,i)=>{let r=0,n=t.length-1,o=-1;for(;r<=n;){var a=r+n>>1,s=i.get(t[a].methodInfo)-i.get(e.methodInfo);if(s<0)r=1+a;else{if(!(0<s)){o=a;break}n=a-1}}o<0&&(o=n+1),t.splice(o,0,e)},bs=(t,e,i,r,n)=>{var o=e[n?ka(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===ls||n&&!ms(t,a.trigger)||(a.info.lastRun=ls,ws(a.info,i,r))}};function _s(e,t,i,r,n){t=Ts(e,t,i,0,n);return t!==cs&&(i=n.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[i]?e._setPendingProperty(i,t,!0):(e[i]=t,!1))}function xs(t,i,e,r,n,o,a){e.bindings=e.bindings||[];var s={kind:r,target:n,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),r=s,Boolean(r.target)&&"attribute"!=r.kind&&"text"!=r.kind&&!r.isCompound&&"{"===r.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||ja(n)+"-changed",s.listenerNegate=o),i.nodeInfoList.length);for(let e=0;e<s.parts.length;e++){var c=s.parts[e],u=(c.compoundIndex=e,g=f=m=h=p=d=u=void 0,t),d=i,p=s,h=c,m=l;if(!h.literal)if("attribute"===p.kind&&"-"===p.target[0])console.warn("Cannot set attribute "+p.target+' because "-" is not a valid attribute starting character');else{var f=h.dependencies,g={index:m,binding:p,part:h,evaluator:u};for(let t=0;t<f.length;t++){let e=f[t];"string"==typeof e&&((e=$s(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Cs,info:g,trigger:e})}}}}function Cs(e,t,i,r,n,o,a){var s,a=a[n.index],l=n.binding,c=n.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=i[t],t=Da(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=n.evaluator._evaluateBinding(e,c,t,i,r,o))!==cs&&(n=e,t=c,r=i=a,e=o=s,(a=c=l).isCompound&&((l=r.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===r.localName||"textarea"===r.localName))&&null==e?"":e,ea&&(o=ea(o,c.target,c.kind,i)),"attribute"==c.kind?n._valueToNodeAttribute(i,o,c.target):(t=c.target,i.__isPropertyEffectsClient&&i.__dataHasAccessor&&i.__dataHasAccessor[t]?i[C.READ_ONLY]&&i[C.READ_ONLY][t]||i._setPendingProperty(t,o)&&n._enqueueClient(i):n._setUnmanagedPropertyToNode(i,t,o)))}function Ps(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(r){{var n=c,o=u.target,a=l.source,s=l.negate;let e,t=r.detail,i=t&&t.path;e=i?(a=Da(o,a,i),t&&t.value):r.currentTarget[o],e=s?!e:e,n[C.READ_ONLY]&&n[C.READ_ONLY][a]||!n._setPendingPropertyOrPath(a,e,!0,Boolean(i))||t&&t.queueProperty||n._invalidateProperties()}})}}function Es(i,r,n,o,e,t){t=r.static||t&&("object"!=typeof t||t[r.methodName]);var a={methodName:r.methodName,args:r.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<r.args.length&&(e=r.args[t]);t++)e.literal||i._addPropertyEffect(e.rootProperty,n,{fn:o,info:a,trigger:e});return t&&i._addPropertyEffect(r.methodName,n,{fn:o,info:a}),a}function Ts(e,t,i,r,n){var o=e._methodHost||e,a=o[n.methodName];if(a)return(e=e._marshalArgs(n.args,t,i))===cs?cs:a.apply(o,e);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const As=[],Ls="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ks="(?:("+Ls+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ms=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ls+"\\s*(?:\\(\\s*(?:(?:"+ks+"(?:,\\s*"+ks+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ss(t){let i="";for(let e=0;e<t.length;e++)i+=t[e].literal||"";return i}function Ds(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:As},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=$s(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function $s(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},r=t[0];switch(r="0"<=(r="-"===r?t[1]:r)&&r<="9"?"#":r){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=ka(t),i.structured=La(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard)&&(i.name=t.slice(0,-2))),i}function Bs(e,t,i){let r=Ia(e,i);return r=void 0===r?t[i]:r}function Is(e,t,i,r){r={indexSplices:r};aa&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),aa&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function Ns(e,t,i,r,n,o){Is(e,t,i,[{index:r,addedCount:n,removed:o,object:t,type:"splice"}])}const Fs=ha(e=>{const c=ss(is(e));return class extends c{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 C}_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(){var e;Os.length&&((e=Os[Os.length-1])._enqueueClient(this),this.__dataHost=e)}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){var t,i=this[C.READ_ONLY];for(t in e)i&&i[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==C.READ_ONLY);let r=ps(this,t,!0)[e];(r=r||(this[t][e]=[])).push(i)}_removePropertyEffect(e,t,i){t=ps(this,t,!0)[e],e=t.indexOf(i);0<=e&&t.splice(e,1)}_hasPropertyEffect(e,t){t=this[t];return Boolean(t&&t[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,C.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,C.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,C.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,C.COMPUTE)}_setPendingPropertyOrPath(e,t,i,r){if(r||ka(Array.isArray(e)?e[0]:e)!==e){if(!r){r=Ia(this,e);if(!(e=Na(this,e,t))||!super._shouldPropertyChange(e,t,r))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i)){{var n=this;var o=e;var a=t;var s=n.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];Sa(l,o)?(e=Da(l,c,o),n._setPendingPropertyOrPath(e,a,!0,!0)):Sa(c,o)&&(e=Da(c,l,o),n._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||((e="className"===t?Aa(e):e)[t]=i)}_setPendingProperty(e,t,i){var r=this.__dataHasPaths&&La(e),n=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){var t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){var i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var i in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,n,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),i=n,r=o,d=u,p=t[C.COMPUTE];if(p)if(sa){ls++;var h,m,f=function(n){let o=n.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=n[C.COMPUTE];let e,{counts:t,ready:i,total:r}=function(e){const t=e[us],i={},r=e[C.COMPUTE],n=[];let o=0;for(var a in t){const r=t[a];o+=i[a]=r.args.filter(e=>!e.literal).length+(r.dynamicFn?1:0)}for(var s in r)t[s]||n.push(s);return{counts:i,ready:n,total:o}}(n);for(;e=i.shift();){o.set(e,o.size);const n=a[e];n&&n.forEach(e=>{e=e.info.methodInfo;--r,0==--t[e]&&i.push(e)})}if(0!==r){const o=n;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}n.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in i)bs(h,p,g,f,d);for(;m=g.shift();)_s(t,"",i,0,m)&&bs(m.methodInfo,p,g,f,d);Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),t.__dataPending=null}else{let e=i;for(;hs(t,p,e,r,d);)Object.assign(r,t.__dataOld),Object.assign(i,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,u),this._flushClients(),hs(this,this[C.REFLECT],n,o,u),hs(this,this[C.OBSERVE],n,o,u),a){var y=this,v=a,w=n,b=o,_=u,x;let e,t,i=y[C.NOTIFY],r=ls++;for(x in v)v[x]&&(i&&function(r,e,n,o,a,s,l,c){let u=!1,d=e[l?ka(o):o];if(d)for(let e,t=0,i=d.length;t<i&&(e=d[t]);t++)e.info&&e.info.lastRun===n||l&&!ms(o,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(r,o,a,s,e.info,l,c),u=!0);return u}(y,i,r,x,w,b,_)||_&&(s=y,x=x,l=w,c=void 0,c=ka(x),c!==x)&&(gs(s,ja(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[C.PROPAGATE]&&hs(this,this[C.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(r,e,n,t){var i=(t,i)=>{hs(this,r.propertyEffects,t,n,i,r.nodeList);for(let e=r.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,n,i)};r.runEffects?r.runEffects(i,e,t):i(e,t)}linkPaths(e,t){e=$a(e),t=$a(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=$a(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var i={path:""};Is(this,Ia(this,e,i),i.path,t)}get(e,t){return Ia(t||this,e)}set(e,t,i){i?Na(i,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var i={path:""},e=Ia(this,e,i),r=e.length,n=e.push(...t);return t.length&&Ns(this,e,i.path,r,t.length,[]),n}pop(e){var t={path:""},e=Ia(this,e,t),i=Boolean(e.length),r=e.pop();return i&&Ns(this,e,t.path,e.length,0,[r]),r}splice(e,t,i,...r){var n={path:""},e=Ia(this,e,n);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),i=2===arguments.length?e.splice(t):e.splice(t,i,...r),(r.length||i.length)&&Ns(this,e,n.path,t,r.length,i),i}shift(e){var t={path:""},e=Ia(this,e,t),i=Boolean(e.length),r=e.shift();return i&&Ns(this,e,t.path,0,0,[r]),r}unshift(e,...t){var i={path:""},e=Ia(this,e,i),r=e.unshift(...t);return t.length&&Ns(this,e,i.path,0,t.length,[]),r}notifyPath(e,t){let i;var r;i=1==arguments.length?(t=Ia(this,e,r={path:""}),r.path):Array.isArray(e)?$a(e):e,this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,C.READ_ONLY),e&&(this["_set"+((e=t)[0].toUpperCase()+e.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(e,t,i){var r={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,C.OBSERVE,{fn:fs,info:r,trigger:{name:e}}),i&&this._addPropertyEffect(t,C.OBSERVE,{fn:fs,info:r,trigger:{name:t}})}_createMethodObserver(e,t){var i=Ds(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Es(this,i,C.OBSERVE,Ts,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:ys,info:{eventName:ja(e)+"-changed",property:e}})}_createReflectedProperty(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,C.REFLECT,{fn:vs,info:{attrName:t}})}_createComputedProperty(e,t,i){var r=Ds(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");t=Es(this,r,C.COMPUTE,_s,e,i);ps(this,us)[e]=t}_marshalArgs(a,s,l){const c=this.__data,u=[];for(let o=0,e=a.length;o<e;o++){let{name:e,structured:t,wildcard:i,value:r,literal:n}=a[o];if(!n)if(i){const a=Sa(e,s),u=Bs(c,l,a?s:e);r={path:a?s:e,value:u,base:a?Ia(c,e):u}}else r=t?Bs(c,l,e):c[e];if(aa&&!this._overrideLegacyUndefined&&void 0===r&&1<a.length)return cs;u[o]=r}return u}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),r=this.__preBoundTemplateInfo==i;if(!r)for(var n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if((i=Object.create(i)).wasPreBound=r,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,r=t.lastChild;(((i.parent=t).lastChild=i).previousSibling=r)?r.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Os.push(this);t=super._stampTemplate(t,e);if(Os.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var i=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)i.push(e)}t.templateInfo=e;var r=this,{nodeList:n,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=n[e],l=a.bindings;if(l)for(let e=0;e<l.length;e++){var c=l[e],u=(f=m=h=p=d=u=void 0,s),d=c;if(d.isCompound){var p=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),h=d.parts,m=new Array(h.length);for(let e=0;e<h.length;e++)m[e]=h[e].literal;var f=d.target;p[f]=m,d.literal&&"property"==d.kind&&((u="className"===f?Aa(u):u)[f]=d.literal)}Ps(s,r,c)}s.__dataHost=r}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:i,parent:r}=e,n=(t?t.nextSibling=i:r&&(r.firstChild=i),i?i.previousSibling=t:r&&(r.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<n.length;e++){var o=n[e];Aa(Aa(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,i){let r=c._parseTemplateNode.call(this,e,t,i);var n;return e.nodeType===Node.TEXT_NODE&&(n=this._parseBindings(e.textContent,t))&&(e.textContent=Ss(n)||" ",xs(this,t,i,"text","textContent",n),r=!0),r}static _parseTemplateNodeAttribute(r,n,o,a,e){var s=this._parseBindings(e,n);if(s){let e=a,t="property",i=(ds.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),Ss(s));return i&&"attribute"==t&&("class"==a&&r.hasAttribute("class")&&(i+=" "+r.getAttribute(a)),r.setAttribute(a,i)),"attribute"==t&&"disable-upgrade$"==e&&r.setAttribute(a,""),"input"===r.localName&&"value"===e&&r.setAttribute(e,""),r.removeAttribute(e),"property"===t&&(a=Ha(a)),xs(this,n,o,t,a,s,i),!0}return c._parseTemplateNodeAttribute.call(this,r,n,o,a,e)}static _parseTemplateNestedTemplate(e,t,i){let r=c._parseTemplateNestedTemplate.call(this,e,t,i);var n=e.parentNode,o=i.templateInfo,a="dom-if"===n.localName,s="dom-repeat"===n.localName,s=(la&&(a||s)&&(n.removeChild(e),(i=i.parentInfo).templateInfo=o,i.noted=!0,r=!1),o.hostProps);if(ca&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),la||(i.parentInfo.noted=!0));else for(var l in s)xs(this,t,i,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return r}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ms.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),i=l[3].trim(),r=!1,n="",o=-1;"{"==e&&0<(o=i.indexOf("::"))&&(n=i.substring(o+2),i=i.substring(0,o),r=!0);var d=Ds(i),p=[];if(d){var{args:h,methodName:m}=d;for(let e=0;e<h.length;e++){var f=h[e];f.literal||p.push(f)}var g=s.dynamicFns;(g&&g[m]||d.static)&&(p.push(m),d.dynamicFn=!0)}else p.push(i);c.push({source:i,mode:e,negate:t,customEvent:r,signature:d,dependencies:p,event:n}),u=Ms.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,i,r,n,o){let a;return a=t.signature?Ts(e,i,r,0,t.signature):i!=t.source?Ia(e,t.source):o&&La(i)?Ia(e,i):e.__data[i],a=t.negate?!a:a}}}),Os=[],Rs=ha(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof r?e:null}function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var i;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(i=t.properties)&&(e=function(e){var t,i={};for(t in e){var r=e[t];i[t]="function"==typeof r?{type:r}:r}return i}(i)),t.__ownProperties=e}return t.__ownProperties}class r extends Xa(e){static get observedAttributes(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.prototype,e=this._properties,this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]),this.__observedAttributes}static finalize(){var e;this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))||((e=t(this))&&e.finalize(),this.__finalized=!0,this._finalizeClass())}static _finalizeClass(){var e=i(this);e&&this.createProperties(e)}static get _properties(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))||(e=t(this),this.__properties=Object.assign({},e&&e._properties,i(this))),this.__properties}static typeForProperty(e){e=this._properties[e];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r}),Hs=window.ShadyCSS&&window.ShadyCSS.cssBuild,js=ha(e=>{const r=Rs(Fs(e));return class extends r{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){r._finalizeClass.call(this);this.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",this))||(this.__ownObservers=this.hasOwnProperty(JSCompiler_renameProperty("observers",this))?this.observers:null);var e=this.__ownObservers;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):ra||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)i=this.prototype,r=t,t=e[t],n=e,t.computed&&(t.readOnly=!0),t.computed&&(i._hasReadOnlyEffect(r)?console.warn(`Cannot redefine computed property '${r}'.`):i._createComputedProperty(r,t.computed,n)),t.readOnly&&!i._hasReadOnlyEffect(r)?i._createReadOnlyProperty(r,!t.computed):!1===t.readOnly&&i._hasReadOnlyEffect(r)&&console.warn(`Cannot make readOnly property '${r}' non-readOnly.`),t.reflectToAttribute&&!i._hasReflectEffect(r)?i._createReflectedProperty(r):!1===t.reflectToAttribute&&i._hasReflectEffect(r)&&console.warn(`Cannot make reflected property '${r}' non-reflected.`),t.notify&&!i._hasNotifyEffect(r)?i._createNotifyingProperty(r):!1===t.notify&&i._hasNotifyEffect(r)&&console.warn(`Cannot make notify property '${r}' non-notify.`),t.observer&&i._createPropertyObserver(r,t.observer,n[t.observer]),i._addPropertyToAttributeMap(r);var i,r,n}static createObservers(t,i){var r=this.prototype;for(let e=0;e<t.length;e++)r._createMethodObserver(t[e],i)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(e){let t=null;if(!e||ta&&!ia||(t=va.import(e,"template"),!ta)||t)return t;throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e)}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){var e;return this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))||((e=this.importMeta)?this._importPath=Ko(e.url):(e=va.import(this.is),this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath)),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=Qo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,i=e._properties;for(t in i){var r=i[t];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var i=e[t];this._canApplyPropertyDefault(t)&&(i="function"==typeof i.value?i.value.call(this):i.value,this._hasAccessor(t)?this._setPendingProperty(t,i,!0):this[t]=i)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zo(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var i=this.importPath,n=this,o=t,a=e,s=i?qo(i):"";if(!Hs){var l=o.content.querySelectorAll("style"),c=Ea(o),u=(e=xa(a))?Ta(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=n._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let r=0;for(let i=0;i<c.length;i++){let e=c[i],t=l[r];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):r++,e.textContent=n._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),da&&Hs&&Jo){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),n._styleSheet=new CSSStyleSheet,n._styleSheet.replaceSync(t)}}this.prototype._bindTemplate(t)}}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(e){var t=Aa(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),oa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.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(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=qo(this.importPath)),qo(e,t)}static _parseTemplateContent(e,t,i){return t.dynamicFns=t.dynamicFns||this._properties,r._parseTemplateContent.call(this,e,t,i)}static _addTemplatePropertyEffect(e,t,i){return!na||t in this._properties||i.info.part.signature&&i.info.part.signature.static||i.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),r._addTemplatePropertyEffect.call(this,e,t,i)}}}),zs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Ws(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function Us(r,...e){Ys(r,e);var t=document.createElement("template");let i=e.reduce((e,t,i)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Ws(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+r[i+1],r[0]);return zs&&(i=zs.createHTML(i)),t.innerHTML=i,t}const Ys=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},Vs=js(HTMLElement),Gs=[];function qs(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function Zs(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){const t=Zs();Gs.forEach(e=>{qs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ks=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),qs(this,Zs(),null))}attributeChangedCallback(e,t,i){var r,n;super.attributeChangedCallback(e,t,i),"dir"===e&&(r=i===(e=Zs())&&-1===Gs.indexOf(this),n=!i&&t&&-1===Gs.indexOf(this),t=i!==e&&t===e,r||n?(this.__subscribe(),qs(this,e,i)):t&&this.__unsubscribe())}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Gs.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){"dir"===i&&""===t&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){Gs.includes(this)||Gs.push(this)}__unsubscribe(){Gs.includes(this)&&Gs.splice(Gs.indexOf(this),1)}};class Xs extends $i(Ks(Vs)){static get is(){return"vaadin-input-container"}static get template(){return Us`
525
525
  <style>
526
526
  :host {
527
527
  display: flex;
@@ -591,7 +591,7 @@
591
591
  <slot name="prefix"></slot>
592
592
  <slot></slot>
593
593
  <slot name="suffix"></slot>
594
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}Hn(Ks),Ii("spacing-props",a`
594
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}Hn(Xs),Ii("spacing-props",a`
595
595
  :host {
596
596
  /* Square */
597
597
  --lumo-space-xs: 0.25rem;
@@ -677,7 +677,7 @@
677
677
  opacity: 1;
678
678
  }
679
679
  }
680
- `,zo("",Oi,{moduleId:"lumo-overlay"}),t=a`
680
+ `,jo("",Oi,{moduleId:"lumo-overlay"}),t=a`
681
681
  :host([opening]),
682
682
  :host([closing]) {
683
683
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -707,7 +707,7 @@
707
707
  opacity: 0;
708
708
  }
709
709
  }
710
- `,zo("",t,{moduleId:"lumo-menu-overlay-core"}),$i=[Oi,t,a`
710
+ `,jo("",t,{moduleId:"lumo-menu-overlay-core"}),Di=[Oi,t,a`
711
711
  /* Small viewport (bottom sheet) styles */
712
712
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
713
713
  @media (max-width: 420px), (max-height: 420px) {
@@ -769,7 +769,7 @@
769
769
  transform: translateY(150%);
770
770
  }
771
771
  }
772
- `];zo("",$i,{moduleId:"lumo-menu-overlay"}),zo("vaadin-date-picker-overlay",[$i,a`
772
+ `];jo("",Di,{moduleId:"lumo-menu-overlay"}),jo("vaadin-date-picker-overlay",[Di,a`
773
773
  [part='overlay'] {
774
774
  /*
775
775
  Width:
@@ -817,7 +817,7 @@
817
817
  max-height: 70vh;
818
818
  }
819
819
  }
820
- `],{moduleId:"lumo-date-picker-overlay"}),zo("vaadin-button",a`
820
+ `],{moduleId:"lumo-date-picker-overlay"}),jo("vaadin-button",a`
821
821
  :host {
822
822
  /* Sizing */
823
823
  --lumo-button-size: var(--lumo-size-m);
@@ -1066,7 +1066,7 @@
1066
1066
  margin-left: 0;
1067
1067
  margin-right: 0;
1068
1068
  }
1069
- `,{moduleId:"lumo-button"});const Js=ha(e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Qs=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,el=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tl(e,t){if("function"==typeof e){var i=Qs.exec(e.toString());if(i)try{e=new Function(i[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function il(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(el?!(el&&0<Object.keys(el).map(e=>el[e]).filter(e=>e.productionMode).length):!tl(function(){return!0}))}catch(e){return!1}}());let rl=0,nl=0;const ol=[];let al=!1;const sl={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},ll={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},cl={run(e){al||(al=!0,queueMicrotask(()=>{{al=!1;const t=ol.length;for(let e=0;e<t;e++){const t=ol[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}ol.splice(0,t),nl+=t}})),ol.push(e);e=rl;return rl+=1,e},cancel(e){var t=e-nl;if(0<=t){if(!ol[t])throw new Error("invalid async handle: "+e);ol[t]=null}}},ul=new Set;class dl{static debounce(e,t,i){return e instanceof dl?e._cancelAsync():e=new dl,e.setConfig(t,i),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,ul.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ul.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let pl;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=il,t=void 0;if(window.Vaadin.developmentMode)tl(e,t)};const hl=new Set,ml=e=>class extends Xs(e){static get version(){return"24.2.5"}static finalize(){super.finalize();var e=this["is"];e&&!hl.has(e)&&(window.Vaadin.registrations.push(this),hl.add(e),window.Vaadin.developmentModeCallback)&&(e=pl=dl.debounce(pl,ll,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ul.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};function fl(e){return e?new Set(e.split(" ")):new Set}function gl(e){return e?[...e].join(" "):""}function yl(e,t,i){var r=fl(e.getAttribute(t));r.add(i),e.setAttribute(t,gl(r))}class vl{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 r=this.slot.assignedNodes({flatten:!0});let e=[];const n=[],o=[];r.length&&(e=r.filter(e=>!this._storedNodes.includes(e))),this._storedNodes.length&&this._storedNodes.forEach((e,t)=>{var i=r.indexOf(e);-1===i?n.push(e):i!==t&&o.push(e)}),(e.length||n.length||o.length)&&this.callback({addedNodes:e,movedNodes:o,removedNodes:n}),this._storedNodes=r}}let wl=0;class bl extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-`+wl++}constructor(e,t,i,r={}){super();var{initializer:r,multiple:n,observe:o,useUniqueId:a}=r;this.host=e,this.slotName=t,this.tagName=i,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof n&&n,this.slotInitializer=r,n&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){var e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(0===e.length){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else(this.nodes=e).forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){var{host:e,slotName:t,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i))instanceof Element&&(""!==t&&r.setAttribute("slot",t),this.node=r,this.defaultNode=r),r&&e.appendChild(r),r}getSlotChildren(){const t=this["slotName"];return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){var t=this["slotInitializer"];t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new vl(e,({addedNodes:e,removedNodes:t})=>{const i=this.multiple?this.nodes:[this.node],r=e.filter(e=>{return!((t=e).nodeType===Node.TEXT_NODE&&""===t.textContent.trim()||i.includes(e));var t});t.length&&(this.nodes=i.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),r&&0<r.length&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter(e=>e!==this.defaultNode),r.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))})}}class _l extends bl{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.opened&&(e.opened=this.opened),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;var t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;var t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;var t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;var t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;var t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;var t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;var t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}const xl=a`
1069
+ `,{moduleId:"lumo-button"});const Js=ha(e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Qs=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,el=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tl(e,t){if("function"==typeof e){var i=Qs.exec(e.toString());if(i)try{e=new Function(i[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function il(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||0<=["localhost","127.0.0.1"].indexOf(window.location.hostname)&&(el?!(el&&0<Object.keys(el).map(e=>el[e]).filter(e=>e.productionMode).length):!tl(function(){return!0}))}catch(e){return!1}}());let rl=0,nl=0;const ol=[];let al=!1;const sl={after:t=>({run:e=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},ll={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},cl={run(e){al||(al=!0,queueMicrotask(()=>{{al=!1;const t=ol.length;for(let e=0;e<t;e++){const t=ol[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}ol.splice(0,t),nl+=t}})),ol.push(e);e=rl;return rl+=1,e},cancel(e){var t=e-nl;if(0<=t){if(!ol[t])throw new Error("invalid async handle: "+e);ol[t]=null}}},ul=new Set;class dl{static debounce(e,t,i){return e instanceof dl?e._cancelAsync():e=new dl,e.setConfig(t,i),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,ul.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ul.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let pl;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){var e=il,t=void 0;if(window.Vaadin.developmentMode)tl(e,t)};const hl=new Set,ml=e=>class extends Ks(e){static get version(){return"24.2.5"}static finalize(){super.finalize();var e=this["is"];e&&!hl.has(e)&&(window.Vaadin.registrations.push(this),hl.add(e),window.Vaadin.developmentModeCallback)&&(e=pl=dl.debounce(pl,ll,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ul.add(e))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};function fl(e){return e?new Set(e.split(" ")):new Set}function gl(e){return e?[...e].join(" "):""}function yl(e,t,i){var r=fl(e.getAttribute(t));r.add(i),e.setAttribute(t,gl(r))}class vl{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 r=this.slot.assignedNodes({flatten:!0});let e=[];const n=[],o=[];r.length&&(e=r.filter(e=>!this._storedNodes.includes(e))),this._storedNodes.length&&this._storedNodes.forEach((e,t)=>{var i=r.indexOf(e);-1===i?n.push(e):i!==t&&o.push(e)}),(e.length||n.length||o.length)&&this.callback({addedNodes:e,movedNodes:o,removedNodes:n}),this._storedNodes=r}}let wl=0;class bl extends EventTarget{static generateId(e,t){return`${t||"default"}-${e.localName}-`+wl++}constructor(e,t,i,r={}){super();var{initializer:r,multiple:n,observe:o,useUniqueId:a}=r;this.host=e,this.slotName=t,this.tagName=i,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof n&&n,this.slotInitializer=r,n&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(e,t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){var e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(0===e.length){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else(this.nodes=e).forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){var{host:e,slotName:t,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i))instanceof Element&&(""!==t&&r.setAttribute("slot",t),this.node=r,this.defaultNode=r),r&&e.appendChild(r),r}getSlotChildren(){const t=this["slotName"];return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t)}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){var t=this["slotInitializer"];t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){var e=this["slotName"],e=this.host.shadowRoot.querySelector(""===e?"slot:not([name])":`slot[name=${e}]`);this.__slotObserver=new vl(e,({addedNodes:e,removedNodes:t})=>{const i=this.multiple?this.nodes:[this.node],r=e.filter(e=>{return!((t=e).nodeType===Node.TEXT_NODE&&""===t.textContent.trim()||i.includes(e));var t});t.length&&(this.nodes=i.filter(e=>!t.includes(e)),t.forEach(e=>{this.teardownNode(e)})),r&&0<r.length&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter(e=>e!==this.defaultNode),r.forEach(e=>{this.initAddedNode(e)})):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))})}}class _l extends bl{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,void 0!==this.ariaTarget&&(e.ariaTarget=this.ariaTarget),void 0!==this.context&&(e.context=this.context),void 0!==this.manual&&(e.manual=this.manual),void 0!==this.opened&&(e.opened=this.opened),void 0!==this.position&&(e._position=this.position),void 0!==this.shouldShow&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;var t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;var t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;var t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;var t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;var t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;var t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;var t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}const xl=a`
1070
1070
  :host {
1071
1071
  display: inline-block;
1072
1072
  position: relative;
@@ -1126,7 +1126,7 @@
1126
1126
  outline-color: GrayText;
1127
1127
  }
1128
1128
  }
1129
- `,Cl=!1,Pl=e=>e,El="string"==typeof document.head.style.touchAction,Al="__polymerGestures",Tl="__polymerGesturesHandled",Ll="__polymerGesturesTouchAction",Ml=["mousedown","mousemove","mouseup","click"],Dl=[0,1,4,2],Sl=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function $l(e){return-1<Ml.indexOf(e)}let kl=!1;try{var Bl=Object.defineProperty({},"passive",{get(){kl=!0}});window.addEventListener("test",null,Bl),window.removeEventListener("test",null,Bl)}catch(e){}const Il=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Nl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Fl(t){var e=t.type;if($l(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Sl&&(e=Dl[t.which]||0),Boolean(1&e)}}}const Ol={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Rl(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Hl(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const zl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Wl={},jl=[];function Ul(e){var t=zl(e);return 0<t.length?t[0]:e.target}function Yl(i){const r=i.type,e=i.currentTarget[Al];if(e){var n=e[r];if(n){if(!i[Tl]&&(i[Tl]={},r.startsWith("touch"))){const e=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(Ol.touch.id=e.identifier),Ol.touch.id!==e.identifier)return;if(!(El||"touchstart"!==r&&"touchmove"!==r)){var t=i;const l=t.changedTouches[0],c=t.type;if("touchstart"===c)Ol.touch.x=l.clientX,Ol.touch.y=l.clientY,Ol.touch.scrollDecided=!1;else if("touchmove"===c&&!Ol.touch.scrollDecided){Ol.touch.scrollDecided=!0;const c=function(e){let i="auto";var r=zl(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[Ll]){i=e[Ll];break}return i}(t);let e=!1;var o=Math.abs(Ol.touch.x-l.clientX),a=Math.abs(Ol.touch.y-l.clientY);t.cancelable&&("none"===c?e=!0:"pan-x"===c?e=o<a:"pan-y"===c&&(e=a<o)),e?t.preventDefault():Xl("track")}}}var s=i[Tl];if(!s.skip){for(let e,t=0;t<jl.length;t++)n[(e=jl[t]).name]&&!s[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<jl.length;t++)n[(e=jl[t]).name]&&!s[e.name]&&(s[e.name]=!0,e[r](i))}}}}function Vl(e,t,i){if(Wl[t]){var n,o=e,e=t,t=i,i=Wl[e],a=i.deps,s=i.name;let r=o[Al];r||(o[Al]=r={});for(let e,t,i=0;i<a.length;i++)e=a[i],Il&&$l(e)&&"click"!==e||((t=r[e])||(r[e]=t={_count:0}),0===t._count&&o.addEventListener(e,Yl,!$l(n=e)&&"touchend"!==n&&El&&kl&&Cl?{passive:!0}:void 0),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),i.touchAction&&ql(o,i.touchAction)}}function Gl(t){jl.push(t),t.emits.forEach(e=>{Wl[e]=t})}function ql(e,t){El&&e instanceof HTMLElement&&cl.run(()=>{e.style.touchAction=t}),e[Ll]=t}function Zl(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=i,Pl(e).dispatchEvent(t),t.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Xl(e){e=function(i){for(let t,e=0;e<jl.length;e++){t=jl[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===i)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Kl(e,t,i,r){t&&Zl(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>Xl(e)})}function Jl(e,t,i){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-i),5<=t)||5<=e)}function Ql(i,r,n){if(r){var o=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],s=a.x-i.x,l=a.y-i.y;let e,t=0;o&&(e=a.x-o.x,t=a.y-o.y),Zl(r,"track",{state:i.state,x:n.clientX,y:n.clientY,dx:s,dy:l,ddx:e,ddy:t,sourceEvent:n,hover:()=>{{var i=n.clientX,r=n.clientY;let e=document.elementFromPoint(i,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,r)))break;t&&(e=t)}return e}}})}}function ec(e,t,i){var r,n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=Ul(i||t);!a||Nl[a.localName]&&a.hasAttribute("disabled")||!(isNaN(n)||isNaN(o)||n<=25&&o<=25)&&("click"!==(n=t).type||0!==n.detail&&(o=Ul(n)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),r=n.pageX,n=n.pageY,r>=o.left)&&r<=o.right&&n>=o.top&&n<=o.bottom)||e.prevent||Zl(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}Gl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Hl(this.info)},mousedown(e){if(Fl(e)){const t=Ul(e),i=this;Rl(this.info,e=>{Fl(e)||(Kl("up",t,e),Hl(i.info))},e=>{Fl(e)&&Kl("up",t,e),Hl(i.info)}),Kl("down",t,e)}},touchstart(e){Kl("down",Ul(e),e.changedTouches[0],e)},touchend(e){Kl("up",Ul(e),e.changedTouches[0],e)}}),Gl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Hl(this.info)},mousedown(e){if(Fl(e)){const r=Ul(e),n=this,t=e=>{var t=e.clientX,i=e.clientY;Jl(n.info,t,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&Xl("tap"),n.info.addMove({x:t,y:i}),Fl(e)||(n.info.state="end",Hl(n.info)),r&&Ql(n.info,r,e),n.info.started=!0)};Rl(this.info,t,e=>{n.info.started&&t(e),Hl(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=Ul(e),e=e.changedTouches[0],i=e.clientX,r=e.clientY;Jl(this.info,i,r)&&("start"===this.info.state&&Xl("tap"),this.info.addMove({x:i,y:r}),Ql(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=Ul(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Ql(this.info,t,e))}}),Gl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Fl(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Fl(e)&&ec(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){ec(this.info,e.changedTouches[0],e)}});const tc=ha(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),ic=ha(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let rc=!1;function nc(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function oc(e){var t=e.length;if(t<2)return e;for(var i,r,t=Math.ceil(t/2),n=oc(e.slice(0,t)),o=oc(e.slice(t)),a=[];0<n.length&&0<o.length;)i=n[0],r=o[0],i=Math.max(i.tabIndex,0),r=Math.max(r.tabIndex,0),a.push(((0===i||0===r?i<r:r<i)?o:n).shift());return a.concat(n,o)}function ac(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{rc=!0},{capture:!0}),window.addEventListener("mousedown",()=>{rc=!1},{capture:!0});const sc=ha(e=>class extends e{get _keyboardActive(){return rc}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),lc=e=>class extends tc(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},cc=e=>{return class extends(e=lc(sc(e)),class extends tc(ic(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Vl(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Vl(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};zo("vaadin-button",xl,{moduleId:"vaadin-button-styles"});class uc extends cc(ml(ki(Js(Vs)))){static get is(){return"vaadin-button"}static get template(){return Us`
1129
+ `,Cl=!1,Pl=e=>e,El="string"==typeof document.head.style.touchAction,Tl="__polymerGestures",Al="__polymerGesturesHandled",Ll="__polymerGesturesTouchAction",kl=["mousedown","mousemove","mouseup","click"],Ml=[0,1,4,2],Sl=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function Dl(e){return-1<kl.indexOf(e)}let $l=!1;try{var Bl=Object.defineProperty({},"passive",{get(){$l=!0}});window.addEventListener("test",null,Bl),window.removeEventListener("test",null,Bl)}catch(e){}const Il=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Nl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Fl(t){var e=t.type;if(Dl(e)){if("mousemove"!==e)return 0===(void 0===t.button?0:t.button);{let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Sl&&(e=Ml[t.which]||0),Boolean(1&e)}}}const Ol={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Rl(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Hl(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const jl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],zl={},Wl=[];function Ul(e){var t=jl(e);return 0<t.length?t[0]:e.target}function Yl(i){const r=i.type,e=i.currentTarget[Tl];if(e){var n=e[r];if(n){if(!i[Al]&&(i[Al]={},r.startsWith("touch"))){const e=i.changedTouches[0];if("touchstart"===r&&1===i.touches.length&&(Ol.touch.id=e.identifier),Ol.touch.id!==e.identifier)return;if(!(El||"touchstart"!==r&&"touchmove"!==r)){var t=i;const l=t.changedTouches[0],c=t.type;if("touchstart"===c)Ol.touch.x=l.clientX,Ol.touch.y=l.clientY,Ol.touch.scrollDecided=!1;else if("touchmove"===c&&!Ol.touch.scrollDecided){Ol.touch.scrollDecided=!0;const c=function(e){let i="auto";var r=jl(e);for(let e,t=0;t<r.length;t++)if((e=r[t])[Ll]){i=e[Ll];break}return i}(t);let e=!1;var o=Math.abs(Ol.touch.x-l.clientX),a=Math.abs(Ol.touch.y-l.clientY);t.cancelable&&("none"===c?e=!0:"pan-x"===c?e=o<a:"pan-y"===c&&(e=a<o)),e?t.preventDefault():Kl("track")}}}var s=i[Al];if(!s.skip){for(let e,t=0;t<Wl.length;t++)n[(e=Wl[t]).name]&&!s[e.name]&&e.flow&&-1<e.flow.start.indexOf(i.type)&&e.reset&&e.reset();for(let e,t=0;t<Wl.length;t++)n[(e=Wl[t]).name]&&!s[e.name]&&(s[e.name]=!0,e[r](i))}}}}function Vl(e,t,i){if(zl[t]){var n,o=e,e=t,t=i,i=zl[e],a=i.deps,s=i.name;let r=o[Tl];r||(o[Tl]=r={});for(let e,t,i=0;i<a.length;i++)e=a[i],Il&&Dl(e)&&"click"!==e||((t=r[e])||(r[e]=t={_count:0}),0===t._count&&o.addEventListener(e,Yl,!Dl(n=e)&&"touchend"!==n&&El&&$l&&Cl?{passive:!0}:void 0),t[s]=(t[s]||0)+1,t._count=(t._count||0)+1);o.addEventListener(e,t),i.touchAction&&ql(o,i.touchAction)}}function Gl(t){Wl.push(t),t.emits.forEach(e=>{zl[e]=t})}function ql(e,t){El&&e instanceof HTMLElement&&cl.run(()=>{e.style.touchAction=t}),e[Ll]=t}function Zl(e,t,i){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(t.detail=i,Pl(e).dispatchEvent(t),t.defaultPrevented){const e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function Kl(e){e=function(i){for(let t,e=0;e<Wl.length;e++){t=Wl[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===i)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Xl(e,t,i,r){t&&Zl(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:e=>Kl(e)})}function Jl(e,t,i){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-i),5<=t)||5<=e)}function Ql(i,r,n){if(r){var o=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],s=a.x-i.x,l=a.y-i.y;let e,t=0;o&&(e=a.x-o.x,t=a.y-o.y),Zl(r,"track",{state:i.state,x:n.clientX,y:n.clientY,dx:s,dy:l,ddx:e,ddy:t,sourceEvent:n,hover:()=>{{var i=n.clientX,r=n.clientY;let e=document.elementFromPoint(i,r),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(i,r)))break;t&&(e=t)}return e}}})}}function ec(e,t,i){var r,n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=Ul(i||t);!a||Nl[a.localName]&&a.hasAttribute("disabled")||!(isNaN(n)||isNaN(o)||n<=25&&o<=25)&&("click"!==(n=t).type||0!==n.detail&&(o=Ul(n)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),r=n.pageX,n=n.pageY,r>=o.left)&&r<=o.right&&n>=o.top&&n<=o.bottom)||e.prevent||Zl(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}Gl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Hl(this.info)},mousedown(e){if(Fl(e)){const t=Ul(e),i=this;Rl(this.info,e=>{Fl(e)||(Xl("up",t,e),Hl(i.info))},e=>{Fl(e)&&Xl("up",t,e),Hl(i.info)}),Xl("down",t,e)}},touchstart(e){Xl("down",Ul(e),e.changedTouches[0],e)},touchend(e){Xl("up",Ul(e),e.changedTouches[0],e)}}),Gl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Hl(this.info)},mousedown(e){if(Fl(e)){const r=Ul(e),n=this,t=e=>{var t=e.clientX,i=e.clientY;Jl(n.info,t,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&Kl("tap"),n.info.addMove({x:t,y:i}),Fl(e)||(n.info.state="end",Hl(n.info)),r&&Ql(n.info,r,e),n.info.started=!0)};Rl(this.info,t,e=>{n.info.started&&t(e),Hl(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(e){var t=Ul(e),e=e.changedTouches[0],i=e.clientX,r=e.clientY;Jl(this.info,i,r)&&("start"===this.info.state&&Kl("tap"),this.info.addMove({x:i,y:r}),Ql(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(e){var t=Ul(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Ql(this.info,t,e))}}),Gl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){Fl(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){Fl(e)&&ec(this.info,e)},touchstart(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(e){ec(this.info,e.changedTouches[0],e)}});const tc=ha(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),ic=ha(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});let rc=!1;function nc(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function oc(e){var t=e.length;if(t<2)return e;for(var i,r,t=Math.ceil(t/2),n=oc(e.slice(0,t)),o=oc(e.slice(t)),a=[];0<n.length&&0<o.length;)i=n[0],r=o[0],i=Math.max(i.tabIndex,0),r=Math.max(r.tabIndex,0),a.push(((0===i||0===r?i<r:r<i)?o:n).shift());return a.concat(n,o)}function ac(e){return e.getRootNode().activeElement===e}window.addEventListener("keydown",()=>{rc=!0},{capture:!0}),window.addEventListener("mousedown",()=>{rc=!1},{capture:!0});const sc=ha(e=>class extends e{get _keyboardActive(){return rc}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),lc=e=>class extends tc(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&-1!==e&&(this._lastTabIndex=e,this.tabindex=-1)}},cc=e=>{return class extends(e=lc(sc(e)),class extends tc(ic(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Vl(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Vl(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}}){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}}};jo("vaadin-button",xl,{moduleId:"vaadin-button-styles"});class uc extends cc(ml($i(Js(Vs)))){static get is(){return"vaadin-button"}static get template(){return Us`
1130
1130
  <div class="vaadin-button-container">
1131
1131
  <span part="prefix" aria-hidden="true">
1132
1132
  <slot name="prefix"></slot>
@@ -1139,7 +1139,7 @@
1139
1139
  </span>
1140
1140
  </div>
1141
1141
  <slot name="tooltip"></slot>
1142
- `}ready(){super.ready(),this._tooltipController=new _l(this),this.addController(this._tooltipController)}}Hn(uc),zo("vaadin-date-picker-year",a`
1142
+ `}ready(){super.ready(),this._tooltipController=new _l(this),this.addController(this._tooltipController)}}Hn(uc),jo("vaadin-date-picker-year",a`
1143
1143
  :host([current]) [part='year-number'] {
1144
1144
  color: var(--lumo-primary-text-color);
1145
1145
  }
@@ -1163,7 +1163,7 @@
1163
1163
  color: var(--lumo-disabled-text-color);
1164
1164
  content: '\\2022';
1165
1165
  }
1166
- `,{moduleId:"lumo-date-picker-year"}),zo("vaadin-date-picker-overlay-content",a`
1166
+ `,{moduleId:"lumo-date-picker-year"}),jo("vaadin-date-picker-overlay-content",a`
1167
1167
  :host {
1168
1168
  position: relative;
1169
1169
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1313,7 +1313,7 @@
1313
1313
  padding-left: 50px;
1314
1314
  }
1315
1315
  }
1316
- `,{moduleId:"lumo-date-picker-overlay-content"}),zo("vaadin-month-calendar",a`
1316
+ `,{moduleId:"lumo-date-picker-overlay-content"}),jo("vaadin-month-calendar",a`
1317
1317
  :host {
1318
1318
  -moz-user-select: none;
1319
1319
  -webkit-user-select: none;
@@ -1533,7 +1533,7 @@
1533
1533
  font-family: 'lumo-icons';
1534
1534
  display: block;
1535
1535
  }
1536
- `,zo("",Ni,{moduleId:"lumo-field-button"}),Oi=a`
1536
+ `,jo("",Ni,{moduleId:"lumo-field-button"}),Oi=a`
1537
1537
  :host([has-helper]) [part='helper-text']::before {
1538
1538
  content: '';
1539
1539
  display: block;
@@ -1680,7 +1680,7 @@
1680
1680
  margin-left: 0;
1681
1681
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1682
1682
  }
1683
- `,zo("",t,{moduleId:"lumo-required-field"}),$i=[t,Ni,Oi,a`
1683
+ `,jo("",t,{moduleId:"lumo-required-field"}),Di=[t,Ni,Oi,a`
1684
1684
  :host {
1685
1685
  --lumo-text-field-size: var(--lumo-size-m);
1686
1686
  color: var(--lumo-body-text-color);
@@ -1814,7 +1814,7 @@
1814
1814
  [part='clear-button']::before {
1815
1815
  content: var(--lumo-icons-cross);
1816
1816
  }
1817
- `];zo("",$i,{moduleId:"lumo-input-field-shared-styles"}),zo("vaadin-date-picker",[$i,a`
1817
+ `];jo("",Di,{moduleId:"lumo-input-field-shared-styles"}),jo("vaadin-date-picker",[Di,a`
1818
1818
  :host {
1819
1819
  outline: none;
1820
1820
  }
@@ -1840,7 +1840,7 @@
1840
1840
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1841
1841
  --_lumo-text-field-overflow-mask-image: none;
1842
1842
  }
1843
- `],{moduleId:"lumo-date-picker"});let dc=!1,pc=[],hc=[];function mc(){dc=!0,requestAnimationFrame(function(){dc=!1;for(var e=pc;e.length;)fc(e.shift());setTimeout(function(){var i=hc;for(let e=0,t=i.length;e<t;e++)fc(i.shift())})})}function fc(e){var t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function gc(e,t,i){dc||mc(),hc.push([e,t,i])}Bl=e=>e.test(navigator.userAgent),Bi=e=>e.test(navigator.platform);Bl(/Android/u),Bl(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const yc=Bl(/Firefox/u),vc=Bi(/^iPad/u)||Bi(/^Mac/u)&&1<navigator.maxTouchPoints,wc=Bi(/^iPhone/u)||vc,bc=(Bl(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let _c=new WeakMap,xc=new WeakMap,Cc={},Pc=0;const Ec=e=>e&&e.nodeType===Node.ELEMENT_NODE,Ac=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Tc=(e,t=document.body,i="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var n=i,o="aria-hidden";r=t,e=Array.isArray(e)?e:[e];var r,e=Ec(r)?e.map(t=>{if(Ec(t)){let e=t;for(;e&&e!==r;){if(r.contains(e))return t;e=e.getRootNode().host}Ac(t,"is not contained inside",r)}else Ac(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(Ac(r,"is not a valid element"),[]);Cc[n]||(Cc[n]=new WeakMap);const a=Cc[n],s=[],l=new Set,c=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},d=(e.forEach(u),e=>{var t;e&&!c.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))d(e);else{const t=e.getAttribute(o),i=null!==t&&"false"!==t,l=(_c.get(e)||0)+1,r=(a.get(e)||0)+1;_c.set(e,l),a.set(e,r),s.push(e),1===l&&i&&xc.set(e,!0),1===r&&e.setAttribute(n,"true"),i||e.setAttribute(o,"true")}})});return d(t),l.clear(),Pc+=1,()=>{s.forEach(e=>{var t=_c.get(e)-1,i=a.get(e)-1;_c.set(e,t),a.set(e,i),t||(xc.has(e)?xc.delete(e):e.removeAttribute(o)),i||e.removeAttribute(n)}),--Pc||(_c=new WeakMap,_c=new WeakMap,xc=new WeakMap,Cc={})}}};class Lc{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=Tc(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class Mc{saveFocus(e){this.focusNode=e||nc()}restoreFocus(){const e=this.focusNode;e&&(nc()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const Dc=[];class Sc{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(n=e.style).visibility||"none"===n.display||"hidden"===(n=window.getComputedStyle(e)).visibility||"none"===n.display)return!1;var r,n=e,e=!(r=e=n).matches('[tabindex="-1"]')&&(r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(r=e.getAttribute("tabindex")||0,Number(r)):-1;let o=0<e;0<=e&&i.push(n);return[..."slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children].forEach(e=>{o=t(e,i)||o}),o}(this.__trapNode,e=[])?oc(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(ac).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Dc.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Dc.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Dc).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,i=this.__focusedElementIndex,i=t[(t.length+i+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}}const $c=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),kc=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===$c().pop()}bringToFront(){let e="";var t=$c().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),$c().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=$c();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Js(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Lc(this),this.__focusTrapController=new Sc(this),this.__focusRestorationController=new Mc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){var e=nc();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var i=e.ownerDocument;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}}){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),wc&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,i;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight,t&&e<i?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){var n=this._oldOwner!==t||this._oldModel!==i,i=(this._oldModel=i,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==r);this._oldOpened=r,i&&(this.innerHTML="",delete this._$litPart$),r&&e&&(i||t||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),gc(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Bc={start:"top",end:"bottom"},Ic={start:"left",end:"right"},Nc=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});zo("vaadin-date-picker-overlay",[a`
1843
+ `],{moduleId:"lumo-date-picker"});let dc=!1,pc=[],hc=[];function mc(){dc=!0,requestAnimationFrame(function(){dc=!1;for(var e=pc;e.length;)fc(e.shift());setTimeout(function(){var i=hc;for(let e=0,t=i.length;e<t;e++)fc(i.shift())})})}function fc(e){var t=e[0],i=e[1],r=e[2];try{i.apply(t,r)}catch(e){setTimeout(()=>{throw e})}}function gc(e,t,i){dc||mc(),hc.push([e,t,i])}Bl=e=>e.test(navigator.userAgent),Bi=e=>e.test(navigator.platform);Bl(/Android/u),Bl(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const yc=Bl(/Firefox/u),vc=Bi(/^iPad/u)||Bi(/^Mac/u)&&1<navigator.maxTouchPoints,wc=Bi(/^iPhone/u)||vc,bc=(Bl(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})());let _c=new WeakMap,xc=new WeakMap,Cc={},Pc=0;const Ec=e=>e&&e.nodeType===Node.ELEMENT_NODE,Tc=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},Ac=(e,t=document.body,i="data-aria-hidden")=>{e=Array.from(Array.isArray(e)?e:[e]);t&&e.push(...Array.from(t.querySelectorAll("[aria-live]")));{var n=i,o="aria-hidden";r=t,e=Array.isArray(e)?e:[e];var r,e=Ec(r)?e.map(t=>{if(Ec(t)){let e=t;for(;e&&e!==r;){if(r.contains(e))return t;e=e.getRootNode().host}Tc(t,"is not contained inside",r)}else Tc(t,"is not a valid element");return null}).filter(e=>Boolean(e)):(Tc(r,"is not a valid element"),[]);Cc[n]||(Cc[n]=new WeakMap);const a=Cc[n],s=[],l=new Set,c=new Set(e),u=e=>{var t;e&&!l.has(e)&&(l.add(e),(t=e.assignedSlot)&&u(t),u(e.parentNode||e.host))},d=(e.forEach(u),e=>{var t;e&&!c.has(e)&&((t=e.shadowRoot)?[...e.children,...t.children]:[...e.children]).forEach(e=>{if(!["template","script","style"].includes(e.localName))if(l.has(e))d(e);else{const t=e.getAttribute(o),i=null!==t&&"false"!==t,l=(_c.get(e)||0)+1,r=(a.get(e)||0)+1;_c.set(e,l),a.set(e,r),s.push(e),1===l&&i&&xc.set(e,!0),1===r&&e.setAttribute(n,"true"),i||e.setAttribute(o,"true")}})});return d(t),l.clear(),Pc+=1,()=>{s.forEach(e=>{var t=_c.get(e)-1,i=a.get(e)-1;_c.set(e,t),a.set(e,i),t||(xc.has(e)?xc.delete(e):e.removeAttribute(o)),i||e.removeAttribute(n)}),--Pc||(_c=new WeakMap,_c=new WeakMap,xc=new WeakMap,Cc={})}}};class Lc{constructor(e,t){this.host=e,this.callback="function"==typeof t?t:()=>e}showModal(){var e=this.callback();this.__showOthers=Ac(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}class kc{saveFocus(e){this.focusNode=e||nc()}restoreFocus(){const e=this.focusNode;e&&(nc()===document.body?setTimeout(()=>e.focus()):e.focus(),this.focusNode=null)}}const Mc=[];class Sc{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||"hidden"===(n=e.style).visibility||"none"===n.display||"hidden"===(n=window.getComputedStyle(e)).visibility||"none"===n.display)return!1;var r,n=e,e=!(r=e=n).matches('[tabindex="-1"]')&&(r.matches("input, select, textarea, button, object")?r.matches(":not([disabled])"):r.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?(r=e.getAttribute("tabindex")||0,Number(r)):-1;let o=0<e;0<=e&&i.push(n);return[..."slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children].forEach(e=>{o=t(e,i)||o}),o}(this.__trapNode,e=[])?oc(e):e;var e}get __focusedElementIndex(){var e=this.__focusableElements;return e.indexOf(e.filter(ac).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Mc.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Mc.pop()}__onKeyDown(e){this.__trapNode&&this===Array.from(Mc).pop()&&"Tab"===e.key&&(e.preventDefault(),e=e.shiftKey,this.__focusNextElement(e))}__focusNextElement(e=!1){var t=this.__focusableElements,i=this.__focusedElementIndex,i=t[(t.length+i+(e?-1:1))%t.length];i.focus(),"input"===i.localName&&i.select()}}const Dc=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),$c=e=>{return class extends(e=e,e=class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return this===Dc().pop()}bringToFront(){let e="";var t=Dc().filter(e=>e!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Dc().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=Dc();(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}},class extends Js(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Lc(this),this.__focusTrapController=new Sc(this),this.__focusRestorationController=new kc}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){var e=nc();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;for(var i=e.ownerDocument;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}}){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),wc&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){var e,t,i;this.opened&&(e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight,t&&e<i?this.style.setProperty("--vaadin-overlay-viewport-bottom",i-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0"))}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,r){var n=this._oldOwner!==t||this._oldModel!==i,i=(this._oldModel=i,this._oldOwner=t,this._oldRenderer!==e),t=(this._oldRenderer=e,this._oldOpened!==r);this._oldOpened=r,i&&(this.innerHTML="",delete this._$litPart$),r&&e&&(i||t||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),gc(this,()=>{this._trapFocus();var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(e)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){var e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!("none"===e.getPropertyValue("display"))&&t&&"none"!==t}_enqueueAnimation(e,t){const i=`__${e}Handler`,r=e=>{e&&e.target!==this||(t(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(e){e=`__${e}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=0<=e.composedPath().indexOf(this.$.overlay)}_mouseUpListener(e){this._mouseUpInside=0<=e.composedPath().indexOf(this.$.overlay)}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){var t;e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside?(this._mouseDownInside=!1,this._mouseUpInside=!1):this._shouldCloseOnOutsideClick(e)&&(t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened)&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){var t;!this._last||this.modeless&&!e.composedPath().includes(this.$.overlay)||"Escape"!==e.key||(t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}}),this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e))}}},Bc={start:"top",end:"bottom"},Ic={start:"left",end:"right"},Nc=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})});jo("vaadin-date-picker-overlay",[a`
1844
1844
  :host {
1845
1845
  z-index: 200;
1846
1846
  position: fixed;
@@ -1913,14 +1913,14 @@
1913
1913
  outline: 3px solid;
1914
1914
  }
1915
1915
  }
1916
- `],{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends(Ii=kc(Xs(ki(Vs))),class extends Ii{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Nc.unobserve(e),t)&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Nc.observe(e)),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,i,r,n,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",i=this.__isRTL,t=this.__shouldAlignStartHorizontally(o,i),this.style.alignItems=(i=!i&&t||i&&!t)?"flex-start":"flex-end",r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(o,r,this.noVerticalOverlap,Bc,this,e),o=this.__calculatePositionInOneDimension(o,r,this.noHorizontalOverlap,Ic,this,t),Object.assign(this.style,n,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i))}__shouldAlignStartHorizontally(e,t){var i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),r=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,r,this.__margins,t,this.noHorizontalOverlap,Ic)}__shouldAlignStartVertically(e){var t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),i=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),r="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,Bc)}__shouldAlignStart(e,t,i,r,n,o,a){i=i-e[o?a.end:a.start]-r[a.end],e=e[o?a.start:a.end]-r[a.start],o=n?i:e;return n===((n?e:i)<o||t<o)}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===Bc.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);i>e&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Ic.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);i>e&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return r}__calculatePositionInOneDimension(e,t,i,r,n,o){var a=o?r.start:r.end,s=o?r.end:r.start,n=parseFloat(n.style[a]||getComputedStyle(n)[a]),l=this.__adjustBottomProperty(a,r,n),t=t[o?r.start:r.end]-e[i===o?r.end:r.start];return{[a]:l?l+"px":n+t*(o?-1:1)+"px",[s]:""}}}){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Us`
1916
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Fc extends(Ii=$c(Ks($i(Vs))),class extends Ii{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value: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.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e=e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e.assignedSlot||e.parentNode:(t.push(e),e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Nc.unobserve(e),t)&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Nc.observe(e)),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){var e,t,i,r,n,o;this.positionTarget&&this.opened&&(o=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(o),this.style.justifyContent=e?"flex-start":"flex-end",i=this.__isRTL,t=this.__shouldAlignStartHorizontally(o,i),this.style.alignItems=(i=!i&&t||i&&!t)?"flex-start":"flex-end",r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(o,r,this.noVerticalOverlap,Bc,this,e),o=this.__calculatePositionInOneDimension(o,r,this.noHorizontalOverlap,Ic,this,t),Object.assign(this.style,n,o),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i))}__shouldAlignStartHorizontally(e,t){var i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth),r=(this.__oldContentWidth=this.$.overlay.offsetWidth,Math.min(window.innerWidth,document.documentElement.clientWidth)),t=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,i,r,this.__margins,t,this.noHorizontalOverlap,Ic)}__shouldAlignStartVertically(e){var t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight),i=(this.__oldContentHeight=this.$.overlay.offsetHeight,Math.min(window.innerHeight,document.documentElement.clientHeight)),r="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,i,this.__margins,r,this.noVerticalOverlap,Bc)}__shouldAlignStart(e,t,i,r,n,o,a){i=i-e[o?a.end:a.start]-r[a.end],e=e[o?a.start:a.end]-r[a.start],o=n?i:e;return n===((n?e:i)<o||t<o)}__adjustBottomProperty(e,t,i){let r;if(e===t.end){if(t.end===Bc.end){const e=Math.min(window.innerHeight,document.documentElement.clientHeight);i>e&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-e)),this.__oldViewportHeight=e}if(t.end===Ic.end){const e=Math.min(window.innerWidth,document.documentElement.clientWidth);i>e&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-e)),this.__oldViewportWidth=e}}return r}__calculatePositionInOneDimension(e,t,i,r,n,o){var a=o?r.start:r.end,s=o?r.end:r.start,n=parseFloat(n.style[a]||getComputedStyle(n)[a]),l=this.__adjustBottomProperty(a,r,n),t=t[o?r.start:r.end]-e[i===o?r.end:r.start];return{[a]:l?l+"px":n+t*(o?-1:1)+"px",[s]:""}}}){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Us`
1917
1917
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
1918
1918
  <div part="overlay" id="overlay">
1919
1919
  <div part="content" id="content">
1920
1920
  <slot></slot>
1921
1921
  </div>
1922
1922
  </div>
1923
- `}}function Oc(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Rc(e,t,i){return(!t||t<=e)&&(!i||e<=i)}function Hc(i,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(i.getTime()-t.getTime())<Math.abs(e.getTime()-i.getTime()))?t:e)}function zc(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Wc(e){var t=new Date,i=new Date(t);return i.setDate(1),i.setMonth(parseInt(e)+t.getMonth()),i}function jc(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}Hn(Fc);const Uc=document.createElement("template");Uc.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Yc extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Uc.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(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),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+2*this.bufferSize?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=2*this._initialScroll+"px",yc&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,i;this._scrollDisabled||(((i=this.$.scroller.scrollTop)<this._bufferHeight||i>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=i>this._buffers[1].translateY+e,i=i<this._buffers[0].translateY+e,(t||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=dl.debounce(this._debouncerScrollFinish,sl.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(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=dl.debounce(this._debouncerUpdateClones,sl.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const o=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){var i=document.createElement("div"),r=(i.style.height=this.itemHeight+"px",i.instance={},"vaadin-infinite-scroller-item-content-"+wl++),n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,t.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,o)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(!t.firstElementChild){const i=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(i).forEach(e=>{t.instance[e]=i[e]})}}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const i=this._firstIndex+this.bufferSize*t;[...e.children].forEach((e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,n)||this._updateElement(e.instance,i+t)}),e.updated=!0}})}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}const Vc=document.createElement("template"),Gc=(Vc.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",Hn(class extends Yc{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Vc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Wc(t)}}),document.createElement("template"));Gc.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",Hn(class extends Yc{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Gc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){var t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}});class qc extends ki(Vs){static get is(){return"vaadin-date-picker-year"}static get template(){return Us`
1923
+ `}}function Oc(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Rc(e,t,i){return(!t||t<=e)&&(!i||e<=i)}function Hc(i,e){return e.filter(e=>void 0!==e).reduce((e,t)=>t&&(!e||Math.abs(i.getTime()-t.getTime())<Math.abs(e.getTime()-i.getTime()))?t:e)}function jc(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function zc(e){var t=new Date,i=new Date(t);return i.setDate(1),i.setMonth(parseInt(e)+t.getMonth()),i}function Wc(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}Hn(Fc);const Uc=document.createElement("template");Uc.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Yc extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Uc.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(){var e,t;return this._itemHeightVal||(t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),this.$.fullHeight.style.setProperty(e="background-position",t),t=getComputedStyle(this.$.fullHeight).getPropertyValue(e),this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)),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+2*this.bufferSize?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=2*this._initialScroll+"px",yc&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){e=e?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){var e,t,i;this._scrollDisabled||(((i=this.$.scroller.scrollTop)<this._bufferHeight||i>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset()),e=this.itemHeight+this.bufferOffset,t=i>this._buffers[1].translateY+e,i=i<this._buffers[0].translateY+e,(t||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=dl.debounce(this._debouncerScrollFinish,sl.after(200),()=>{var e=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],e)||this._isVisible(this._buffers[1],e)||(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=dl.debounce(this._debouncerUpdateClones,sl.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const o=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let e=0;e<this.bufferSize;e++){var i=document.createElement("div"),r=(i.style.height=this.itemHeight+"px",i.instance={},"vaadin-infinite-scroller-item-content-"+wl++),n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=i,t.appendChild(n),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,o)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(!t.firstElementChild){const i=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(i).forEach(e=>{t.instance[e]=i[e]})}}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const n=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((e,t)=>{if(!e.updated){const i=this._firstIndex+this.bufferSize*t;[...e.children].forEach((e,t)=>{e=e._itemWrapper;r&&!this._isVisible(e,n)||this._updateElement(e.instance,i+t)}),e.updated=!0}})}_isVisible(e,t){e=e.getBoundingClientRect();return e.bottom>t.top&&e.top<t.bottom}}const Vc=document.createElement("template"),Gc=(Vc.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",Hn(class extends Yc{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Vc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=zc(t)}}),document.createElement("template"));Gc.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",Hn(class extends Yc{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Gc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){var t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}});class qc extends $i(Vs){static get is(){return"vaadin-date-picker-year"}static get template(){return Us`
1924
1924
  <style>
1925
1925
  :host {
1926
1926
  display: block;
@@ -1929,7 +1929,7 @@
1929
1929
  </style>
1930
1930
  <div part="year-number">[[year]]</div>
1931
1931
  <div part="year-separator" aria-hidden="true"></div>
1932
- `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function Zc(e,t,i,r,n){let o;n=(r=n&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:r)!==i&&(r==r||i==i);return o&&n&&(e.__dataTemp[t]=i),n}Hn(qc);t=ha(e=>class extends e{_shouldPropertyChange(e,t,i){return Zc(this,e,t,i,!0)}}),Ni=ha(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return Zc(this,e,t,i,this.mutableData)}});t._mutablePropertyChange=Zc;let Xc=null;function Kc(){return Xc}Kc.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Kc,writable:!0}});const Jc=Fs(Kc),Qc=t(Jc);class eu extends Fs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var i in e)this._setPendingProperty(i,e[i])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,i)}_showHideChildren(e){var t=e,i=this.children;for(let e=0;e<i.length;e++){var r=i[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),Ta(Ta(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&Ta(Ta(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}eu.prototype.__dataHost,eu.prototype.__templatizeOptions,eu.prototype._methodHost,eu.prototype.__templatizeOwner,eu.prototype.__hostProps;const tu=t(eu);function iu(e){e=e.__dataHost;return e&&e._methodHost||e}function ru(e,t,i){let r=i.mutableData?tu:eu;var n,o=class extends(r=ou.mixin?ou.mixin(r):r){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(n in l.instanceProps){delete c[n];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(n,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,e,t,i[t])}}((n,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in c)s.hasHostProps||(s.hasHostProps=!0),a.prototype._addPropertyEffect(d,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}});return o}function nu(t,i,r,n){var o=r.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class n extends(r.mutableData?Qc:Jc){}e=i.templatizeTemplateClass=n}else{const r=t.constructor;class n extends r{}e=i.templatizeTemplateClass=n}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(na&&n){var l=r;const d=n.constructor._properties,p=i["propertyEffects"],h=l["instanceProps"];for(var c in p)if(!(d[c]||h&&h[c])){const l=p[c];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)r=t,n=e,Xc=r,Object.setPrototypeOf(r,n.prototype),new n,Xc=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=i.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function ou(e,t,i){if(ta&&!iu(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:eu)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=ru(e,r,i),r.templatizeInstanceClass=n);var o=iu(e),i=(nu(e,r,i,o),class extends n{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=r.hostProps,i}class au{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,su.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),su.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof au?e._cancelAsync():e=new au,e.setConfig(t,i),e}}let su=new Set;function lu(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(su.size),su.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let cu=!1;class uu extends Ni(Vs){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:!ua,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(),ra&&!Ko?cu||(cu=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=Ta(Ta(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=ou(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,r){var n=this.__instances;for(let e,t=0;t<n.length&&(e=n[t]);t++)e.forwardHostProp(i,r)},notifyInstanceProp:function(e,t,i){var r,n;((r=this.as)===(n=t)||Da(r,n)||Sa(r,n))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=i),n=$a(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(n,i))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if("string"!=typeof i)return i;{let e=i,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var i=this.__observePaths;for(let e=0;e<i.length;e++)0===t.indexOf(i[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=au.debounce(this.__renderDebouncer,0<t?qa.after(t):Za,e.bind(this)),t=this.__renderDebouncer,su.add(t)}render(){this.__debounceRender(this.__render),lu()}__render(){var e,t,i;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length),this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ua&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(r[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let i=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),i=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=i<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,i}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){var r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){var o=this.__instances[n],a=i[n],s=e[a];r[a]=n,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,n,a)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],i=Ta(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];i.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){e=this.__stampInstance(e,t,i),i=this.__instances[t+1],i=i?i.children[0]:this;return Ta(Ta(this).parentNode).insertBefore(e.root,i),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),i=e.indexOf("."),r=i<0?e:e.substring(0,i);if(r==parseInt(r,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[r],(r=this.__instances[i])&&(i=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(i,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,i=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==i)return t;r=t.__dataHost}else r=Ta(r).parentNode;return null}}customElements.define(uu.is,uu);Oi=e=>class extends sc(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Oc(e.date,this.focusedDate))}ready(){super.ready(),Vl(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){var r=new Date(0,0),n=(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1),new Date(0,0));return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),!(t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&0<=i.getDate()-t.getDate()||Rc(r,t,i)||Rc(n,t,i))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((e,t)=>({weekDay:e,weekDayShort:o[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Oc(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Oc(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);for(var r=[],n=i.getMonth(),o=e.getMonth();i.getMonth()===o||i.getMonth()===n;)r.push(i.getMonth()===o?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((e,t,i)=>(i%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_handleTap(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var i=4-(e=0===e?7:e),t=new Date(t.getTime()+24*i*3600*1e3),i,t=((i=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-i.getTime()),i=Math.round(t/864e5);return Math.floor(i/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};zo("vaadin-month-calendar",a`
1932
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===(new Date).getFullYear())}}function Zc(e,t,i,r,n){let o;n=(r=n&&(o="object"==typeof i&&null!==i)?e.__dataTemp[t]:r)!==i&&(r==r||i==i);return o&&n&&(e.__dataTemp[t]=i),n}Hn(qc);t=ha(e=>class extends e{_shouldPropertyChange(e,t,i){return Zc(this,e,t,i,!0)}}),Ni=ha(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return Zc(this,e,t,i,this.mutableData)}});t._mutablePropertyChange=Zc;let Kc=null;function Xc(){return Kc}Xc.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Xc,writable:!0}});const Jc=Fs(Xc),Qc=t(Jc);class eu extends Fs(class{}){constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);var t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);var i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var i in e)this._setPendingProperty(i,e[i])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){var r;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)}):(r=this.__dataHost.__dataHost)&&r._addEventListenerToNode(e,t,i)}_showHideChildren(e){var t=e,i=this.children;for(let e=0;e<i.length;e++){var r=i[e];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),Aa(Aa(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&Aa(Aa(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){var t;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}dispatchEvent(e){return!0}}eu.prototype.__dataHost,eu.prototype.__templatizeOptions,eu.prototype._methodHost,eu.prototype.__templatizeOwner,eu.prototype.__hostProps;const tu=t(eu);function iu(e){e=e.__dataHost;return e&&e._methodHost||e}function ru(e,t,i){let r=i.mutableData?tu:eu;var n,o=class extends(r=ou.mixin?ou.mixin(r):r){},a=(o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),o),s=t,l=i,c=s.hostProps||{};for(n in l.instanceProps){delete c[n];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(n,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,e,t,i[t])}}((n,u))})}if(l.forwardHostProp&&e.__dataHost)for(var d in c)s.hasHostProps||(s.hasHostProps=!0),a.prototype._addPropertyEffect(d,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}});return o}function nu(t,i,r,n){var o=r.forwardHostProp;if(o&&i.hasHostProps){var a,s="template"==t.localName;let e=i.templatizeTemplateClass;if(!e){if(s){class n extends(r.mutableData?Qc:Jc){}e=i.templatizeTemplateClass=n}else{const r=t.constructor;class n extends r{}e=i.templatizeTemplateClass=n}for(a in i.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(r){return function(e,t,i){r.call(e.__templatizeOwner,t.substring(6),i[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(na&&n){var l=r;const d=n.constructor._properties,p=i["propertyEffects"],h=l["instanceProps"];for(var c in p)if(!(d[c]||h&&h[c])){const l=p[c];for(let e=0;e<l.length;e++){const d=l[e].info["part"];if(!d.signature||!d.signature.static){console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)r=t,n=e,Kc=r,Object.setPrototypeOf(r,n.prototype),new n,Kc=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const r=i.hostProps;for(var u in r)if(u="_host_"+u,u in t){const r=t[u];delete t[u],t.__data[u]=r}}}}function ou(e,t,i){if(ta&&!iu(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let r=((e.__templatizeOwner=t)?t.constructor:eu)._parseTemplate(e),n=r.templatizeInstanceClass;n||(n=ru(e,r,i),r.templatizeInstanceClass=n);var o=iu(e),i=(nu(e,r,i,o),class extends n{});return i.prototype._methodHost=o,i.prototype.__dataHost=e,i.prototype.__templatizeOwner=t,i.prototype.__hostProps=r.hostProps,i}class au{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,su.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),su.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof au?e._cancelAsync():e=new au,e.setConfig(t,i),e}}let su=new Set;function lu(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(su.size),su.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}let cu=!1;class uu extends Ni(Vs){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:!ua,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(),ra&&!Xo?cu||(cu=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)):this.style.display="none",this.__isDetached){this.__isDetached=!1;var t=Aa(Aa(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}var e}__ensureTemplatized(){if(!this.__ctor){var e=this.template=this._templateInfo?this:this.querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}var t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=ou(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(i,r){var n=this.__instances;for(let e,t=0;t<n.length&&(e=n[t]);t++)e.forwardHostProp(i,r)},notifyInstanceProp:function(e,t,i){var r,n;((r=this.as)===(n=t)||Ma(r,n)||Sa(r,n))&&(r=e[this.itemsIndexAs],t==this.as&&(this.items[r]=i),n=Da(this.as,JSCompiler_renameProperty("items",this)+"."+r,t),this.notifyPath(n,i))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if("string"!=typeof i)return i;{let e=i,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}}__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(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){var i=this.__observePaths;for(let e=0;e<i.length;e++)0===t.indexOf(i[e])&&this.__debounceRender(this.__render,this.delay)}}else 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)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=au.debounce(this.__renderDebouncer,0<t?qa.after(t):Za,e.bind(this)),t=this.__renderDebouncer,su.add(t)}render(){this.__debounceRender(this.__render),lu()}__render(){var e,t,i;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length),this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ua&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(r){let t=new Array(r.length);for(let e=0;e<r.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,i)=>this.__filterFn(r[e],t,i))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(r[e],r[t])),t}__calculateLimit(t){let i=t;var r=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(i=Math.min(t,this.initialCount),e=Math.max(i-r,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-r,0),this.__chunkCount),i=Math.min(r+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=i<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,i}__continueChunking(){var e;this.__shouldMeasureChunk&&(e=performance.now()-this.__renderStartTime,e=this._targetFrameTime/e,this.__chunkCount=Math.round(this.__chunkCount*e)||1),this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){var r=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){var o=this.__instances[n],a=i[n],s=e[a];r[a]=n,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,n,a)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],i=Aa(t.root);for(let e=0;e<t.children.length;e++){var r=t.children[e];i.appendChild(r)}return t}__attachInstance(e,t){e=this.__instances[e];t.insertBefore(e.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(e,t,i){e=this.__stampInstance(e,t,i),i=this.__instances[t+1],i=i?i.children[0]:this;return Aa(Aa(this).parentNode).insertBefore(e.root,i),this.__instances[t]=e}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(e,t){var e=e.slice(6),i=e.indexOf("."),r=i<0?e:e.substring(0,i);if(r==parseInt(r,10))return e=i<0?"":e.substring(i+1),this.__handleObservedPaths(e),i=this.__itemsIdxToInstIdx[r],(r=this.__instances[i])&&(i=this.as+(e?"."+e:""),r._setPendingPropertyOrPath(i,t,!1,!0),r._flushProperties()),!0}itemForElement(e){e=this.modelForElement(e);return e&&e[this.as]}indexForElement(e){e=this.modelForElement(e);return e&&e[this.indexAs]}modelForElement(e){for(var t,i=this.template,r=e;r;)if(t=r.__dataHost?r:r.__templatizeInstance){if(t.__dataHost==i)return t;r=t.__dataHost}else r=Aa(r).parentNode;return null}}customElements.define(uu.is,uu);Oi=e=>class extends sc(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Oc(e.date,this.focusedDate))}ready(){super.ready(),Vl(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){var r=new Date(0,0),n=(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1),new Date(0,0));return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),!(t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&0<=i.getDate()-t.getDate()||Rc(r,t,i)||Rc(n,t,i))}_getTitle(e,t){if(void 0!==e&&void 0!==t)return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(void 0===e||void 0===t)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((e,t)=>({weekDay:e,weekDayShort:o[t]}))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some(e=>Oc(e,t))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&1===t.firstDayOfWeek}_isToday(e){return Oc(new Date,e)}_getDays(e,t){if(void 0===e||void 0===t)return[];var i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);for(var r=[],n=i.getMonth(),o=e.getMonth();i.getMonth()===o||i.getMonth()===n;)r.push(i.getMonth()===o?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((e,t,i)=>(i%7==0&&e.push([]),e[e.length-1].push(t),e),[])}_handleTap(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(t){t=t.reduce((e,t)=>!e&&t?t:e);{let e=t.getDay();var i=4-(e=0===e?7:e),t=new Date(t.getTime()+24*i*3600*1e3),i,t=((i=new Date(0,0)).setFullYear(t.getFullYear()),t.getTime()-i.getTime()),i=Math.round(t/864e5);return Math.floor(i/7+1)}}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, `+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}};jo("vaadin-month-calendar",a`
1933
1933
  :host {
1934
1934
  display: block;
1935
1935
  }
@@ -1985,7 +1985,7 @@
1985
1985
  outline: 3px solid;
1986
1986
  }
1987
1987
  }
1988
- `,{moduleId:"vaadin-month-calendar-styles"});class du extends Oi(ki(Vs)){static get template(){return Us`
1988
+ `,{moduleId:"vaadin-month-calendar-styles"});class du extends Oi($i(Vs)){static get template(){return Us`
1989
1989
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
1990
1990
  <table
1991
1991
  id="monthGrid"
@@ -2027,7 +2027,7 @@
2027
2027
  </template>
2028
2028
  </tbody>
2029
2029
  </table>
2030
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_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&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,n){var o=["date"];return this.__isDayDisabled(e,r,n)&&o.push("disabled"),this.__isDayFocused(e,t)&&o.push("focused"),this.__isDaySelected(e,i)&&o.push("selected"),this._isToday(e)&&o.push("today"),o.join(" ")}__isDayFocused(e,t){return Oc(e,t)}__isDaySelected(e,t){return Oc(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i){return!Rc(e,t,i)}__getDayAriaDisabled(e,t,i){return void 0!==e&&void 0!==t&&void 0!==i&&this.__isDayDisabled(e,t,i)?"true":void 0}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}Hn(du);class pu{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){"function"==typeof this.callback&&this.callback(e.matches)}}$i=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},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)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ql(this.$.scrollers,"pan-y"),Vl(this.$.scrollers,"track",this._track.bind(this)),Vl(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Vl(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Vl(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new pu(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new bl(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onTodayButtonKeyDown(e)),Vl(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new bl(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onCancelButtonKeyDown(e)),Vl(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){var i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new bl(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",e=>{this.__onMonthCalendarKeyDown(e)}),e.addEventListener("init-done",()=>{var e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach(e=>{e.addEventListener("selected-date-changed",e=>{this.selectedDate=e.detail.value})}),this.calendars=e}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new bl(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Vl(e,"tap",e=>{this._onYearTap(e)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,t,i,r,n,o,a,s,l){e&&e.length&&e.forEach(e=>{e.i18n=t,e.minDate=i,e.maxDate=r,e.focusedDate=o,e.selectedDate=n,e.showWeekNumbers=a,e.ignoreTaps=s,l?e.setAttribute("theme",l):e.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(e=>{e.selectedDate=t,i?e.setAttribute("theme",i):e.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(e){var i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);void this._scrollToPosition(i+r,t)}else{const r=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){var e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=dl.debounce(this._debouncer,sl.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&"function"==typeof t.formatDate?t.formatDate(zc(e)):i}_onTodayTap(){var e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight,this._scrollToPosition(this._monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){let o,a=(this._targetPosition=e,this._revealPromise=new Promise(e=>{o=e}),0);const s=this._monthScroller.position,l=e=>{var t,i,r,n=e-(a=a||e);if(n<this.scrollDuration){n=n,t=s,i=this._targetPosition-s,r=this.scrollDuration;const e=(n/=r/2)<1?i/2*n*n+t:-i/2*(--n*(n-2)-1)+t;this._monthScroller.position=e,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}else this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Wc(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Oc(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Oc(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement(!1)}async focusDateElement(e=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise(e=>{gc(this,()=>{lu(),e()})}),e&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(Hc(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?0<t?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){var i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){var t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){var t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){var i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate){return(!t||t<=e)&&(!i||e<=i)}_isTodayAllowed(e,t){var i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,t)}};zo("vaadin-date-picker-overlay-content",a`
2030
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_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&&1===t.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,r,n){var o=["date"];return this.__isDayDisabled(e,r,n)&&o.push("disabled"),this.__isDayFocused(e,t)&&o.push("focused"),this.__isDaySelected(e,i)&&o.push("selected"),this._isToday(e)&&o.push("today"),o.join(" ")}__isDayFocused(e,t){return Oc(e,t)}__isDaySelected(e,t){return Oc(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i){return!Rc(e,t,i)}__getDayAriaDisabled(e,t,i){return void 0!==e&&void 0!==t&&void 0!==i&&this.__isDayDisabled(e,t,i)?"true":void 0}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}Hn(du);class pu{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){"function"==typeof this.callback&&this.callback(e.matches)}}Di=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},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)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ql(this.$.scrollers,"pan-y"),Vl(this.$.scrollers,"track",this._track.bind(this)),Vl(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Vl(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Vl(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new pu(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new bl(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onTodayButtonKeyDown(e)),Vl(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new bl(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",e=>this.__onCancelButtonKeyDown(e)),Vl(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){var i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new bl(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",e=>{this.__onMonthCalendarKeyDown(e)}),e.addEventListener("init-done",()=>{var e=[...this.querySelectorAll("vaadin-month-calendar")];e.forEach(e=>{e.addEventListener("selected-date-changed",e=>{this.selectedDate=e.detail.value})}),this.calendars=e}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new bl(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Vl(e,"tap",e=>{this._onYearTap(e)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,t,i,r,n,o,a,s,l){e&&e.length&&e.forEach(e=>{e.i18n=t,e.minDate=i,e.maxDate=r,e.focusedDate=o,e.selectedDate=n,e.showWeekNumbers=a,e.ignoreTaps=s,l?e.setAttribute("theme",l):e.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(e=>{e.selectedDate=t,i?e.setAttribute("theme",i):e.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(e){var i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(e);void this._scrollToPosition(i+r,t)}else{const r=this._monthScroller.position>i,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<i;r?this._scrollToPosition(i,t):o&&this._scrollToPosition(i-n+1,t)}}}_calculateWeekScrollOffset(e){var t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){var e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-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=dl.debounce(this._debouncer,sl.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&"function"==typeof t.formatDate?t.formatDate(jc(e)):i}_onTodayTap(){var e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){this._ignoreTaps||this._notTapping||(e=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight,this._scrollToPosition(this._monthScroller.position+12*e,!0))}_scrollToPosition(e,t){if(void 0!==this._targetPosition)this._targetPosition=e;else if(t){let o,a=(this._targetPosition=e,this._revealPromise=new Promise(e=>{o=e}),0);const s=this._monthScroller.position,l=e=>{var t,i,r,n=e-(a=a||e);if(n<this.scrollDuration){n=n,t=s,i=this._targetPosition-s,r=this.scrollDuration;const e=(n/=r/2)<1?i/2*n*n+t:-i/2*(--n*(n-2)-1)+t;this._monthScroller.position=e,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}else this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate()}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){Math.abs(e.detail.dx)<10||10<Math.abs(e.detail.ddy)||(Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),e=this._translateX+e.detail.ddx,this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth}))}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return zc(e).getFullYear()}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Oc(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar")}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){"Tab"===e.key&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){var e;this.__pendingDateFocus&&(e=this.focusableDateElement)&&Oc(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}async focusDate(e,t){e=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=e,t||(this._focusedMonthDate=e.getDate()),await this.focusDateElement(!1)}async focusDateElement(e=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise(e=>{gc(this,()=>{lu(),e()})}),e&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(e){this.focusDate(Hc(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?0<t?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){var i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){var t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){var t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){var i=new Date(0,0);i.setFullYear(e.getFullYear()),"minDate"===t?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate){return(!t||t<=e)&&(!i||e<=i)}_isTodayAllowed(e,t){var i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,t)}};jo("vaadin-date-picker-overlay-content",a`
2031
2031
  :host {
2032
2032
  display: flex;
2033
2033
  flex-direction: column;
@@ -2087,7 +2087,7 @@
2087
2087
  z-index: 2;
2088
2088
  flex-shrink: 0;
2089
2089
  }
2090
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class hu extends $i(Js(ki(Xs(Vs)))){static get template(){return Us`
2090
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class hu extends Di(Js($i(Ks(Vs)))){static get template(){return Us`
2091
2091
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2092
2092
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2093
2093
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -2107,7 +2107,7 @@
2107
2107
  <slot name="today-button"></slot>
2108
2108
  <slot name="cancel-button"></slot>
2109
2109
  </div>
2110
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Hn(hu);const mu=ha(e=>class extends sc(lc(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),fu=new WeakMap,gu=ha(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),o=(e=n,fu.has(e)||fu.set(e,new Set),fu.get(e));var e;this.slotStyles.forEach(e=>{var t,i,r;o.has(e)||(t=e,i=n,(r=document.createElement("style")).textContent=t,i===document?document.head.appendChild(r):i.insertBefore(r,i.firstChild),o.add(e))})}}),yu=ha(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),vu=new Map;function wu(e){return vu.has(e)||vu.set(e,new WeakMap),vu.get(e)}function bu(e,t){e&&e.removeAttribute(t)}function _u(e,t){var i;e&&t&&((i=wu(t)).has(e)||(t=fl(e.getAttribute(t)),i.set(e,new Set(t))))}function xu(e,t,i={newId:null,oldId:null,fromUser:!1}){if(e&&t){var r,{newId:i,oldId:n,fromUser:o}=i,a=wu(t),s=a.get(e);if(!o&&s)return n&&s.delete(n),i&&s.add(i);o&&(s?i||a.delete(e):_u(e,t),bu(e,t)),o=t,a=n,(r=fl((n=e).getAttribute(o))).delete(a),0!==r.size?n.setAttribute(o,gl(r)):n.removeAttribute(o);a=i||gl(s);a&&yl(e,t,a)}}class Cu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&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){var i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,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){var t,i,r;this.__target&&(e?(_u(i=this.__target,r="aria-labelledby"),bu(i,r),this.__target.setAttribute("aria-label",e)):this.__label&&(i=this.__target,r="aria-labelledby",i&&((t=(e=wu(r)).get(i))&&0!==t.size?yl(i,r,gl(t)):i.removeAttribute(r),e.delete(i)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){xu(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){xu(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){xu(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"))}}class Pu extends bl{constructor(e,t,i,r={}){super(e,t,i,{...r,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var 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(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;"attributes"===e.type?i&&this.__updateNodeId(t):!i&&t.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)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class Eu extends Pu{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){var{errorMessage:t,invalid:i}=this,i=Boolean(i&&t&&""!==t.trim());e&&(e.textContent=i?t:"",e.hidden=!i,i?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class Au extends Pu{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 e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class Tu extends Pu{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 e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const Lu=ha(e=>class extends Js(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Tu(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),Mu=ha(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}}),Du=ha(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...i){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,i[t])})}_delegatePropsChanged(...i){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,i[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),Su=ha(e=>class extends Du(Mu(yu(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),$u=e=>{return class extends gu(mu(Su((e=ic(e),e=class extends yu(ic(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),bc||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}},class extends Mu(Lu(Js(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Cu(this),this._helperController=new Au(this),this._errorController=new Eu(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=dl.debounce(this._preventInputDebouncer,sl.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}};class ku extends bl{constructor(e,i){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof i&&i(e)},useUniqueId:!0})}}class Bu{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const Iu=[a`
2110
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}Hn(hu);const mu=ha(e=>class extends sc(lc(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){void 0!==e&&this.focusElement&&-1!==(this.focusElement.tabIndex=e)&&(this.tabindex=void 0),this.disabled&&e&&(-1!==e&&(this._lastTabIndex=e),this.tabindex=void 0)}}),fu=new WeakMap,gu=ha(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const n=this.getRootNode(),o=(e=n,fu.has(e)||fu.set(e,new Set),fu.get(e));var e;this.slotStyles.forEach(e=>{var t,i,r;o.has(e)||(t=e,i=n,(r=document.createElement("style")).textContent=t,i===document?document.head.appendChild(r):i.insertBefore(r,i.firstChild),o.add(e))})}}),yu=ha(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){var t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){e=e.composedPath()[0];this._hasInputValue=0<e.value.length}}),vu=new Map;function wu(e){return vu.has(e)||vu.set(e,new WeakMap),vu.get(e)}function bu(e,t){e&&e.removeAttribute(t)}function _u(e,t){var i;e&&t&&((i=wu(t)).has(e)||(t=fl(e.getAttribute(t)),i.set(e,new Set(t))))}function xu(e,t,i={newId:null,oldId:null,fromUser:!1}){if(e&&t){var r,{newId:i,oldId:n,fromUser:o}=i,a=wu(t),s=a.get(e);if(!o&&s)return n&&s.delete(n),i&&s.add(i);o&&(s?i||a.delete(e):_u(e,t),bu(e,t)),o=t,a=n,(r=fl((n=e).getAttribute(o))).delete(a),0!==r.size?n.setAttribute(o,gl(r)):n.removeAttribute(o);a=i||gl(s);a&&yl(e,t,a)}}class Cu{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&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){var i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,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){var t,i,r;this.__target&&(e?(_u(i=this.__target,r="aria-labelledby"),bu(i,r),this.__target.setAttribute("aria-label",e)):this.__label&&(i=this.__target,r="aria-labelledby",i&&((t=(e=wu(r)).get(i))&&0!==t.size?yl(i,r,gl(t)):i.removeAttribute(r),e.delete(i)),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){xu(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){xu(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){xu(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"))}}class Pu extends bl{constructor(e,t,i,r={}){super(e,t,i,{...r,useUniqueId:!0})}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){var t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){var 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(e=>{e.forEach(e=>{var t=e.target,i=t===this.node;"attributes"===e.type?i&&this.__updateNodeId(t):!i&&t.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)||0<e.children.length)||e.textContent&&""!==e.textContent.trim())}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){var t=!this.nodes||e===this.nodes[0];e.nodeType!==Node.ELEMENT_NODE||this.multiple&&!t||e.id||(e.id=this.defaultId)}}class Eu extends Pu{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){var{errorMessage:t,invalid:i}=this,i=Boolean(i&&t&&""!==t.trim());e&&(e.textContent=i?t:"",e.hidden=!i,i?e.setAttribute("role","alert"):e.removeAttribute("role")),super.updateDefaultNode(e)}}class Tu extends Pu{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 e=this["helperText"];if(e&&""!==e.trim()){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}class Au extends Pu{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 e=this["label"];if(e&&""!==e.trim()){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}const Lu=ha(e=>class extends Js(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Au(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){var e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}}),ku=ha(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){var e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}}),Mu=ha(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...i){this.constructor.delegateAttrs.forEach((e,t)=>{this._delegateAttribute(e,i[t])})}_delegatePropsChanged(...i){this.constructor.delegateProps.forEach((e,t)=>{this._delegateProperty(e,i[t])})}_delegateAttribute(e,t){this.stateTarget&&("invalid"===e&&this._delegateAttribute("aria-invalid",!!t&&"true"),"boolean"==typeof t?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}}),Su=ha(e=>class extends Mu(ku(yu(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(e=>this.__isValidConstraint(e))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){e&&(e=this._hasValidConstraints(t),t=this.__previousHasConstraints&&!e,(this._hasValue||this.invalid)&&e?this.validate():t&&this._setInvalid(!1),this.__previousHasConstraints=e)}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return Boolean(e)||0===e}}),Du=e=>{return class extends gu(mu(Su((e=ic(e),e=class extends yu(ic(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),bc||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}},class extends ku(Lu(Js(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Cu(this),this._helperController=new Tu(this),this._errorController=new Eu(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.__labelChanged(e,t)}),this._helperController.addEventListener("slot-content-changed",e=>{var{hasContent:e,node:t}=e.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,t)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const e=this._errorNode;this._fieldAriaController.setErrorId(e&&e.id)}else this._fieldAriaController.setErrorId(null)})}})))){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["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=dl.debounce(this._preventInputDebouncer,sl.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__allowedCharRegExp.test(e.key)}_onPaste(e){var t;this.allowedCharPattern&&(t=e.clipboardData.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onDrop(e){var t;this.allowedCharPattern&&(t=e.dataTransfer.getData("text"),this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented()))}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(e){console.error(e)}}}};class $u extends bl{constructor(e,i){super(e,"input","input",{initializer:(e,t)=>{t.value&&(e.value=t.value),t.type&&e.setAttribute("type",t.type),e.id=this.defaultId,"function"==typeof i&&i(e)},useUniqueId:!0})}}class Bu{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",e=>{this.__initLabel(e.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input)&&e.setAttribute("for",this.input.id)}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const Iu=[a`
2111
2111
  :host {
2112
2112
  display: inline-flex;
2113
2113
  outline: none;
@@ -2162,7 +2162,7 @@
2162
2162
  :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2163
2163
  display: block;
2164
2164
  }
2165
- `];class Nu{constructor(e){(this.host=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")}}var Fu,Bi=e=>{return class extends(e=Js(mu(Su(ic(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){var e=e.split("/"),t=new Date;let i,r=t.getMonth(),n=t.getFullYear();if(3===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1]),n=parseInt(e[2]),e[2].length<3&&0<=n&&(n=function(e,t,i=0,r=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,i,r)?n-=100:e>new Date(n+50,i,r)&&(n+=100),n}(this.referenceDate?jc(this.referenceDate):new Date,n,r,i))):2===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:r,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,sync:!0},max:{type:String,sync:!0},_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:wc},_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)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new pu(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Nu(this));var e=this.$.overlay;(this._overlayElement=e).renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&jc(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(zc(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Rc(this._selectedDate,this._minDate,this._maxDate);let i=!0;return this.inputElement&&(this.inputElement.checkValidity?i=this.inputElement.checkValidity():this.inputElement.validate&&(i=this.inputElement.validate())),e&&t&&i}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.getFullYear();return n<0?(n=-n,i="-",r="000000"):1e4<=e.getFullYear()&&(i="+",r="000000"),[i+t(n,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}_valueChanged(e,t){var i=jc(e);!e||i?(e?Oc(this._selectedDate,i)||(this._selectedDate=i,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,i,r,n,o,a,s){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=o,e.selectedDate=a,e.showWeekNumbers=s)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=Tc(t)}_getInitialPosition(){var e=jc(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Rc(t,this._minDate,this._maxDate)?t:Hc(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(e))?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Oc(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return jc(e)}}};zo("vaadin-date-picker",[Iu,a`
2165
+ `];class Nu{constructor(e){(this.host=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")}}var Fu,Bi=e=>{return class extends(e=Js(mu(Su(ic(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate(e){var e=e.split("/"),t=new Date;let i,r=t.getMonth(),n=t.getFullYear();if(3===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1]),n=parseInt(e[2]),e[2].length<3&&0<=n&&(n=function(e,t,i=0,r=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,i,r)?n-=100:e>new Date(n+50,i,r)&&(n+=100),n}(this.referenceDate?Wc(this.referenceDate):new Date,n,r,i))):2===e.length?(r=parseInt(e[0])-1,i=parseInt(e[1])):1===e.length&&(i=parseInt(e[0])),void 0!==i)return{day:i,month:r,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,sync:!0},max:{type:String,sync:!0},_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:wc},_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)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new pu(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Nu(this));var e=this.$.overlay;(this._overlayElement=e).renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&Wc(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(jc(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Rc(this._selectedDate,this._minDate,this._maxDate);let i=!0;return this.inputElement&&(this.inputElement.checkValidity?i=this.inputElement.checkValidity():this.inputElement.validate&&(i=this.inputElement.validate())),e&&t&&i}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,r,n,o){return!e||t&&(!o||n)||i&&n||!r.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let i="",r="0000",n=e.getFullYear();return n<0?(n=-n,i="-",r="000000"):1e4<=e.getFullYear()&&(i="+",r="000000"),[i+t(n,r),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}_valueChanged(e,t){var i=Wc(e);!e||i?(e?Oc(this._selectedDate,i)||(this._selectedDate=i,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,i,r,n,o,a,s){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=n,e.focusedDate=o,e.selectedDate=a,e.showWeekNumbers=s)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=Ac(t)}_getInitialPosition(){var e=Wc(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Rc(t,this._minDate,this._maxDate)?t:Hc(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(e))?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Oc(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return Wc(e)}}};jo("vaadin-date-picker",[Iu,a`
2166
2166
  :host([opened]) {
2167
2167
  pointer-events: auto;
2168
2168
  }
@@ -2175,7 +2175,7 @@
2175
2175
  direction: rtl;
2176
2176
  text-align: left;
2177
2177
  }
2178
- `],{moduleId:"vaadin-date-picker-styles"});class Ou extends Bi($u(ki(ml(Vs)))){static get is(){return"vaadin-date-picker"}static get template(){return Us`
2178
+ `],{moduleId:"vaadin-date-picker-styles"});class Ou extends Bi(Du($i(ml(Vs)))){static get is(){return"vaadin-date-picker"}static get template(){return Us`
2179
2179
  <div class="vaadin-date-picker-container">
2180
2180
  <div part="label">
2181
2181
  <slot name="label"></slot>
@@ -2217,5 +2217,5 @@
2217
2217
  ></vaadin-date-picker-overlay>
2218
2218
 
2219
2219
  <slot name="tooltip"></slot>
2220
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new ku(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Bu(this.inputElement,this._labelController)),this._tooltipController=new _l(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(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}}function Ru(e){let i,r,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Hu(e){let i,r,n,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function zu(i){let r,n,O,o,a,R,s,l,c,H,u,d,z,p,h,W,m,j,U,f,Y,g,V,y,v,G,q,w,Z,b,_,X,K,x,J,C,Q,P,ee,E,A,te,ie,re,T=i[8]("title")+"",L=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",M=i[8]("selfExclusionText2")+"",D=i[8]("selfExclusionText3")+"",S=i[8]("selfExclusionText4")+"",$=i[8]("duration")+"",k=i[8]("forever")+"",B=i[8]("save")+"",I=i[9]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function ne(e){return e[4]?Hu:Ru}let N=ne(i),F=N(i);return{c(){r=di("div"),n=di("form"),I&&I.c(),O=mi(),o=di("h2"),a=hi(T),R=mi(),s=di("div"),l=di("p"),c=hi(L),H=mi(),u=di("p"),d=hi(M),z=mi(),p=di("p"),h=hi(D),W=mi(),m=di("p"),j=hi(S),U=mi(),f=di("a"),Y=hi(i[1]),V=mi(),y=di("div"),v=di("label"),G=hi($),q=mi(),w=di("vaadin-date-picker"),Z=mi(),b=di("div"),_=di("label"),X=hi(k),K=mi(),x=di("input"),J=mi(),C=di("span"),Q=mi(),P=di("div"),F.c(),ee=mi(),E=di("div"),A=di("button"),te=hi(B),this.c=oe,gi(o,"class","PlayerSelfExclusionTitle "+(i[9]?"PlayerSelfExclusionTitleNone":"")),gi(l,"class","SelfExclusionDescriptionText"),gi(u,"class","SelfExclusionDescriptionText"),gi(p,"class","SelfExclusionDescriptionText"),gi(f,"href",g="mailto:"+i[1]),gi(m,"class","SelfExclusionDescriptionText"),gi(s,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(v,"for","SelfExclusionDate"),ae(w,"min",i[6]),ae(w,"max",i[7]),ae(w,"value",i[6]),gi(y,"class","SelfExclusionDateWrapper "+(i[9]?"SelfExclusionDateWrapperMobile":"")),gi(x,"type","Checkbox"),gi(C,"class","Checkmark"),gi(C,"part","Checkmark"),gi(_,"class","SelfExclusionRadio"),gi(b,"class","SelfExclusionRadioWrapper "+(i[9]?"SelfExclusionRadioWrapperMobile":"")),gi(P,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(A,"class","SelfExclusionSave"),gi(E,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(n,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),I&&I.m(n,null),si(n,O),si(n,o),si(o,a),si(n,R),si(n,s),si(s,l),si(l,c),si(s,H),si(s,u),si(u,d),si(s,z),si(s,p),si(p,h),si(s,W),si(s,m),si(m,j),si(m,U),si(m,f),si(f,Y),si(n,V),si(n,y),si(y,v),si(v,G),si(y,q),si(y,w),i[18](w),si(n,Z),si(n,b),si(b,_),si(_,X),si(_,K),si(_,x),si(_,J),si(_,C),si(n,Q),si(n,P),F.m(P,null),si(n,ee),si(n,E),si(E,A),si(A,te),i[21](r),ie||(re=[fi(x,"click",i[19]),fi(A,"click",i[20])],ie=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&yi(a,T),257&t[0]&&L!==(L=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,L),256&t[0]&&M!==(M=e[8]("selfExclusionText2")+"")&&yi(d,M),256&t[0]&&D!==(D=e[8]("selfExclusionText3")+"")&&yi(h,D),256&t[0]&&S!==(S=e[8]("selfExclusionText4")+"")&&yi(j,S),2&t[0]&&yi(Y,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gi(f,"href",g),256&t[0]&&$!==($=e[8]("duration")+"")&&yi(G,$),64&t[0]&&ae(w,"min",e[6]),128&t[0]&&ae(w,"max",e[7]),64&t[0]&&ae(w,"value",e[6]),256&t[0]&&k!==(k=e[8]("forever")+"")&&yi(X,k),N===(N=ne(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(P,null))),256&t[0]&&B!==(B=e[8]("save")+"")&&yi(te,B)},i:oe,o:oe,d(e){e&&ci(r),I&&I.d(),i[18](null),F.d(),i[21](null),ie=!1,ai(re)}}}function Wu(t,e,i){let r;Le(t,$e,e=>i(8,r=e));let n,o,a,s,{lang:l="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,m=window.navigator.userAgent,f="PC"!==ke(m),g=!1,y="",v="",w=new Date;Object.keys(Rn).forEach(e=>{On(e,Rn[e])}),a=W(w.setDate(w.getDate())).add(6,"M").format("YYYY-MM-DD"),s=W(w.setDate(w.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{i(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&i(5,v=e))},x=e=>{e.preventDefault(),_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},P=e=>{_(e.target.value)};Me(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&i(13,l=e.lang),"operator"in e&&i(0,c=e.operator),"supportemail"in e&&i(1,u=e.supportemail),"clientstyling"in e&&i(14,d=e.clientstyling),"clientstylingurl"in e&&i(15,p=e.clientstylingurl),"translationurl"in e&&i(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,Se.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{On(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,n,o,g,v,a,s,r,f,b,x,C,l,d,p,h,()=>C(),function(e){De[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>b(),e=>x(e),function(e){De[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function ju(e,t){B(e,t)}Hn(Ou),customElements.define=(Fu=customElements.define,function(...e){try{return Fu.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Wu,zu,i,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),p()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Uu={en:{title:"Account Closure",accountClosureDescription:"Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",closeAccount:"Close Account",modal:"Are you sure you want to close your account?",accountClosureCancel:"No",accountClosureConfirm:"Yes"},"zh-hk":{title:"賬戶關閉",accountClosureDescription:"如果您覺得需要休息,或者您只是想停止使用我們的服務,賬戶關閉會為您的賬戶提供永久訪問限制。",closeAccount:"關閉賬戶",modal:"您確定要關閉您的帳戶嗎?",accountClosureCancel:"不",accountClosureConfirm:"是的"},fr:{title:"Fermeture du compte",accountClosureDescription:"La fermeture du compte fournit une restriction permanente d'accès à votre compte si vous sentez que vous avez besoin d'une pause ou si vous souhaitez arrêter d'utiliser notre service",closeAccount:"Fermer le compte",modal:"êtes-vous sûr de vouloir fermer votre compte?",accountClosureCancel:"Non",accountClosureConfirm:"Oui"},ro:{title:"Închidere Cont",accountClosureDescription:'Opțiunea "Închidere Cont" asigură suspendarea permanentă a accesului la contul tău dacă simți că ai nevoie de o pauză sau că vrei să nu mai folosești serviciile noastre.',closeAccount:"Închide Cont",modal:"Esti sigur ca vrei sa inchizi contul?",accountClosureCancel:"Nu",accountClosureConfirm:"Da"},es:{title:"Cierre de cuenta",accountClosureDescription:"Cierre de cuenta provee una restricción permamente de poder ingresar a su cuenta si desea tomar una pausa.",closeAccount:"Cerrar cuenta",modal:"Esta seguro que desea cerrar su cuenta?",accountClosureCancel:"No",accountClosureConfirm:"Sí"},pt:{title:"Encerramento da conta",accountClosureDescription:"O Encerramento de Conta fornece uma restrição de acesso permanente à sua conta se você achar que precisa de uma pausa ou apenas deseja parar de usar nossos serviços.",closeAccount:"Encerrar conta",modal:"Tem certeza de que deseja encerrar sua conta?",accountClosureCancel:"Não",accountClosureConfirm:"Sim"}};function Yu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("modal")+"",v=i[2]("accountClosureCancel")+"",w=i[2]("accountClosureConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[13]),fi(h,"click",i[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&yi(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&yi(d,v),4&t&&w!==(w=e[2]("accountClosureConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function Vu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[2]("title")+"",b=i[2]("accountClosureDescription")+"",_=i[2]("closeAccount")+"",x=i[3]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),C=i[1]&&Yu(i);return{c(){r=di("div"),n=di("div"),x&&x.c(),o=mi(),a=di("h2"),s=hi(w),l=mi(),c=di("div"),u=di("p"),d=hi(b),p=mi(),h=di("div"),m=di("button"),f=hi(_),g=mi(),C&&C.c(),this.c=oe,gi(a,"class","AccountClosureTitle "+(i[3]?"AccountClosureTitleNone":"")),gi(c,"class","AccountClosureDescription "+(i[3]?"AccountClosureDescriptionMobile":"")),gi(m,"class","AccountClosureSave "+(i[3]?"AccountClosureSaveMobile":"")),gi(h,"class","AccountClosureActionButtons "+(i[3]?"AccountClosureActionButtonsMobile":"")),gi(n,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),x&&x.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),si(m,f),si(r,g),C&&C.m(r,null),i[15](r),y||(v=fi(m,"click",i[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&w!==(w=e[2]("title")+"")&&yi(s,w),4&t&&b!==(b=e[2]("accountClosureDescription")+"")&&yi(d,b),4&t&&_!==(_=e[2]("closeAccount")+"")&&yi(f,_),e[1]?C?C.p(e,t):((C=Yu(e)).c(),C.m(r,null)):C&&(C.d(1),C=null)},i:oe,o:oe,d(e){e&&ci(r),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Gu(t,e,i){let r;Le(t,$e,e=>i(2,r=e));let n,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==ke(c),d=!1;Object.keys(Uu).forEach(e=>{ju(e,Uu[e])});const p=e=>{i(1,d=e),!0===e?window.postMessage({type:"DisableScroll"},window.location.href):window.postMessage({type:"EnableScroll"},window.location.href)},h=()=>{p(!1),window.postMessage({type:"AccountClosure"},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:u},window.location.href)};return t.$$set=e=>{"lang"in e&&i(7,o=e.lang),"clientstyling"in e&&i(8,a=e.clientstyling),"clientstylingurl"in e&&i(9,s=e.clientstylingurl),"translationurl"in e&&i(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,Se.set(e)),257&t.$$.dirty&&a&&n&&((e=document.createElement("style")).innerHTML=a,n.appendChild(e)),513&t.$$.dirty&&s&&n){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ju(e,t[e])})}).catch(e=>{console.log(e)})},[n,d,r,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){De[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function qu(e,t){B(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.AccountClosureTitleMobile{font-size:16px}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:12px;line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:12px;grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gu,Vu,i,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Zu={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"}};function Xu(e,t){B(e,t)}const Ku={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",daily:"日常的",weekly:"每週",monthly:"月刊",removeLimitText:"您確定要刪除 {limit} 嗎?",removeLimitsText:"您確定要刪除所有 {limit} 嗎?",minutes:"分鐘",noLimit:"沒有限制",expirationDate:"截止日期",notAvailable:"不適用",edit:"編輯",removeLimits:"移除限制",depositLimit:"存款限額",timeLimit:"時限",wageringLimit:"投注限額",lossLimit:"損失限額",timeLimitLower:"時限",depositLimitLower:"存款限額",wageringLimitLower:"投注限額",lossLimitLower:"損失限額",time:"時間",currency:"貨幣"},fr:{name:"Info",amountChanged:"Votre limite a été modifiée ou augmentée: {amount} {currency}. Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",removeLimitText:"êtes-vous sûr de vouloir supprimer la{limit}?",removeLimitsText:"êtes-vous sûr de vouloir supprimer tous les {limit}s?",minutes:"minutes",noLimit:"Aucune limite",expirationDate:"Date d'expiration",notAvailable:"N/A",edit:"Modifier",removeLimits:"Supprimer les limites",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte",timeLimitLower:"Limite de temps",depositLimitLower:"Limite de dépôt",wageringLimitLower:"Limite de mise",lossLimitLower:"Limite de perte",time:"Temps",currency:"Monnaie"},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"},es:{name:"Información",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"Estas seguro de quitar el {limit}?",removeLimitsText:"Estas seguro de retirar todos los {limit}es?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No Disponible",edit:"Editar",removeLimits:"Retirar límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de apuestas",lossLimitLower:"Límite de pérdida",time:"tiempo",currency:"moneda"},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",removeLimitText:"Tem certeza de que deseja remover o {limite}??",removeLimitsText:"Tem certeza de que deseja remover todos os {limite}s??",minutes:"Minutos",noLimit:"Sem limite",expirationDate:"Data de Validade",notAvailable:"Não Disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda",timeLimitLower:"Limite de tempo",depositLimitLower:"limite de depósito",wageringLimitLower:"limite de apostas",lossLimitLower:"limite de perda",time:"Tempo",currency:"Moeda"}};function Ju(e,t){B(e,t)}const Qu={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},de:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"},fr:{name:"Info",amountChanged:"Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",defaultText:"\"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira."},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră."},es:{name:"Info",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",defaultText:"Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual."},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",defaultText:"Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar."}};function ed(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?id:td}let w=v(i),b=w(i);return{c(){r=di("section"),n=di("div"),o=di("div"),(a=di("div")).textContent="i",s=mi(),l=di("div"),c=hi(y),u=mi(),(d=di("div")).innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',p=mi(),h=di("div"),b.c(),gi(a,"class","InfoCardPopupIcon"),gi(l,"class","InfoCardPopupTitle"),gi(d,"class","InfoCardPopupCloseButton"),gi(o,"class","InfoCardPopupHeader"),gi(h,"class","InfoCardPopupContentArea"),gi(n,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(r,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(n,p),si(n,h),b.m(h,null),i[12](r),f||(g=fi(d,"click",V(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&yi(c,y),w===(w=v(e))&&b?b.p(e,t):(b.d(1),(b=w(e))&&(b.c(),b.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&gi(n,"class",m)},d(e){e&&ci(r),b.d(),i[12](null),f=!1,g()}}}function td(e){let i,r,n=e[4]("defaultText")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("defaultText")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function id(e){let i,r,n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){19&t&&n!==(n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rd(e){let i,r=e[3]&&ed(e);return{c(){r&&r.c(),i=I(),this.c=oe},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,[t]){e[3]?r?r.p(e,t):((r=ed(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:oe,o:oe,d(e){r&&r.d(e),e&&ci(i)}}}function nd(t,e,i){let r,{showpopup:n=""}=(Le(t,$e,e=>i(4,r=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(Qu).forEach(e=>{Ju(e,Qu[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==ke(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return Me(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,n=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,c=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&n&&a&&(e=a,Se.set(e),o<0&&i(0,o="0"),i(3,p=n)),1028&t.$$.dirty&&c&&d){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}var e;516&t.$$.dirty&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ju(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,r,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},n,a,l,c,u,function(e){De[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function od(e,t){B(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},nd,rd,i,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),p()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});const ad={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"}};function sd(e,{delay:t=0,duration:i=400,easing:r=w}={}){const n=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:r,css:e=>"opacity: "+e*n}}function ld(i){let r,n,t,o;return{c(){r=di("div"),(n=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(n,"class","ModalWindow"),gi(n,"id","Modal")},m(e,t){li(e,r,t),si(r,n),i[6](n),i[7](r),o=!0},p(e,t){i=e},i(e){o||(bi(()=>{o&&(t=t||ee(n,sd,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||ee(n,sd,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(r),i[6](null),e&&t&&t.end(),i[7](null)}}}function cd(e){let i,r,n=e[0]&&ld(e);return{c(){n&&n.c(),i=I(),this.c=oe},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){e[0]?n?(n.p(e,t),1&t&&K(n,1)):((n=ld(e)).c(),K(n,1),n.m(i.parentNode,i)):n&&(Z(),J(n,1,1,()=>{n=null}),X())},i(e){r||(K(n),r=!0)},o(e){J(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function ud(t,e,i){let r,n,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return Me(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&r){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e))},[o,a,r,void 0,s,l,function(e){De[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){De[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function dd(e,t){B(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ud,cd,i,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const pd={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"}};function hd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",w=!i[3]&&function(i){let r,n,o;return{c(){(r=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',gi(r,"class","ModalCloseBtn"),gi(r,"role","button")},m(e,t){li(e,r,t),n||(o=fi(r,"click",i[4]),n=!0)},p:oe,d(e){e&&ci(r),n=!1,o()}}}(i);return{c(){r=di("div"),w&&w.c(),n=mi(),o=di("div"),a=di("div"),s=hi(i[0]),l=mi(),c=di("div"),u=di("button"),d=hi(y),p=mi(),h=di("button"),m=hi(v),this.c=oe,gi(a,"class","GamingLimitsConfirmationContent"),gi(u,"class","GamingLimitsCancelButton"),gi(h,"class","GamingLimitsConfirmButton"),gi(c,"class","GamingLimitsConfirmationControlArea"),gi(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),gi(r,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,r,t),w&&w.m(r,null),si(r,n),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),i[12](r),f||(g=[fi(u,"click",i[6]),fi(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&yi(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&yi(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&yi(m,v)},i:oe,o:oe,d(e){e&&ci(r),w&&w.d(),i[12](null),f=!1,ai(g)}}}function md(t,e,i){let r,{modaltext:n="Are you sure that you want to perform this action?"}=(Le(t,$e,e=>i(2,r=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(pd).forEach(e=>{dd(e,pd[e])}),window.navigator.userAgent),p="PC"!==ke(d),h={},m="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,m="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return Me(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,n=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&n&&o&&a&&(e=a,Se.set(e)),514&t.$$.dirty&&s&&u&&((e=document.createElement("style")).innerHTML=s,u.appendChild(e)),1026&t.$$.dirty&&l&&u){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var e;2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dd(e,t[e])})}).catch(e=>{console.log(e)})},[n,u,r,p,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:h,name:m},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a,s,l,c,function(e){De[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function fd(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function gd(e,t,i){e=e.slice();return e[59]=t[i],e}function yd(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function vd(e){let i,r,n,o=e[18]("success")+"";return{c(){i=di("div"),r=di("p"),n=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function wd(t){let n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=_d(yd(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=yd(t,o,e);a[e]?a[e].p(r,i):(a[e]=_d(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function bd(e){let i,r,n,o,a=e[18]("remove")+"",s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("p"),r=hi(a),n=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(r,a),16384&t[0]&&s!==(s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(o,s)},d(e){e&&ci(i)}}}function _d(e){let i,r=e[56].period==e[17][e[58]].period&&bd(e);return{c(){r&&r.c(),i=I()},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?r?r.p(e,t):((r=bd(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ci(i)}}}function xd(t){let i,n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=$d(fd(t,o,e));return{c(){i=di("div"),n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=fd(t,o,e);a[e]?a[e].p(r,i):(a[e]=$d(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function Cd(i){let r,n,o,a,s,l,c,u,d,p,h=i[18]("noLimit")+"",m=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=Ed(gd(i,m,e));function g(){i[29].call(r,i[58])}let y="Custom"===i[17][i[58]].amount&&Ad(i),v=!0===i[56].isModified&&Sd(i);return{c(){r=di("select"),n=di("option"),o=hi(h);for(let e=0;e<f.length;e+=1)f[e].c();s=mi(),l=di("div"),y&&y.c(),c=mi(),v&&v.c(),u=I(),n.__value="",n.value=n.__value,n.disabled=!0,n.selected=!0,n.hidden=!0,gi(r,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),r.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&bi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(r,null);wi(r,i[17][i[58]].amount,!0),li(e,s,t),li(e,l,t),y&&y.m(l,null),li(e,c,t),v&&v.m(e,t),li(e,u,t),d||(p=[fi(r,"change",g),fi(r,"change",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&h!==(h=i[18]("noLimit")+"")&&yi(o,h),1048656&t[0]){let e;for(m=i[20].get(i[6])[i[58]].values,e=0;e<m.length;e+=1){const o=gd(i,m,e);f[e]?f[e].p(o,t):(f[e]=Ed(o),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(r.disabled=a),1179712&t[0]&&wi(r,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=Ad(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Sd(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(r),ui(f,e),e&&ci(s),e&&ci(l),y&&y.d(),e&&ci(c),v&&v.d(e),e&&ci(u),d=!1,ai(p)}}}function Pd(e){let i,r=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(r)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&r!==(r=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,r)},d(e){e&&ci(i)}}}function Ed(e){let i,r,n,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Pd(e);return{c(){i=di("option"),r=hi(s),n=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,r),si(i,n),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(r,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Pd(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&ci(i),l&&l.d()}}}function Ad(e){let i;function r(e){return"Time Limit"!==e[6]?Ld:Td}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Td(i){let r,n,o,a,s,l;function c(){i[31].call(r,i[58])}let u=1==i[13][i[58]]&&Md(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=Md(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function Ld(i){let r,n,o,a,s,l;function c(){i[30].call(r,i[58])}let u=1==i[13][i[58]]&&Dd(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=Dd(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function Md(e){let i,r,n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){265216&t[0]&&n!==(n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Dd(e){let i,r,n=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){262144&t[0]&&n!==(n=e[18]("invalidInputMessageLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=e[18]("expirationDate")+"",b=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",x=(0<e[56].updateAmount?e[56].updateAmount:0)+"",C=(void 0!==e[56].minutes?" minutes":e[4])+"",P=e[18]("changedLimitTextAfter")+"";return{c(){i=di("p"),r=hi(w),n=mi(),o=di("span"),a=hi(b),s=mi(),l=di("div"),c=di("p"),(u=di("span")).textContent="i",d=di("span"),p=hi(_),h=mi(),m=hi(x),f=mi(),g=hi(C),y=hi(". "),v=hi(P),gi(i,"class","AccountEditLimitsExpiryDate"),gi(u,"class","AccountEditLimitChangePeriodIcon"),gi(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(d,p),si(d,h),si(d,m),si(d,f),si(d,g),si(d,y),si(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("expirationDate")+"")&&yi(r,w),16384&t[0]&&b!==(b=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(a,b),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&yi(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&yi(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&yi(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&yi(v,P)},d(e){e&&ci(i),e&&ci(s),e&&ci(l)}}}function $d(e){let i,r,n,o,a,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&Cd(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),l&&l.c(),a=mi(),gi(r,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),l&&l.m(i,null),si(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&yi(n,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=Cd(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function kd(i){let r,O,n,o,a,s,R,l,c,u,H,d,p,z,h,m,f,W,g,y,j,v,U,w,b,_,x,C,P,E,A,T,L,M,D,Y,S=i[18]("back")+"",$=(i[1]?i[9]:"")+"",k=i[18]("save")+"",B=i[19]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=i[2]&&vd(i),N=i[3]&&wd(i),F=i[8]&&xd(i);return{c(){r=di("div"),B&&B.c(),O=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),R=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),H=mi(),d=di("h2"),p=hi(S),z=mi(),h=di("div"),m=di("h6"),f=hi($),W=mi(),g=di("div"),(y=di("span")).textContent="i",j=mi(),v=di("player-account-gaming-limits-popup"),U=mi(),I&&I.c(),w=mi(),N&&N.c(),b=mi(),F&&F.c(),_=mi(),x=di("div"),C=di("button"),P=hi(k),T=mi(),L=di("player-account-modal"),M=di("player-account-gaming-limits-confirmation-modal"),this.c=oe,gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","20"),gi(o,"height","20"),gi(o,"viewBox","0 0 15 15"),gi(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(n,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(y,"class","AccountEditLimitsIcon"),ae(v,"showpopup",i[7]),ae(v,"lang",i[0]),gi(g,"class","AccountEditLimitsIconWrapper"),gi(h,"class","AccountEditLimitsHeader"),gi(C,"class",E="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=A=!i[15],gi(x,"class","AccountEditLimitsControlArea"),gi(r,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ae(M,"modaltext",i[12]),ae(M,"modalsource","groupEdit"),ae(M,"lang",i[0])},m(e,t){li(e,r,t),B&&B.m(r,null),si(r,O),si(r,n),si(n,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(n,H),si(n,d),si(d,p),si(r,z),si(r,h),si(h,m),si(m,f),si(h,W),si(h,g),si(g,y),si(g,j),si(g,v),si(r,U),I&&I.m(r,null),si(r,w),N&&N.m(r,null),si(r,b),F&&F.m(r,null),si(r,_),si(r,x),si(x,C),si(C,P),i[33](r),li(e,T,t),li(e,L,t),si(L,M),D||(Y=[fi(n,"click",i[22]),fi(y,"click",V(i[21])),fi(C,"click",i[32])],D=!0)},p(e,t){e[19]&&B.p(e,t),262144&t[0]&&S!==(S=e[18]("back")+"")&&yi(p,S),514&t[0]&&$!==($=(e[1]?e[9]:"")+"")&&yi(f,$),128&t[0]&&ae(v,"showpopup",e[7]),1&t[0]&&ae(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=vd(e)).c(),I.m(r,w)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=wd(e)).c(),N.m(r,b)):N&&(N.d(1),N=null),e[8]?F?F.p(e,t):((F=xd(e)).c(),F.m(r,_)):F&&(F.d(1),F=null),262144&t[0]&&k!==(k=e[18]("save")+"")&&yi(P,k),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&gi(C,"class",E),32768&t[0]&&A!==(A=!e[15])&&(C.disabled=A),4096&t[0]&&ae(M,"modaltext",e[12]),1&t[0]&&ae(M,"lang",e[0])},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[33](null),e&&ci(T),e&&ci(L),D=!1,ai(Y)}}}function Bd(t,e,o){let i,{limitsdata:r=[]}=(Le(t,$e,e=>o(18,i=e)),e),{showsuccessnotification:n=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:c="true"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h,m,f=(Object.keys(ad).forEach(e=>{od(e,ad[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",N=window.navigator.userAgent,F="PC"!==ke(N),x=new Array(3).fill(0),C={},P=[],E=[],A=!1,T=[];const L={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let M=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],D=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],S=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],O=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],R=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const $=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),k=new Map([["Deposit Limit",D],["Time Limit",R],["Wagering Limit",S],["Loss Limit",O]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},B=(i,e)=>{let r=JSON.parse(JSON.stringify(e));M.forEach(t=>{r.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},z=()=>{T.forEach(e=>{var t=e;E.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(r=>{E.forEach(e=>{var t,i;r.period===e.period&&(e=e,t=r,i=M,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount=t.amount,e.value=0)}))})})},W=()=>{var e="Time Limit"===h?"time limit":"Deposit Limit"===h?"deposit limit":"Wagering Limit"===h?"wagering limit":"loss limit";o(12,_=i("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;Se.set(e),W(),o(16,T=JSON.parse(JSON.stringify(r))),o(14,C=JSON.parse(JSON.stringify(r))),E="Wagering Limit"===h?S:"Loss Limit"===h?O:"Deposit Limit"===h?D:"Time Limit"===h?R:[],z()},j=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),W();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),I(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,minutes:t.value},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):M.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==c?{[$.get(h)]:[...P]}:{[$.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:$.get(h)},window.location.href),o(15,A=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),I(),o(15,A=!1),v=!1}var t};return Me(()=>(window.addEventListener("message",j,!1),()=>{window.removeEventListener("message",j)})),t.$$set=e=>{"limitsdata"in e&&o(1,r=e.limitsdata),"showsuccessnotification"in e&&o(2,n=e.showsuccessnotification),"showdeletenotification"in e&&o(3,a=e.showdeletenotification),"playercurrency"in e&&o(4,s=e.playercurrency),"lang"in e&&o(0,l=e.lang),"separatelimits"in e&&o(25,c=e.separatelimits),"clientstyling"in e&&o(26,u=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,p=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&n&&a&&I(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&u&&m&&((e=document.createElement("style")).innerHTML=u,m.appendChild(e)),134217760&t.$$.dirty[0]&&d&&m){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{m.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{od(e,t[e])})}).catch(e=>{console.log(e)})},[l,r,n,a,s,m,h,f,g,y,w,b,_,x,C,A,T,M,i,F,k,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,i,r)=>{var n;"Custom"===e.amount?"Time Limit"==h?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&L.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,x[t]=0,x),n=r[t],e.period==n.period&&e.value==n.amount?(o(15,A=!1),B(e,r)):o(15,A=!0)):(o(13,x[t]=1,x),o(15,A=!1))):e.value&&L.amount.test(e.value)?(o(13,x[t]=0,x),e.period==r[t].period&&e.value==r[t].amount?(o(15,A=!!A),B(e,r)):o(15,A=!0),"true"!=c&&M.forEach(e=>{0==e.value&&o(15,A=!1)})):(o(13,x[t]=1,x),o(15,A=!1)):(e.period==r[t].period?(B(e,r),o(15,A=e.value!=r[t].amount)):o(15,A=!0),M.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!L.amount.test(e.value.toString()))&&o(15,A=!1)}))},c,u,d,p,function(e){M[e].amount=pe(this),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},function(e){M[e].value=de(this.value),o(17,M),o(20,k),o(6,h)},()=>H(),function(e){De[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Id(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Nd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Fd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,A=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",T=i[15]("edit")+"";function L(e){return"Time Limit"===e[1]?Hd:Rd}let M=L(i),D=M(i),S=!i[9]&&!i[0].isModified&&i[14]&&tp(i),$=i[11]&&ip(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("h5"),s=hi(A),l=mi(),c=di("div"),(u=di("span")).textContent="i",d=mi(),p=di("player-account-gaming-limits-popup"),m=mi(),f=di("div"),g=di("div"),y=di("div"),D.c(),v=mi(),w=di("div"),b=di("button"),_=hi(T),x=mi(),S&&S.c(),C=mi(),$&&$.c(),gi(u,"class","InfoCardIcon"),ae(p,"showpopup",h=i[8][0]),ae(p,"lang",i[3]),ae(p,"clientstyling",i[4]),ae(p,"clientstylingurl",i[5]),gi(c,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),gi(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),gi(y,"class","InfoCardTableRow"),gi(g,"class","InfoCardTableWrapper"),gi(b,"class","InfoCardEditButton"),gi(w,"class","InfoCardControlArea"),gi(f,"class","InfoCard"),gi(n,"class","InfoCardWrapper"),gi(r,"class","InfoCardSection")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(n,m),si(n,f),si(f,g),si(g,y),D.m(y,null),si(f,v),si(f,w),si(w,b),si(b,_),si(w,x),S&&S.m(w,null),si(r,C),$&&$.m(r,null),P||(E=[fi(u,"click",V(i[23])),fi(b,"click",i[26])],P=!0)},p(e,t){32771&t[0]&&A!==(A=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&yi(s,A),256&t[0]&&h!==(h=e[8][0])&&ae(p,"showpopup",h),8&t[0]&&ae(p,"lang",e[3]),16&t[0]&&ae(p,"clientstyling",e[4]),32&t[0]&&ae(p,"clientstylingurl",e[5]),M===(M=L(e))&&D?D.p(e,t):(D.d(1),(D=M(e))&&(D.c(),D.m(y,null))),32768&t[0]&&T!==(T=e[15]("edit")+"")&&yi(_,T),e[9]||e[0].isModified||!e[14]?S&&(S.d(1),S=null):S?S.p(e,t):((S=tp(e)).c(),S.m(w,null)),e[11]?$?$.p(e,t):(($=ip(e)).c(),$.m(r,null)):$&&($.d(1),$=null)},d(e){e&&ci(r),D.d(),S&&S.d(),$&&$.d(),P=!1,ai(E)}}}function Od(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Rd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Vd(Id(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=Id(t,o,e);a[e]?a[e].p(r,i):(a[e]=Vd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Hd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=ep(Nd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=Nd(t,o,e);a[e]?a[e].p(r,i):(a[e]=ep(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function zd(e){let i,r,n=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?e[41].currency:"")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Wd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function jd(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ud(i){let r,n,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),ae(a,"showpopup",s=i[8][i[43]+1]),ae(a,"iteminfoamount",l=i[41].updateAmount),ae(a,"playercurrency",i[2]),ae(a,"lang",i[3]),ae(a,"clientstyling",i[4]),ae(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),c||(u=fi(n,"click",V(d)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ae(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ae(a,"iteminfoamount",l),4&t[0]&&ae(a,"playercurrency",i[2]),8&t[0]&&ae(a,"lang",i[3]),16&t[0]&&ae(a,"clientstyling",i[4]),32&t[0]&&ae(a,"clientstylingurl",i[5])},d(e){e&&ci(r),c=!1,u()}}}function Yd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Vd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),x=e[15]("expirationDate")+"",C=_&&zd(e);function P(e){return e[41].expiryDate?jd:Wd}let E=P(e),A=E(e);function T(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?Yd:"No limit"!=e[41].amount&&e[41].isModified?Ud:void 0}let L=T(e,[-1,-1]),M=L&&L(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(w),s=mi(),l=di("div"),c=hi(b),u=mi(),C&&C.c(),d=mi(),p=di("div"),h=di("div"),m=hi(x),f=mi(),A.c(),g=mi(),M&&M.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(l,u),C&&C.m(l,null),si(r,d),si(r,p),si(p,h),si(h,m),si(p,f),A.m(p,null),si(i,g),M&&M.m(i,null),si(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(c,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=zd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&yi(m,x),E===(E=P(e))&&A?A.p(e,t):(A.d(1),(A=E(e))&&(A.c(),A.m(p,null))),L===(L=T(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=L&&L(e))&&(M.c(),M.m(i,v)))},d(e){e&&ci(i),C&&C.d(),A.d(),M&&M.d()}}}function Gd(e){let i,r,n=e[15]("noLimit")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("noLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function qd(e){let i,r,n,o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),s=a&&Zd(e);return{c(){i=hi(o),r=mi(),s&&s.c(),n=I()},m(e,t){li(e,i,t),li(e,r,t),s&&s.m(e,t),li(e,n,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Zd(e)).c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(r),s&&s.d(e),e&&ci(n)}}}function Zd(e){let i,r,n=e[15]("minutes")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("minutes")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Xd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Kd(e){let i,r,n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(W(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):W(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Jd(i){let r,n,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),ae(a,"showpopup",s=i[8][i[43]+1]),ae(a,"iteminfoamount",l=i[41].updateMinutes),ae(a,"playercurrency",c=i[15]("minutes")),ae(a,"lang",i[3]),ae(a,"clientstyling",i[4]),ae(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),u||(d=fi(n,"click",V(p)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ae(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ae(a,"iteminfoamount",l),32768&t[0]&&c!==(c=i[15]("minutes"))&&ae(a,"playercurrency",c),8&t[0]&&ae(a,"lang",i[3]),16&t[0]&&ae(a,"clientstyling",i[4]),32&t[0]&&ae(a,"clientstylingurl",i[5])},d(e){e&&ci(r),u=!1,d()}}}function Qd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function ep(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function w(e){return 0!==e[41].amount?qd:Gd}let b=w(e),_=b(e);function x(e){return e[41].expiryDate?Kd:Xd}let C=x(e),P=C(e);function E(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?Qd:"No limit"!=e[41].amount&&e[41].isModified?Jd:void 0}let A=E(e,[-1,-1]),T=A&&A(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(y),s=mi(),l=di("div"),_.c(),c=mi(),u=di("div"),d=di("div"),p=hi(v),h=mi(),P.c(),m=mi(),T&&T.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),_.m(l,null),si(r,c),si(r,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),T&&T.m(i,null),si(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&yi(p,v),C===(C=x(e))&&P?P.p(e,t):(P.d(1),(P=C(e))&&(P.c(),P.m(u,null))),A===(A=E(e,t))&&T?T.p(e,t):(T&&T.d(1),(T=A&&A(e))&&(T.c(),T.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),T&&T.d()}}}function tp(i){let r,n,o,a,s=i[15]("removeLimits")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","InfoCardRemoveButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function ip(e){let i,r,n;return{c(){i=di("player-account-modal"),ae(r=di("player-account-gaming-limits-confirmation-modal"),"modaltext",n=e[10]?e[12]:e[13]),ae(r,"modalsource","infoCard"),ae(r,"lang",e[3]),ae(r,"clientstyling",e[4]),ae(r,"clientstylingurl",e[5]),ae(i,"clientstyling",e[4]),ae(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,r)},p(e,t){13312&t[0]&&n!==(n=e[10]?e[12]:e[13])&&ae(r,"modaltext",n),8&t[0]&&ae(r,"lang",e[3]),16&t[0]&&ae(r,"clientstyling",e[4]),32&t[0]&&ae(r,"clientstylingurl",e[5]),16&t[0]&&ae(i,"clientstyling",e[4]),32&t[0]&&ae(i,"clientstylingurl",e[5])},d(e){e&&ci(i)}}}function rp(i){let r;function n(e){return e[7]?Od:Fd}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[28](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[28](null)}}}function np(r,e,n){let o,{limitsdata:a=[]}=(Le(r,$e,e=>n(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e;Object.keys(Ku).forEach(e=>{Xu(e,Ku[e])});let p,h=!0,i=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==ke(v),b="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},E=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:s},window.location.href)},A=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,i[e]=!0,i)},50)},T=(e,t,i,r)=>{e.splice(t,0,"time"===r?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},L=(e,t)=>"Weekly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Weekly"===t.period?1:"Daily"===e.period&&"Weekly"===t.period||"Daily"===e.period&&"Monthly"===t.period||"Weekly"===e.period&&"Monthly"===t.period?-1:0,M=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return Me(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),r.$$set=e=>{"limitsdata"in e&&n(0,a=e.limitsdata),"limitname"in e&&n(1,s=e.limitname),"playercurrency"in e&&n(2,t=e.playercurrency),"lang"in e&&n(3,l=e.lang),"clientstyling"in e&&n(4,c=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,d=e.translationurl)},r.$$.update=()=>{if(11&r.$$.dirty[0]&&a&&s&&l){var e=l;Se.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",n(12,b=o("removeLimitsText",{values:{limit:e}})),n(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&n(14,x=!1)});{var i=a;const t=m;m.forEach((t,e)=>{i.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&n(9,f=!1)}),n(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?T(i,t.indexOf(e),e,"time"):T(i,t.indexOf(e),e,"currency")})}a.sort(L)}if(80&r.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&r.$$.dirty[0]&&u&&p){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}4194304&r.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xu(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,i,f,g,y,b,_,x,o,w,C,P,E,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},A,d,()=>A(0),e=>A(e+1),e=>A(e+1),()=>P(a),()=>E(a),function(e){De[e?"unshift":"push"](()=>{p=e,n(6,p)})}]}function op(e){let i;return{c(){ae(i=di("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ae(i,"limitname",e[14]),ae(i,"showsuccessnotification",e[7]),ae(i,"showdeletenotification",e[6]),ae(i,"playercurrency",e[5]),ae(i,"lang",e[0]),ae(i,"separatelimits",e[8]),ae(i,"clientstyling",e[9]),ae(i,"clientstylingurl",e[10])},m(e,t){li(e,i,t)},p(e,t){8192&t&&ae(i,"limitsdata",e[13]),16384&t&&ae(i,"limitname",e[14]),128&t&&ae(i,"showsuccessnotification",e[7]),64&t&&ae(i,"showdeletenotification",e[6]),32&t&&ae(i,"playercurrency",e[5]),1&t&&ae(i,"lang",e[0]),256&t&&ae(i,"separatelimits",e[8]),512&t&&ae(i,"clientstyling",e[9]),1024&t&&ae(i,"clientstylingurl",e[10])},d(e){e&&ci(i)}}}function ap(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),r=mi(),n=di("h2"),o=hi(f),a=mi(),s=di("div"),l=di("player-account-gaming-limits-info-card"),c=mi(),u=di("player-account-gaming-limits-info-card"),d=mi(),p=di("player-account-gaming-limits-info-card"),h=mi(),m=di("player-account-gaming-limits-info-card"),gi(n,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ae(l,"limitsdata",e[1]),ae(l,"limitname",cp),ae(l,"playercurrency",e[5]),ae(l,"lang",e[0]),ae(l,"clientstyling",e[9]),ae(l,"clientstylingurl",e[10]),ae(u,"limitsdata",e[2]),ae(u,"limitname",up),ae(u,"playercurrency",e[5]),ae(u,"lang",e[0]),ae(u,"clientstyling",e[9]),ae(u,"clientstylingurl",e[10]),ae(p,"limitsdata",e[3]),ae(p,"limitname",dp),ae(p,"playercurrency",e[5]),ae(p,"lang",e[0]),ae(p,"clientstyling",e[9]),ae(p,"clientstylingurl",e[10]),ae(m,"limitsdata",e[4]),ae(m,"limitname",pp),ae(m,"playercurrency",e[5]),ae(m,"lang",e[0]),ae(m,"clientstyling",e[9]),ae(m,"clientstylingurl",e[10]),gi(s,"class","PlayerAccountGamingLimitsContainer"),gi(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){li(e,i,t),g&&g.m(i,null),si(i,r),si(i,n),si(n,o),si(i,a),si(i,s),si(s,l),si(s,c),si(s,u),si(s,d),si(s,p),si(s,h),si(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&yi(o,f),2&t&&ae(l,"limitsdata",e[1]),32&t&&ae(l,"playercurrency",e[5]),1&t&&ae(l,"lang",e[0]),512&t&&ae(l,"clientstyling",e[9]),1024&t&&ae(l,"clientstylingurl",e[10]),4&t&&ae(u,"limitsdata",e[2]),32&t&&ae(u,"playercurrency",e[5]),1&t&&ae(u,"lang",e[0]),512&t&&ae(u,"clientstyling",e[9]),1024&t&&ae(u,"clientstylingurl",e[10]),8&t&&ae(p,"limitsdata",e[3]),32&t&&ae(p,"playercurrency",e[5]),1&t&&ae(p,"lang",e[0]),512&t&&ae(p,"clientstyling",e[9]),1024&t&&ae(p,"clientstylingurl",e[10]),16&t&&ae(m,"limitsdata",e[4]),32&t&&ae(m,"playercurrency",e[5]),1&t&&ae(m,"lang",e[0]),512&t&&ae(m,"clientstyling",e[9]),1024&t&&ae(m,"clientstylingurl",e[10])},d(e){e&&ci(i),g&&g.d()}}}function sp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function lp(i){let r;function n(e){return e[12]?sp:e[15]?ap:op}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[22](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},md,hd,i,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),p()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Bd,kd,i,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[1]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@charset "UTF-8";.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid ar(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},np,rp,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),p()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}});let cp="Deposit Limit",up="Wagering Limit",dp="Loss Limit",pp="Time Limit";function hp(t,e,i){let r,n=(Le(t,$e,e=>i(16,r=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:c=!1}=e,{lang:u="en"}=e,{playercurrency:d=""}=e,{separatelimits:p="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g;Object.keys(Zu).forEach(e=>{qu(e,Zu[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==ke(w),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,u=e.data.limits.lang),i(1,n=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return Me(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&i(1,n=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,c=e.showsuccessnotification),"lang"in e&&i(0,u=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,p=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,m=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,Se.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&m&&g){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{g.appendChild(t)},1)})}var e;1048576&t.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qu(e,t[e])})}).catch(e=>{console.log(e)})},[u,n,o,a,s,d,l,c,p,h,m,g,v,y,_,x,r,b,C,P,f,()=>P(),function(e){De[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function mp(e,t){B(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},hp,lp,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,playercurrency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,translationurl:20},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency","separatelimits","clientstyling","clientstylingurl","translationurl"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(e){this.$$set({depositlimit:e}),p()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),p()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),p()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),p()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),p()}});const fp={en:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"},"zh-hk":{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"},fr:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"},ro:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"},es:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"},pt:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"}};function gp(e,t){B(e,t)}const yp={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"}};function vp(e){let i,r,n,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&yi(n,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function wp(e){let i,r,n,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&yi(n,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function bp(e){let i,r,n,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&yi(n,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function _p(i){let r,n,o,a,s=i[9]("forfeitBonus")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function xp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,O,x,C,P,R,E,A,H,T,L,z,M=i[9]("date")+"",D=W(i[0]).format("DD/MM/YYYY h:mm A")+"",S=i[9](""+i[1])+"",$=i[9]("bonusName")+"",k=i[9]("bonusType")+"",B=i[3]&&vp(i),I=i[4]&&wp(i),N=i[5]&&bp(i),F="active"===i[1]&&_p(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(M),l=mi(),c=di("span"),u=hi(D),d=mi(),p=di("p"),h=hi(S),f=mi(),g=di("div"),y=di("p"),v=hi($),w=mi(),b=di("p"),_=hi(i[2]),O=mi(),x=di("div"),C=di("p"),P=hi(k),R=mi(),E=di("p"),A=hi(i[8]),H=mi(),B&&B.c(),T=mi(),I&&I.c(),L=mi(),N&&N.c(),z=mi(),F&&F.c(),this.c=oe,gi(a,"class","BonusCardRowTitle"),gi(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===i[1]||"released"===i[1]?"StatusActive":"")+" "+("expired"===i[1]?"StatusExpired":"")+" "+("forfeited"===i[1]?"StatusForfeited":"")),gi(o,"class","BonusCardRow"),gi(y,"class","BonusCardRowTitle"),gi(b,"class","BonusCardRowText"),gi(g,"class","BonusCardRow"),gi(C,"class","BonusCardRowTitle"),gi(E,"class","BonusCardRowText TextCapitalize"),gi(x,"class","BonusCardRow"),gi(n,"class","BonusCardInfo"),gi(r,"class","BonusCard")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(a,l),si(a,c),si(c,u),si(o,d),si(o,p),si(p,h),si(n,f),si(n,g),si(g,y),si(y,v),si(g,w),si(g,b),si(b,_),si(n,O),si(n,x),si(x,C),si(C,P),si(x,R),si(x,E),si(E,A),si(n,H),B&&B.m(n,null),si(n,T),I&&I.m(n,null),si(n,L),N&&N.m(n,null),si(r,z),F&&F.m(r,null),i[18](r)},p(e,[t]){512&t&&M!==(M=e[9]("date")+"")&&yi(s,M),1&t&&D!==(D=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,D),514&t&&S!==(S=e[9](""+e[1])+"")&&yi(h,S),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&gi(p,"class",m),512&t&&$!==($=e[9]("bonusName")+"")&&yi(v,$),4&t&&yi(_,e[2]),512&t&&k!==(k=e[9]("bonusType")+"")&&yi(P,k),256&t&&yi(A,e[8]),e[3]?B?B.p(e,t):((B=vp(e)).c(),B.m(n,T)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=wp(e)).c(),I.m(n,L)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=bp(e)).c(),N.m(n,null)):N&&(N.d(1),N=null),"active"===e[1]?F?F.p(e,t):((F=_p(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[18](null)}}}function Cp(t,e,i){let r;Le(t,$e,e=>i(9,r=e));let n,{bonuswalletid:o=""}=e,{bonusdate:a=""}=e,{bonusstatus:s=""}=e,{bonusname:l=""}=e,{bonustype:c=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:p=""}=e,{bonuscurrency:h=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,v=window.navigator.userAgent,w="PC"!==ke(v),b="";Object.keys(yp).forEach(e=>{gp(e,yp[e])});return t.$$set=e=>{"bonuswalletid"in e&&i(12,o=e.bonuswalletid),"bonusdate"in e&&i(0,a=e.bonusdate),"bonusstatus"in e&&i(1,s=e.bonusstatus),"bonusname"in e&&i(2,l=e.bonusname),"bonustype"in e&&i(13,c=e.bonustype),"bonusamount"in e&&i(3,u=e.bonusamount),"bonuswageringamount"in e&&i(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&i(5,p=e.bonusremainingamount),"bonuscurrency"in e&&i(6,h=e.bonuscurrency),"lang"in e&&i(14,m=e.lang),"clientstyling"in e&&i(15,f=e.clientstyling),"clientstylingurl"in e&&i(16,g=e.clientstylingurl),"translationurl"in e&&i(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,Se.set(e)),8192&t.$$.dirty&&c&&(i(8,b=c),"freeRound"===b?i(8,b="Free Spins"):"freeBet"===b&&i(8,b="Free Bet")),65664&t.$$.dirty&&g&&n){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gp(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,n,b,r,w,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,c,m,f,g,y,function(e){De[e?"unshift":"push"](()=>{n=e,i(7,n)})}]}function Pp(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function Ep(e,t,i){e=e.slice();return e[46]=t[i],e}function Ap(e){let i,r,n=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("invalidBonusCode")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Tp(t){let n,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=Sp(Ep(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var r=Ep(t,o,e);a[e]?a[e].p(r,i):(a[e]=Sp(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Lp(e){let i,r,n=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noActiveBonuses")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Mp(e){let i,r,n,o,a,s,l,c,u,d;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),ae(i,"bonusdate",n=e[46].granted),ae(i,"bonusstatus",o=e[46].status),ae(i,"bonusname",a=e[46].name),ae(i,"bonustype",s=e[46].type),ae(i,"bonusamount",l=e[46].extension.grantedPlayerCurrencyAmount),ae(i,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),ae(i,"bonusremainingamount",u=e[46].currentAmount),ae(i,"bonuscurrency",d=e[46].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&ae(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&ae(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&ae(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&ae(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&ae(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].extension.grantedPlayerCurrencyAmount)&&ae(i,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&ae(i,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&ae(i,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&ae(i,"bonuscurrency",d),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Dp(e){let i,r,n,o,a,s,l;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),ae(i,"bonusdate",n=e[46].granted),ae(i,"bonusstatus",o=e[46].status),ae(i,"bonusname",a=e[46].name),ae(i,"bonustype",s=e[46].type),ae(i,"bonuscurrency",l=e[46].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&ae(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&ae(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&ae(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&ae(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&ae(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&ae(i,"bonuscurrency",l),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Sp(e){let i;function r(e){return"freeRound"===e[46].type?Dp:Mp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function $p(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=kp(Pp(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[11]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[11]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[11]===i[10]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[11]===i[10]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[29]),fi(l,"click",i[30]),fi(p,"click",i[32]),fi(g,"click",i[33])],w=!0)},p(t,i){if(2048&i[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&gi(n,"class",a),2048&i[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&gi(l,"class",e),265216&i[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=Pp(t,_,e);x[e]?x[e].p(a,i):(x[e]=kp(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&i[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&gi(p,"class",m),3072&i[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function kp(i){let r,n,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function Bp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[14]("forfeitBonus")+"",v=i[14]("forfeitBonusCancel")+"",w=i[14]("forfeitBonusConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[20]),fi(h,"click",i[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&yi(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&yi(d,v),16384&t[0]&&w!==(w=e[14]("forfeitBonusConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function Ip(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E=i[14]("title")+"",A=i[14]("bonusCode")+"",T=i[14]("getBonus")+"",L=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),M=i[5]&&Ap(i);function D(e){return 0===e[12].length?Lp:Tp}let S=D(i),$=S(i),k=0!==i[12].length&&$p(i),B=i[13]&&Bp(i);return{c(){r=di("div"),L&&L.c(),n=mi(),o=di("h2"),a=hi(E),s=mi(),l=di("div"),c=di("label"),u=hi(A),d=mi(),p=di("div"),h=di("input"),m=mi(),f=di("button"),g=hi(T),y=mi(),M&&M.c(),v=mi(),w=di("div"),$.c(),b=mi(),k&&k.c(),_=mi(),B&&B.c(),x=I(),gi(o,"class","ActiveBonusesTitle "+(i[15]?"ActiveBonusesTitleNone":"")),gi(c,"for","BonusCode"),gi(h,"class","BonusCodeInput "+(i[15]?"BonusCodeInputMobile":"")),gi(h,"type","text"),gi(h,"id","BonusCode"),gi(f,"class","SubmitBonusCode "+(i[15]?"SubmitBonusCodeMobile":"")),f.disabled=i[4],gi(p,"class","BonusCodeWrapper "+(i[15]?"BonusCodeWrapperMobile":"")),gi(l,"class","BonusCodeContainer "+(i[15]?"BonusCodeContainerMobile":"")),gi(w,"class","ActiveBonusesGrid "+(i[15]?"ActiveBonusesGridMobile":"")),gi(r,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(r,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,r,t),L&&L.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),vi(h,i[6]),si(p,m),si(p,f),si(f,g),si(l,y),M&&M.m(l,null),si(r,v),si(r,w),$.m(w,null),si(r,b),k&&k.m(r,null),li(e,_,t),B&&B.m(e,t),li(e,x,t),C||(P=[fi(h,"input",i[28]),fi(h,"keyup",i[17]),fi(f,"click",i[19])],C=!0)},p(e,t){e[15]&&L.p(e,t),16384&t[0]&&E!==(E=e[14]("title")+"")&&yi(a,E),16384&t[0]&&A!==(A=e[14]("bonusCode")+"")&&yi(u,A),64&t[0]&&h.value!==e[6]&&vi(h,e[6]),16384&t[0]&&T!==(T=e[14]("getBonus")+"")&&yi(g,T),16&t[0]&&(f.disabled=e[4]),e[5]?M?M.p(e,t):((M=Ap(e)).c(),M.m(l,null)):M&&(M.d(1),M=null),S===(S=D(e))&&$?$.p(e,t):($.d(1),($=S(e))&&($.c(),$.m(w,null))),0!==e[12].length?k?k.p(e,t):((k=$p(e)).c(),k.m(r,null)):k&&(k.d(1),k=null),e[13]?B?B.p(e,t):((B=Bp(e)).c(),B.m(x.parentNode,x)):B&&(B.d(1),B=null)},d(e){e&&ci(r),L&&L.d(),M&&M.d(),$.d(),k&&k.d(),e&&ci(_),B&&B.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[34](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[34](null)}}}function Np(t,e,r){let i;Le(t,$e,e=>r(14,i=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{playercurrency:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h=window.navigator.userAgent,m="PC"!==ke(h),f,g=!1,y="",v=0,w=0,b=0,_=0,x=0,C=[],P="",E=!1;Object.keys(fp).forEach(e=>{mp(e,fp[e])});const A=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,r(13,E=!0))},T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},L=t=>{var e={method:"GET",headers:{"X-SessionId":a}},i=new URL(`${o}/v1/player/${s}/bonusWallet`);i.searchParams.append("filter","status=active"),i.searchParams.append("pagination",`offset=${t},limit=6`),fetch(i,e).then(e=>e.json()).then(e=>{r(10,_=Math.ceil(e.total/6)),0<=t-6&&r(7,v=t-6),t+6<e.total&&r(8,w=t+6),r(9,b=6*(_-1)),r(11,x=t/6),r(12,C=e.items)},e=>{console.error(e)})},M=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,E=!1)};return Me(()=>(window.addEventListener("message",A,!1),()=>{window.removeEventListener("message",A)})),t.$$set=e=>{"endpoint"in e&&r(22,o=e.endpoint),"session"in e&&r(23,a=e.session),"playerid"in e&&r(24,s=e.playerid),"lang"in e&&r(0,l=e.lang),"playercurrency"in e&&r(25,c=e.playercurrency),"clientstyling"in e&&r(1,u=e.clientstyling),"clientstylingurl"in e&&r(2,d=e.clientstylingurl),"translationurl"in e&&r(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,Se.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&L(0),12&t.$$.dirty[0]&&d&&n){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&n&&((e=document.createElement("style")).innerHTML=u,n.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,n,!0,g,y,v,w,b,_,x,C,E,i,m,T,()=>{r(4,f=!y)},L,()=>{var e=new URL(`${o}/v1/player/${s}/claimbonus`),t={method:"POST",headers:{"X-SessionId":a,accept:"application/json"}};e.searchParams.append("currency",c),e.searchParams.append("bonusCode",y),fetch(e.href,t).then(e=>{200==e.status?(r(5,g=!1),L(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(r(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},M,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/v1/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(L(0),M())})},o,a,s,c,p,()=>T(),function(){y=this.value,r(6,y)},()=>L(0),()=>L(v),e=>L(6*e),()=>L(w),()=>L(b),function(e){De[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function Fp(e,t){B(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Cp,xp,i,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),p()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),p()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),p()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),p()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),p()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),p()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),p()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),p()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Np,Ip,i,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Op={en:{title:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"},"zh-hk":{title:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",securityQuestion:"安全問題:",securityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",firstName:"名:",securityAnswer:"安全答案:",securityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",userTitle:"標題:",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",userAppSettings:"生物识别",userSMSNotification:"啟用短信通知",userBiometrics:"启用生物识别",userEmailNotification:"啟用電子郵件",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!"},fr:{title:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",securityQuestion:"Questions de sécurité:",securityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",firstName:"Prénom:",securityAnswer:"Reponses de sécurité:",securityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",userTitle:"Titre:",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",userAppSettings:"Biométrie",userSMSNotification:"Activer les notifications par sms",userBiometrics:"Activer la biométrie",userEmailNotification:"Activer les e-mails",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!"},ro:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Raspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"},tr:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 12 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"İlk adı:",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"},es:{title:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",securityQuestion:"Tipo de Documento (DNI, CE o Pasaporte):",securityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",firstName:"Nombre",securityAnswer:"Número de Documento:",securityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",userTitle:"Título:",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",userAppSettings:"Biometría",userSMSNotification:"Habilitar notificaciones SMS",userBiometrics:"Habilitar datos biométricos",userEmailNotification:"Habilitar Emails",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!"},pt:{title:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",securityQuestion:"Pergunta de segurança:",securityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",firstName:"Primeiro nome:",securityAnswer:"Resposta de segurança:",securityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",userTitle:"Título:",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",userAppSettings:"Biometrics",userSMSNotification:"Ativar notificações por SMS",userBiometrics:"Ativar biometria.",userEmailNotification:"Ativar notificações por e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!"}};function Rp(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var i,r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[r],window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],i&&i.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,i=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof i?(t=Array.prototype.slice.call(arguments,1),i.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var Hp,zp,Wp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},jp=function(e,...t){try{return Rp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Up=function(e,t){try{return Rp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Yp(e,t,i){e=e.slice();return e[108]=t[i],e}function Vp(i){let n,O,R,H,z,W,j,U,Y,r,V,G,q,Z,o,X,a,K,J,Q,ee,s,te,l,e,ie,re,ne,c,oe,ae,se,le,ce,u,ue,de,pe,he,d,me,fe,ge,ye,ve,p,we,be,_e,xe,Ce,Pe,Ee,Ae,h,Te,Le,Me,De,Se,m,$e,ke,Be,Ie,Ne,f,Fe,Oe,Re,He,ze,g,We,je,Ue,Ye,Ve,y,Ge,qe,Ze,Xe,Ke,v,Je,Qe,et,tt,it,w,rt,nt,ot,at,b,st,lt,_,ct,ut,dt,x,pt,ht,mt,ft,gt,C,yt,vt,wt,P,bt,_t,xt,Ct,E,Pt,Et,At,A,Tt,Lt,Mt,Dt,St,$t,kt,Bt,It,Nt,Ft,Ot,Rt,Ht,zt=i[38]("title")+"",Wt=i[38]("personalDetails")+"",jt=i[38]("userName")+"",Ut=i[38]("userPhone")+"",Yt=("true"==i[1]?i[38]("profileSecurityQuestion2"):i[38]("profileSecurityQuestion"))+"",Vt=("true"==i[1]?i[38]("profileSecurityAnswer2"):i[38]("profileSecurityAnswer"))+"",Gt=i[38]("userEmail")+"",qt=i[38]("dateOfBirth")+"",Zt=i[38]("firstName")+"",Xt=i[38]("lastName")+"",Kt=i[38]("userTitle")+"",Jt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ri=i[38]("userPostalCode")+"",ni=i[38]("userProfileSaveChanges")+"",T=i[39]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),oi=i[17],L=[];for(let e=0;e<oi.length;e+=1)L[e]=Xp(Yp(i,oi,e));let M=i[26]&&Kp(i),D=i[24]&&Jp(i),S=i[25]&&Qp(i),$=i[21]&&eh(i),k=i[23]&&th(i),B=i[22]&&ih(i),I=(i[18]||i[19])&&rh(i),N=i[28]&&ah(i),F=i[27]&&sh(i);return{c(){n=di("form"),T&&T.c(),O=mi(),R=di("h2"),H=hi(zt),z=mi(),W=di("div"),j=di("h3"),U=hi(Wt),Y=mi(),r=di("section"),V=di("div"),G=di("label"),q=hi(jt),Z=mi(),o=di("input"),X=mi(),a=di("div"),K=di("label"),J=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<L.length;e+=1)L[e].c();te=mi(),l=di("input"),ie=mi(),M&&M.c(),ne=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),D&&D.c(),he=mi(),d=di("div"),me=di("label"),fe=hi(Vt),ge=hi(":"),(ye=di("span")).textContent="*",ve=mi(),p=di("input"),be=mi(),S&&S.c(),xe=mi(),Ce=di("div"),Pe=di("label"),Ee=hi(Gt),Ae=mi(),h=di("input"),Te=mi(),Le=di("div"),Me=di("label"),De=hi(qt),Se=mi(),m=di("input"),$e=mi(),ke=di("div"),Be=di("label"),Ie=hi(Zt),Ne=mi(),f=di("input"),Fe=mi(),Oe=di("div"),Re=di("label"),He=hi(Xt),ze=mi(),g=di("input"),We=mi(),je=di("div"),Ue=di("label"),Ye=hi(Kt),Ve=mi(),y=di("input"),Ge=mi(),qe=di("div"),Ze=di("label"),Xe=hi(Jt),Ke=mi(),v=di("input"),Je=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),w=di("section"),rt=di("div"),nt=di("label"),ot=hi(ei),at=mi(),b=di("input"),lt=mi(),_=di("div"),ct=di("label"),ut=hi(ti),dt=mi(),x=di("input"),mt=mi(),$&&$.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),wt=mi(),P=di("input"),_t=mi(),k&&k.c(),Ct=mi(),E=di("div"),Pt=di("label"),Et=hi(ri),At=mi(),A=di("input"),Mt=mi(),B&&B.c(),St=mi(),I&&I.c(),$t=mi(),N&&N.c(),kt=mi(),Bt=di("section"),It=di("button"),Nt=hi(ni),Ot=mi(),F&&F.c(),gi(R,"class","MyAccountCategoryTitle "+(i[39]?"MyAccountCategoryTitleNone":"")),gi(W,"class","PlayerNotificationsHeader"),gi(o,"type","text"),gi(o,"class","FieldDisabled"),o.value=i[37],o.readOnly=!0,gi(V,"class","PlayerInfoBox"),void 0===i[13]&&bi(()=>i[61].call(s)),gi(l,"type","text"),gi(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),gi(l,"placeholder",e=i[4]?i[32].number:""),gi(ee,"class","PlayerPhoneNumber"),gi(a,"class",re="PlayerInfoBox "+(i[26]?"InvalidField":"")),gi(le,"class","FormRequired"),gi(oe,"for","SecurityQuestion"),gi(u,"type","text"),gi(u,"placeholder",ue=i[4]?i[45]:""),gi(c,"class",pe="PlayerInfoBox "+(i[24]?"InvalidField":"")),gi(ye,"class","FormRequired"),gi(me,"for","SecurityAnswer"),gi(p,"type","text"),gi(p,"placeholder",we=i[4]?i[44]:""),gi(d,"class",_e="PlayerInfoBox "+(i[25]?"InvalidField":"")),gi(h,"type","email"),gi(h,"class","FieldDisabled"),h.value=i[33],h.readOnly=!0,gi(Ce,"class","PlayerInfoBox"),gi(m,"type","text"),gi(m,"class","FieldDisabled"),m.value=i[30],m.readOnly=!0,gi(Le,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi(ke,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Oe,"class","PlayerInfoBox"),gi(y,"type","text"),gi(y,"class","FieldDisabled"),y.value=i[35],y.readOnly=!0,gi(je,"class","PlayerInfoBox"),gi(v,"type","text"),gi(v,"class","FieldDisabled"),v.value=i[31],v.readOnly=!0,gi(qe,"class","PlayerInfoBox"),gi(r,"class","PlayerDetailsContent"),gi(Qe,"class","PlayerLocationHeader"),gi(b,"type","text"),gi(b,"class","PlayerCountry FieldDisabled"),gi(b,"placeholder",i[0]),b.value=st=i[16].Name,b.readOnly=!0,gi(rt,"class","PlayerInfoBox"),gi(x,"type","text"),gi(x,"placeholder",pt=i[4]?i[42]:""),x.value=ht=i[4]?"":i[29].city,gi(_,"class",ft="PlayerInfoBox "+(i[21]?"InvalidField":"")),gi(P,"placeholder",i[41]),gi(P,"type","text"),P.value=bt=i[4]?"":i[29].address,gi(C,"class",xt="PlayerInfoBox "+(i[23]?"InvalidField":"")),gi(A,"type","text"),gi(A,"placeholder",Tt=i[4]?i[43]:""),A.value=Lt=i[4]?"":i[29].postalCode,gi(E,"class",Dt="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(w,"class","PlayerLocationContent"),gi(It,"class",Ft="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(Bt,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(n,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,n,t),T&&T.m(n,null),si(n,O),si(n,R),si(R,H),si(n,z),si(n,W),si(W,j),si(j,U),si(n,Y),si(n,r),si(r,V),si(V,G),si(G,q),si(V,Z),si(V,o),si(r,X),si(r,a),si(a,K),si(K,J),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);wi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),M&&M.m(a,null),si(r,ne),si(r,c),si(c,oe),si(oe,ae),si(oe,se),si(oe,le),si(c,ce),si(c,u),vi(u,i[11]),si(c,de),D&&D.m(c,null),si(r,he),si(r,d),si(d,me),si(me,fe),si(me,ge),si(me,ye),si(d,ve),si(d,p),vi(p,i[12]),si(d,be),S&&S.m(d,null),si(r,xe),si(r,Ce),si(Ce,Pe),si(Pe,Ee),si(Ce,Ae),si(Ce,h),si(r,Te),si(r,Le),si(Le,Me),si(Me,De),si(Le,Se),si(Le,m),si(r,$e),si(r,ke),si(ke,Be),si(Be,Ie),si(ke,Ne),si(ke,f),si(r,Fe),si(r,Oe),si(Oe,Re),si(Re,He),si(Oe,ze),si(Oe,g),si(r,We),si(r,je),si(je,Ue),si(Ue,Ye),si(je,Ve),si(je,y),si(r,Ge),si(r,qe),si(qe,Ze),si(Ze,Xe),si(qe,Ke),si(qe,v),si(n,Je),si(n,Qe),si(Qe,et),si(et,tt),si(n,it),si(n,w),si(w,rt),si(rt,nt),si(nt,ot),si(rt,at),si(rt,b),si(w,lt),si(w,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),$&&$.m(_,null),si(w,gt),si(w,C),si(C,yt),si(yt,vt),si(C,wt),si(C,P),i[71](P),si(C,_t),k&&k.m(C,null),si(w,Ct),si(w,E),si(E,Pt),si(Pt,Et),si(E,At),si(E,A),i[73](A),si(E,Mt),B&&B.m(E,null),si(n,St),I&&I.m(n,null),si(n,$t),N&&N.m(n,null),si(n,kt),si(n,Bt),si(Bt,It),si(It,Nt),si(n,Ot),F&&F.m(n,null),Rt||(Ht=[fi(s,"change",i[61]),fi(s,"change",i[62]),fi(l,"input",i[63]),fi(l,"keyup",i[46]),fi(l,"keyup",i[64]),fi(u,"input",i[65]),fi(u,"keyup",i[66]),fi(u,"blur",i[47]),fi(p,"input",i[67]),fi(p,"keyup",i[68]),fi(p,"blur",i[48]),fi(x,"blur",i[49]),fi(x,"keyup",i[70]),fi(P,"blur",i[51]),fi(P,"keyup",i[72]),fi(A,"blur",i[50]),fi(A,"keyup",i[74]),fi(It,"click",i[78])],Rt=!0)},p(t,i){if(t[39]&&T.p(t,i),128&i[1]&&zt!==(zt=t[38]("title")+"")&&yi(H,zt),128&i[1]&&Wt!==(Wt=t[38]("personalDetails")+"")&&yi(U,Wt),128&i[1]&&jt!==(jt=t[38]("userName")+"")&&yi(q,jt),64&i[1]&&o.value!==t[37]&&(o.value=t[37]),128&i[1]&&Ut!==(Ut=t[38]("userPhone")+"")&&yi(J,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var r=Yp(t,oi,e);L[e]?L[e].p(r,i):(L[e]=Xp(r),L[e].c(),L[e].m(s,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=oi.length}139264&i[0]&&wi(s,t[13]),16&i[0]|2&i[1]&&e!==(e=t[4]?t[32].number:"")&&gi(l,"placeholder",e),16384&i[0]&&l.value!==t[14]&&vi(l,t[14]),t[26]?M?M.p(t,i):((M=Kp(t)).c(),M.m(a,null)):M&&(M.d(1),M=null),67108864&i[0]&&re!==(re="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",re),2&i[0]|128&i[1]&&Yt!==(Yt=("true"==t[1]?t[38]("profileSecurityQuestion2"):t[38]("profileSecurityQuestion"))+"")&&yi(ae,Yt),16&i[0]&&ue!==(ue=t[4]?t[45]:"")&&gi(u,"placeholder",ue),2048&i[0]&&u.value!==t[11]&&vi(u,t[11]),t[24]?D?D.p(t,i):((D=Jp(t)).c(),D.m(c,null)):D&&(D.d(1),D=null),16777216&i[0]&&pe!==(pe="PlayerInfoBox "+(t[24]?"InvalidField":""))&&gi(c,"class",pe),2&i[0]|128&i[1]&&Vt!==(Vt=("true"==t[1]?t[38]("profileSecurityAnswer2"):t[38]("profileSecurityAnswer"))+"")&&yi(fe,Vt),16&i[0]&&we!==(we=t[4]?t[44]:"")&&gi(p,"placeholder",we),4096&i[0]&&p.value!==t[12]&&vi(p,t[12]),t[25]?S?S.p(t,i):((S=Qp(t)).c(),S.m(d,null)):S&&(S.d(1),S=null),33554432&i[0]&&_e!==(_e="PlayerInfoBox "+(t[25]?"InvalidField":""))&&gi(d,"class",_e),128&i[1]&&Gt!==(Gt=t[38]("userEmail")+"")&&yi(Ee,Gt),4&i[1]&&h.value!==t[33]&&(h.value=t[33]),128&i[1]&&qt!==(qt=t[38]("dateOfBirth")+"")&&yi(De,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Zt!==(Zt=t[38]("firstName")+"")&&yi(Ie,Zt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Xt!==(Xt=t[38]("lastName")+"")&&yi(He,Xt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Kt!==(Kt=t[38]("userTitle")+"")&&yi(Ye,Kt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Jt!==(Jt=t[38]("currency")+"")&&yi(Xe,Jt),1&i[1]&&v.value!==t[31]&&(v.value=t[31]),128&i[1]&&Qt!==(Qt=t[38]("locationDetails")+"")&&yi(tt,Qt),128&i[1]&&ei!==(ei=t[38]("userCountry")+"")&&yi(ot,ei),1&i[0]&&gi(b,"placeholder",t[0]),65536&i[0]&&st!==(st=t[16].Name)&&b.value!==st&&(b.value=st),128&i[1]&&ti!==(ti=t[38]("userCity")+"")&&yi(ut,ti),16&i[0]&&pt!==(pt=t[4]?t[42]:"")&&gi(x,"placeholder",pt),536870928&i[0]&&ht!==(ht=t[4]?"":t[29].city)&&x.value!==ht&&(x.value=ht),t[21]?$?$.p(t,i):(($=eh(t)).c(),$.m(_,null)):$&&($.d(1),$=null),2097152&i[0]&&ft!==(ft="PlayerInfoBox "+(t[21]?"InvalidField":""))&&gi(_,"class",ft),128&i[1]&&ii!==(ii=t[38]("userAddress")+"")&&yi(vt,ii),536870928&i[0]&&bt!==(bt=t[4]?"":t[29].address)&&P.value!==bt&&(P.value=bt),t[23]?k?k.p(t,i):((k=th(t)).c(),k.m(C,null)):k&&(k.d(1),k=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ri!==(ri=t[38]("userPostalCode")+"")&&yi(Et,ri),16&i[0]&&Tt!==(Tt=t[4]?t[43]:"")&&gi(A,"placeholder",Tt),536870928&i[0]&&Lt!==(Lt=t[4]?"":t[29].postalCode)&&A.value!==Lt&&(A.value=Lt),t[22]?B?B.p(t,i):((B=ih(t)).c(),B.m(E,null)):B&&(B.d(1),B=null),4194304&i[0]&&Dt!==(Dt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(E,"class",Dt),t[18]||t[19]?I?I.p(t,i):((I=rh(t)).c(),I.m(n,$t)):I&&(I.d(1),I=null),t[28]?N?N.p(t,i):((N=ah(t)).c(),N.m(n,kt)):N&&(N.d(1),N=null),128&i[1]&&ni!==(ni=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ni),1081344&i[0]&&Ft!==(Ft="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(It,"class",Ft),t[27]?F?F.p(t,i):((F=sh(t)).c(),F.m(n,null)):F&&(F.d(1),F=null)},d(e){e&&ci(n),T&&T.d(),ui(L,e),M&&M.d(),D&&D.d(),S&&S.d(),i[69](null),$&&$.d(),i[71](null),k&&k.d(),i[73](null),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),Rt=!1,ai(Ht)}}}function Gp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function qp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Zp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.selected=!0,i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Xp(e){let i;function r(e){return e[108].Prefix===e[29].mobiePrefix?Zp:qp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Kp(e){let i,r,n=e[38]("userPhoneError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPhoneError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Jp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Qp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function eh(e){let i,r,n=e[38]("userCityError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userCityError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function th(e){let i,r,n=e[38]("userAddressError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userAddressError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ih(e){let i,r,n=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPostalCodeError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rh(e){let i,r,n,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&nh(e),u=e[18]&&oh(e);return{c(){i=di("div"),r=di("h3"),n=hi(l),o=mi(),a=di("section"),c&&c.c(),s=mi(),u&&u.c(),gi(i,"class","PlayerNotificationsHeader"),gi(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,i,t),si(i,r),si(r,n),li(e,o,t),li(e,a,t),c&&c.m(a,null),si(a,s),u&&u.m(a,null)},p(e,t){128&t[1]&&l!==(l=e[38]("userNotifications")+"")&&yi(n,l),e[19]?c?c.p(e,t):((c=nh(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=oh(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(i),e&&ci(o),e&&ci(a),c&&c.d(),u&&u.d()}}}function nh(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","SMSNotification"),gi(o,"name","Enable SMS notifications"),gi(s,"class","Checkmark"),gi(n,"for","SMSNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[8],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[75]),fi(o,"change",i[54])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),128&t[1]&&h!==(h=e[38]("userSMSNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function oh(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","EmailNotification"),gi(o,"name","Enable Emails"),gi(s,"class","Checkmark"),gi(n,"for","EmailNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[9],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[76]),fi(o,"change",i[54])],d=!0)},p(e,t){512&t[0]&&(o.checked=e[9]),128&t[1]&&h!==(h=e[38]("userEmailNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function ah(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",w=i[38]("userBiometrics")+"";return{c(){r=di("div"),n=di("h3"),o=hi(v),a=mi(),s=di("section"),l=di("div"),c=di("label"),u=di("input"),d=mi(),p=di("span"),h=mi(),m=di("span"),f=hi(w),gi(r,"class","PlayerNotificationsHeader"),gi(u,"type","checkbox"),gi(u,"id","BiometricsEnabled"),gi(u,"name","Biometric Enabled"),gi(p,"class","Checkmark"),gi(c,"for","Biometrics"),gi(l,"class","PlayerNotificationBox"),gi(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),li(e,a,t),li(e,s,t),si(s,l),si(l,c),si(c,u),u.checked=i[10],si(c,d),si(c,p),si(c,h),si(c,m),si(m,f),g||(y=[fi(u,"change",i[77]),fi(u,"change",i[54])],g=!0)},p(e,t){128&t[1]&&v!==(v=e[38]("userAppSettings")+"")&&yi(o,v),1024&t[0]&&(u.checked=e[10]),128&t[1]&&w!==(w=e[38]("userBiometrics")+"")&&yi(f,w)},d(e){e&&ci(r),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function sh(e){let i,r,n,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),r=di("p"),n=hi(o),gi(r,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function lh(i){let r;function n(e){return e[3]?Gp:Vp}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[79](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[79](null)}}}function ch(t,e,i){let N;Le(t,$e,e=>i(38,N=e));let r,n,o,a,s,{endpoint:l=""}=e,{lang:c="en"}=e,{countrycode:u="IR"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{custominputtextswitch:m="false"}=e,F=!0,O=window.navigator.userAgent,R="PC"!==ke(O),H=!0,f=!1,g=!1,y=!1,v="",w="",b="",_="",x=!1,z={Name:"I.e Ireland"},C=[],W=[],P=[],E=!1,A=!1,T={items:[]},j=!1,U="",Y="",V="",G=!1,q=!1,Z=!1,L=!1,X={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Op).forEach(e=>{Fp(e,Op[e])});e=window.matchMedia("(min-width: 768px)");let K={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},M={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},D={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:J,birth:Q,city:ee,currency:te,mobile:S,email:ie,firstname:re,userTitles:ne,language:oe,lastname:ae,postalCode:se,securityAnswer:$,securityQuestion:k,username:le}=D;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,H=!1),D=e.data.profileDetails,i(37,le=D.username),i(32,S=D.mobile),i(33,ie=D.email),i(34,re=D.firstname),i(36,ae=D.lastname),oe=D.language,i(30,Q=(null==(t=D.birth)?void 0:t.day)+"/"+(null==(t=D.birth)?void 0:t.month)+"/"+(null==(t=D.birth)?void 0:t.year)),i(31,te=D.currency),i(35,ne=D.title),i(11,v=D.securityQuestion),i(12,w=D.securityAnswer),i(13,b=null==(t=D.mobile)?void 0:t.prefix),i(14,_=null==(t=D.mobile)?void 0:t.number),i(29,M.address=D.address1,M),i(29,M.city=D.city,M),i(29,M.mobilePrefix=null==S?void 0:S.prefix,M),i(29,M.mobileNumber=null==S?void 0:S.number,M),i(29,M.postalCode=D.postalCode,M),i(29,M.securityAnswer=D.securityAnswer,M),i(29,M.securityQuestion=D.securityQuestion,M);break;case"ProfileConsentData":P=e.data.consent.items,Array.isArray(P)&&P.forEach(e=>{"emailmarketing"==e.tagCode?(i(18,E=!0),i(9,g="Accepted"==e.status),i(29,M.acceptNewsEmail=g,M)):"sms"==e.tagCode&&(i(19,A=!0),i(8,f="Accepted"==e.status),i(29,M.acceptSMSOffers=f,M))});break;case"ConfirmProfileInfoSave":L&&(Up("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),jp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,Z=!0),setTimeout(()=>{i(27,Z=!1)},3e3)}},B=()=>{i(20,j=!(G||q||U||V||Y||s))},ue=e=>{e.preventDefault(),1==x&&1==j&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:K},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:T},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;K={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:b,postalCode:n.value,securityAnswer:w,securityQuestion:v},e=K,t=M,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),T={items:[]},A&&T.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),E&&T.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),B()};return Me(()=>(window.addEventListener("message",ce,!1),i(28,L=!!Wp(O)),L&&(Up("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),jp("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",ce)})),t.$$set=e=>{"endpoint"in e&&i(55,l=e.endpoint),"lang"in e&&i(56,c=e.lang),"countrycode"in e&&i(0,u=e.countrycode),"clientstyling"in e&&i(57,d=e.clientstyling),"clientstylingurl"in e&&i(58,p=e.clientstylingurl),"translationurl"in e&&i(59,h=e.translationurl),"custominputtextswitch"in e&&i(1,m=e.custominputtextswitch)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&c&&(e=c,Se.set(e)),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&l&&u&&fetch(l+"/v1/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/v1/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{W=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code)),i(16,z=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,F=!1)})}),16777216&t.$$.dirty[1]&&l&&fetch(l+"/v1/player/phonecodes").then(e=>e.json()).then(e=>{i(17,C=e.phoneCodes)}),4&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&p&&r){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,r,F,H,n,o,a,f,g,y,v,w,b,_,x,z,C,E,A,j,U,Y,V,G,q,s,Z,L,M,Q,te,S,ie,re,ne,ae,le,N,R,e,J,ee,se,$,k,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),B()},()=>{i(24,G=!(()=>{if(k)switch(m){case"true":if(X.document.test(k)&&k.length<=50)return!0;break;case"false":if(k&&k.length<=120)return!0}return!1})()),B()},()=>{i(25,q=!(()=>{if($)switch(m){case"true":if(X.document.test($)&&$.length<=50)return!0;break;case"false":if($&&$.length<=120)return!0}return!1})()),B()},()=>{i(21,U=!(a.value&&a.value.length<=50)),B()},()=>{i(22,Y=!(n.value&&n.value.length<=20)),B()},()=>{i(23,V=!(o.value&&o.value.length<=100)),B()},ue,de,I,l,c,d,p,h,()=>de(),function(){b=pe(this),i(13,b),i(17,C)},()=>I(),function(){_=this.value,i(14,_)},()=>I(),function(){v=this.value,i(11,v)},()=>I(),function(){w=this.value,i(12,w)},()=>I(),function(e){De[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>I(),function(e){De[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>I(),function(e){De[e?"unshift":"push"](()=>{n=e,i(5,n)})},()=>I(),function(){f=this.checked,i(8,f)},function(){g=this.checked,i(9,g)},function(){y=this.checked,i(10,y)},e=>ue(e),function(e){De[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function uh(e,t){B(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ch,lh,i,{endpoint:55,lang:56,countrycode:0,clientstyling:57,clientstylingurl:58,translationurl:59,custominputtextswitch:1},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","lang","countrycode","clientstyling","clientstylingurl","translationurl","custominputtextswitch"]}get endpoint(){return this.$$.ctx[55]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[56]}set lang(e){this.$$set({lang:e}),p()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$$set({countrycode:e}),p()}get clientstyling(){return this.$$.ctx[57]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[58]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[59]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[1]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}});const dh={en:{title:"Change Password",currentPassword:"Current Password:",invalidCurrentPassword:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",newPassword:"New Password:",invalidNewPassword:"The new password must be different from the old password.",invalidNewPasswordSecondary:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",confirmPassword:"Confirm Password:",confirmPasswordInvalid:"Password must match the new password and must follow the same rules.",submitChangePassword:"Change Password",simplePasswordError:"Password must be 8-20 characters long.",returnToMenu:"Return to menu",changePasswordText:"Change Password",passwordReset:"PASSWORD RESET",passwordResetConfirmation:"Your password has been reset successfully.",backButtonText:"Back"},"zh-hk":{title:"更改密碼",currentPassword:"當前密碼",invalidCurrentPassword:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",newPassword:"新密碼",invalidNewPassword:"新密碼必須與舊密碼不同。",invalidNewPasswordSecondary:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",confirmPassword:"確認密碼",simplePasswordError:"密码长度必须为 8-20 个字符。",confirmPasswordInvalid:"密碼必須與新密碼匹配,並且必須遵循相同的規則。",submitChangePassword:"更改密碼",returnToMenu:"返回菜單",changePasswordText:"更改密碼",passwordReset:"重設密碼",passwordResetConfirmation:"您的密碼已成功重置。",backButtonText:"回到賭場"},fr:{title:"Modifier le mot de passe",currentPassword:"Mot de passe actuel:",invalidCurrentPassword:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",newPassword:"Nouveau mot de passe:",invalidNewPassword:"Le nouveau mot de passe doit être different de l'ancien.",invalidNewPasswordSecondary:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",confirmPassword:"Confirmer le mot de passe:",confirmPasswordInvalid:"Le mot de passe doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",submitChangePassword:"Modifier le mot de passe",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",returnToMenu:"Retour au menu",changePasswordText:"Modifier le mot de passe",passwordReset:"Réinitialisation du mot de passe",passwordResetConfirmation:"Votre mot de passe a été réinitialisé avec succès.",backButtonText:"Retour"},ro:{title:"Schimbă parola",currentPassword:"Parola curentă",invalidCurrentPassword:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",newPassword:"Parola nouă",invalidNewPassword:"Noua parolă trebuie să fie diferită de cea veche.",invalidNewPasswordSecondary:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",confirmPassword:"Confirmă parola",confirmPasswordInvalid:"Parolele trebuie să coincidă și să îndeplinească aceleași condiții.",submitChangePassword:"Schimbă parola",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",returnToMenu:"Înapoi la meniu",changePasswordText:"Schimbă parola",passwordReset:"Resetează parola",passwordResetConfirmation:"Parola a fost resetată cu succes.",backButtonText:"Înapoi"},es:{title:"Cambiar Contraseña",currentPassword:"Contraseña Actual",invalidCurrentPassword:"La contraseña debe ser entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",newPassword:"Nueva contraseña:",invalidNewPassword:"La nueva contraseña debe ser diferente de la contraseña anterior.",invalidNewPasswordSecondary:"Cambiar Contraseñay contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",confirmPassword:"Confirmar Contraseña:",confirmPasswordInvalid:"La Contraseña debe coincidir con la Nueva Contraseña y debe seguir las mismas reglas.",submitChangePassword:"Cambiar Contraseña",simplePasswordError:"La contraseña debe ser entre 8 a 20 caracteres.",returnToMenu:"Regresar al menu",changePasswordText:"Cambiar Contraseña",passwordReset:"REESTABLECER CONTRASEÑA",passwordResetConfirmation:"Tu contraseña se ha reestablecido exitosamente..",backButtonText:"Regresar"},pt:{title:"Mudar senha",currentPassword:"Senha atual",invalidCurrentPassword:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",newPassword:"Nova Senha",invalidNewPassword:"A nova senha deve ser diferente da senha antiga.",invalidNewPasswordSecondary:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",confirmPassword:"Confirme sua senha",confirmPasswordInvalid:"A senha deve corresponder à nova senha e deve seguir as mesmas regras.",submitChangePassword:"Mudar senha",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",returnToMenu:"Voltar ao menu",changePasswordText:"Mudar senha",passwordReset:"REDEFINIÇÃO DE SENHA",passwordResetConfirmation:"Sua senha foi redefinida com sucesso.",backButtonText:"Voltar"}};function ph(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C=i[19]("changePasswordText")+"",P=i[19]("passwordReset")+"",E=i[19]("passwordResetConfirmation")+"",A=i[19]("backButtonText")+"",T=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("g"),a=pi("path"),s=mi(),l=di("span"),c=hi(p),gi(a,"id","Chevron_Right"),gi(a,"d","M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"),gi(n,"version","1.1"),gi(n,"id","Capa_1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(n,"x","0px"),gi(n,"y","0px"),gi(n,"viewBox","0 0 240.823 240.823"),L(n,"enable-background","new 0 0 240.823 240.823"),gi(n,"xml:space","preserve"),gi(n,"width","18px"),gi(n,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(r,l),si(l,c),u||(d=fi(r,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(r),u=!1,d()}}}(i);return{c(){T&&T.c(),r=mi(),n=di("div"),o=di("h3"),a=hi(C),s=mi(),l=di("div"),c=di("div"),(u=di("div")).innerHTML='<div class="Checkmark"></div>',d=mi(),p=di("div"),h=di("h3"),m=hi(P),f=mi(),g=di("p"),y=hi(E),v=mi(),w=di("div"),b=hi(A),gi(n,"class","PlayerChangePasswordHeader"),gi(u,"class","IconContainer"),gi(p,"class","TextContainer"),gi(c,"class","SuccessWrapper"),gi(w,"class","PlayerChangePasswordBackButton"),gi(l,"class","ChangedPasswordSuccessfully")},m(e,t){T&&T.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(c,p),si(p,h),si(h,m),si(p,f),si(p,g),si(g,y),si(l,v),si(l,w),si(w,b),_||(x=fi(w,"click",i[46]),_=!0)},p(e,t){e[20]&&T.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&yi(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&yi(m,P),524288&t[0]&&E!==(E=e[19]("passwordResetConfirmation")+"")&&yi(y,E),524288&t[0]&&A!==(A=e[19]("backButtonText")+"")&&yi(b,A)},d(e){T&&T.d(e),e&&ci(r),e&&ci(n),e&&ci(s),e&&ci(l),_=!1,x()}}}function hh(i){let O,r,R,H,n,o,a,z,W,s,j,U,l,Y,c,u,V,G,d,q,Z,p,X,h,m,K,J,f,Q,ee,g,te,y,v,w,ie,b,_,re,ne,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",E=i[19]("confirmPassword")+"",A=i[19]("submitChangePassword")+"",T=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function oe(e){return e[10]?fh:mh}let L=oe(i),M=L(i),D=i[4]&&gh(i);function ae(e){return e[11]?bh:wh}let S=ae(i),$=S(i);function se(e){return e[13]?xh:e[5]?_h:void 0}let k=se(i),B=k&&k(i);function le(e){return e[12]?Ah:Eh}let ce=le(i),I=ce(i),N=i[6]&&Th(i),F=i[18]&&Lh(i);return{c(){T&&T.c(),O=mi(),r=di("h2"),R=hi(x),H=mi(),n=di("section"),o=di("div"),a=di("label"),z=hi(C),W=mi(),s=di("input"),j=mi(),M.c(),U=mi(),D&&D.c(),Y=mi(),c=di("div"),u=di("label"),V=hi(P),G=mi(),d=di("input"),q=mi(),$.c(),Z=mi(),B&&B.c(),X=mi(),h=di("div"),m=di("label"),K=hi(E),J=mi(),f=di("input"),Q=mi(),I.c(),ee=mi(),N&&N.c(),te=mi(),F&&F.c(),y=mi(),v=di("section"),w=di("button"),ie=hi(A),gi(r,"class","ChangePasswordTitle "+(i[20]?"ChangePasswordTitleNone":"")),gi(a,"for","CurrentPassword"),gi(s,"id","CurrentPassword"),gi(s,"type","password"),gi(o,"class",l="PlayerChangePasswordBox "+(i[4]?"InvalidField":"")),gi(u,"for","NewPassword"),gi(d,"id","NewPassword"),gi(d,"autocomplete","new-password"),gi(d,"type","password"),gi(c,"class",p="PlayerChangePasswordBox "+(i[5]?"InvalidField":"")),gi(m,"for","ConfirmPassword"),gi(f,"id","ConfirmPassword"),gi(f,"type","password"),gi(h,"class",g="PlayerChangePasswordBox "+(i[6]?"InvalidField":"")),gi(n,"class","PlayerChangePasswordContent"),gi(w,"class",b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),w.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){T&&T.m(e,t),li(e,O,t),li(e,r,t),si(r,R),li(e,H,t),li(e,n,t),si(n,o),si(o,a),si(a,z),si(o,W),si(o,s),vi(s,i[14]),i[33](s),si(o,j),M.m(o,null),si(o,U),D&&D.m(o,null),si(n,Y),si(n,c),si(c,u),si(u,V),si(c,G),si(c,d),vi(d,i[15]),i[37](d),si(c,q),$.m(c,null),si(c,Z),B&&B.m(c,null),si(n,X),si(n,h),si(h,m),si(m,K),si(h,J),si(h,f),vi(f,i[16]),i[41](f),si(h,Q),I.m(h,null),si(h,ee),N&&N.m(h,null),li(e,te,t),F&&F.m(e,t),li(e,y,t),li(e,v,t),si(v,w),si(w,ie),re||(ne=[fi(s,"input",i[32]),fi(s,"blur",function(){ue(i[23](i[4],i[14],i[7]))&&i[23](i[4],i[14],i[7]).apply(this,arguments)}),fi(d,"input",i[36]),fi(d,"blur",function(){ue(i[23](i[5],i[15],i[8]))&&i[23](i[5],i[15],i[8]).apply(this,arguments)}),fi(f,"input",i[40]),fi(f,"blur",function(){ue(i[23](i[6],i[16],i[9]))&&i[23](i[6],i[16],i[9]).apply(this,arguments)}),fi(w,"click",i[44])],re=!0)},p(e,t){(i=e)[20]&&T.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(z,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),L===(L=oe(i))&&M?M.p(i,t):(M.d(1),(M=L(i))&&(M.c(),M.m(o,U))),i[4]?D?D.p(i,t):((D=gh(i)).c(),D.m(o,null)):D&&(D.d(1),D=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(i[4]?"InvalidField":""))&&gi(o,"class",l),524288&t[0]&&P!==(P=i[19]("newPassword")+"")&&yi(V,P),32768&t[0]&&d.value!==i[15]&&vi(d,i[15]),S===(S=ae(i))&&$?$.p(i,t):($.d(1),($=S(i))&&($.c(),$.m(c,Z))),k===(k=se(i))&&B?B.p(i,t):(B&&B.d(1),(B=k&&k(i))&&(B.c(),B.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(i[5]?"InvalidField":""))&&gi(c,"class",p),524288&t[0]&&E!==(E=i[19]("confirmPassword")+"")&&yi(K,E),65536&t[0]&&f.value!==i[16]&&vi(f,i[16]),ce===(ce=le(i))&&I?I.p(i,t):(I.d(1),(I=ce(i))&&(I.c(),I.m(h,ee))),i[6]?N?N.p(i,t):((N=Th(i)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(i[6]?"InvalidField":""))&&gi(h,"class",g),i[18]?F?F.p(i,t):((F=Lh(i)).c(),F.m(y.parentNode,y)):F&&(F.d(1),F=null),524288&t[0]&&A!==(A=i[19]("submitChangePassword")+"")&&yi(ie,A),8&t[0]&&b!==(b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(w,"class",b),8&t[0]&&_!==(_=!i[3])&&(w.disabled=_)},d(e){T&&T.d(e),e&&ci(O),e&&ci(r),e&&ci(H),e&&ci(n),i[33](null),M.d(),D&&D.d(),i[37](null),$.d(),B&&B.d(),i[41](null),I.d(),N&&N.d(),e&&ci(te),F&&F.d(e),e&&ci(y),e&&ci(v),re=!1,ai(ne)}}}function mh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function fh(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function gh(e){let i;function r(e){return"true"==e[0]?vh:yh}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function yh(e){let i,r,n=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidCurrentPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function vh(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function wh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function bh(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function _h(e){let i;function r(e){return"true"==e[0]?Ph:Ch}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function xh(e){let i,r,n=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ch(e){let i,r,n=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPasswordSecondary")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ph(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Eh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Ah(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function Th(e){let i,r,n=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("confirmPasswordInvalid")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Lh(e){let i,r,n;return{c(){i=di("div"),r=di("p"),n=hi(e[17]),gi(r,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){131072&t[0]&&yi(n,e[17])},d(e){e&&ci(i)}}}function Mh(i){let r,n=function(e){let i;function r(e){return e[2]?ph:hh}let n=r(e),o=n(e);return{c(){i=di("form"),o.c(),gi(i,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){li(e,i,t),o.m(i,null)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[47](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[47](null)}}}function Dh(t,e,r){let i;Le(t,$e,e=>r(19,i=e));let n,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==ke(u),p=!1;const N=window.matchMedia("(min-width: 768px)"),h={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let m,f,g,y=!1,v=!1,w=!1,b=!1,_=!1,x=!1,C=!1,P="",E="",A="",T=!1,L="",M=!1;Object.keys(dh).forEach(e=>{uh(e,dh[e])});const D=e=>{switch(e){case"userCurrentPassword":r(10,b=!b),r(7,m.type=b?"text":"password",m);break;case"userNewPassword":r(11,_=!_),r(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":r(12,x=!x),r(9,g.type=x?"text":"password",g)}},S=e=>!!h.password.test(e),$=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:E},window.location.href)},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},B=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":r(2,T=!0);break;case"ShowPasswordChangedError":r(18,M=e.data.showErrorPasswordChanged),r(17,L=e.data.errorPasswordChanged)}};return Me(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&r(27,o=e.lang),"simplepasswordvalidation"in e&&r(0,a=e.simplepasswordvalidation),"clientstyling"in e&&r(28,s=e.clientstyling),"clientstylingurl"in e&&r(29,l=e.clientstylingurl),"translationurl"in e&&r(30,c=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&a&&"true"==a&&(h.password=/^(?!.* ).{8,20}$/),134217728&t.$$.dirty[0]&&o&&(e=o,Se.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;268435458&t.$$.dirty[0]&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{uh(e,t[e])})}).catch(e=>{console.log(e)})},[a,n,T,p,y,v,w,m,f,g,b,_,x,C,P,E,A,L,M,i,d,N,D,(e,t,i)=>{"CurrentPassword"===i.id?r(4,y=!S(t)):"NewPassword"===i.id&&(r(5,v=!S(t)),P&&r(13,C=P===E),!A)||r(6,w=E!==A||!S(t)),r(3,p=!(y||v||w||C||!P||!E||!A))},$,k,B,o,s,l,c,()=>k(),function(){P=this.value,r(14,P)},function(e){De[e?"unshift":"push"](()=>{m=e,r(7,m)})},()=>D("userCurrentPassword"),()=>D("userCurrentPassword"),function(){E=this.value,r(15,E)},function(e){De[e?"unshift":"push"](()=>{f=e,r(8,f)})},()=>D("userNewPassword"),()=>D("userNewPassword"),function(){A=this.value,r(16,A)},function(e){De[e?"unshift":"push"](()=>{g=e,r(9,g)})},()=>D("userConfirmPassword"),()=>D("userConfirmPassword"),e=>$(e),()=>k(),()=>B(),function(e){De[e?"unshift":"push"](()=>{n=e,r(1,n)})}]}function Sh(e,t){B(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:30px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox input::-ms-reveal,.PlayerChangePasswordBox input::-ms-clear{display:none}.PlayerChangePasswordBox.InvalidField input{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:38px;cursor:pointer;color:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibilityMobile{top:35px}.InvalidInput,.InvalidInputNew{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;padding-top:5px;margin:0;line-height:12px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:16px;line-height:18px;margin-top:0}.ChangedPasswordSuccessfully{color:var(--emfe-w-color-white, #FFFFFF);position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:var(--emfe-w-color-gray-300, #58586B)}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Dh,Mh,i,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),p()}});const $h={en:{title:"Reality Check",never:"Never",minutes:"Minutes",oneHour:"1 Hour",hours:"Hours",successMessage:"Reality check has been successfully updated.",realityCheckText:"The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",realityCheckLoading:"Loading items, please wait ...",setFrequency:"Set frequency"},"zh-hk":{title:"現實檢查",never:"絕不",minutes:"分鐘",oneHour:"1小時",hours:"小時",successMessage:"現實檢查已成功更新。",realityCheckText:"該工具允許您設置在遊戲會話中在屏幕上看到消息的頻率。 它將顯示自會話開始以來經過的時間。",realityCheckLoading:"正在加載項目,請稍候...",setFrequency:"設置頻率"},fr:{title:"Verification de la réalité",never:"Jamais",minutes:"Minutes",oneHour:"1 Heure",hours:"Heure",successMessage:"Le contrôle de la réalité a été mis à jour avec succès.",realityCheckText:"La fonction de contrôle de la réalité vous permet de définir la fréquence à laquelle vous verrez un contrôlede la réalité sur l'écran au cours de votre sessions de jeu , c'est-à-dire un affichage du temps écoulé depuis le début de votre session.",realityCheckLoading:"Chargement des éléments, veuillez patienter ...",setFrequency:"Régler la fréquence"},ro:{title:"Verificare timp",never:"Niciodata",minutes:"Minute",oneHour:"1 Ora",hours:"Ore",successMessage:"Frecvența a fost setată cu succes!",realityCheckText:"Opțiunea Reality Check îți permite să setezi frecvența cu care vei vedea verificarea timpului de joc pe parcursul sesiunii tale de joc. O astfel de verificare reprezintă afișarea timpului trecut de la începerea sesiunii de joc.",realityCheckLoading:"Se încarcă...",setFrequency:"Stabilește frecvența"},es:{title:"Verificación de la realidad",never:"Nunca",minutes:"Minutos",oneHour:"1 Hora",hours:"Horas",successMessage:"La verificación de la realidad se ha actualizado con éxito.",realityCheckText:"La función de Verificación de la realidad le permite establecer la frecuencia con la que verá una Verificación de la realidad en la pantalla dentro de su sesión de juego. Una verificación de la realidad significa una visualización del tiempo transcurrido desde que comenzó su sesión. Puede controlar la frecuencia con la que aparecerá la Verificación de realidad en su pantalla.",realityCheckLoading:"Cargando items",setFrequency:"Estabelecer frecuencia"},pt:{title:"Verificação da realidade",never:"Nunca",minutes:"Minutos",oneHour:"1 hora",hours:"Horas",successMessage:"A verificação da realidade foi atualizada com sucesso.",realityCheckText:"O recurso Verificação da Realidade permite que você defina a frequência com que você verá uma Verificação da Realidade na tela durante sua sessão de jogo. Uma verificação da realidade significa uma exibição do tempo decorrido desde o início da sua sessão.",realityCheckLoading:"Carregando itens, por favor aguarde...",setFrequency:"Definir frequência"}};function kh(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function Bh(e){let i;return{c(){(i=di("div")).textContent=""+e[6],gi(i,"class","successMessageMobile")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Ih(e){let i,r;return{c(){i=di("div"),r=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Nh(i){let r,n,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=Oh(kh(i,u,e));return{c(){r=di("form");for(let e=0;e<d.length;e+=1)d[e].c();n=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(r,"class","customRadio")},m(e,t){li(e,r,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);si(r,n),si(r,o),si(o,a),si(a,s),l||(c=fi(a,"click",i[22]),l=!0)},p(t,i){if(130&i[0]){let e;for(u=t[7],e=0;e<u.length;e+=1){const s=kh(t,u,e);d[e]?d[e].p(s,i):(d[e]=Oh(s),d[e].c(),d[e].m(r,n))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&i[0]&&e!==(e=t[4]("setFrequency")+"")&&yi(s,e)},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function Fh(e){let i,r,n=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[4]("realityCheckLoading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Oh(i){let r,n,o,a,s,t,l,c,e=i[36]+"";return t=function(t){let i;return{p(...e){(i=e).forEach(e=>t.push(e))},r(){i.forEach(e=>t.splice(t.indexOf(e),1))}}}(i[21][0]),{c(){r=di("div"),n=di("input"),o=mi(),a=di("label"),s=hi(e),gi(n,"type","radio"),gi(n,"id",i[35]),n.__value=i[35],n.value=n.__value,gi(a,"for",i[35]),t.p(n)},m(e,t){li(e,r,t),si(r,n),n.checked=n.__value===i[1],si(r,o),si(r,a),si(a,s),l||(c=fi(n,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(n.checked=n.__value===e[1])},d(e){e&&ci(r),t.r(),l=!1,c()}}}function Rh(i){let r,n,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&Bh(i);return{c(){v&&v.c(),r=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=pi("g"),u=pi("g"),d=pi("path"),p=mi(),h=di("h2"),m=hi(y),gi(d,"class","aaa"),gi(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(d,"transform","translate(15 15) rotate(180)"),gi(u,"transform","translate(20 158)"),gi(c,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","15"),gi(o,"height","15"),gi(o,"viewBox","0 0 15 15"),gi(h,"class","RealityCheckTitleMobile"),gi(h,"part","RealityCheckTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),f||(g=fi(n,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=Bh(e)).c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&yi(m,y)},d(e){v&&v.d(e),e&&ci(r),e&&ci(n),f=!1,g()}}}(i),g=i[3]&&Ih(i);function y(e){return e[2]?Fh:Nh}let v=y(i),w=v(i);return{c(){r=di("div"),f&&f.c(),n=mi(),g&&g.c(),o=mi(),a=di("h2"),s=hi(h),l=mi(),c=di("div"),u=di("p"),d=hi(m),p=mi(),w.c(),this.c=oe,gi(a,"class","RealityCheckTitle "+(i[5]?"RealityCheckTitleNone":"")),gi(c,"class","RealityCheckDescription "+(i[5]?"RealityCheckDescriptionMobile":"")),gi(r,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(r,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,r,t),f&&f.m(r,null),si(r,n),g&&g.m(r,null),si(r,o),si(r,a),si(a,s),si(r,l),si(r,c),si(c,u),si(u,d),si(c,p),w.m(c,null),i[23](r)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Ih(e)).c(),g.m(r,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&yi(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&yi(d,m),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(c,null)))},i:oe,o:oe,d(e){e&&ci(r),f&&f.d(),g&&g.d(),w.d(),i[23](null)}}}function Hh(i,e,r){let n;Le(i,$e,e=>r(4,n=e));let o,{realitycheck:a=""}=e,{endpoint:s=""}=e,{playerid:l=""}=e,{session:c=""}=e,{lang:u="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,t=window.navigator.userAgent,m="PC"!==ke(t),f="",g=!0,y=(Object.keys($h).forEach(e=>{Sh(e,$h[e])}),!1),v=n("successMessage"),w=[],b=[];const _=e=>{e.preventDefault(),window.postMessage({type:"SubmittedRealityCheck",realityCheckUpdatedValue:f},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},C=e=>{e.data&&"RealityCheckValueUpdated"===e.data.type&&(r(3,y=!0),setTimeout(()=>{r(3,y=!1)},2e3))};return Me(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&r(10,a=e.realitycheck),"endpoint"in e&&r(11,s=e.endpoint),"playerid"in e&&r(12,l=e.playerid),"session"in e&&r(13,c=e.session),"lang"in e&&r(14,u=e.lang),"clientstyling"in e&&r(15,d=e.clientstyling),"clientstylingurl"in e&&r(16,p=e.clientstylingurl),"translationurl"in e&&r(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,Se.set(t)),14336&i.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/v1/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(18,w=e.AvailableRealityCheckValues),w.forEach(e=>{0==e?b.push({value:e.toString(),text:n("never")}):e<60?b.push({value:e.toString(),text:e+" "+n("minutes")}):60==e?b.push({value:e.toString(),text:n("oneHour")}):60<e&&b.push({value:e.toString(),text:e/60+" "+n("hours")})}),r(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&w&&a&&r(1,f=a),65537&i.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e,t;32769&i.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&i.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sh(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,n,m,v,b,_,x,a,s,l,c,u,d,p,h,w,()=>x(),function(){f=this.__value,r(1,f)},[[]],e=>_(e),function(e){De[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function zh(e,t){B(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Hh,Rh,i,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["realitycheck","endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl"]}get realitycheck(){return this.$$.ctx[10]}set realitycheck(e){this.$$set({realitycheck:e}),p()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[12]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Wh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."}};function jh(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function Uh(e,t,i){e=e.slice();return e[45]=t[i],e}function Yh(t){let n,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zh(Uh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var r=Uh(t,o,e);a[e]?a[e].p(r,i):(a[e]=Zh(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Vh(e){let i,r,n=e[14]("noBonusHistory")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noBonusHistory")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Gh(e){let i,r,n,o,a,s,l,c,u,d;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),ae(i,"bonusdate",n=e[45].granted),ae(i,"bonusstatus",o=e[45].status),ae(i,"bonusname",a=e[45].name),ae(i,"bonustype",s=e[45].type),ae(i,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),ae(i,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),ae(i,"bonusremainingamount",u=e[45].currentAmount),ae(i,"bonuscurrency",d=e[45].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&ae(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&ae(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&ae(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&ae(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&ae(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&ae(i,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&ae(i,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&ae(i,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&ae(i,"bonuscurrency",d),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function qh(e){let i,r,n,o,a,s,l;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),ae(i,"bonusdate",n=e[45].granted),ae(i,"bonusstatus",o=e[45].status),ae(i,"bonusname",a=e[45].name),ae(i,"bonustype",s=e[45].type),ae(i,"bonuscurrency",l=e[45].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&ae(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&ae(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&ae(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&ae(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&ae(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&ae(i,"bonuscurrency",l),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Zh(e){let i;function r(e){return"freeRound"===e[45].type?qh:Gh}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Xh(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Kh(jh(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[12]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[12]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[12]===i[11]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[12]===i[11]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[26]),fi(l,"click",i[27]),fi(p,"click",i[29]),fi(g,"click",i[30])],w=!0)},p(t,i){if(4096&i[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&gi(n,"class",a),4096&i[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&gi(l,"class",e),137216&i[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=jh(t,_,e);x[e]?x[e].p(a,i):(x[e]=Kh(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&i[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&gi(p,"class",m),6144&i[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function Kh(i){let r,n,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function Jh(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,A,T,L,M=i[14]("title")+"",D=i[14]("dateFrom")+"",S=i[14]("dateTo")+"",$=i[14]("dateFilter")+"",k=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function B(e){return 0===e[13].length?Vh:Yh}let I=B(i),N=I(i),F=0!==i[13].length&&Xh(i);return{c(){r=di("div"),k&&k.c(),n=mi(),o=di("h2"),a=hi(M),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi(D),h=mi(),m=di("vaadin-date-picker"),f=mi(),g=di("div"),y=di("label"),v=hi(S),w=mi(),b=di("vaadin-date-picker"),_=mi(),x=di("button"),C=hi($),P=mi(),E=di("div"),N.c(),A=mi(),F&&F.c(),gi(o,"class","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(o,"part","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(d,"for","BonusCalendarStartDate"),ae(m,"max",i[6]),ae(m,"value",i[7]),ae(m,"placeholder","From"),ae(m,"class","VaadinDatePicker"),gi(u,"class","BonusesCalendarStartDate "+(i[15]?"BonusesCalendarMobile":"")),gi(y,"for","BonusesCalendarEndDate"),ae(b,"max",i[6]),ae(b,"value",i[6]),ae(b,"placeholder","To"),ae(b,"class","VaadinDatePicker"),gi(g,"class","BonusesCalendarEndDate "+(i[15]?"BonusesCalendarMobile":"")),gi(c,"class","BonusesCalendarContainer "+(i[15]?"BonusesCalendarContainerMobile":"")),gi(x,"class","BonusesCalendarFilter "+(i[15]?"BonusesCalendarFilterMobile":"")),gi(l,"class","BonusCalendarWrapper "+(i[15]?"BonusCalendarWrapperMobile":"")),gi(E,"class","BonusesGrid "+(i[15]?"BonusesGridMobile":"")),gi(r,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,r,t),k&&k.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(u,d),si(d,p),si(u,h),si(u,m),i[23](m),si(c,f),si(c,g),si(g,y),si(y,v),si(g,w),si(g,b),i[24](b),si(l,_),si(l,x),si(x,C),si(r,P),si(r,E),N.m(E,null),si(r,A),F&&F.m(r,null),T||(L=fi(x,"click",i[25]),T=!0)},p(e,t){e[15]&&k.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yi(a,M),16384&t[0]&&D!==(D=e[14]("dateFrom")+"")&&yi(p,D),64&t[0]&&ae(m,"max",e[6]),128&t[0]&&ae(m,"value",e[7]),16384&t[0]&&S!==(S=e[14]("dateTo")+"")&&yi(v,S),64&t[0]&&ae(b,"max",e[6]),64&t[0]&&ae(b,"value",e[6]),16384&t[0]&&$!==($=e[14]("dateFilter")+"")&&yi(C,$),I===(I=B(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(E,null))),0!==e[13].length?F?F.p(e,t):((F=Xh(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&ci(r),k&&k.d(),i[23](null),i[24](null),N.d(),F&&F.d(),T=!1,L()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[31](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[31](null)}}}function Qh(t,e,r){let i;Le(t,$e,e=>r(14,i=e));let n,o,a,s,l,{endpoint:c=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:p="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g=window.navigator.userAgent,y="PC"!==ke(g),v=(s=W(new Date).format("YYYY-MM-DD"),l=W(new Date).subtract(3,"months").format("YYYY-MM-DD")),w=s,b=0,_=0,x=0,C=0,P=0,E=[];Object.keys(Wh).forEach(e=>{zh(e,Wh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},T=t=>{var e=new URL(`${c}/v1/player/${d}/bonusWallet`),i=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(w).toISOString()}]`,i=(e.searchParams.append("filter",i),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,i).then(e=>e.json()).then(e=>{r(11,C=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,_=t+6),r(10,x=6*(C-1)),r(12,P=t/6),r(13,E=e.items)},e=>{console.error(e)}),window.postMessage({type:"ScrollToTop"},window.location.href)},L=e=>{v=e.target.value},M=e=>{w=e.target.value};Me(()=>()=>{o.removeEventListener("change",L),a.removeEventListener("change",M)});return t.$$set=e=>{"endpoint"in e&&r(18,c=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,p=e.lang),"clientstyling"in e&&r(1,h=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,Se.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",L,!1),a.addEventListener("change",M,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&T(0),12&t.$$.dirty[0]&&m&&n){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&n&&((e=document.createElement("style")).innerHTML=h,n.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{zh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,n,o,a,s,l,b,_,x,C,P,E,i,y,A,T,c,u,d,f,()=>A(),function(e){De[e?"unshift":"push"](()=>{o=e,r(4,o)})},function(e){De[e?"unshift":"push"](()=>{a=e,r(5,a)})},()=>T(0),()=>T(0),()=>T(b),e=>T(6*e),()=>T(_),()=>T(x),function(e){De[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function em(e,t){B(e,t)}customElements.define=(Hp=customElements.define,function(...e){try{return Hp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Qh,Jh,i,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),p()}});const tm={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."}};function im(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[3])||gi(r,"src",n),gi(r,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&!b(r.src,n=e[3])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function rm(e){let i,r,n=e[4]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function nm(i){let r,n,o,a,s,l=i[4]("title")+"",c=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[4]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){16&t&&g!==(g=e[4]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?rm:im}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","DepositTitle "+(i[5]?"DepositTitleNone":"")),gi(r,"class","DepositWrapper "+(i[5]?"DepositWrapperMobile":"")),L(r,"--dynamic-height",i[2])},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[18](r)},p(e,[t]){e[5]&&c.p(e,t),16&t&&l!==(l=e[4]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null))),4&t&&L(r,"--dynamic-height",e[2])},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[18](null)}}}function om(r,e,n){let t;Le(r,$e,e=>n(4,t=e));let o,i,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,{shortcashierenabled:f="false"}=e,g=window.navigator.userAgent,y="PC"!==ke(g),v=!0,w=0,b="";Object.keys(tm).forEach(e=>{em(e,tm[e])});const _=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:y},window.location.href)},x=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(7,m=e.data.profileDetails.currency),e.data["MMFE:setQuickDepositHeight"]&&n(2,i=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),"true"===e.data["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href)}};return Me(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)})),r.$$set=e=>{"endpoint"in e&&n(8,a=e.endpoint),"session"in e&&n(9,s=e.session),"playerid"in e&&n(10,l=e.playerid),"lang"in e&&n(11,c=e.lang),"hasdefaultamount"in e&&n(12,u=e.hasdefaultamount),"clientstyling"in e&&n(13,d=e.clientstyling),"clientstylingurl"in e&&n(14,p=e.clientstylingurl),"translationurl"in e&&n(15,h=e.translationurl),"playercurrency"in e&&n(7,m=e.playercurrency),"shortcashierenabled"in e&&n(16,f=e.shortcashierenabled)},r.$$.update=()=>{if(2048&r.$$.dirty&&c&&(i=c,Se.set(i)),16385&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8193&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),32768&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{em(e,t[e])})}).catch(e=>{console.log(e)}),69504&r.$$.dirty&&s&&l&&a&&m&&c&&f){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(f&&e.searchParams.append("isShortCashier",f),u)switch(m){case"USD":w=.4;break;case"CDF":w=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:w,cashierMode:"Default",IsShortCashier:f,accept:"application/json"}};console.log(t),fetch(e.href,t).then(e=>(console.log(e,"mata"),e.json())).then(e=>{n(1,v=!1),n(3,b=e.CashierUrl)},e=>{console.error(e)})}var i},[o,v,i,b,t,y,_,m,a,s,l,c,u,d,p,h,f,()=>_(),function(e){De[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function am(e,t){B(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},om,nm,i,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[8]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),p()}});const sm={en:{title:"Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"退出",loading:"加載請稍候…"},fr:{title:"Retrait",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere",loading:"Se încarcă..."},es:{title:"Retirar",loading:"Cargando..."},pt:{title:"Retirada",loading:"Carregando, por favor espere ..."}};function lm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function cm(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function um(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?cm:lm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(r,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function dm(r,e,n){let t;Le(r,$e,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==ke(i),g=!0,y=0,v="";Object.keys(sm).forEach(e=>{am(e,sm[e])});const w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},b=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href)}};return Me(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Se.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{am(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializewithdraw`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,w,m,a,s,l,c,u,d,p,h,()=>w(),function(e){De[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function pm(e,t){B(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},dm,um,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const hm={en:{title:"Pending Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"待取款",loading:"加載請稍候…"},fr:{title:"Retrait en cours",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere în așteptare",loading:"Se încarcă..."},es:{title:"Retiro Pendiente",loading:"Cargando..."},pt:{title:"Retirada pendente",loading:"Carregando, por favor espere ..."}};function mm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function fm(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function gm(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?fm:mm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(r,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function ym(i,e,r){let t;Le(i,$e,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==ke(p),m=!0,f="";Object.keys(hm).forEach(e=>{pm(e,hm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Se.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/pendingwithdrawals`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pm(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){De[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function vm(e,t){B(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ym,gm,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const wm={en:{title:"Transaction History",loading:"Loading, please wait ..."},"zh-hk":{title:"交易記錄",loading:"加載請稍候…"},fr:{title:"Historique des transactions",loading:"Chargement, veuillez patienter ..."},ro:{title:"Istoric tranzacții",loading:"Se încarcă..."},es:{title:"Historial de transacciones",loading:"Cargando ... Por favor espere ..."},pt:{title:"Histórico de transações",loading:"Carregando, por favor espere ..."}};function bm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function _m(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function xm(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?_m:bm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(r,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function Cm(i,e,r){let t;Le(i,$e,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==ke(p),m=!0,f="";Object.keys(wm).forEach(e=>{vm(e,wm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Se.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vm(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){De[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function Pm(e,t){B(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Cm,xm,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Em={en:{title:"Gaming History",return:"Return",previous:"Prev",next:"Next",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",numberOfResults:"Show:",noRecord:"You haven't played any games so far.",transactionId:"Transaction ID",date:"Date",gameName:"Game Name",stake:"Stake"},"zh-hk":{title:"遊戲歷史",return:"回來",previous:"上一頁",next:"下一個",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",numberOfResults:"節目:",noRecord:"到目前為止,您還沒有玩任何遊戲。",transactionId:"交易編號",date:"日期",gameName:"遊戲名稱",stake:"賭注"},fr:{title:"Historique des jeux",return:"Revenir",previous:"Précedent",next:"Suivant",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",numberOfResults:"Afficher:",noRecord:"Vous n'avez joué à aucun jeu jusqu'à présent.",transactionId:"Transaction ID",date:"Date",gameName:"Nom du jeu",stake:"Mise"},ro:{title:"Istoric jocuri",return:"Înapoi la meniu",previous:"Înapoi",next:"Înainte",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",numberOfResults:"Arată",noRecord:"Nu ai niciun istoric de jocuri în acest moment."},es:{title:"Historial de apuestas",return:"Regresar",previous:"Previo",next:"Siguiente",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",numberOfResults:"Mostrar:",noRecord:"Aún no ha jugado ningún juego",transactionId:"ID de Transacción",date:"Fecha",gameName:"Nombre del juego",stake:"Apostado"},pt:{title:"Histórico de jogos",return:"Voltar ao menu",previous:"Anterior",next:"Próximo",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",numberOfResults:"Mostrar:",noRecord:"Você não jogou nenhum jogo até agora."}};function Am(e,t,i){e=e.slice();return e[55]=t[i],e}function Tm(e,t,i){e=e.slice();return e[58]=t[i],e}function Lm(i){let r,n,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=Mm(Tm(i,u,e));return{c(){r=di("div"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(s,"class","PlayerGamingHistoryItemCount"),void 0===i[7]&&bi(()=>i[33].call(s)),gi(r,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[33]),fi(s,"change",i[34])],l=!0)},p(t,i){if(16384&i[0]&&e!==(e=t[14]("numberOfResults")+"")&&yi(o,e),32768&i[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=Tm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Mm(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function Mm(e){let i,r,t=e[58]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Dm(e){let i,r,n=e[14]("noRecord")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noRecord")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sm(e){let i,r,n;return{c(){i=di("p"),r=hi("Invalid data: "),n=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r),si(i,n)},p(e,t){256&t[0]&&yi(n,e[8])},d(e){e&&ci(i)}}}function $m(i){let r,n,o,a,s,l,F,c,u,O,d,p,R,H,z,W,j,U,Y,h,V,m,f,g,y,e,G,v,q,w,b,Z,_,x,X,K,C,P,E,A,T,J,Q,L=i[14]("transactionId")+"",M=i[14]("date")+"",D=i[14]("gameName")+"",S=i[14]("stake")+"",$=i[14]("return")+"",k=i[14]("previous")+"",B=i[14]("next")+"",I=i[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=Bm(Am(i,I,e));return{c(){r=di("div"),n=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(L),F=mi(),c=di("th"),u=hi(M),O=mi(),d=di("th"),p=hi(D),R=mi(),H=di("th"),z=hi(S),W=mi(),j=di("th"),U=hi($),Y=mi(),h=di("tbody");for(let e=0;e<N.length;e+=1)N[e].c();V=mi(),m=di("div"),f=di("button"),g=pi("svg"),y=pi("path"),G=mi(),v=di("span"),q=hi(k),Z=mi(),_=di("button"),x=di("span"),X=hi(B),K=mi(),C=pi("svg"),P=pi("path"),gi(r,"class","PlayerGamingHistoryContainer"),gi(y,"fill",e=i[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(y,"class","a"),gi(y,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(y,"transform","translate(19.246 -6.188) rotate(90)"),gi(g,"xmlns","http://www.w3.org/2000/svg"),gi(g,"width","8"),gi(g,"height","13.992"),gi(g,"viewBox","0 0 8 13.992"),gi(v,"class","PlayerPaginationControlsText"),gi(f,"class",w="PlayerPaginationControls "+(i[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=b=!i[5],gi(x,"class","PlayerPaginationControlsText"),gi(P,"fill",E=i[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(P,"class","a"),gi(P,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(P,"transform","translate(-11.246 20.179) rotate(-90)"),gi(C,"xmlns","http://www.w3.org/2000/svg"),gi(C,"width","8"),gi(C,"height","13.992"),gi(C,"viewBox","0 0 8 13.992"),gi(_,"class",A="PlayerPaginationControls "+(i[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=T=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(s,l),si(a,F),si(a,c),si(c,u),si(a,O),si(a,d),si(d,p),si(a,R),si(a,H),si(H,z),si(a,W),si(a,j),si(j,U),si(n,Y),si(n,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);li(e,V,t),li(e,m,t),si(m,f),si(f,g),si(g,y),si(f,G),si(f,v),si(v,q),si(m,Z),si(m,_),si(_,x),si(x,X),si(_,K),si(_,C),si(C,P),J||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],J=!0)},p(t,i){if(16384&i[0]&&L!==(L=t[14]("transactionId")+"")&&yi(l,L),16384&i[0]&&M!==(M=t[14]("date")+"")&&yi(u,M),16384&i[0]&&D!==(D=t[14]("gameName")+"")&&yi(p,D),16384&i[0]&&S!==(S=t[14]("stake")+"")&&yi(z,S),16384&i[0]&&$!==($=t[14]("return")+"")&&yi(U,$),1073152&i[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var r=Am(t,I,e);N[e]?N[e].p(r,i):(N[e]=Bm(r),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&i[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(y,"fill",e),16384&i[0]&&k!==(k=t[14]("previous")+"")&&yi(q,k),32&i[0]&&w!==(w="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&gi(f,"class",w),32&i[0]&&b!==(b=!t[5])&&(f.disabled=b),16384&i[0]&&B!==(B=t[14]("next")+"")&&yi(X,B),16&i[0]&&E!==(E=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(P,"fill",E),16&i[0]&&A!==(A="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&gi(_,"class",A),16&i[0]&&T!==(T=!t[4])&&(_.disabled=T)},d(e){e&&ci(r),ui(N,e),e&&ci(V),e&&ci(m),J=!1,ai(Q)}}}function km(e){let i;return{c(){gi(i=di("div"),"class","DataLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Bm(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,A,T,L,M=e[55].roundId+"",D=e[20](e[55])+"",S=e[55].gameModel.name+"",$=e[55].stakeAmount+"",k=e[55].returnAmount+"";return{c(){i=di("tr"),r=di("td"),n=di("span"),o=hi(M),l=mi(),c=di("td"),u=di("span"),d=hi(D),h=mi(),m=di("td"),f=di("span"),g=hi(S),v=mi(),w=di("td"),b=di("span"),_=hi($),C=mi(),P=di("td"),E=di("span"),A=hi(k),L=mi(),gi(r,"data-label",a=e[14]("transactionId")),gi(r,"title",s=e[55].roundId),gi(c,"data-label",p=e[14]("date")),gi(m,"data-label",y=e[14]("gameName")),gi(w,"data-label",x=e[14]("stake")),gi(P,"data-label",T=e[14]("return"))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,l),si(i,c),si(c,u),si(u,d),si(i,h),si(i,m),si(m,f),si(f,g),si(i,v),si(i,w),si(w,b),si(b,_),si(i,C),si(i,P),si(P,E),si(E,A),si(i,L)},p(e,t){8192&t[0]&&M!==(M=e[55].roundId+"")&&yi(o,M),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(r,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(r,"title",s),8192&t[0]&&D!==(D=e[20](e[55])+"")&&yi(d,D),16384&t[0]&&p!==(p=e[14]("date"))&&gi(c,"data-label",p),8192&t[0]&&S!==(S=e[55].gameModel.name+"")&&yi(g,S),16384&t[0]&&y!==(y=e[14]("gameName"))&&gi(m,"data-label",y),8192&t[0]&&$!==($=e[55].stakeAmount+"")&&yi(_,$),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(w,"data-label",x),8192&t[0]&&k!==(k=e[55].returnAmount+"")&&yi(A,k),16384&t[0]&&T!==(T=e[14]("return"))&&gi(P,"data-label",T)},d(e){e&&ci(i)}}}function Im(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,A,T,L,M,D=i[14]("title")+"",S=i[14]("dateFrom")+"",$=i[14]("dateTo")+"",k=i[14]("dateFilter")+"",B=i[16]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=!i[12].matches&&Lm(i);function O(e){return e[9]?km:0<e[13].length?$m:0<e[8].length?Sm:Dm}let N=O(i),F=N(i);return{c(){r=di("div"),n=di("div"),B&&B.c(),o=mi(),a=di("h2"),s=hi(D),l=mi(),c=di("div"),u=di("div"),d=di("div"),p=di("div"),h=di("span"),m=hi(S),f=mi(),g=di("vaadin-date-picker"),y=mi(),v=di("div"),w=di("span"),b=hi($),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),E=hi(k),A=mi(),I&&I.c(),T=mi(),F.c(),this.c=oe,gi(a,"class","PlayerGamingHistoryTitle "+(i[16]?"PlayerGamingHistoryTitleNone":"")),ae(g,"max",i[10]),ae(g,"placeholder","From"),ae(g,"value",i[11]),ae(g,"class","VaadinDatePicker"),gi(p,"class","PlayerGamingDateWrapper"),ae(x,"max",i[10]),ae(x,"placeholder","To"),ae(x,"value",i[10]),ae(x,"class","VaadinDatePicker"),gi(v,"class","PlayerGamingDateWrapper"),gi(d,"class","PlayerGamingDateContainer"),gi(P,"class","PlayerGamingHistoryFilterButton"),gi(u,"class","PlayerGamingHistoryFilterWrapper"),gi(c,"class","PlayerGamingHistoryTopSection"),gi(n,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,r,t),si(r,n),B&&B.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(d,p),si(p,h),si(h,m),si(p,f),si(p,g),i[30](g),si(d,y),si(d,v),si(v,w),si(w,b),si(v,_),si(v,x),i[31](x),si(u,C),si(u,P),si(P,E),si(u,A),I&&I.m(u,null),si(n,T),F.m(n,null),i[37](n),i[38](r),L||(M=fi(P,"click",i[32]),L=!0)},p(e,t){e[16]&&B.p(e,t),16384&t[0]&&D!==(D=e[14]("title")+"")&&yi(s,D),16384&t[0]&&S!==(S=e[14]("dateFrom")+"")&&yi(m,S),1024&t[0]&&ae(g,"max",e[10]),2048&t[0]&&ae(g,"value",e[11]),16384&t[0]&&$!==($=e[14]("dateTo")+"")&&yi(b,$),1024&t[0]&&ae(x,"max",e[10]),1024&t[0]&&ae(x,"value",e[10]),16384&t[0]&&k!==(k=e[14]("dateFilter")+"")&&yi(E,k),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=Lm(e)).c(),I.m(u,null)),N===(N=O(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(n,null)))},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),i[30](null),i[31](null),I&&I.d(),F.d(),i[37](null),i[38](null),L=!1,M()}}}function Nm(t,e,n){let i;Le(t,$e,e=>n(14,i=e));let r,o,a,s,l,c,{endpoint:u=""}=e,{playerid:d=""}=e,{session:p=""}=e,{lang:h="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{gmversion:y=""}=e,v="",w="",b="",_=W().format("YYYY-MM-DD"),x=W().format("YYYY-MM-DD"),C=["5","10","25","50"],P="5",E="",A=!1,T=window.navigator.userAgent,L="PC"!==ke(T),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(Em).forEach(e=>{Pm(e,Em[e])}),window.matchMedia("(min-width: 768px)")),M=window.matchMedia("(max-width: 1280px)"),D=[];const S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:L},window.location.href)},F=()=>{n(12,M=window.matchMedia("(max-width: 1280px)"))},O=(e,t,i)=>{var e=new URL(e),r=(n(13,D=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,A=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,D=e.transactions),n(13,D=(e=>{let r=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=r.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,r.set(e.roundId,i))}),Array.from(r.values())})(D)),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,A=!1)},e=>{n(9,A=!1),console.error(e)})},$=(e,t,i)=>{var r;"gm16"===y?O(e,t,i):(t=t,i=i,e=new URL(e),n(13,D=[]),n(8,E=""),r={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,A=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,D=e.transactions),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,A=!1)},e=>{n(9,A=!1),console.error(e)})),window.postMessage({type:"ScrollToTop"},window.location.href)},k=e=>{e.data&&e.data.type},B=e=>{_=e.target.value},I=e=>{x=e.target.value};return Me(()=>(window.addEventListener("message",k,!1),window.addEventListener("resize",F,!1),()=>{o.removeEventListener("change",B),a.removeEventListener("change",I),window.removeEventListener("message",k),window.removeEventListener("resize",k)})),t.$$set=e=>{"endpoint"in e&&n(21,u=e.endpoint),"playerid"in e&&n(22,d=e.playerid),"session"in e&&n(23,p=e.session),"lang"in e&&n(24,h=e.lang),"clientstyling"in e&&n(25,m=e.clientstyling),"clientstylingurl"in e&&n(26,f=e.clientstylingurl),"translationurl"in e&&n(27,g=e.translationurl),"gmversion"in e&&n(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",B,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,Se.set(e),n(3,v="gm16"===y?`${u}/v1/player/${d}/transactions/wagering?type=Casino`:`${u}/v1/player/${d}/bets`),$(v,!1,!0)),67108868&t.$$.dirty[0]&&f&&s){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e;33554436&t.$$.dirty[0]&&m&&s&&((e=document.createElement("style")).innerHTML=m,s.appendChild(e)),134217728&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Pm(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,w,b,void 0,P,E,A,l,c,M,D,i,C,L,N,S,$,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>S(),function(e){De[e?"unshift":"push"](()=>{o=e,n(0,o)})},function(e){De[e?"unshift":"push"](()=>{a=e,n(1,a)})},()=>$(v,!1,!0),function(){P=pe(this),n(7,P),n(15,C)},()=>$(v,!1,!0),()=>$(b,!0,!1),()=>$(w,!0,!1),function(e){De[e?"unshift":"push"](()=>{r=e,n(6,r)})},function(e){De[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function Fm(e,t){B(e,t)}customElements.define=(zp=customElements.define,function(...e){try{return zp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingHistoryWrapper .PlayerGamingHistoryTitle{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerGamingDateContainer{display:inline-flex;gap:20px}.PlayerGamingHistoryFilterWrapper,.PlayerGamingDateWrapper{display:inline-flex;align-items:center;gap:10px}.PlayerGamingHistoryFilterWrapper{margin-bottom:20px;gap:20px;width:100%}.PlayerGamingItemCountContainer{margin-left:auto}.PlayerGamingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:10px 0}.PlayerGamingHistoryContainer table{border:0}.PlayerGamingHistoryContainer table tr{border:0;background:var(--emfe-w-color-white, #FFFFFF)}.PlayerGamingHistoryContainer table tr:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead tr{border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead th{font-size:14px;font-weight:400}.PlayerGamingHistoryItemCount{padding:8px;border-radius:5px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);-webkit-appearance:none;-moz-appearance:none;appearance:none;width:60px;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center;cursor:pointer}.PlayerGamingHistoryItemCount:focus,.PlayerGamingHistoryItemCount :focus-within,.PlayerGamingHistoryItemCount :focus-visible,.PlayerGamingHistoryItemCount :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;gap:8px;cursor:pointer}.PlayerPaginationControls.PlayerPaginationControlsDisabled{color:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerPaginationControlsArea{margin-top:30px;display:flex;justify-content:center}.PlayerGamingHistoryFilterWrapper span{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:300;font-size:14px}.PlayerGamingHistoryFilterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:0;width:120px;height:40px;font-size:15px;text-transform:uppercase;padding:10px;cursor:pointer}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper{align-items:flex-start;gap:10px;flex-direction:column}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateContainer{gap:0;flex-direction:row;width:100%;justify-content:space-between}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper{display:block;gap:0;align-items:end;width:48%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper span{display:block;margin-bottom:5px}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingHistoryFilterButton{padding:15px 20px;width:100%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryTitle{font-size:16px;font-weight:400}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea{justify-content:center;gap:30px}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControls{align-items:center}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControlsText{font-size:16px}.PlayerGamingHistoryWrapperMobile .VaadinDatePicker{width:100%}table{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:fixed}table tr{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}table th,table td{padding:10px;text-align:center}table th:first-child,table td:first-child{padding-left:20px}table th:first-child span,table td:first-child span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}table th:last-child,table td:last-child{padding-right:20px}table th{font-size:0.85em;letter-spacing:0.1em;text-align:left}table tr td{font-size:12px;font-weight:300;text-align:left}@media screen and (max-width: 1024px){.PlayerGamingHistoryWrapper{padding:20px}.PlayerGamingHistoryContainer{box-shadow:none;padding:0}table{border:0}tbody{background:var(--emfe-w-color-gray-50, #F9F8F8)}table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}table tr{border-bottom:3px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);padding:10px}table tr:not(:last-child){margin-bottom:0.625em}table tr th,table tr td{border:0;border-radius:5px}table tr th:nth-child(even),table tr td:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}table th:first-child,table td:first-child{padding-left:10px}table th:last-child,table td:last-child{padding-right:10px}table td{border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:0.8em;text-align:right;display:flex}table th:first-child span,table td:first-child span{width:50%;text-align:right}table td::before{content:attr(data-label);float:left;font-weight:bold;text-transform:uppercase;flex:1}table td:last-child{border-bottom:0}}.DataLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.DataLoader:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nm,Im,i,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl","gmversion"]}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[22]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}get gmversion(){return this.$$.ctx[28]}set gmversion(e){this.$$set({gmversion:e}),p()}});const Om={en:{title:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{title:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{title:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"}};function Rm(i){let r,n,o,a,s,l,c,t,u,d,p;return{c(){r=di("div"),n=di("div"),o=di("div"),(a=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',s=mi(),l=di("slot"),gi(a,"class","ModalCloseBtn"),gi(a,"role","button"),gi(o,"class","LoginModalContainer"),gi(o,"part","LoginModalContainer"),gi(n,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),i[8](n),i[9](r),u=!0,d||(p=fi(a,"click",i[5]),d=!0)},p(e,t){i=e,(!u||16&t&&c!==(c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":"")))&&gi(n,"class",c)},i(e){u||(bi(()=>{u&&(t=t||ee(n,sd,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||ee(n,sd,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(r),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function Hm(e){let i,r,n="true"==e[0]&&Rm(e);return{c(){n&&n.c(),i=I(),this.c=oe},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){"true"==e[0]?n?(n.p(e,t),1&t&&K(n,1)):((n=Rm(e)).c(),K(n,1),n.m(i.parentNode,i)):n&&(Z(),J(n,1,1,()=>{n=null}),X())},i(e){r||(K(n),r=!0)},o(e){J(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function zm(t,e,i){let r,n,{show:o="false"}=e,{duration:a="350"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,c=!1,u=window.navigator.userAgent;const d=e=>{if("OpenLoginRegisterModal"===e.data.type)switch(window.postMessage({type:"DisableScroll"},window.location.href),i(0,o="true"),e.data.transition){case"Register":window.postMessage({type:"ToRegister"},window.location.href);break;case"Login":window.postMessage({type:"ToLogin"},window.location.href);break;case"ForgotPassword":window.postMessage({type:"ToForgotPassword",key:e.data.key},window.location.href)}"UserSessionID"===e.data.type&&(window.postMessage({type:"EnableScroll"},window.location.href),i(0,o="false"))};return Me(()=>(window.addEventListener("message",d,!1),i(4,c=un(u)),()=>{window.removeEventListener("message",d)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(6,s=e.clientstyling),"clientstylingurl"in e&&i(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),132&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,n,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){De[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){De[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function Wm(e){let i,r;return{c(){i=di("general-player-login-register-modal"),ae(r=di("om-betting-history-details"),"item-layout","V2"),ae(r,"cashoutserver","V2"),ae(r,"matchscorelayout","V2"),ae(r,"matchscorescope","BHDetailed"),ae(r,"tournament-route",":sportId/:tournamentId"),ae(r,"match-route",":sportId/:tournamentId/:matchId"),ae(r,"betid",e[1]),ae(i,"show",e[5]),ae(i,"clientstyling",e[2]),ae(i,"clientstylingurl",e[3])},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t&&ae(r,"betid",e[1]),32&t&&ae(i,"show",e[5]),4&t&&ae(i,"clientstyling",e[2]),8&t&&ae(i,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}function jm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_=i[6]("bettingHistory.title")+"",x=i[6]("bettingHistory.openBets")+"",C=i[6]("bettingHistory.settledBets")+"",P=i[7]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),E="true"===i[5]&&i[1]&&Wm(i);return{c(){r=di("div"),P&&P.c(),n=mi(),o=di("h2"),a=hi(_),s=mi(),l=di("div"),c=di("button"),u=hi(x),d=mi(),p=di("button"),h=hi(C),m=mi(),f=di("om-betting-history-list"),g=mi(),E&&E.c(),y=mi(),v=di("div"),this.c=oe,gi(o,"class","BettingHistoryTitle "+(i[7]?"BettingHistoryTitleNone":"")),gi(o,"part","`BettingHistoryTitleMobile"),gi(c,"class","BettingHistoryButton "+(i[7]?"BettingHistoryButtonMobile":"")),T(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),T(p,"BettingHistoryButtonSelected","settledBets"===i[0]),T(p,"mobile",i[7]),gi(l,"class","BettingHistoryTabs"),ae(f,"bet-status",i[0]),ae(f,"item-layout","V2"),ae(f,"match-score-layout","v2"),ae(f,"match-score-scope","BHDetailed"),ae(f,"date-format","dd.mm.yyyy"),ae(f,"time-format","HH:MM"),ae(f,"tournament-route",":sportId/:tournamentId"),ae(f,"match-route",":betId"),gi(v,"class","OM-MatchScore OM-MatchScore__List"),gi(r,"class","BettingHistoryWrapper"),T(r,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,r,t),P&&P.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(r,m),si(r,f),si(r,g),E&&E.m(r,null),si(r,y),si(r,v),i[16](r),w||(b=[fi(c,"click",i[14]),fi(p,"click",i[15]),fi(f,"routeChange",i[10])],w=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&yi(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&yi(u,x),1&t&&T(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&T(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&ae(f,"bet-status",e[0]),"true"===e[5]&&e[1]?E?E.p(e,t):((E=Wm(e)).c(),E.m(r,y)):E&&(E.d(1),E=null)},i:oe,o:oe,d(e){e&&ci(r),P&&P.d(),E&&E.d(),i[16](null),w=!1,ai(b)}}}function Um(t,e,i){let r;Le(t,$e,e=>i(6,r=e));let n,{betstatus:o="openBets"}=e,{lang:a="en"}=e,{selectedBetId:s=null}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,d="false",p=window.navigator.userAgent,h="PC"!==ke(p);Object.entries(Om).forEach(([e,t])=>{Fm(e,t)});const m=e=>{i(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&i(5,d="false")};return Me(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&i(0,o=e.betstatus),"lang"in e&&i(11,a=e.lang),"selectedBetId"in e&&i(1,s=e.selectedBetId),"clientstyling"in e&&i(2,l=e.clientstyling),"clientstylingurl"in e&&i(3,c=e.clientstylingurl),"translationurl"in e&&i(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,Se.set(e)),20&t.$$.dirty&&l&&n&&((e=document.createElement("style")).innerHTML=l,n.appendChild(e)),24&t.$$.dirty&&c&&n){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,n,d,r,h,m,f,e=>{e=e.detail.params.betId;i(1,s=e),i(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){De[e?"unshift":"push"](()=>{n=e,i(4,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LoginModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.LoginModalWindow .LoginModalContainer{width:90%;max-width:992px;height:auto;min-height:650px;padding:30px 60px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-registration-color-modal-bg, var(--emfe-w-color-white, #FFFFFF))}.LoginModalWindow .ModalCloseBtn{position:absolute;top:15px;right:15px;width:24px;height:24px;border-radius:100%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.LoginModalWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.LoginModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.LoginModalMobileWindow{width:100%;display:block}.LoginModalMobileWindow .LoginModalContainer{width:100%;height:100%;padding:0;border-top:0;border-radius:0}.LoginModalMobileWindow .LoginModalContainer .ModalCloseBtn{top:10px;right:10px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},zm,Hm,i,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}}),customElements.get("player-account-betting-history")||customElements.define("player-account-betting-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@import \'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css\';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #fff);border:2px solid var(--emfe-w-color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emfe-w-color-white, #fff);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Um,jm,i,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["betstatus","lang","selectedBetId","clientstyling","clientstylingurl","translationurl"]}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Ym={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"}},ce={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function Vm(e,t){B(e,t)}const Gm={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",newPeriodLimit:"New monthly limit",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",setLimit:"SET LIMIT",loss:"Loss Limit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",deposit:"Deposit Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",popupUpdateLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",popupRemoveLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",notFoundException:"Limit does not exist",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"The value entered must be higher than {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be less than {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",okButton:"OK"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Der eingegebene Wert muss kleiner sein als. {minValue} {currency}.",invalidInputMessageLimitMax:"Der eingegebene Wert muss höher sein als {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},hr:{loadingText:"Učitavanje...",Monthly:"Mjesečno",Weekly:"Tjedno",Daily:"Dnevno",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mjesečno",adjectiveWeekly:"Tjedno",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno",noLimitText:"Trenutno nije postavljeno nijedno ograničenje.",lugasPrivacy:"Sveobuhvatno LUGAS ograničenje nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Vremenski period",amount:"Iznos",minutes:"minutes",setLimit:"POSTAVI OGRANIČENJA",loss:"Ograničenje gubitka",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Ograničenje uplate",wager:"Ograničenje slotova",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"UKLONI",popupPendingUpdate:"Zaprimili smo zahtjev za promjenom ograničenja. Molimo uzmite u obzir kako će promijena stupiti na snagu tek",popupImmediateUpdate:"Vaše novo {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje je promijenjeno!",popupSuccess:"Uspješno",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrijednost koju ste unijeli mora biti manja odn {minValue} {currency}.",invalidInputMessageLimitMax:"Vrijednost koju ste unijeli mora biti veća od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},sl:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:"minutes",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",popup3:"Thank you! \n We have transmitted your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrednost, ki jo vnesete, mora biti manjša od {minValue} {currency}.",invalidInputMessageLimitMax:"Vrednost, ki jo vnesete, mora biti višja od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},pl:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:"",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:"minutes",setLimit:"USTAW LIMIT",loss:"Limit Strat",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Wprowadzona wartość musi być niższa niż {minValue} {currency}.",invalidInputMessageLimitMax:"Wprowadzona wartość musi być wyższa niż {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},fr:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",newPeriodLimit:"New monthly limit",per:"par",updateText:"sera appliqué sur",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."},ro:{loadingText:"Se încarcă, va rugam așteptați ...",Monthly:"lunara",Weekly:"saptamanala",Daily:"zilnica",newPeriodLimit:"Noua limita lunară",adjectiveMonthly:"lunara",adjectiveWeekly:"saptamanala",adjectiveDaily:"zilnica",None:"",noPeriod:".",per:"pe",updateText:"se va aplica in",removedLimitText:"Limita va fi anulată in",noLimitText:"Momentan nu exista nicio limita setată.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Tip limita",period:"Perioada",amount:"Suma",minutes:"minute",setLimit:"SETEAZA LIMITA",loss:"Limita pierdere",lossAll:"Limita pierdere",lossCasino:"Limita pierdere",lossSports:"Limita pierdere",deposit:"Limita depunere",depositAll:"Limita depunere",depositCasino:"Limita depunere",depositSports:"Limita depunere",wager:"Limita pariere",stake:"Limita miza",stakeAll:"Limita miza",stakeCasino:"Limita miza",stakeSports:"Limita miza",lugas:"Limita depunere curenta",lugasAll:"Limita depunere curenta",lugasCasino:"Limita depunere curenta",lugasSports:"Limita depunere curenta",wagerAll:"Limita pariere",wagerCasino:"Limita pariere",wagerSports:"Limita pariere",sessionLimit:"Limita timp pe sesiune",sessionLimitUpdated:"Limita de timp pe sesiune a fost salvata cu succes.",cumulativeSession:"Limita timp cumulata",removeLimit:"ANULEAZA",popupPendingUpdate:"Am primit cererea de modificare a limitei. Va rugam sa rețineri ca actualizarea va intra in vigoare doar in",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount} {currency} {selectedPeriod}",popupTitle:"Limita modificata",popupSuccess:"Succes",popupError:"A apărut o eroare.",popup3:"Va multumim! \n Am transmis limita dorita catre Lugas \n Va rugam sa rețineri ca limita va intra in vigoare numai după 8 zile cel târziu.",popup2_a:"Am putut seta limit dvs. lunară de depunere la ",popup2_b:". Pentru limita selectata, solicitam documente care sa arate capacitatea dumneavoastră economica. Va rugam sa încărcați ultima fisa de plata, precum si un extras de cont bancar curent, inclusiv soldul, care confirma ca ati primit plata.",kycNeeded2:"Pentru a creste limita la suma dorita, va rugam sa ne furnizați informațiile relevante. Aceste informații pot fi transmise prin încărcarea documentelor.",uploadDocumentsButton:"INCARCA DOCUMENTE",closeButton:"INCHIDE",invalidInputMessageLimit:"Valoarea introdusă trebuie sa fie între {minValue} si {maxValue} {currency}.",unableToUpdatePendingRequest:"Nu am putut sa actualizam limita deoarece o alta actualizare este deja in așteptare. Va rugam încercați din nou după ce actualizarea curenta este aplicată.",docsRequired:"Documente necesare!",okButton:"OK"},es:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",newPeriodLimit:"New monthly limit",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",setLimit:"Fijar límite",loss:"Límite de pérdida",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimitMin:"El valor ingresado debe ser menor que {minValue} {currency}.",invalidInputMessageLimitMax:"El valor ingresado debe ser mayor que {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado",okButton:"OK"},pt:{loadingText:"Carregando, por favor espere...",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."}},qm=u["document"];function Zm(e,t,i){e=e.slice();return e[102]=t[i],e}function Xm(e,t,i){e=e.slice();return e[105]=t[i],e[107]=i,e}function Km(e,t,i){e=e.slice();return e[105]=t[i],e}function Jm(e,t,i){e=e.slice();return e[110]=t[i],e}function Qm(e){let i,r;function n(e){return e[18]?ef:tf}let o=n(e),a=o(e);return{c(){i=di("div"),r=di("div"),a.c(),gi(r,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,r),a.m(r,null)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},d(e){e&&ci(i),a.d()}}}function ef(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[22]("popupTitle")+"";function b(e){return e[16]?of:2==e[20]?nf:rf}let _=b(i),x=_(i);function C(e){return e[16]?lf:2==e[20]?sf:af}let P=C(i),E=P(i);function A(e){return 2==e[20]?uf:cf}let T=A(i),L=T(i);return{c(){r=di("div"),n=di("span"),o=hi(w),a=mi(),(s=di("button")).textContent="X",l=mi(),c=di("div"),u=di("div"),x.c(),d=mi(),E.c(),p=mi(),h=di("p"),m=hi(i[19]),f=mi(),L.c(),g=I(),gi(n,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(r,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s),li(e,l,t),li(e,c,t),si(c,u),x.m(u,null),si(u,d),E.m(u,null),si(c,p),si(c,h),si(h,m),li(e,f,t),L.m(e,t),li(e,g,t),y||(v=fi(s,"click",i[31]),y=!0)},p(e,t){4194304&t[0]&&w!==(w=e[22]("popupTitle")+"")&&yi(o,w),_!==(_=b(e))&&(x.d(1),x=_(e))&&(x.c(),x.m(u,d)),P===(P=C(e))&&E?E.p(e,t):(E.d(1),(E=P(e))&&(E.c(),E.m(u,null))),524288&t[0]&&yi(m,e[19]),T===(T=A(e))&&L?L.p(e,t):(L.d(1),(L=T(e))&&(L.c(),L.m(g.parentNode,g)))},d(e){e&&ci(r),e&&ci(l),e&&ci(c),x.d(),E.d(),e&&ci(f),L.d(e),e&&ci(g),y=!1,v()}}}function tf(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function rf(e){let i,r,n,o,a,s;return{c(){i=pi("svg"),r=pi("defs"),n=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(n,"type","text/css"),gi(s,"class","fil0"),gi(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"xml:space","preserve"),gi(i,"version","1.1"),L(i,"shape-rendering","geometricPrecision"),L(i,"text-rendering","geometricPrecision"),L(i,"image-rendering","optimizeQuality"),gi(i,"viewBox","0 0 90 69"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"fill-rule","evenodd"),gi(i,"clip-rule","evenodd")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function nf(e){let i,r,n;return{c(){i=pi("svg"),r=pi("g"),gi(n=pi("path"),"id","XMLID_6_"),gi(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),gi(r,"id","XMLID_1_"),gi(i,"version","1.1"),gi(i,"id","Layer_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 512 512"),L(i,"enable-background","new 0 0 512 512"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n)},d(e){e&&ci(i)}}}function of(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b;return{c(){i=pi("svg"),r=pi("g"),n=pi("path"),o=pi("path"),a=pi("g"),s=pi("g"),l=pi("g"),c=pi("g"),u=pi("g"),d=pi("g"),p=pi("g"),h=pi("g"),m=pi("g"),f=pi("g"),g=pi("g"),y=pi("g"),v=pi("g"),w=pi("g"),b=pi("g"),gi(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),gi(o,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),gi(i,"version","1.1"),gi(i,"id","Capa_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 52 52"),L(i,"enable-background","new 0 0 52 52"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,o),si(i,a),si(i,s),si(i,l),si(i,c),si(i,u),si(i,d),si(i,p),si(i,h),si(i,m),si(i,f),si(i,g),si(i,y),si(i,v),si(i,w),si(i,b)},d(e){e&&ci(i)}}}function af(e){let i,r,n=e[22]("popupSuccess")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupSuccess")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function sf(e){let i,r,n=e[22]("docsRequired")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("docsRequired")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function lf(e){let i,r,n=e[22]("popupError")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function cf(i){let r,n,o,a,s=i[22]("okButton")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","ConfirmButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function uf(i){let r,n,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){r=di("button"),n=hi(u),o=mi(),a=di("button"),s=hi(d),gi(r,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,r,t),si(r,n),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(r,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(n,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function df(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,e=i[13]?""+i[22]("amount"):""+i[22]("newPeriodLimit"),_=i[22]("setLimit")+"",x=i[4],C=[];for(let e=0;e<x.length;e+=1)C[e]=Cf(Km(i,x,e));let P=i[12]&&Pf(i),E=i[13]&&Af(i),A=i[21]&&Lf(i);return{c(){r=di("div"),n=di("div"),o=di("div");for(let e=0;e<C.length;e+=1)C[e].c();a=mi(),s=di("form"),P&&P.c(),l=mi(),E&&E.c(),c=mi(),u=di("label"),d=di("span"),p=hi(e),h=mi(),m=di("input"),f=mi(),A&&A.c(),g=mi(),y=di("button"),v=hi(_),gi(o,"class","LimitsList "+(i[23]?"Desktop":"")),gi(d,"class","LimitInputText"),gi(m,"type","number"),gi(m,"pattern","[0-9]*"),gi(u,"class","LimitAmountInputWrapper"),gi(y,"class","LimitSubmitButton"),gi(y,"type","button"),y.disabled=!0,gi(s,"class","LimitsInteractionArea "+(i[23]?"Desktop":"")),gi(n,"class","LimitsPageContainer"),gi(r,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(n,a),si(n,s),P&&P.m(s,null),si(s,l),E&&E.m(s,null),si(s,c),si(s,u),si(u,d),si(d,p),si(u,h),si(u,m),vi(m,i[8]),si(u,f),A&&A.m(u,null),si(s,g),si(s,y),si(y,v),i[51](y),w||(b=[fi(m,"input",i[50]),fi(m,"keydown",i[33]),fi(m,"keyup",i[27]),fi(y,"click",i[26]),fi(s,"submit",i[26])],w=!0)},p(t,i){if(1623195666&i[0]){let e;for(x=t[4],e=0;e<x.length;e+=1){var r=Km(t,x,e);C[e]?C[e].p(r,i):(C[e]=Cf(r),C[e].c(),C[e].m(o,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=x.length}t[12]?P?P.p(t,i):((P=Pf(t)).c(),P.m(s,l)):P&&(P.d(1),P=null),t[13]?E?E.p(t,i):((E=Af(t)).c(),E.m(s,c)):E&&(E.d(1),E=null),4202496&i[0]&&e!==(e=t[13]?""+t[22]("amount"):""+t[22]("newPeriodLimit"))&&yi(p,e),256&i[0]&&de(m.value)!==t[8]&&vi(m,t[8]),t[21]?A?A.p(t,i):((A=Lf(t)).c(),A.m(u,null)):A&&(A.d(1),A=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(r),ui(C,e),P&&P.d(),E&&E.d(),A&&A.d(),i[51](null),w=!1,ai(b)}}}function pf(e){let i;return{c(){(i=di("p")).textContent="500 Server error"},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function hf(e){return{c:oe,m:oe,p:oe,d:oe}}function mf(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function ff(e){let i,r,n,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function gf(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function yf(t){let n,o=t[105].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=xf(Jm(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[105].currentLimits,e=0;e<o.length;e+=1){var r=Jm(t,o,e);a[e]?a[e].p(r,i):(a[e]=xf(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function vf(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function wf(e){let i,r,n=e[22]("removedLimitText")+" "+e[110].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=e[22]("removedLimitText")+" "+e[110].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function bf(e){let i,r,n=""+e[110].updateAmount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} ${e[22](""+e[110].period)} ${e[22]("updateText")} `+e[110].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=""+e[110].updateAmount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} ${e[22](""+e[110].period)} ${e[22]("updateText")} `+e[110].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function _f(i){let r,n,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[110])}return{c(){r=di("button"),n=hi(s),gi(r,"class","RemoveLimitButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function xf(e){let i,r,n,o,a,s,l,c,u=""+e[110].amount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} `+e[22](""+e[110].period),d=!e[110].isModified&&-1<e[1].indexOf(e[105].value);function p(e,t){return(s=null==(s=16&t[0]?null:s)?!!(e[110].isModified&&0<+e[110].updateAmount.replaceAll(",","")):s)?bf:e[110].isModified?wf:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&_f(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(n,"class","CurrentLimit"),gi(r,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),m&&m.m(r,null),si(i,l),f&&f.m(i,null),si(i,c)},p(e,t){4194320&t[0]&&u!==(u=""+e[110].amount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} `+e[22](""+e[110].period))&&yi(o,u),h===(h=p(e,t))&&m?m.p(e,t):(m&&m.d(1),(m=h&&h(e))&&(m.c(),m.m(r,null))),(d=18&t[0]?!e[110].isModified&&-1<e[1].indexOf(e[105].value):d)?f?f.p(e,t):((f=_f(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function Cf(e){let i,r,n,o,a,s=e[30](e[105])+"";function l(e){return"lugas"===e[105].value?vf:0<e[105].currentLimits.length?yf:"lugas"===e[105].value?gf:ff}let c=l(e),u=c(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),u.c(),a=mi(),gi(r,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[105])+"")&&yi(n,s),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(i,a)))},d(e){e&&ci(i),u.d()}}}function Pf(i){let r,n,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=Ef(Xm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&bi(()=>i[47].call(s)),gi(r,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[47]),fi(s,"change",i[48])],l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("limitType")+"")&&yi(o,e),1073741840&i[0]){let e;for(u=t[4],e=0;e<u.length;e+=1){const o=Xm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Ef(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}128&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function Ef(e){let i,r,n=e[30](e[105])+"";return{c(){i=di("option"),r=hi(n),i.__value=e[107],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[30](e[105])+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Af(i){let r,n,o,a,s,l,c,e=i[22]("period")+"",u=i[3][i[5]].periods,d=[];for(let e=0;e<u.length;e+=1)d[e]=Tf(Zm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&bi(()=>i[49].call(s)),gi(r,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[6],!0),l||(c=fi(s,"change",i[49]),l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("period")+"")&&yi(o,e),4194344&i[0]){let e;for(u=t[3][t[5]].periods,e=0;e<u.length;e+=1){const o=Zm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Tf(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}104&i[0]&&wi(s,t[6])},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function Tf(e){let i,r,n,o=e[22](e[102])+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[102],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[102])+"")&&yi(r,o),40&t[0]&&n!==(n=e[102])&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Lf(e){let i,r,n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}});return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4197633&t[0]&&n!==(n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}}))&&yi(r,n)},d(e){e&&ci(i)}}}function Mf(i){let r,n,o,a,s=i[17]&&Qm(i);function l(e){return e[14]&&!e[17]?mf:e[14]?hf:e[15]?pf:df}let c=l(i),u=c(i);return{c(){r=di("meta"),n=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=oe,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1")},m(e,t){si(qm.head,r),li(e,n,t),li(e,o,t),s&&s.m(o,null),si(o,a),u.m(o,null),i[52](o)},p(e,t){e[17]?s?s.p(e,t):((s=Qm(e)).c(),s.m(o,a)):s&&(s.d(1),s=null),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(o,null)))},i:oe,o:oe,d(e){ci(r),e&&ci(n),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function Df(s,e,l){let c;Le(s,$e,e=>l(22,c=e));let u,a,t,F,O,{lang:d="en"}=e,{currency:p=""}=e,{limits:r=""}=e,{session:h=""}=e,{userid:m=""}=e,{endpoint:f=""}=e,{apiversion:g=""}=e,{customcurrencysymbols:y=""}=e,{deletelimit:R=""}=e,{amountsconfig:v=""}=e,{periodsconfig:H=""}=e,{clientstyling:z=""}=e,{clientstylingurl:W=""}=e,{translationurl:j=""}=e,U=window.navigator.userAgent,Y=!un(U),w=[],b="",_="",x="",C=0,P="",E="",V="",A={},G=!1,q=!1,T=!0,L=!1,Z=!1,n=!1,M=!1,D="",S=[],i=!1,X={},$={EUR:"€",RON:" lei",USD:"$"};const K={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},J=(Object.keys(Gm).forEach(e=>{Vm(e,Gm[e])}),()=>{l(5,b=w[C].value),l(6,_=ce[b].periods[0]),l(13,q=1<ce[b].periods.length)}),Q=()=>{x=w[C].product},k=e=>{if(!(300<=e.status))return l(16,Z=!1),e.json();{let i;throw l(15,L=!0),e.json().then(t=>{for(const e in K)if(K[e].some(e=>t.error.includes(e))){i=e;break}console.error("errType",i),i||o(t)}).finally(()=>{i&&o(i),l(15,L=!1),l(14,T=!1)}),new Error("An error occured during the fetch request")}},B=()=>{switch(g){case"gmcore":{l(14,T=!0);let e=new URL(`/v2/player/${m}/limits`,f),t={method:"GET",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then(e=>k(e)).then(e=>{S=e,n&&o(),ee(S),te(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{l(14,T=!1)})}break;case"gm16":{l(14,T=!0),S=[];let e=new URL(`/v1/player/${m}/limits/monetary`,f),t=new URL(`/v1/player/${m}/limits/session`,f),i=!1,r={method:"GET",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then(e=>k(e)).then(e=>{S.push(e),n&&o(),"gmcore"===g&&ee(S),"gm16"===g&&ie(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,T=!1),i=!0}),fetch(t.href,r).then(e=>k(e)).then(e=>{S.push(e),n&&o(),"gm16"===g&&re(S),"gm16"===g&&ne(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,T=!1),i=!0});return}}},ee=o=>{w.forEach(n=>{n.currentLimits=[];var e=Array.isArray(o[ce[n.value].callValue])?o[ce[n.value].callValue]:[o[ce[n.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,r=o[ce[n.value].callValue][t];n.currentLimits.push({}),n.currentLimits[t].limitType=n.value,n.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),n.currentLimits[t].currency=null!=(i=$[r.currency])?i:r.currency,n.currentLimits[t].period=r.period,n.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.updateAmount),n.currentLimits[t].isModified=r.isModified,n.currentLimits[t].expiryDate=new Date(r.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),n.currentLimits=I(n.currentLimits))})},te=r=>{const n=c("minutes");w.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=r[ce[i.value].callValue])&&e.forEach((e,t)=>{t=r[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:n,isModified:t.isModified,period:"cumulativeSession"===i.value?t.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"})}),i.currentLimits=I(i.currentLimits)})},ie=r=>{var e;null!=(e=r[0])&&e.limits&&w.forEach(e=>{var t;e.currentLimits=[];for(const i of r[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const r=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),currency:null!=(t=$[r.currency])?t:r.currency,isModified:0<r.schedules.length,period:r.period,product:r.products[0],updateAmount:0<r.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.schedules[0].updateAmount):"",expiryDate:0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:r.id})}e.currentLimits=I(e.currentLimits)})},re=t=>{var e;null!=(e=t[1])&&e.sessionLimit&&w.filter(e=>"sessionLimit"===e.value).forEach(e=>{e.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.minutes),currency:c("minutes"),isModified:t[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.updateMinutes),expiryDate:t[1].sessionLimit.expiryDate}),e.currentLimits=I(e.currentLimits)})},ne=i=>{var e;null!=(e=i[1])&&e.cumulativeSessionLimits&&w.filter(e=>"cumulativeSession"===e.value).forEach(e=>{for(const t of i[1].cumulativeSessionLimits)e.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:c("minutes"),isModified:t.isModified,period:t.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:t.expiryDate});e.currentLimits=I(e.currentLimits)})},I=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},oe=()=>{l(21,i=!1),null!=A&&A[b]?(l(10,P=A[b].min),l(11,E=A[b].max)):(l(10,P=1),l(11,E=9999999))},o=e=>{var t,i,r;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),L)l(16,Z=!0),e&&!e.thirdPartyResponse&&l(19,D=c(""+e)),e&&e.thirdPartyResponse&&l(19,D=e.thirdPartyResponse.message),e&&(null==(t=null==e?void 0:e.error)?void 0:t.includes("Limit update is not permitted due to LimitUpdateControl"))&&l(19,D=c("popupUpdateLimitException")),e&&(null==(t=null==e?void 0:e.error)?void 0:t.includes("Limit remove is not permitted due to LimitUpdateControl"))&&l(19,D=c("popupRemoveLimitException")),e&&(null==(e=null==e?void 0:e.error)?void 0:e.includes("[NotFoundException] Limit does not exist"))&&l(19,D=c("notFoundException")),l(18,M=!0);else switch(g){case"gmcore":"sessionLimit"===b||"cumulativeSession"===b?S&&(i=S[ce[b].callValue].filter(e=>(e.period===_||"None"===_)&&e.products[0]===x)[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.minutes),r=c("popupImmediateUpdate").replace("{selectedLimit}",c(""+b)).replace("{updatedAmount}",r).replace("{currency}",c("minutes")).replace("{selectedPeriod}",c(""+_)),l(19,D=i.isModified?`${c("popupPendingUpdate")} ${new Date(i.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)):S&&(i=S[ce[b].callValue].filter(e=>e.period===_)[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.amount),r=c("popupImmediateUpdate").replace("{selectedLimit}",se()).replace("{updatedAmount}",r).replace("{currency}",$[i.currency]||i.currency).replace("{selectedPeriod}",c(""+_)),l(19,D=i.isModified?`${c("popupPendingUpdate")} ${new Date(i.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)),l(18,M=!0);break;case"gm16":if("lugas"===b)2==F&&l(19,D=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(O)+` ${p} `+c("popup2_b")),3==F&&l(19,D=c("popup3")),l(18,M=!0);else if("sessionLimit"===b||"cumulativeSession"===b)l(19,D=c("sessionLimitUpdated")),l(18,M=!0);else{var n,o=(null==(n=S[0])?void 0:n.limits)||S.limits;if(S){const n=o.filter(e=>e.type===ce[b].callValue16&&(e.period===_||"None"===e.period)&&e.products[0]===x)[0],a=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),s=0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";o=c("popupImmediateUpdate").replace("{selectedLimit}",se()).replace("{updatedAmount}",a).replace("{currency}",$[n.currency]||n.currency).replace("{selectedPeriod}",c(""+_));l(19,D=0<n.schedules.length?c("popupPendingUpdate")+" "+s:o)}l(18,M=!0)}break;default:throw new Error("Invalid apiversion attribute: "+g)}},N=()=>{l(17,n=!0),window.postMessage({type:"DisableScroll"},window.location.href)},ae=e=>{switch(g){case"gmcore":t=e,l(5,b=t.limitType),l(6,_=t.period),N(),l(14,T=!0),i=new URL(`/v2/player/${m}/limits/`+{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[t.limitType],f),"sessionLimit"!==t.limitType&&i.searchParams.append("periods",t.period),t={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}},fetch(i.href,t).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)});break;case"gm16":("sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?e=>{const t=new URL(`/v1/player/${m}/limits/session/session`,f),i=new URL(`/v1/player/${m}/limits/session/cumulativeSession?periods=${e.period}`,f);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}N(),l(14,T=!0);let n={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,n).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})}:e=>{const t=new URL(`/v1/player/${m}/limits/monetary/${e.id}`,f);N(),l(14,T=!0);let i={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})})(e)}var t,i},se=e=>{return c(e?e.value+e.product:b)},le=()=>{l(18,M=l(17,n=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)};return s.$$set=e=>{"lang"in e&&l(34,d=e.lang),"currency"in e&&l(0,p=e.currency),"limits"in e&&l(35,r=e.limits),"session"in e&&l(36,h=e.session),"userid"in e&&l(37,m=e.userid),"endpoint"in e&&l(38,f=e.endpoint),"apiversion"in e&&l(39,g=e.apiversion),"customcurrencysymbols"in e&&l(40,y=e.customcurrencysymbols),"deletelimit"in e&&l(1,R=e.deletelimit),"amountsconfig"in e&&l(41,v=e.amountsconfig),"periodsconfig"in e&&l(42,H=e.periodsconfig),"clientstyling"in e&&l(43,z=e.clientstyling),"clientstylingurl"in e&&l(44,W=e.clientstylingurl),"translationurl"in e&&l(45,j=e.translationurl)},s.$$.update=()=>{if(512&s.$$.dirty[1]&&y&&y){let t={};y.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),$=Object.assign(Object.assign({},$),t)}if(3072&s.$$.dirty[1]&&H&&v){[...v.matchAll(/\(([^)]+)\)/g)].flat().filter(e=>!e.includes("(")).forEach(e=>{ce[e]?w.push(Object.assign({},ce[e])):console.error("Unknown limit: "+e)});{var e,t;const o=v.split(",").map(e=>e.split(":")),a=H.split(",").map(e=>e.split(":"));for([e,t]of o.entries())if(t[0]!==a[e][0])throw new Error(`Limit config mismatch: "${t[0]}" does not match "${a[e][0]}"`);var i=o.reduce((e,t,i)=>{var r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:a[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:ce[r].callValue,callValue16:ce[r].callValue16,title:ce[r].title};return e.push(t),e},[]);for(let e=0;e<i.length;e++)l(4,w[e].product=i[e].product,w),l(4,w[e].min=parseInt(i[e].minMax.split("-")[0],10),w),l(4,w[e].max=parseInt(i[e].minMax.split("-")[1],10),w),l(3,ce[i[e].value].periods=i[e].periods,ce);V=null==(n=w[0])?void 0:n.value,w.forEach(e=>{A[e.value]={min:e.min,max:e.max},X[e.value]=e.product}),A&&(A[V]?(l(10,P=A[V].min),l(11,E=A[V].max)):(l(10,P=1),l(11,E=9999999)))}l(5,b=w[0].value),l(6,_=ce[b].periods[0]),x=w[0].product,l(12,G=1<w.length),l(13,q=1<ce[b].periods.length)}if(8&s.$$.dirty[1]&&d&&(n=d,Se.set(n)),488&s.$$.dirty[1]&&m&&h&&f&&g&&d&&B(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&W&&u){let e=new URL(W),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var r,n;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&z&&u&&((r=document.createElement("style")).innerHTML=z,u.appendChild(r)),16384&s.$$.dirty[1]&&j&&fetch(j).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vm(e,t[e])})}).catch(e=>{console.log(e)})},[p,R,u,ce,w,b,_,C,a,t,P,E,G,q,T,L,Z,n,M,D,F,i,c,Y,J,Q,()=>{switch(g){case"gmcore":if(0<a){N(),l(14,T=!0);let e=new URL(`/v2/player/${m}/limits`,f),t={};"sessionLimit"===b?t={sessionLimit:a,sessionLimitUnit:"minute"}:t[ce[b].callValue]="cumulativeSession"===b?[{period:_,minutes:a}]:[{period:"None"===ce[b].periods[0]?null:_,amount:a,currency:p}];var i={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,i).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.error(e),l(15,L=!0)})}break;case"gm16":"lugas"===b?0<a&&(N(),l(14,T=!0),i=new URL(`/v2/player/${m}/limit/lugas`,f),o={amount:a,roleLimitAmount:0,softMigration:!1,keepLimit:!1},o={method:"POST",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)},fetch(i.href,o).then(e=>k(e)).then(e=>{l(20,F=e.popup),e.operatorDepositLimitAmount,O=e.regulatorDepositLimitAmount,B()}).catch(e=>{console.log(e),l(15,L=!0)})):"sessionLimit"===b?0<a&&(N(),l(14,T=!0),o=new URL(`/v1/player/${m}/limits/session/`,f),n={sessionLimit:a,sessionLimitUnit:"minute"},n={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(o.href,n).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})):"cumulativeSession"===b?0<a&&(N(),l(14,T=!0),n=new URL(`/v1/player/${m}/limits/session/`,f),r={cumulativeSessionLimits:[{period:_,minutes:a}]},r={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(n.href,r).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})):a<=0||(N(),l(14,T=!0),r=w[C].currentLimits.filter(e=>e.period===_)[0],e=new URL(`/v1/player/${m}/limits/monetary/`+(r?r.id:""),f),t=r?"PUT":"POST",r=r?{amount:a,skipCoolOff:!1}:{amount:a,currency:p,period:"None"===ce[b].periods[0]?null:_,type:ce[b].callValue16,products:[null!=x?x:"All"],walletTypes:["All"]},t={method:t,headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(e.href,t).then(e=>k(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)}));break;default:throw Error("Invalid apiversion attribute: "+g)}var e,t,r,n,o},()=>{var e=a-Math.floor(a)==0;a>=P&&a<=E&&e?(l(21,i=!1),t.removeAttribute("disabled")):(l(21,i=!0),t.setAttribute("disabled","true"))},oe,ae,se,le,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),le()},e=>{13===e.keyCode&&i&&e.preventDefault()},d,r,h,m,f,g,y,v,H,z,W,j,e=>ae(e),function(){C=pe(this),l(7,C)},()=>{Q(),J(),oe()},function(){_=pe(this),l(6,_),l(3,ce),l(5,b)},function(){a=de(this.value),l(8,a)},function(e){De[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){De[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function Sf(e,t){B(e,t)}customElements.get("player-account-gaming-limits-page-2-gm16")||customElements.define("player-account-gaming-limits-page-2-gm16",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}input:focus{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid var(--emfe-w-color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emfe-w-color-black, #000000)}.PendingLimit{color:var(--emfe-w-color-black, #000000)}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:99}.PopupContainer{background:var(--emfe-w-color-white, #FFFFFF);font-size:1.3rem;color:var(--emfe-w-color-black, #000000);width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Df,Mf,i,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,customcurrencysymbols:40,deletelimit:1,amountsconfig:41,periodsconfig:42,clientstyling:43,clientstylingurl:44,translationurl:45},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","customcurrencysymbols","deletelimit","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),p()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),p()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),p()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),p()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),p()}get customcurrencysymbols(){return this.$$.ctx[40]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get deletelimit(){return this.$$.ctx[1]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get amountsconfig(){return this.$$.ctx[41]}set amountsconfig(e){this.$$set({amountsconfig:e}),p()}get periodsconfig(){return this.$$.ctx[42]}set periodsconfig(e){this.$$set({periodsconfig:e}),p()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),p()}});const $f={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function kf(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function Bf(i){let r,n,o,a,s,l,c,u,d,p,h,m,e=i[9]("expandLimits")+"",f=i[7],g=[];for(let e=0;e<f.length;e+=1)g[e]=Rf(kf(i,f,e));return{c(){r=di("div"),n=di("div"),o=di("button"),a=hi(e),s=mi(),l=pi("svg"),c=pi("path"),u=pi("path"),d=mi(),p=di("div");for(let e=0;e<g.length;e+=1)g[e].c();gi(c,"d","M10.5 15l7.5 7.5 7.5-7.5z"),gi(u,"d","M0 0h36v36h-36z"),gi(u,"fill","none"),gi(l,"class","ExpandArrow"),gi(l,"xmlns","http://www.w3.org/2000/svg"),gi(l,"width","36"),gi(l,"height","36"),gi(l,"viewBox","0 0 36 36"),gi(l,"fill","#999"),T(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),T(p,"hidden",i[5]),gi(n,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(r,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(n,d),si(n,p);for(let e=0;e<g.length;e+=1)g[e]&&g[e].m(p,null);h||(m=fi(o,"click",i[11]),h=!0)},p(t,i){if(512&i[0]&&e!==(e=t[9]("expandLimits")+"")&&yi(a,e),256&i[0]&&T(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var r=kf(t,f,e);g[e]?g[e].p(r,i):(g[e]=Rf(r),g[e].c(),g[e].m(p,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}32&i[0]&&T(p,"hidden",t[5])},d(e){e&&ci(r),ui(g,e),h=!1,m()}}}function If(e){return{c:oe,m:oe,p:oe,d:oe}}function Nf(e){let i,r,n=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ff(e){let i,r,n,o,a,s,l,c,u,d,p,h,m=e[36].type+"",f=e[36].amount+"",g=e[36].currency+"",y=e[36].period+"",v=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(m),a=di("span"),s=hi(f),l=mi(),c=hi(g),u=mi(),d=hi(y),p=di("span"),h=hi(v),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(a,l),si(a,c),si(a,u),si(a,d),si(i,p),si(p,h)},p(e,t){128&t[0]&&m!==(m=e[36].type+"")&&yi(o,m),128&t[0]&&f!==(f=e[36].amount+"")&&yi(s,f),128&t[0]&&g!==(g=e[36].currency+"")&&yi(c,g),128&t[0]&&y!==(y=e[36].period+"")&&yi(d,y),128&t[0]&&v!==(v=e[36].date+"")&&yi(h,v)},d(e){e&&ci(i)}}}function Of(e){let i,r,n,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(i,l),si(l,c)},p(e,t){128&t[0]&&u!==(u=e[36].type+"")&&yi(o,u),512&t[0]&&d!==(d=e[9]("limitRemoved")+"")&&yi(s,d),128&t[0]&&p!==(p=e[36].date+"")&&yi(c,p)},d(e){e&&ci(i)}}}function Rf(i){let r,n,o,a=i[38];function s(e){return e[36].removed?Of:Ff}let l=s(i),c=l(i);const u=()=>i[20](r,a),d=()=>i[20](null,a);return{c(){r=di("div"),c.c(),n=mi(),gi(r,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,r,t),c.m(r,null),si(r,n),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(r,n))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(r,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(r),c.d(),d()}}}function Hf(i){let r;function n(e){return e[6]?Nf:e[4]?If:Bf}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[21](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[21](null)}}}function zf(i,e,r){let n;Le(i,$e,e=>r(9,n=e));let o,t=window.navigator.userAgent,a=!un(t),{lang:s=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:u=""}=e,{apiversion:d=""}=e,{numberofentries:p="10"}=e,{customcurrencysymbols:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,y=new Array,v=parseInt(p,10),w=!1,b=!0,_=[],x=[],C=!0,P=!1,E={EUR:"€",RON:"lei"};Object.keys($f).forEach(e=>{Sf(e,$f[e])});let A=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&r(7,x=_.slice(0,v))})});return Me(()=>()=>{A.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&r(0,s=e.lang),"userid"in e&&r(12,l=e.userid),"session"in e&&r(13,c=e.session),"endpoint"in e&&r(14,u=e.endpoint),"apiversion"in e&&r(15,d=e.apiversion),"numberofentries"in e&&r(1,p=e.numberofentries),"customcurrencysymbols"in e&&r(16,h=e.customcurrencysymbols),"clientstyling"in e&&r(17,m=e.clientstyling),"clientstylingurl"in e&&r(18,f=e.clientstylingurl),"translationurl"in e&&r(19,g=e.translationurl)},i.$$.update=()=>{if(65536&i.$$.dirty[0]&&h&&h){let t={};h.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),E=Object.assign(Object.assign({},E),t)}if(61440&i.$$.dirty[0]&&u&&l&&c&&d&&((e=new URL("gmcore"===d?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,u)).searchParams.append("startDate",""+new Date("2022").toISOString()),e.searchParams.append("endDate",""+new Date("2099").toISOString()),e.searchParams.append("limit","10000"),t={method:"GET",headers:{"X-SessionID":c}},fetch(e.href,t).then(e=>{if(300<=e.status)throw r(4,b=!1),r(6,w=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!$f[s];return e.map(e=>{var t={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return t.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),t.currency=i?E[e.limitCurrencyCode]:e.limitCurrencyCode,t.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),t.period=n(""+e.limitPeriod.toLowerCase()),t.type="gmcore"===d?n("historyLimitType"+e.limitType.split(" ")[0]):n("historyLimitType"+e.limitType.split(" ")[0])+" "+n("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),r(7,x=_.slice(0,v))),r(4,b=!1)},e=>{console.error("There was an error",e),r(6,w=!0)})),56&i.$$.dirty[0]&&y[0]&&!b&&!C&&A.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,Se.set(e)),262144&i.$$.dirty[0]&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}var e,t;131076&i.$$.dirty[0]&&m&&o&&((t=document.createElement("style")).innerHTML=m,o.appendChild(t)),524292&i.$$.dirty[0]&&g&&o&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sf(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,b,C,w,x,P,n,a,()=>{r(5,C=!C),r(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){De[e?"unshift":"push"](()=>{y[t]=e,r(3,y)})},function(e){De[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.get("player-account-gaming-limits-history-2")||customElements.define("player-account-gaming-limits-history-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},zf,Hf,i,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,clientstyling:17,clientstylingurl:18,translationurl:19},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),p()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Wf=u["document"];function jf(e,t,i){e=e.slice();return e[39]=t[i],e[41]=i,e}function Uf(e,t,i){e=e.slice();return e[42]=t[i],e[41]=i,e}function Yf(i){let r,n,o,a,s=1<i[21].length&&function(i){let n,o=i[21],a=[];for(let e=0;e<o.length;e+=1)a[e]=Gf(Uf(i,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","TabsContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null);i[30](n)},p(t,i){if(10551296&i[0]){let e;for(o=t[21],e=0;e<o.length;e+=1){var r=Uf(t,o,e);a[e]?a[e].p(r,i):(a[e]=Gf(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e),i[30](null)}}}(i),l=i[21],c=[];for(let e=0;e<l.length;e+=1)c[e]=qf(jf(i,l,e));let u="true"===i[6]&&Zf(i);return{c(){s&&s.c(),r=mi(),n=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=I(),gi(n,"class","PlayerAccountGamingLmitsWrapper2")},m(e,t){s&&s.m(e,t),li(e,r,t),li(e,n,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(n,null);i[31](n),li(e,o,t),u&&u.m(e,t),li(e,a,t)},p(t,i){if(1<t[21].length&&s.p(t,i),794303&i[0]){let e;for(l=t[21],e=0;e<l.length;e+=1){const a=jf(t,l,e);c[e]?c[e].p(a,i):(c[e]=qf(a),c[e].c(),c[e].m(n,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Zf(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(r),e&&ci(n),ui(c,e),i[31](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function Vf(e){return{c:oe,m:oe,p:oe,d:oe}}function Gf(i){let r,n,o,a,s=(i[16][i[41]]??i[42])+"";function l(){return i[29](i[41])}return{c(){r=di("div"),n=hi(s),gi(r,"class","LimitsTab")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[41]]??i[42])+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function qf(e){let i,r,n;return{c(){ae(i=di("player-account-gaming-limits-page-2-gm16"),"class","hidden selected"),ae(i,"lang",e[0]),ae(i,"currency",e[4]),ae(i,"amountsconfig",r=e[18][e[41]]),ae(i,"periodsconfig",n=e[19][e[41]]),ae(i,"userid",e[1]),ae(i,"deletelimit",e[7]),ae(i,"session",e[2]),ae(i,"endpoint",e[3]),ae(i,"apiversion",e[5]),ae(i,"clientstyling",e[10]),ae(i,"clientstylingurl",e[11]),ae(i,"translationurl",e[12]),ae(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&ae(i,"lang",e[0]),16&t[0]&&ae(i,"currency",e[4]),262144&t[0]&&r!==(r=e[18][e[41]])&&ae(i,"amountsconfig",r),524288&t[0]&&n!==(n=e[19][e[41]])&&ae(i,"periodsconfig",n),2&t[0]&&ae(i,"userid",e[1]),128&t[0]&&ae(i,"deletelimit",e[7]),4&t[0]&&ae(i,"session",e[2]),8&t[0]&&ae(i,"endpoint",e[3]),32&t[0]&&ae(i,"apiversion",e[5]),1024&t[0]&&ae(i,"clientstyling",e[10]),2048&t[0]&&ae(i,"clientstylingurl",e[11]),4096&t[0]&&ae(i,"translationurl",e[12]),512&t[0]&&ae(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Zf(e){let i;return{c(){ae(i=di("player-account-gaming-limits-history-2"),"lang",e[0]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"endpoint",e[3]),ae(i,"apiversion",e[5]),ae(i,"numberofentries",e[8]),ae(i,"clientstyling",e[10]),ae(i,"clientstylingurl",e[11]),ae(i,"translationurl",e[12]),ae(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),8&t[0]&&ae(i,"endpoint",e[3]),32&t[0]&&ae(i,"apiversion",e[5]),256&t[0]&&ae(i,"numberofentries",e[8]),1024&t[0]&&ae(i,"clientstyling",e[10]),2048&t[0]&&ae(i,"clientstylingurl",e[11]),4096&t[0]&&ae(i,"translationurl",e[12]),512&t[0]&&ae(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Xf(i){let r,n,o,a,s,l,c,u,d,p=i[20]("title")+"",h=i[22]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[20]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","GamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[28]),m=!0)},p(e,t){1048576&t[0]&&g!==(g=e[20]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function m(e){return e[13]?Vf:Yf}let f=m(i),g=f(i);return{c(){r=di("meta"),n=mi(),o=di("div"),a=di("div"),s=di("div"),h&&h.c(),l=mi(),c=di("h2"),u=hi(p),d=mi(),g.c(),this.c=oe,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1"),gi(c,"class","GamingLimitsTitle "+(i[22]?"GamingLimitsTitleNone":"")),gi(s,"class","TitleSection"),gi(a,"class","GamingLimitsWrapper "+(i[22]?"GamingLimitsWrapperMobile":""))},m(e,t){si(Wf.head,r),li(e,n,t),li(e,o,t),si(o,a),si(a,s),h&&h.m(s,null),si(s,l),si(s,c),si(c,u),si(a,d),g.m(a,null),i[32](o)},p(e,t){e[22]&&h.p(e,t),1048576&t[0]&&p!==(p=e[20]("title")+"")&&yi(u,p),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(a,null)))},i:oe,o:oe,d(e){ci(r),e&&ci(n),e&&ci(o),h&&h.d(),g.d(),i[32](null)}}}function Kf(i,e,r){let t,{lang:n=""}=(Le(i,$e,e=>r(20,t=e)),e),{userid:o=""}=e,{session:a=""}=e,{endpoint:s=""}=e,{currency:l=""}=e,{apiversion:c=""}=e,{tablabels:u=""}=e,{historyenabled:d="true"}=e,{deletelimit:p=""}=e,{limitsamount:h=""}=e,{limitsperiods:m=""}=e,{numberofentries:f=""}=e,{customcurrencysymbols:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:w=""}=e;var b,_;({withLocale:b,translations:_}={withLocale:"en",translations:{}}),Se.subscribe(e=>{null==e&&(Mr.set(_),Se.set(b))});let x,C,P,E,A,T,L=!0,M=[],D=window.navigator.userAgent,S="PC"!==ke(D);Object.keys(Ym).forEach(e=>{B(e,Ym[e])});const $=t=>{if(0<P.children.length)for(let e=0;e<P.children.length;e++)t===e?(P.children[e].classList.remove("hidden"),null!=E&&E.children[e].classList.add("selected")):(P.children[e].classList.add("hidden"),null!=E&&E.children[e].classList.remove("selected"))},k=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:S},window.location.href)};return Me(()=>()=>{r(15,P=null),r(17,E=null)}),i.$$set=e=>{"lang"in e&&r(0,n=e.lang),"userid"in e&&r(1,o=e.userid),"session"in e&&r(2,a=e.session),"endpoint"in e&&r(3,s=e.endpoint),"currency"in e&&r(4,l=e.currency),"apiversion"in e&&r(5,c=e.apiversion),"tablabels"in e&&r(25,u=e.tablabels),"historyenabled"in e&&r(6,d=e.historyenabled),"deletelimit"in e&&r(7,p=e.deletelimit),"limitsamount"in e&&r(26,h=e.limitsamount),"limitsperiods"in e&&r(27,m=e.limitsperiods),"numberofentries"in e&&r(8,f=e.numberofentries),"customcurrencysymbols"in e&&r(9,g=e.customcurrencysymbols),"clientstyling"in e&&r(10,y=e.clientstyling),"clientstylingurl"in e&&r(11,v=e.clientstylingurl),"translationurl"in e&&r(12,w=e.translationurl)},i.$$.update=()=>{if(33554479&i.$$.dirty[0]&&o&&a&&s&&u&&n&&c){var e=h,t=m;if(r(18,A=e.replace(/\s/g,"").split("|")),r(19,T=t.replace(/\s/g,"").split("|")),0===A.length)throw new Error("Please provide a full limits configuration.");if(A.length!==T.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");h.split("|").forEach(e=>{M.includes(e)||M.push(e)}),r(16,C=u.split(",").map(e=>e.trim())),r(13,L=!1)}if(40960&i.$$.dirty[0]&&P&&!L&&$(0),18432&i.$$.dirty[0]&&v&&x){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{x.appendChild(t)},1)})}17408&i.$$.dirty[0]&&y&&x&&((e=document.createElement("style")).innerHTML=y,x.appendChild(e))},[n,o,a,s,l,c,d,p,f,g,y,v,w,L,x,P,C,E,A,T,t,M,S,$,k,u,h,m,()=>k(),e=>$(e),function(e){De[e?"unshift":"push"](()=>{E=e,r(17,E)})},function(e){De[e?"unshift":"push"](()=>{P=e,r(15,P)})},function(e){De[e?"unshift":"push"](()=>{x=e,r(14,x)})}]}customElements.get("player-account-gaming-limits-wrapper-2")||customElements.define("player-account-gaming-limits-wrapper-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B);justify-content:center;background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));margin:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Kf,Xf,i,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:25,historyenabled:6,deletelimit:7,limitsamount:26,limitsperiods:27,numberofentries:8,customcurrencysymbols:9,clientstyling:10,clientstylingurl:11,translationurl:12},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),p()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),p()}get tablabels(){return this.$$.ctx[25]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[7]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[26]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[27]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[8]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[9]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Jf=u["document"];function Qf(e){let i,r,n,o,a,s,l;function c(e){return e[38]&&e[37]===e[44][0]?bg:e[38]&&e[37]===e[44][1]?wg:e[38]&&e[37]===e[44][2]?vg:e[38]&&e[37]===e[44][3]?yg:e[38]&&e[37]===e[44][4]?gg:e[38]&&e[37]==e[44][5]?fg:e[38]&&e[37]===e[44][6]?mg:e[38]&&e[37]===e[44][7]?hg:e[38]&&e[37]===e[44][8]?pg:e[38]&&e[37]===e[44][9]?dg:e[38]&&e[37]===e[44][10]?ug:e[38]&&e[37]===e[44][11]?cg:e[38]&&e[37]===e[44][12]?lg:e[38]&&e[37]===e[44][13]?sg:e[38]&&e[37]===e[44][14]?ag:e[38]&&e[37]===e[44][15]?og:e[38]&&e[37]===e[44][16]?ng:e[38]&&e[37]===e[44][17]?rg:e[38]&&e[37]===e[44][18]?ig:e[38]&&e[37]===e[44][19]?tg:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),ae(r,"endpoint",e[3]),ae(r,"session",e[2]),ae(r,"playerid",e[1]),ae(r,"lang",e[4]),ae(r,"selecteditem",e[42]),ae(r,"userroles",e[9]),ae(r,"clientstyling",e[22]),ae(r,"clientstylingurl",e[23]),ae(l,"customnotif",e[0]),ae(l,"clientstyling",e[22]),ae(l,"clientstylingurl",e[23])},m(e,t){li(e,i,t),si(i,r),li(e,n,t),li(e,o,t),d&&d.m(o,null),li(e,a,t),li(e,s,t),si(s,l)},p(e,t){8&t[0]&&ae(r,"endpoint",e[3]),4&t[0]&&ae(r,"session",e[2]),2&t[0]&&ae(r,"playerid",e[1]),16&t[0]&&ae(r,"lang",e[4]),2048&t[1]&&ae(r,"selecteditem",e[42]),512&t[0]&&ae(r,"userroles",e[9]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23]),u===(u=c(e))&&d?d.p(e,t):(d&&d.d(1),(d=u&&u(e))&&(d.c(),d.m(o,null))),1&t[0]&&ae(l,"customnotif",e[0]),4194304&t[0]&&ae(l,"clientstyling",e[22]),8388608&t[0]&&ae(l,"clientstylingurl",e[23])},d(e){e&&ci(i),e&&ci(n),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function eg(e){let i;function r(e){return e[38]?e[38]&&e[37]===e[44][0]?Hg:e[38]&&e[37]===e[44][1]?Rg:e[38]&&e[37]===e[44][2]?Og:e[38]&&e[37]===e[44][3]?Fg:e[38]&&e[37]===e[44][4]?Ng:e[38]&&e[37]===e[44][5]?Ig:e[38]&&e[37]===e[44][6]?Bg:e[38]&&e[37]===e[44][7]?kg:e[38]&&e[37]===e[44][8]?$g:e[38]&&e[37]===e[44][9]?Sg:e[38]&&e[37]===e[44][10]?Dg:e[38]&&e[37]===e[44][11]?Mg:e[38]&&e[37]===e[44][12]?Lg:e[38]&&e[37]===e[44][13]?Tg:e[38]&&e[37]===e[44][14]?Ag:e[38]&&e[37]===e[44][15]?Eg:e[38]&&e[37]===e[44][16]?Pg:e[38]&&e[37]===e[44][17]?Cg:e[38]&&e[37]===e[44][18]?xg:e[38]&&e[37]===e[44][19]?_g:void 0:zg}let n=r(e),o=n&&n(e);return{c(){o&&o.c(),i=I()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=n&&n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function tg(e){let i;return{c(){ae(i=di("user-transaction-history"),"endpoint",e[3]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"mobile",e[43]),ae(i,"translation-url",e[24]),ae(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),16777216&t[0]&&ae(i,"translation-url",e[24]),16&t[0]&&ae(i,"language",e[4])},d(e){e&&ci(i)}}}function ig(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","withdraw"),ae(i,"channel","Desktop"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function rg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","deposit"),ae(i,"channel","Desktop"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function ng(e){let i;return{c(){ae(i=di("player-kyc-verification"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"user-id",e[1]),ae(i,"language",e[4]),ae(i,"kyc-title",e[19]),ae(i,"description",e[20]),ae(i,"translation-url",e[24]),ae(i,"client-styling",e[22]),ae(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"user-id",e[1]),16&t[0]&&ae(i,"language",e[4]),524288&t[0]&&ae(i,"kyc-title",e[19]),1048576&t[0]&&ae(i,"description",e[20]),16777216&t[0]&&ae(i,"translation-url",e[24]),4194304&t[0]&&ae(i,"client-styling",e[22]),8388608&t[0]&&ae(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function og(e){let i;return{c(){ae(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"tablabels",e[11]),ae(i,"lang",e[4]),ae(i,"historyenabled",e[12]),ae(i,"deletelimit",e[13]),ae(i,"limitsamount",e[14]),ae(i,"limitsperiods",e[15]),ae(i,"numberofentries",e[16]),ae(i,"customcurrencysymbols",e[17]),ae(i,"currency",e[18]),ae(i,"apiversion",e[21]),ae(i,"translationurl",e[24]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),2048&t[0]&&ae(i,"tablabels",e[11]),16&t[0]&&ae(i,"lang",e[4]),4096&t[0]&&ae(i,"historyenabled",e[12]),8192&t[0]&&ae(i,"deletelimit",e[13]),16384&t[0]&&ae(i,"limitsamount",e[14]),32768&t[0]&&ae(i,"limitsperiods",e[15]),65536&t[0]&&ae(i,"numberofentries",e[16]),131072&t[0]&&ae(i,"customcurrencysymbols",e[17]),262144&t[0]&&ae(i,"currency",e[18]),2097152&t[0]&&ae(i,"apiversion",e[21]),16777216&t[0]&&ae(i,"translationurl",e[24]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ag(e){let i;return{c(){ae(i=di("player-account-betting-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function sg(e){let i;return{c(){ae(i=di("player-transaction-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function lg(e){let i;return{c(){ae(i=di("player-pending-withdrawals"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function cg(e){let i;return{c(){ae(i=di("player-withdrawal"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function ug(e){let i;return{c(){ae(i=di("player-deposit"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function dg(e){let i;return{c(){ae(i=di("player-gaming-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),67108864&t[0]&&ae(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function pg(e){let i;return{c(){ae(i=di("player-bonus-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function hg(e){let i;return{c(){ae(i=di("player-active-bonuses"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"playercurrency",e[40]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),512&t[1]&&ae(i,"playercurrency",e[40]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function mg(e){let i;return{c(){ae(i=di("player-account-self-exclusion"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"supportemail",e[6]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),64&t[0]&&ae(i,"supportemail",e[6]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function fg(i){let r,n,o;return{c(){ae(r=di("player-account-gaming-limits"),"playercurrency",i[40]),ae(r,"separatelimits",i[7]),ae(r,"clientstyling",i[22]),ae(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[45].call(null,r)),n=!0)},p(e,t){512&t[1]&&ae(r,"playercurrency",e[40]),128&t[0]&&ae(r,"separatelimits",e[7]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function gg(e){let i;return{c(){ae(i=di("player-account-closure"),"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function yg(e){let i;return{c(){ae(i=di("player-account-timeout"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function vg(e){let i;return{c(){ae(i=di("player-reality-check"),"realitycheck",e[41]),ae(i,"endpoint",e[3]),ae(i,"playerid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[1]&&ae(i,"realitycheck",e[41]),8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"playerid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function wg(e){let i;return{c(){ae(i=di("player-change-password"),"simplepasswordvalidation",e[10]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&ae(i,"simplepasswordvalidation",e[10]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function bg(e){let i;return{c(){ae(i=di("player-profile-info"),"endpoint",e[3]),ae(i,"lang",e[4]),ae(i,"countrycode",e[39]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"lang",e[4]),256&t[1]&&ae(i,"countrycode",e[39]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),33554432&t[0]&&ae(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function _g(e){let i;return{c(){ae(i=di("user-transaction-history"),"endpoint",e[3]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"mobile",e[43]),ae(i,"translation-url",e[24]),ae(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),16777216&t[0]&&ae(i,"translation-url",e[24]),16&t[0]&&ae(i,"language",e[4])},d(e){e&&ci(i)}}}function xg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","withdraw"),ae(i,"channel","Mobile"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function Cg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","deposit"),ae(i,"channel","Mobile"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function Pg(e){let i;return{c(){ae(i=di("player-kyc-verification"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"user-id",e[1]),ae(i,"language",e[4]),ae(i,"kyc-title",e[19]),ae(i,"description",e[20]),ae(i,"translation-url",e[24]),ae(i,"client-styling",e[22]),ae(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"user-id",e[1]),16&t[0]&&ae(i,"language",e[4]),524288&t[0]&&ae(i,"kyc-title",e[19]),1048576&t[0]&&ae(i,"description",e[20]),16777216&t[0]&&ae(i,"translation-url",e[24]),4194304&t[0]&&ae(i,"client-styling",e[22]),8388608&t[0]&&ae(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function Eg(e){let i;return{c(){ae(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"tablabels",e[11]),ae(i,"historyenabled",e[12]),ae(i,"deletelimit",e[13]),ae(i,"limitsamount",e[14]),ae(i,"limitsperiods",e[15]),ae(i,"numberofentries",e[16]),ae(i,"customcurrencysymbols",e[17]),ae(i,"currency",e[18]),ae(i,"apiversion",e[21]),ae(i,"translationurl",e[24]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),2048&t[0]&&ae(i,"tablabels",e[11]),4096&t[0]&&ae(i,"historyenabled",e[12]),8192&t[0]&&ae(i,"deletelimit",e[13]),16384&t[0]&&ae(i,"limitsamount",e[14]),32768&t[0]&&ae(i,"limitsperiods",e[15]),65536&t[0]&&ae(i,"numberofentries",e[16]),131072&t[0]&&ae(i,"customcurrencysymbols",e[17]),262144&t[0]&&ae(i,"currency",e[18]),2097152&t[0]&&ae(i,"apiversion",e[21]),16777216&t[0]&&ae(i,"translationurl",e[24]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Ag(e){let i;return{c(){ae(i=di("player-account-betting-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Tg(e){let i;return{c(){ae(i=di("player-transaction-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Lg(e){let i;return{c(){ae(i=di("player-pending-withdrawals"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Mg(e){let i;return{c(){ae(i=di("player-withdrawal"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function Dg(e){let i;return{c(){ae(i=di("player-deposit"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function Sg(e){let i;return{c(){ae(i=di("player-gaming-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),67108864&t[0]&&ae(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function $g(e){let i;return{c(){ae(i=di("player-bonus-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function kg(e){let i;return{c(){ae(i=di("player-active-bonuses"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"playercurrency",e[40]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),512&t[1]&&ae(i,"playercurrency",e[40]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Bg(e){let i;return{c(){ae(i=di("player-account-self-exclusion"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"supportemail",e[6]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),64&t[0]&&ae(i,"supportemail",e[6]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Ig(i){let r,n,o;return{c(){ae(r=di("player-account-gaming-limits"),"playercurrency",i[40]),ae(r,"separatelimits",i[7]),ae(r,"clientstyling",i[22]),ae(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[45].call(null,r)),n=!0)},p(e,t){512&t[1]&&ae(r,"playercurrency",e[40]),128&t[0]&&ae(r,"separatelimits",e[7]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function Ng(e){let i;return{c(){ae(i=di("player-account-closure"),"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Fg(e){let i;return{c(){ae(i=di("player-account-timeout"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Og(e){let i;return{c(){ae(i=di("player-reality-check"),"realitycheck",e[41]),ae(i,"endpoint",e[3]),ae(i,"playerid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[1]&&ae(i,"realitycheck",e[41]),8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"playerid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Rg(e){let i;return{c(){ae(i=di("player-change-password"),"simplepasswordvalidation",e[10]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&ae(i,"simplepasswordvalidation",e[10]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Hg(e){let i;return{c(){ae(i=di("player-profile-info"),"endpoint",e[3]),ae(i,"lang",e[4]),ae(i,"countrycode",e[39]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"lang",e[4]),256&t[1]&&ae(i,"countrycode",e[39]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),33554432&t[0]&&ae(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function zg(e){let i,r,n,o;return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("player-account-notifications"),ae(r,"endpoint",e[3]),ae(r,"session",e[2]),ae(r,"playerid",e[1]),ae(r,"lang",e[4]),ae(r,"userroles",e[9]),ae(r,"clientstyling",e[22]),ae(r,"clientstylingurl",e[23]),ae(o,"customnotif",e[0]),ae(o,"clientstyling",e[22]),ae(o,"clientstylingurl",e[23]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){8&t[0]&&ae(r,"endpoint",e[3]),4&t[0]&&ae(r,"session",e[2]),2&t[0]&&ae(r,"playerid",e[1]),16&t[0]&&ae(r,"lang",e[4]),512&t[0]&&ae(r,"userroles",e[9]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23]),1&t[0]&&ae(o,"customnotif",e[0]),4194304&t[0]&&ae(o,"clientstyling",e[22]),8388608&t[0]&&ae(o,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Wg(i){let r,n,o,a,s,l=function(e){let i,t=e[43]?eg:Qf,r=t(e);return{c(){i=di("section"),r.c(),gi(i,"class","PlayerAccountPage "+(e[43]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),r.m(i,null)},p(e,t){r.p(e,t)},d(e){e&&ci(i),r.d()}}}(i);return{c(){r=di("script"),n=di("script"),o=di("script"),a=mi(),s=di("div"),l.c(),this.c=oe,gi(r,"type","module"),b(r.src,"https://unpkg.com/@everymatrix/user-deposit-withdrawal")||gi(r,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal"),gi(n,"type","module"),b(n.src,"https://unpkg.com/@everymatrix/player-kyc-verification")||gi(n,"src","https://unpkg.com/@everymatrix/player-kyc-verification"),gi(o,"type","module"),b(o.src,"https://unpkg.com/@everymatrix/user-transaction-history")||gi(o,"src","https://unpkg.com/@everymatrix/user-transaction-history")},m(e,t){si(Jf.head,r),si(Jf.head,n),si(Jf.head,o),li(e,a,t),li(e,s,t),l.m(s,null),i[57](s)},p(e,t){l.p(e,t)},i:oe,o:oe,d(e){ci(r),ci(n),ci(o),e&&ci(a),e&&ci(s),l.d(),i[57](null)}}}function jg(t,e,o){let a;Le(t,$e,e=>o(69,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:r=""}=e,{limitspath:n=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:N="Everymatrix"}=e,{supportemail:F=""}=e,{operatorid:O=""}=e,{realm:R=""}=e,{webapiendpoint:H="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:z="true"}=e,{hasdefaultamount:W="false"}=e,{userroles:h=""}=e,{simplepasswordvalidation:j="false"}=e,{tablabels:U=""}=e,{historyenabled:Y=""}=e,{deletelimit:V=""}=e,{limitsamount:G=""}=e,{limitsperiods:q=""}=e,{numberofentries:Z=""}=e,{customcurrencysymbols:X=""}=e,{currency:K=""}=e,{kyctitle:J=""}=e,{kycdescription:Q=""}=e,{apiversion:ee=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{custominputtextswitch:te="false"}=e,{gmversion:ie=""}=e,{channel:re=""}=e,{producttype:ne=""}=e,{successurl:oe=""}=e,{failurl:ae=""}=e,{cancelurl:se=""}=e,{sportsurl:le=""}=e,{casinourl:ce=""}=e,{contacturl:ue=""}=e,{homeurl:de=""}=e,{depositurl:pe=""}=e;var he,me;({withLocale:he,translations:me}={withLocale:"en",translations:{}}),Se.subscribe(e=>{null==e&&(Mr.set(me),Se.set(he))});let y,v,w,b,fe,_,ge=window.navigator.userAgent,ye="PC"!==ke(ge),x=[],ve=[],C="",P="",E="",we="",A=null,T="",L={},M=!1,D=!1,be="",S="",_e=!1,$=!1;Object.keys(pn).forEach(e=>{dn(e,pn[e])});const xe=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(38,$=!0),o(37,E=i.data.page.path),"/profile-info"==E&&(k(),B()),"/deposit"==E&&"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==E&&"function"==typeof gtag&&gtag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(38,$=!0),o(37,E=i.data.pagePath),Ee(),"/profile-info"==E&&(k(),B());var r=new URL(`${s}/${p}/profile-menu?env=`+l);r.searchParams.append("device",T),Ce(r).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(42,_=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(38,$=!1),Te());break;case"UpdatePlayerInfo":r=i.data.provisionalArray,r={mobile:{prefix:r.mobilePrefix,number:r.mobileNumber},address1:r.address,city:r.city,postalCode:r.postalCode,securityQuestion:r.securityQuestion,securityAnswer:r.securityAnswer},r=(t=new URL(`${d}/v1/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("profileUpdateSuccess")}},window.location.href),window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href))});break;case"UpdatePlayerConsent":t=new URL(`${d}/v1/player/${C}/consent`);r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,r).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let i=new URL(`${d}/v1/player/${C}/password`),r={currentPassword:e,newPassword:t},n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},o=await fetch(i.href,n);if(o.ok)window.postMessage({type:"PasswordChangedSuccessfully"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("passwordChangedSuccess")}},window.location.href);else{let e=await o.json();S=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),_e=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:_e,errorPasswordChanged:S},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:S}},window.location.href)}})(i.data.userCurrentPassword,i.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={coolOff:{period:i.data.timeoutSelected}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{if(200!=e.status)throw new Error("Failed to fetch");window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("timeoutSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(e=>console.error(e));break;case"SetSelfExclusion":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"AccountClosure":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("accountClosureSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"UserSessionID":P=i.data.session,C=i.data.userid,Ae();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`/v2/player/${C}/limits`,d);r=i.data.payload,r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(M=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsUpdateSuccess")}},window.location.href),I(new URL(`/v2/player/${C}/limits`,d)))});break;case"PlayerAccountGamingLimitDelete":var r=i.data.limit||{},n=Array.isArray(r)?r.map(e=>e.period):r.period;let e="";switch(i.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}r={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(r)};t=new URL(`/v2/player/${C}/limits/`+e,d),Array.isArray(n)?n.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",n),fetch(t.href,r).then(e=>{200==e.status&&(D=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`/v2/player/${C}/limits`,d))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`/v2/player/${C}/limits`,d));break;case"SubmittedRealityCheck":{n=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/v1/player/${C}/realitycheck`),t=(n&&(be=n),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(be,10)}});fetch(e.href,t).then(e=>{200==e.status&&(Pe(new URL(`${d}/v1/player/${c}/realitycheck`)),window.postMessage({type:"RealityCheckValueUpdated"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("realityCheckSuccess")}},window.location.href))},e=>{console.error(e)});return}}};async function Ce(e){return e.searchParams.append("device",T),(await fetch(e.href)).json()}const k=()=>{var e=new URL(`${d}/v1/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(39,we=e.country),o(40,A=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},B=()=>{var e=new URL(`${d}/v1/player/${C}/consent`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{window.postMessage({type:"ProfileConsentData",consent:e},window.location.href)},e=>{console.error(e)})},Pe=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(41,fe=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===M?setTimeout(()=>{M=!1},3e3):!0===D&&setTimeout(()=>{D=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{L=e,0!==Object.keys(L).length?(o(53,y=null!=(e=L.depositLimits)?e:[]),o(54,v=null!=(e=L.wageringLimits)?e:[]),o(55,w=null!=(e=L.lossLimits)?e:[]),L.hasOwnProperty("cumulativeSessionLimits")?(o(56,b=L.timeLimit),o(56,b=L.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(56,b=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:A,depositlimit:y,wageringlimit:v,losslimit:w,timelimit:b,showsuccessnotification:M,showdeletenotification:D,lang:p}},window.location.href)):(o(53,y=[]),o(54,v=[]),o(55,w=[]),o(56,b=[])),Be()},e=>{console.error(e)})},Ee=()=>{x.forEach(e=>{e.path.includes(E)&&o(42,_=e.id)})},Ae=()=>{var e;Ce(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{x=e,Ee(),window.postMessage({type:"AccountMenuDetails",accountMenuInfo:x},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",h),e.searchParams.append("device",T),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ve=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ve},window.location.href))},e=>{console.error(e)}),k(),B(),Pe(new URL(`${d}/v1/player/${c}/realitycheck`))},Te=()=>{var e;(e=ke(ge))&&(T="PC"===e?"dk":"mtWeb"),C=c,P=u,ye||o(38,$=!0),Ae()};return Me(()=>(window.addEventListener("message",xe,!1),()=>{window.removeEventListener("message",xe)})),t.$$set=e=>{"cmsendpoint"in e&&o(46,s=e.cmsendpoint),"env"in e&&o(47,l=e.env),"customnotifications"in e&&o(0,r=e.customnotifications),"limitspath"in e&&o(48,n=e.limitspath),"playerid"in e&&o(1,c=e.playerid),"session"in e&&o(2,u=e.session),"endpoint"in e&&o(3,d=e.endpoint),"lang"in e&&o(4,p=e.lang),"operator"in e&&o(5,N=e.operator),"supportemail"in e&&o(6,F=e.supportemail),"operatorid"in e&&o(49,O=e.operatorid),"realm"in e&&o(50,R=e.realm),"webapiendpoint"in e&&o(51,H=e.webapiendpoint),"separatelimits"in e&&o(7,z=e.separatelimits),"hasdefaultamount"in e&&o(8,W=e.hasdefaultamount),"userroles"in e&&o(9,h=e.userroles),"simplepasswordvalidation"in e&&o(10,j=e.simplepasswordvalidation),"tablabels"in e&&o(11,U=e.tablabels),"historyenabled"in e&&o(12,Y=e.historyenabled),"deletelimit"in e&&o(13,V=e.deletelimit),"limitsamount"in e&&o(14,G=e.limitsamount),"limitsperiods"in e&&o(15,q=e.limitsperiods),"numberofentries"in e&&o(16,Z=e.numberofentries),"customcurrencysymbols"in e&&o(17,X=e.customcurrencysymbols),"currency"in e&&o(18,K=e.currency),"kyctitle"in e&&o(19,J=e.kyctitle),"kycdescription"in e&&o(20,Q=e.kycdescription),"apiversion"in e&&o(21,ee=e.apiversion),"clientstyling"in e&&o(22,m=e.clientstyling),"clientstylingurl"in e&&o(23,f=e.clientstylingurl),"translationurl"in e&&o(24,g=e.translationurl),"custominputtextswitch"in e&&o(25,te=e.custominputtextswitch),"gmversion"in e&&o(26,ie=e.gmversion),"channel"in e&&o(52,re=e.channel),"producttype"in e&&o(27,ne=e.producttype),"successurl"in e&&o(28,oe=e.successurl),"failurl"in e&&o(29,ae=e.failurl),"cancelurl"in e&&o(30,se=e.cancelurl),"sportsurl"in e&&o(31,le=e.sportsurl),"casinourl"in e&&o(32,ce=e.casinourl),"contacturl"in e&&o(33,ue=e.contacturl),"homeurl"in e&&o(34,de=e.homeurl),"depositurl"in e&&o(35,pe=e.depositurl)},t.$$.update=()=>{if(16&t.$$.dirty[0]|192&t.$$.dirty[1]&&p&&$&&E&&(e=p,Se.set(e)),543&t.$$.dirty[0]|98304&t.$$.dirty[1]&&s&&d&&r&&c&&u&&p&&l&&h&&Te(),t.$$.dirty[1],4194304&t.$$.dirty[0]|32&t.$$.dirty[1]&&m&&i&&((e=document.createElement("style")).innerHTML=m,i.appendChild(e)),8388608&t.$$.dirty[0]|32&t.$$.dirty[1]&&f&&i){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;16777216&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dn(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,u,d,p,N,F,z,W,h,j,U,Y,V,G,q,Z,X,K,J,Q,ee,m,f,g,te,ie,ne,oe,ae,se,le,ce,ue,de,pe,i,E,$,we,A,void 0,_,ye,["/profile-info","/change-password","/reality-check","/timeout","/account-closure","/gaming-limits","/self-exclusion","/active-bonuses","/bonus-history","/gaming-history","/deposit","/withdrawal","/pending-withdrawals","/transaction-history","/betting-history","/limits","/account-verification","/cashier-deposit","/cashier-withdrawal","/transactions-history"],e=>{I(new URL(`/v2/player/${C}/limits`,d))},s,l,n,O,R,H,re,y,v,w,b,function(e){De[e?"unshift":"push"](()=>{i=e,o(36,i)})}]}class Ug extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.PlayerAccountPage{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:250px 1fr 230px;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:30px}.PlayerAccountPage.PlayerAccountMobilePage{display:block;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:0px}.PlayerAccountPage>nav{grid-area:nav;color:red;background:var(--emfe-w-pam-color-nav-desktop-bg, var(--emfe-w-color-gray-300, #58586B))}.PlayerAccountPage>nav.PlayerAccountMobile{background:var(--emfe-w-pam-color-nav-mobile-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},jg,Wg,i,{cmsendpoint:46,env:47,customnotifications:0,limitspath:48,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:49,realm:50,webapiendpoint:51,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,kyctitle:19,kycdescription:20,apiversion:21,clientstyling:22,clientstylingurl:23,translationurl:24,custominputtextswitch:25,gmversion:26,channel:52,producttype:27,successurl:28,failurl:29,cancelurl:30,sportsurl:31,casinourl:32,contacturl:33,homeurl:34,depositurl:35},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["cmsendpoint","env","customnotifications","limitspath","playerid","session","endpoint","lang","operator","supportemail","operatorid","realm","webapiendpoint","separatelimits","hasdefaultamount","userroles","simplepasswordvalidation","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","currency","kyctitle","kycdescription","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion","channel","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl","depositurl"]}get cmsendpoint(){return this.$$.ctx[46]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[47]}set env(e){this.$$set({env:e}),p()}get customnotifications(){return this.$$.ctx[0]}set customnotifications(e){this.$$set({customnotifications:e}),p()}get limitspath(){return this.$$.ctx[48]}set limitspath(e){this.$$set({limitspath:e}),p()}get playerid(){return this.$$.ctx[1]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[5]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[6]}set supportemail(e){this.$$set({supportemail:e}),p()}get operatorid(){return this.$$.ctx[49]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[50]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[51]}set webapiendpoint(e){this.$$set({webapiendpoint:e}),p()}get separatelimits(){return this.$$.ctx[7]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get hasdefaultamount(){return this.$$.ctx[8]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get userroles(){return this.$$.ctx[9]}set userroles(e){this.$$set({userroles:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[10]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get tablabels(){return this.$$.ctx[11]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[12]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[13]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[14]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[15]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[16]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[17]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get currency(){return this.$$.ctx[18]}set currency(e){this.$$set({currency:e}),p()}get kyctitle(){return this.$$.ctx[19]}set kyctitle(e){this.$$set({kyctitle:e}),p()}get kycdescription(){return this.$$.ctx[20]}set kycdescription(e){this.$$set({kycdescription:e}),p()}get apiversion(){return this.$$.ctx[21]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[25]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[26]}set gmversion(e){this.$$set({gmversion:e}),p()}get channel(){return this.$$.ctx[52]}set channel(e){this.$$set({channel:e}),p()}get producttype(){return this.$$.ctx[27]}set producttype(e){this.$$set({producttype:e}),p()}get successurl(){return this.$$.ctx[28]}set successurl(e){this.$$set({successurl:e}),p()}get failurl(){return this.$$.ctx[29]}set failurl(e){this.$$set({failurl:e}),p()}get cancelurl(){return this.$$.ctx[30]}set cancelurl(e){this.$$set({cancelurl:e}),p()}get sportsurl(){return this.$$.ctx[31]}set sportsurl(e){this.$$set({sportsurl:e}),p()}get casinourl(){return this.$$.ctx[32]}set casinourl(e){this.$$set({casinourl:e}),p()}get contacturl(){return this.$$.ctx[33]}set contacturl(e){this.$$set({contacturl:e}),p()}get homeurl(){return this.$$.ctx[34]}set homeurl(e){this.$$set({homeurl:e}),p()}get depositurl(){return this.$$.ctx[35]}set depositurl(e){this.$$set({depositurl:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",Ug),Ug});
2220
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $u(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Bu(this.inputElement,this._labelController)),this._tooltipController=new _l(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(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}}function Ru(e){let i,r,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yi(n,o)},d(e){e&&ci(i)}}}function Hu(e){let i,r,n,o=e[8]("permanentSelfExclusion")+"";return{c(){i=di("p"),r=di("strong"),n=hi(o),gi(i,"class","SelfExclusionDescriptionText")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function ju(i){let r,n,O,o,a,R,s,l,c,H,u,d,j,p,h,z,m,W,U,f,Y,g,V,y,v,G,q,w,Z,b,_,K,X,x,J,C,Q,P,ee,E,T,te,ie,re,A=i[8]("title")+"",L=i[8]("selfExclusionText1",{values:{operatorname:i[0]}})+"",k=i[8]("selfExclusionText2")+"",M=i[8]("selfExclusionText3")+"",S=i[8]("selfExclusionText4")+"",D=i[8]("duration")+"",$=i[8]("forever")+"",B=i[8]("save")+"",I=i[9]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[8]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerSelfExclusionTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function ne(e){return e[4]?Hu:Ru}let N=ne(i),F=N(i);return{c(){r=di("div"),n=di("form"),I&&I.c(),O=mi(),o=di("h2"),a=hi(A),R=mi(),s=di("div"),l=di("p"),c=hi(L),H=mi(),u=di("p"),d=hi(k),j=mi(),p=di("p"),h=hi(M),z=mi(),m=di("p"),W=hi(S),U=mi(),f=di("a"),Y=hi(i[1]),V=mi(),y=di("div"),v=di("label"),G=hi(D),q=mi(),w=di("vaadin-date-picker"),Z=mi(),b=di("div"),_=di("label"),K=hi($),X=mi(),x=di("input"),J=mi(),C=di("span"),Q=mi(),P=di("div"),F.c(),ee=mi(),E=di("div"),T=di("button"),te=hi(B),this.c=oe,gi(o,"class","PlayerSelfExclusionTitle "+(i[9]?"PlayerSelfExclusionTitleNone":"")),gi(l,"class","SelfExclusionDescriptionText"),gi(u,"class","SelfExclusionDescriptionText"),gi(p,"class","SelfExclusionDescriptionText"),gi(f,"href",g="mailto:"+i[1]),gi(m,"class","SelfExclusionDescriptionText"),gi(s,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(v,"for","SelfExclusionDate"),ae(w,"min",i[6]),ae(w,"max",i[7]),ae(w,"value",i[6]),gi(y,"class","SelfExclusionDateWrapper "+(i[9]?"SelfExclusionDateWrapperMobile":"")),gi(x,"type","Checkbox"),gi(C,"class","Checkmark"),gi(C,"part","Checkmark"),gi(_,"class","SelfExclusionRadio"),gi(b,"class","SelfExclusionRadioWrapper "+(i[9]?"SelfExclusionRadioWrapperMobile":"")),gi(P,"class","SelfExclusionDescription "+(i[9]?"SelfExclusionDescriptionMobile":"")),gi(T,"class","SelfExclusionSave"),gi(E,"class","SelfExclusionActionButtons "+(i[9]?"SelfExclusionActionButtonsMobile":"")),gi(n,"class","SelfExclusionWrapper "+(i[9]?"SelfExclusionWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),I&&I.m(n,null),si(n,O),si(n,o),si(o,a),si(n,R),si(n,s),si(s,l),si(l,c),si(s,H),si(s,u),si(u,d),si(s,j),si(s,p),si(p,h),si(s,z),si(s,m),si(m,W),si(m,U),si(m,f),si(f,Y),si(n,V),si(n,y),si(y,v),si(v,G),si(y,q),si(y,w),i[18](w),si(n,Z),si(n,b),si(b,_),si(_,K),si(_,X),si(_,x),si(_,J),si(_,C),si(n,Q),si(n,P),F.m(P,null),si(n,ee),si(n,E),si(E,T),si(T,te),i[21](r),ie||(re=[fi(x,"click",i[19]),fi(T,"click",i[20])],ie=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&A!==(A=e[8]("title")+"")&&yi(a,A),257&t[0]&&L!==(L=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yi(c,L),256&t[0]&&k!==(k=e[8]("selfExclusionText2")+"")&&yi(d,k),256&t[0]&&M!==(M=e[8]("selfExclusionText3")+"")&&yi(h,M),256&t[0]&&S!==(S=e[8]("selfExclusionText4")+"")&&yi(W,S),2&t[0]&&yi(Y,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gi(f,"href",g),256&t[0]&&D!==(D=e[8]("duration")+"")&&yi(G,D),64&t[0]&&ae(w,"min",e[6]),128&t[0]&&ae(w,"max",e[7]),64&t[0]&&ae(w,"value",e[6]),256&t[0]&&$!==($=e[8]("forever")+"")&&yi(K,$),N===(N=ne(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(P,null))),256&t[0]&&B!==(B=e[8]("save")+"")&&yi(te,B)},i:oe,o:oe,d(e){e&&ci(r),I&&I.d(),i[18](null),F.d(),i[21](null),ie=!1,ai(re)}}}function zu(t,e,i){let r;Le(t,De,e=>i(8,r=e));let n,o,a,s,{lang:l="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,m=window.navigator.userAgent,f="PC"!==$e(m),g=!1,y="",v="",w=new Date;Object.keys(Rn).forEach(e=>{On(e,Rn[e])}),a=z(w.setDate(w.getDate())).add(6,"M").format("YYYY-MM-DD"),s=z(w.setDate(w.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{i(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&i(5,v=e))},x=e=>{e.preventDefault(),_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},C=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},P=e=>{_(e.target.value)};ke(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&i(13,l=e.lang),"operator"in e&&i(0,c=e.operator),"supportemail"in e&&i(1,u=e.supportemail),"clientstyling"in e&&i(14,d=e.clientstyling),"clientstylingurl"in e&&i(15,p=e.clientstylingurl),"translationurl"in e&&i(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,Se.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&d&&n&&((e=document.createElement("style")).innerHTML=d,n.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{On(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,n,o,g,v,a,s,r,f,b,x,C,l,d,p,h,()=>C(),function(e){Me[e?"unshift":"push"](()=>{o=e,i(3,o)})},()=>b(),e=>x(e),function(e){Me[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function Wu(e,t){B(e,t)}Hn(Ou),customElements.define=(Fu=customElements.define,function(...e){try{return Fu.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},zu,ju,i,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),p()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Uu={en:{title:"Account Closure",accountClosureDescription:"Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",closeAccount:"Close Account",modal:"Are you sure you want to close your account?",accountClosureCancel:"No",accountClosureConfirm:"Yes"},"zh-hk":{title:"賬戶關閉",accountClosureDescription:"如果您覺得需要休息,或者您只是想停止使用我們的服務,賬戶關閉會為您的賬戶提供永久訪問限制。",closeAccount:"關閉賬戶",modal:"您確定要關閉您的帳戶嗎?",accountClosureCancel:"不",accountClosureConfirm:"是的"},fr:{title:"Fermeture du compte",accountClosureDescription:"La fermeture du compte fournit une restriction permanente d'accès à votre compte si vous sentez que vous avez besoin d'une pause ou si vous souhaitez arrêter d'utiliser notre service",closeAccount:"Fermer le compte",modal:"êtes-vous sûr de vouloir fermer votre compte?",accountClosureCancel:"Non",accountClosureConfirm:"Oui"},ro:{title:"Închidere Cont",accountClosureDescription:'Opțiunea "Închidere Cont" asigură suspendarea permanentă a accesului la contul tău dacă simți că ai nevoie de o pauză sau că vrei să nu mai folosești serviciile noastre.',closeAccount:"Închide Cont",modal:"Esti sigur ca vrei sa inchizi contul?",accountClosureCancel:"Nu",accountClosureConfirm:"Da"},es:{title:"Cierre de cuenta",accountClosureDescription:"Cierre de cuenta provee una restricción permamente de poder ingresar a su cuenta si desea tomar una pausa.",closeAccount:"Cerrar cuenta",modal:"Esta seguro que desea cerrar su cuenta?",accountClosureCancel:"No",accountClosureConfirm:"Sí"},pt:{title:"Encerramento da conta",accountClosureDescription:"O Encerramento de Conta fornece uma restrição de acesso permanente à sua conta se você achar que precisa de uma pausa ou apenas deseja parar de usar nossos serviços.",closeAccount:"Encerrar conta",modal:"Tem certeza de que deseja encerrar sua conta?",accountClosureCancel:"Não",accountClosureConfirm:"Sim"},hr:{title:"Zatvaranje računa",accountClosureDescription:"Zatvaranje računa omogućuje trajno ograničenje pristupa vašem računu ako smatrate da vam je potreban odmor",closeAccount:"Zatvori račun",modal:"Jeste li sigurni da želite zatvoriti svoj račun?",accountClosureCancel:"Ne",accountClosureConfirm:"Da"}};function Yu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("modal")+"",v=i[2]("accountClosureCancel")+"",w=i[2]("accountClosureConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[3]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[13]),fi(h,"click",i[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&yi(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&yi(d,v),4&t&&w!==(w=e[2]("accountClosureConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function Vu(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[2]("title")+"",b=i[2]("accountClosureDescription")+"",_=i[2]("closeAccount")+"",x=i[3]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[2]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","AccountClosureTitleMobile"),gi(p,"part","AccountClosureTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),C=i[1]&&Yu(i);return{c(){r=di("div"),n=di("div"),x&&x.c(),o=mi(),a=di("h2"),s=hi(w),l=mi(),c=di("div"),u=di("p"),d=hi(b),p=mi(),h=di("div"),m=di("button"),f=hi(_),g=mi(),C&&C.c(),this.c=oe,gi(a,"class","AccountClosureTitle "+(i[3]?"AccountClosureTitleNone":"")),gi(c,"class","AccountClosureDescription "+(i[3]?"AccountClosureDescriptionMobile":"")),gi(m,"class","AccountClosureSave "+(i[3]?"AccountClosureSaveMobile":"")),gi(h,"class","AccountClosureActionButtons "+(i[3]?"AccountClosureActionButtonsMobile":"")),gi(n,"class","AccountClosureWrapper "+(i[3]?"AccountClosureWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),x&&x.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),si(m,f),si(r,g),C&&C.m(r,null),i[15](r),y||(v=fi(m,"click",i[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&w!==(w=e[2]("title")+"")&&yi(s,w),4&t&&b!==(b=e[2]("accountClosureDescription")+"")&&yi(d,b),4&t&&_!==(_=e[2]("closeAccount")+"")&&yi(f,_),e[1]?C?C.p(e,t):((C=Yu(e)).c(),C.m(r,null)):C&&(C.d(1),C=null)},i:oe,o:oe,d(e){e&&ci(r),x&&x.d(),C&&C.d(),i[15](null),y=!1,v()}}}function Gu(t,e,i){let r;Le(t,De,e=>i(2,r=e));let n,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==$e(c),d=!1;Object.keys(Uu).forEach(e=>{Wu(e,Uu[e])});const p=e=>{i(1,d=e),!0===e?window.postMessage({type:"DisableScroll"},window.location.href):window.postMessage({type:"EnableScroll"},window.location.href)},h=()=>{p(!1),window.postMessage({type:"AccountClosure"},window.location.href)},m=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:u},window.location.href)};return t.$$set=e=>{"lang"in e&&i(7,o=e.lang),"clientstyling"in e&&i(8,a=e.clientstyling),"clientstylingurl"in e&&i(9,s=e.clientstylingurl),"translationurl"in e&&i(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,Se.set(e)),257&t.$$.dirty&&a&&n&&((e=document.createElement("style")).innerHTML=a,n.appendChild(e)),513&t.$$.dirty&&s&&n){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wu(e,t[e])})}).catch(e=>{console.log(e)})},[n,d,r,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){Me[e?"unshift":"push"](()=>{n=e,i(0,n)})}]}function qu(e,t){B(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.AccountClosureTitleMobile{font-size:16px}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:12px;line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:12px;grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Gu,Vu,i,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Zu={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"}};function Ku(e,t){B(e,t)}const Xu={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",daily:"Daily",weekly:"Weekly",monthly:"Monthly",removeLimitText:"Are you sure you want to remove the {limit}?",removeLimitsText:"Are you sure you want to remove all the {limit}s?",minutes:"minutes",noLimit:"No limit",expirationDate:"Expiration date",notAvailable:"N/A",edit:"Edit",removeLimits:"Remove Limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit",timeLimitLower:"time limit",depositLimitLower:"deposit limit",wageringLimitLower:"wagering limit",lossLimitLower:"loss limit",time:"time",currency:"currency"},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",daily:"日常的",weekly:"每週",monthly:"月刊",removeLimitText:"您確定要刪除 {limit} 嗎?",removeLimitsText:"您確定要刪除所有 {limit} 嗎?",minutes:"分鐘",noLimit:"沒有限制",expirationDate:"截止日期",notAvailable:"不適用",edit:"編輯",removeLimits:"移除限制",depositLimit:"存款限額",timeLimit:"時限",wageringLimit:"投注限額",lossLimit:"損失限額",timeLimitLower:"時限",depositLimitLower:"存款限額",wageringLimitLower:"投注限額",lossLimitLower:"損失限額",time:"時間",currency:"貨幣"},fr:{name:"Info",amountChanged:"Votre limite a été modifiée ou augmentée: {amount} {currency}. Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",removeLimitText:"êtes-vous sûr de vouloir supprimer la{limit}?",removeLimitsText:"êtes-vous sûr de vouloir supprimer tous les {limit}s?",minutes:"minutes",noLimit:"Aucune limite",expirationDate:"Date d'expiration",notAvailable:"N/A",edit:"Modifier",removeLimits:"Supprimer les limites",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte",timeLimitLower:"Limite de temps",depositLimitLower:"Limite de dépôt",wageringLimitLower:"Limite de mise",lossLimitLower:"Limite de perte",time:"Temps",currency:"Monnaie"},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare:",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",removeLimitText:"Ești sigur că vrei să elimini această limită?",removeLimitsText:"Ești sigur că vrei să elimini toate limitele?",minutes:"minute",noLimit:"Fără Limită",expirationDate:"Dată Expirare",notAvailable:"N/A",edit:"Editează",removeLimits:"Elimină limitele",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere",timeLimitLower:"limită de timp",depositLimitLower:"limită de depunere",wageringLimitLower:"limită de pariere",lossLimitLower:"limită de pierdere",time:"timp",currency:"monedă"},es:{name:"Información",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",daily:"Diario",weekly:"Semanal",monthly:"Mensual",removeLimitText:"Estas seguro de quitar el {limit}?",removeLimitsText:"Estas seguro de retirar todos los {limit}es?",minutes:"minutos",noLimit:"Sin límite",expirationDate:"Fecha de expiración",notAvailable:"No Disponible",edit:"Editar",removeLimits:"Retirar límites",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida",timeLimitLower:"Límite de tiempo",depositLimitLower:"Límite de depósito",wageringLimitLower:"Límite de apuestas",lossLimitLower:"Límite de pérdida",time:"tiempo",currency:"moneda"},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",removeLimitText:"Tem certeza de que deseja remover o {limite}??",removeLimitsText:"Tem certeza de que deseja remover todos os {limite}s??",minutes:"Minutos",noLimit:"Sem limite",expirationDate:"Data de Validade",notAvailable:"Não Disponível",edit:"Editar",removeLimits:"Remover limites",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda",timeLimitLower:"Limite de tempo",depositLimitLower:"limite de depósito",wageringLimitLower:"limite de apostas",lossLimitLower:"limite de perda",time:"Tempo",currency:"Moeda"},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {iznos} {valuta}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",removeLimitText:"Jeste li sigurni da želite ukloniti {limit}?",removeLimitsText:"Jeste li sigurni da želite ukloniti sve {limit}e?",minutes:"minute",noLimit:"Nema ograničenja",expirationDate:"Datum isteka",notAvailable:"N/A",edit:"Uredi",removeLimits:"Ukloni ograničenja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka",timeLimitLower:"vremensko ograničenje",depositLimitLower:"ograničenje uplate",wageringLimitLower:"ograničenje igranja",lossLimitLower:"ograničenje gubitka",time:"vrijeme",currency:"valuta"}};function Ju(e,t){B(e,t)}const Qu={en:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},de:{name:"Info",amountChanged:"Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",defaultText:"When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."},"zh-hk":{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"},fr:{name:"Info",amountChanged:"Votre limit a été modifiée ou augmentée: {amount} {currency}. Vous devez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",defaultText:"\"Lorsque vous définissez une limite de jeu, elle prend effet à partir du moment ou vous l'activez et dure jusqu'à la fin de la période séléctionnée. Par conséquent, si vous fixez une limite quotidienne à 14.00, la période de 24 heures qui compte est celle allant de son activation jusqu'à 00:00 GMT.la limite est alors valable 24 jours. vous pouvez abaisser une limite à tout moment avec un effet immédiat. cependant, l'augmentation ou la suppression d'une limite ne s'appliquera que lorsque la limite actuelle expira."},ro:{name:"Informații",amountChanged:"Limita ta a fost schimbată sau a crescut: {amount} {currency}. Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",defaultText:"Când stabilești o limită de joc, efectele se produc începând din momentul în care o activezi și durează până la finalul perioadei selectate. Așadar, dacă stabilești o limită zilnică la 14:00, perioada de 24 de ore este de la activare până la 00:00 GMT. Ulterior, limita va fi valabilă la fiecare 24 de ore. Poți micșora limita oricând, cu efect imediat. Totuși, majorarea sau eliminarea unei limite va fi aplicată în momentul în care limita curentă expiră."},es:{name:"Info",amountChanged:"Tú limite ha sido cambiado o incrementado: {amount} {currency}. Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia:",defaultText:"Cuando establece un límite de juego, entra en vigencia desde el momento en que lo activa y dura hasta el final del período seleccionado. Por tanto, si estableces un límite diario a las 14:00, el periodo de 24 horas que cuenta es desde su activación hasta las 00:00 GMT. Entonces el límite es válido cada 24 horas. Puede reducir un límite en cualquier momento con efecto inmediato. Sin embargo, el aumento o la eliminación de un límite solo se aplicará cuando expire el límite actual."},pt:{name:"Informação",amountChanged:"Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",defaultText:"Quando você define um limite de jogo, ele entra em vigor a partir do momento em que você o ativa e dura até o final do período selecionado. Portanto, se você definir um limite diário às 14h00, o período de 24 horas que conta é desde sua ativação até às 00h00 GMT. Então o limite é válido a cada 24 horas. Você pode diminuir um limite a qualquer momento com efeito imediato. No entanto, aumentar ou remover um limite será aplicado somente quando o limite atual expirar."},hr:{name:"Informacije",amountChanged:"Vaše ograničenje je promijenjeno ili povećano: {amount} {currency}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",defaultText:"Kada postavite ograničenje igre"}};function ed(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("name")+"";function v(e){return e[0]?id:td}let w=v(i),b=w(i);return{c(){r=di("section"),n=di("div"),o=di("div"),(a=di("div")).textContent="i",s=mi(),l=di("div"),c=hi(y),u=mi(),(d=di("div")).innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',p=mi(),h=di("div"),b.c(),gi(a,"class","InfoCardPopupIcon"),gi(l,"class","InfoCardPopupTitle"),gi(d,"class","InfoCardPopupCloseButton"),gi(o,"class","InfoCardPopupHeader"),gi(h,"class","InfoCardPopupContentArea"),gi(n,"class",m="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),gi(r,"class",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(o,u),si(o,d),si(n,p),si(n,h),b.m(h,null),i[12](r),f||(g=fi(d,"click",V(i[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&yi(c,y),w===(w=v(e))&&b?b.p(e,t):(b.d(1),(b=w(e))&&(b.c(),b.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&gi(n,"class",m)},d(e){e&&ci(r),b.d(),i[12](null),f=!1,g()}}}function td(e){let i,r,n=e[4]("defaultText")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("defaultText")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function id(e){let i,r,n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InfoCardPopupContent")},m(e,t){li(e,i,t),si(i,r)},p(e,t){19&t&&n!==(n=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rd(e){let i,r=e[3]&&ed(e);return{c(){r&&r.c(),i=I(),this.c=oe},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,[t]){e[3]?r?r.p(e,t):((r=ed(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:oe,o:oe,d(e){r&&r.d(e),e&&ci(i)}}}function nd(t,e,i){let r,{showpopup:n=""}=(Le(t,De,e=>i(4,r=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(Qu).forEach(e=>{Ju(e,Qu[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==$e(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,p=!1)};return ke(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,n=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,c=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&n&&a&&(e=a,Se.set(e),o<0&&i(0,o="0"),i(3,p=n)),1028&t.$$.dirty&&c&&d){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}var e;516&t.$$.dirty&&l&&d&&((e=document.createElement("style")).innerHTML=l,d.appendChild(e)),2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ju(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,r,m,()=>{i(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},n,a,l,c,u,function(e){Me[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function od(e,t){B(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 4px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emfe-w-color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:102}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emfe-w-color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},nd,rd,i,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),p()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}});const ad={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"success",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"}};function sd(e,{delay:t=0,duration:i=400,easing:r=w}={}){const n=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:r,css:e=>"opacity: "+e*n}}function ld(i){let r,n,t,o;return{c(){r=di("div"),(n=di("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gi(n,"class","ModalWindow"),gi(n,"id","Modal")},m(e,t){li(e,r,t),si(r,n),i[6](n),i[7](r),o=!0},p(e,t){i=e},i(e){o||(bi(()=>{o&&(t=t||ee(n,sd,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||ee(n,sd,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&ci(r),i[6](null),e&&t&&t.end(),i[7](null)}}}function cd(e){let i,r,n=e[0]&&ld(e);return{c(){n&&n.c(),i=I(),this.c=oe},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){e[0]?n?(n.p(e,t),1&t&&X(n,1)):((n=ld(e)).c(),X(n,1),n.m(i.parentNode,i)):n&&(Z(),J(n,1,1,()=>{n=null}),K())},i(e){r||(X(n),r=!0)},o(e){J(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function ud(t,e,i){let r,n,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return ke(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&r){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e))},[o,a,r,void 0,s,l,function(e){Me[e?"unshift":"push"](()=>{n=e,i(3,n)})},function(e){Me[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function dd(e,t){B(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ud,cd,i,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}});const pd={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"}};function hd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[2]("cancel")+"",v=i[2]("confirm")+"",w=!i[3]&&function(i){let r,n,o;return{c(){(r=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',gi(r,"class","ModalCloseBtn"),gi(r,"role","button")},m(e,t){li(e,r,t),n||(o=fi(r,"click",i[4]),n=!0)},p:oe,d(e){e&&ci(r),n=!1,o()}}}(i);return{c(){r=di("div"),w&&w.c(),n=mi(),o=di("div"),a=di("div"),s=hi(i[0]),l=mi(),c=di("div"),u=di("button"),d=hi(y),p=mi(),h=di("button"),m=hi(v),this.c=oe,gi(a,"class","GamingLimitsConfirmationContent"),gi(u,"class","GamingLimitsCancelButton"),gi(h,"class","GamingLimitsConfirmButton"),gi(c,"class","GamingLimitsConfirmationControlArea"),gi(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),gi(r,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){li(e,r,t),w&&w.m(r,null),si(r,n),si(r,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),i[12](r),f||(g=[fi(u,"click",i[6]),fi(h,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&yi(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&yi(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&yi(m,v)},i:oe,o:oe,d(e){e&&ci(r),w&&w.d(),i[12](null),f=!1,ai(g)}}}function md(t,e,i){let r,{modaltext:n="Are you sure that you want to perform this action?"}=(Le(t,De,e=>i(2,r=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(pd).forEach(e=>{dd(e,pd[e])}),window.navigator.userAgent),p="PC"!==$e(d),h={},m="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(h=e.data.removeData,e=e.data.removeName,m="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return ke(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,n=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&n&&o&&a&&(e=a,Se.set(e)),514&t.$$.dirty&&s&&u&&((e=document.createElement("style")).innerHTML=s,u.appendChild(e)),1026&t.$$.dirty&&l&&u){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var e;2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dd(e,t[e])})}).catch(e=>{console.log(e)})},[n,u,r,p,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:h,name:m},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},o,a,s,l,c,function(e){Me[e?"unshift":"push"](()=>{u=e,i(1,u)})}]}function fd(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function gd(e,t,i){e=e.slice();return e[59]=t[i],e}function yd(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function vd(e){let i,r,n,o=e[18]("success")+"";return{c(){i=di("div"),r=di("p"),n=hi(o),gi(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function wd(t){let n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=_d(yd(t,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=yd(t,o,e);a[e]?a[e].p(r,i):(a[e]=_d(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e)}}}function bd(e){let i,r,n,o,a=e[18]("remove")+"",s=(e[56].expiryDate?z(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("p"),r=hi(a),n=mi(),o=hi(s)},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yi(r,a),16384&t[0]&&s!==(s=(e[56].expiryDate?z(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(o,s)},d(e){e&&ci(i)}}}function _d(e){let i,r=e[56].period==e[17][e[58]].period&&bd(e);return{c(){r&&r.c(),i=I()},m(e,t){r&&r.m(e,t),li(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?r?r.p(e,t):((r=bd(e)).c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&ci(i)}}}function xd(t){let i,n,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Dd(fd(t,o,e));return{c(){i=di("div"),n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","AccountEditLimitsContainer"),gi(i,"class","AccountEditContent")},m(e,t){li(e,i,t),si(i,n);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(t,i){if(18836560&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var r=fd(t,o,e);a[e]?a[e].p(r,i):(a[e]=Dd(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(i),ui(a,e)}}}function Cd(i){let r,n,o,a,s,l,c,u,d,p,h=i[18]("noLimit")+"",m=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=Ed(gd(i,m,e));function g(){i[29].call(r,i[58])}let y="Custom"===i[17][i[58]].amount&&Td(i),v=!0===i[56].isModified&&Sd(i);return{c(){r=di("select"),n=di("option"),o=hi(h);for(let e=0;e<f.length;e+=1)f[e].c();s=mi(),l=di("div"),y&&y.c(),c=mi(),v&&v.c(),u=I(),n.__value="",n.value=n.__value,n.disabled=!0,n.selected=!0,n.hidden=!0,gi(r,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),r.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&bi(g),gi(l,"class","AccountEditLimitsInputContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(r,null);wi(r,i[17][i[58]].amount,!0),li(e,s,t),li(e,l,t),y&&y.m(l,null),li(e,c,t),v&&v.m(e,t),li(e,u,t),d||(p=[fi(r,"change",g),fi(r,"change",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&h!==(h=i[18]("noLimit")+"")&&yi(o,h),1048656&t[0]){let e;for(m=i[20].get(i[6])[i[58]].values,e=0;e<m.length;e+=1){const o=gd(i,m,e);f[e]?f[e].p(o,t):(f[e]=Ed(o),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(r.disabled=a),1179712&t[0]&&wi(r,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=Td(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=Sd(i)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&ci(r),ui(f,e),e&&ci(s),e&&ci(l),y&&y.d(),e&&ci(c),v&&v.d(e),e&&ci(u),d=!1,ai(p)}}}function Pd(e){let i,r=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){i=hi(r)},m(e,t){li(e,i,t)},p(e,t){80&t[0]&&r!==(r=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yi(i,r)},d(e){e&&ci(i)}}}function Ed(e){let i,r,n,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&Pd(e);return{c(){i=di("option"),r=hi(s),n=mi(),l&&l.c(),o=mi(),i.__value=a=e[59],i.value=i.__value},m(e,t){li(e,i,t),si(i,r),si(i,n),l&&l.m(i,null),si(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yi(r,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=Pd(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&ci(i),l&&l.d()}}}function Td(e){let i;function r(e){return"Time Limit"!==e[6]?Ld:Ad}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Ad(i){let r,n,o,a,s,l;function c(){i[31].call(r,i[58])}let u=1==i[13][i[58]]&&kd(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=kd(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function Ld(i){let r,n,o,a,s,l;function c(){i[30].call(r,i[58])}let u=1==i[13][i[58]]&&Md(i);return{c(){r=di("input"),o=mi(),a=di("p"),u&&u.c(),gi(r,"type","number"),gi(r,"class","AccountEditField AccountEditFieldCustom"),r.disabled=n=!0===i[56].isModified,gi(a,"class","AccountEditWarningText")},m(e,t){li(e,r,t),vi(r,i[17][i[58]].value),li(e,o,t),li(e,a,t),u&&u.m(a,null),s||(l=[fi(r,"keyup",function(){ue(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),fi(r,"input",c)],s=!0)},p(e,t){i=e,16384&t[0]&&n!==(n=!0===i[56].isModified)&&(r.disabled=n),1179712&t[0]&&de(r.value)!==i[17][i[58]].value&&vi(r,i[17][i[58]].value),1==i[13][i[58]]?u?u.p(i,t):((u=Md(i)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),u&&u.d(),s=!1,ai(l)}}}function kd(e){let i,r,n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){265216&t[0]&&n!==(n=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Md(e){let i,r,n=e[18]("invalidInputMessageLimit")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){262144&t[0]&&n!==(n=e[18]("invalidInputMessageLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=e[18]("expirationDate")+"",b=(e[56].expiryDate?z(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("changedLimitTextBefore")+"",x=(0<e[56].updateAmount?e[56].updateAmount:0)+"",C=(void 0!==e[56].minutes?" minutes":e[4])+"",P=e[18]("changedLimitTextAfter")+"";return{c(){i=di("p"),r=hi(w),n=mi(),o=di("span"),a=hi(b),s=mi(),l=di("div"),c=di("p"),(u=di("span")).textContent="i",d=di("span"),p=hi(_),h=mi(),m=hi(x),f=mi(),g=hi(C),y=hi(". "),v=hi(P),gi(i,"class","AccountEditLimitsExpiryDate"),gi(u,"class","AccountEditLimitChangePeriodIcon"),gi(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(d,p),si(d,h),si(d,m),si(d,f),si(d,g),si(d,y),si(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("expirationDate")+"")&&yi(r,w),16384&t[0]&&b!==(b=(e[56].expiryDate?z(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(a,b),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&yi(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&yi(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&yi(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&yi(v,P)},d(e){e&&ci(i),e&&ci(s),e&&ci(l)}}}function Dd(e){let i,r,n,o,a,s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&Cd(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),l&&l.c(),a=mi(),gi(r,"class","AccountEditLimitsTitle"),gi(i,"class","AccountEditLimitsBox")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),l&&l.m(i,null),si(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&yi(n,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=Cd(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&ci(i),l&&l.d()}}}function $d(i){let r,O,n,o,a,s,R,l,c,u,H,d,p,j,h,m,f,z,g,y,W,v,U,w,b,_,x,C,P,E,T,A,L,k,M,Y,S=i[18]("back")+"",D=(i[1]?i[9]:"")+"",$=i[18]("save")+"",B=i[19]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[18]("back")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=i[2]&&vd(i),N=i[3]&&wd(i),F=i[8]&&xd(i);return{c(){r=di("div"),B&&B.c(),O=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),R=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),H=mi(),d=di("h2"),p=hi(S),j=mi(),h=di("div"),m=di("h6"),f=hi(D),z=mi(),g=di("div"),(y=di("span")).textContent="i",W=mi(),v=di("player-account-gaming-limits-popup"),U=mi(),I&&I.c(),w=mi(),N&&N.c(),b=mi(),F&&F.c(),_=mi(),x=di("div"),C=di("button"),P=hi($),A=mi(),L=di("player-account-modal"),k=di("player-account-gaming-limits-confirmation-modal"),this.c=oe,gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","20"),gi(o,"height","20"),gi(o,"viewBox","0 0 15 15"),gi(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(n,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),gi(y,"class","AccountEditLimitsIcon"),ae(v,"showpopup",i[7]),ae(v,"lang",i[0]),gi(g,"class","AccountEditLimitsIconWrapper"),gi(h,"class","AccountEditLimitsHeader"),gi(C,"class",E="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=T=!i[15],gi(x,"class","AccountEditLimitsControlArea"),gi(r,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ae(k,"modaltext",i[12]),ae(k,"modalsource","groupEdit"),ae(k,"lang",i[0])},m(e,t){li(e,r,t),B&&B.m(r,null),si(r,O),si(r,n),si(n,o),si(o,a),si(a,s),si(s,R),si(o,l),si(l,c),si(c,u),si(n,H),si(n,d),si(d,p),si(r,j),si(r,h),si(h,m),si(m,f),si(h,z),si(h,g),si(g,y),si(g,W),si(g,v),si(r,U),I&&I.m(r,null),si(r,w),N&&N.m(r,null),si(r,b),F&&F.m(r,null),si(r,_),si(r,x),si(x,C),si(C,P),i[33](r),li(e,A,t),li(e,L,t),si(L,k),M||(Y=[fi(n,"click",i[22]),fi(y,"click",V(i[21])),fi(C,"click",i[32])],M=!0)},p(e,t){e[19]&&B.p(e,t),262144&t[0]&&S!==(S=e[18]("back")+"")&&yi(p,S),514&t[0]&&D!==(D=(e[1]?e[9]:"")+"")&&yi(f,D),128&t[0]&&ae(v,"showpopup",e[7]),1&t[0]&&ae(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=vd(e)).c(),I.m(r,w)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=wd(e)).c(),N.m(r,b)):N&&(N.d(1),N=null),e[8]?F?F.p(e,t):((F=xd(e)).c(),F.m(r,_)):F&&(F.d(1),F=null),262144&t[0]&&$!==($=e[18]("save")+"")&&yi(P,$),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&gi(C,"class",E),32768&t[0]&&T!==(T=!e[15])&&(C.disabled=T),4096&t[0]&&ae(k,"modaltext",e[12]),1&t[0]&&ae(k,"lang",e[0])},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[33](null),e&&ci(A),e&&ci(L),M=!1,ai(Y)}}}function Bd(t,e,o){let i,{limitsdata:r=[]}=(Le(t,De,e=>o(18,i=e)),e),{showsuccessnotification:n=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:c="true"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h,m,f=(Object.keys(ad).forEach(e=>{od(e,ad[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",N=window.navigator.userAgent,F="PC"!==$e(N),x=new Array(3).fill(0),C={},P=[],E=[],T=!1,A=[];const L={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let k=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],M=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],S=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],O=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],R=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const D=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),$=new Map([["Deposit Limit",M],["Time Limit",R],["Wagering Limit",S],["Loss Limit",O]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},B=(i,e)=>{let r=JSON.parse(JSON.stringify(e));k.forEach(t=>{r.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},j=()=>{A.forEach(e=>{var t=e;E.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(r=>{E.forEach(e=>{var t,i;r.period===e.period&&(e=e,t=r,i=k,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount=t.amount,e.value=0)}))})})},z=()=>{var e="Time Limit"===h?"time limit":"Deposit Limit"===h?"deposit limit":"Wagering Limit"===h?"wagering limit":"loss limit";o(12,_=i("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;Se.set(e),z(),o(16,A=JSON.parse(JSON.stringify(r))),o(14,C=JSON.parse(JSON.stringify(r))),E="Wagering Limit"===h?S:"Loss Limit"===h?O:"Deposit Limit"===h?M:"Time Limit"===h?R:[],j()},W=e=>{if(e.data)switch(e.data.type){case"LanguageChanged":o(0,l=e.data.lang),z();break;case"EditPlayerLimit":o(6,h=e.data.name),o(9,y=i(h.charAt(0).toLowerCase()+h.substring(1).replace(/\s/g,""))),I(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===h?k.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,minutes:t.value},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):k.forEach(t=>{var e;"true"==c?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},P.push(e)):C.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==c?{[D.get(h)]:[...P]}:{[D.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:D.get(h)},window.location.href),o(15,T=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),I(),o(15,T=!1),v=!1}var t};return ke(()=>(window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)})),t.$$set=e=>{"limitsdata"in e&&o(1,r=e.limitsdata),"showsuccessnotification"in e&&o(2,n=e.showsuccessnotification),"showdeletenotification"in e&&o(3,a=e.showdeletenotification),"playercurrency"in e&&o(4,s=e.playercurrency),"lang"in e&&o(0,l=e.lang),"separatelimits"in e&&o(25,c=e.separatelimits),"clientstyling"in e&&o(26,u=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,p=e.translationurl)},t.$$.update=()=>{if(12&t.$$.dirty[0]&&n&&a&&I(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&u&&m&&((e=document.createElement("style")).innerHTML=u,m.appendChild(e)),134217760&t.$$.dirty[0]&&d&&m){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{m.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{od(e,t[e])})}).catch(e=>{console.log(e)})},[l,r,n,a,s,m,h,f,g,y,w,b,_,x,C,T,A,k,i,F,$,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,i,r)=>{var n;"Custom"===e.amount?"Time Limit"==h?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&L.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,x[t]=0,x),n=r[t],e.period==n.period&&e.value==n.amount?(o(15,T=!1),B(e,r)):o(15,T=!0)):(o(13,x[t]=1,x),o(15,T=!1))):e.value&&L.amount.test(e.value)?(o(13,x[t]=0,x),e.period==r[t].period&&e.value==r[t].amount?(o(15,T=!!T),B(e,r)):o(15,T=!0),"true"!=c&&k.forEach(e=>{0==e.value&&o(15,T=!1)})):(o(13,x[t]=1,x),o(15,T=!1)):(e.period==r[t].period?(B(e,r),o(15,T=e.value!=r[t].amount)):o(15,T=!0),k.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!L.amount.test(e.value.toString()))&&o(15,T=!1)}))},c,u,d,p,function(e){k[e].amount=pe(this),o(17,k),o(20,$),o(6,h)},function(e){k[e].value=de(this.value),o(17,k),o(20,$),o(6,h)},function(e){k[e].value=de(this.value),o(17,k),o(20,$),o(6,h)},()=>H(),function(e){Me[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Id(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Nd(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Fd(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,T=(i[0]?i[15](i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",A=i[15]("edit")+"";function L(e){return"Time Limit"===e[1]?Hd:Rd}let k=L(i),M=k(i),S=!i[9]&&!i[0].isModified&&i[14]&&tp(i),D=i[11]&&ip(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("h5"),s=hi(T),l=mi(),c=di("div"),(u=di("span")).textContent="i",d=mi(),p=di("player-account-gaming-limits-popup"),m=mi(),f=di("div"),g=di("div"),y=di("div"),M.c(),v=mi(),w=di("div"),b=di("button"),_=hi(A),x=mi(),S&&S.c(),C=mi(),D&&D.c(),gi(u,"class","InfoCardIcon"),ae(p,"showpopup",h=i[8][0]),ae(p,"lang",i[3]),ae(p,"clientstyling",i[4]),ae(p,"clientstylingurl",i[5]),gi(c,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),gi(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),gi(y,"class","InfoCardTableRow"),gi(g,"class","InfoCardTableWrapper"),gi(b,"class","InfoCardEditButton"),gi(w,"class","InfoCardControlArea"),gi(f,"class","InfoCard"),gi(n,"class","InfoCardWrapper"),gi(r,"class","InfoCardSection")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(c,d),si(c,p),si(n,m),si(n,f),si(f,g),si(g,y),M.m(y,null),si(f,v),si(f,w),si(w,b),si(b,_),si(w,x),S&&S.m(w,null),si(r,C),D&&D.m(r,null),P||(E=[fi(u,"click",V(i[23])),fi(b,"click",i[26])],P=!0)},p(e,t){32771&t[0]&&T!==(T=(e[0]?e[15](e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&yi(s,T),256&t[0]&&h!==(h=e[8][0])&&ae(p,"showpopup",h),8&t[0]&&ae(p,"lang",e[3]),16&t[0]&&ae(p,"clientstyling",e[4]),32&t[0]&&ae(p,"clientstylingurl",e[5]),k===(k=L(e))&&M?M.p(e,t):(M.d(1),(M=k(e))&&(M.c(),M.m(y,null))),32768&t[0]&&A!==(A=e[15]("edit")+"")&&yi(_,A),e[9]||e[0].isModified||!e[14]?S&&(S.d(1),S=null):S?S.p(e,t):((S=tp(e)).c(),S.m(w,null)),e[11]?D?D.p(e,t):((D=ip(e)).c(),D.m(r,null)):D&&(D.d(1),D=null)},d(e){e&&ci(r),M.d(),S&&S.d(),D&&D.d(),P=!1,ai(E)}}}function Od(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Rd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Vd(Id(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=Id(t,o,e);a[e]?a[e].p(r,i):(a[e]=Vd(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Hd(t){let n,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=ep(Nd(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var r=Nd(t,o,e);a[e]?a[e].p(r,i):(a[e]=ep(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function jd(e){let i,r,n=(e[41]?e[41].currency:"")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?e[41].currency:"")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function zd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Wd(e){let i,r,n=(e[41]?(z(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):z(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(z(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):z(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ud(i){let r,n,o,a,s,l,c,u;function d(){return i[25](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),ae(a,"showpopup",s=i[8][i[43]+1]),ae(a,"iteminfoamount",l=i[41].updateAmount),ae(a,"playercurrency",i[2]),ae(a,"lang",i[3]),ae(a,"clientstyling",i[4]),ae(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),c||(u=fi(n,"click",V(d)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ae(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ae(a,"iteminfoamount",l),4&t[0]&&ae(a,"playercurrency",i[2]),8&t[0]&&ae(a,"lang",i[3]),16&t[0]&&ae(a,"clientstyling",i[4]),32&t[0]&&ae(a,"clientstylingurl",i[5])},d(e){e&&ci(r),c=!1,u()}}}function Yd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function Vd(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),x=e[15]("expirationDate")+"",C=_&&jd(e);function P(e){return e[41].expiryDate?Wd:zd}let E=P(e),T=E(e);function A(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?Yd:"No limit"!=e[41].amount&&e[41].isModified?Ud:void 0}let L=A(e,[-1,-1]),k=L&&L(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(w),s=mi(),l=di("div"),c=hi(b),u=mi(),C&&C.c(),d=mi(),p=di("div"),h=di("div"),m=hi(x),f=mi(),T.c(),g=mi(),k&&k.c(),v=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(h,"class","InfoCardRowTitle"),gi(p,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),si(l,c),si(l,u),C&&C.m(l,null),si(r,d),si(r,p),si(p,h),si(h,m),si(p,f),T.m(p,null),si(i,g),k&&k.m(i,null),si(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(c,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=jd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&yi(m,x),E===(E=P(e))&&T?T.p(e,t):(T.d(1),(T=E(e))&&(T.c(),T.m(p,null))),L===(L=A(e,t))&&k?k.p(e,t):(k&&k.d(1),(k=L&&L(e))&&(k.c(),k.m(i,v)))},d(e){e&&ci(i),C&&C.d(),T.d(),k&&k.d()}}}function Gd(e){let i,r,n=e[15]("noLimit")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("noLimit")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function qd(e){let i,r,n,o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"),s=a&&Zd(e);return{c(){i=hi(o),r=mi(),s&&s.c(),n=I()},m(e,t){li(e,i,t),li(e,r,t),s&&s.m(e,t),li(e,n,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yi(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Zd(e)).c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(e){e&&ci(i),e&&ci(r),s&&s.d(e),e&&ci(n)}}}function Zd(e){let i,r,n=e[15]("minutes")+"";return{c(){i=di("span"),r=hi(n),gi(i,"class","InfoCardCurrency")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("minutes")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Kd(e){let i,r,n=e[15]("notAvailable")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){32768&t[0]&&n!==(n=e[15]("notAvailable")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Xd(e){let i,r,n=(e[41]?(z(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):z(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=di("div"),r=hi(n),gi(i,"class","InfoCardRowValue")},m(e,t){li(e,i,t),si(i,r)},p(e,t){1&t[0]&&n!==(n=(e[41]?(z(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):z(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Jd(i){let r,n,o,a,s,l,c,u,d;function p(){return i[24](i[43])}return{c(){r=di("div"),(n=di("span")).textContent="i",o=mi(),a=di("player-account-gaming-limits-popup"),gi(n,"class","InfoCardIcon"),ae(a,"showpopup",s=i[8][i[43]+1]),ae(a,"iteminfoamount",l=i[41].updateMinutes),ae(a,"playercurrency",c=i[15]("minutes")),ae(a,"lang",i[3]),ae(a,"clientstyling",i[4]),ae(a,"clientstylingurl",i[5]),gi(r,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){li(e,r,t),si(r,n),si(r,o),si(r,a),u||(d=fi(n,"click",V(p)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ae(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ae(a,"iteminfoamount",l),32768&t[0]&&c!==(c=i[15]("minutes"))&&ae(a,"playercurrency",c),8&t[0]&&ae(a,"lang",i[3]),16&t[0]&&ae(a,"clientstyling",i[4]),32&t[0]&&ae(a,"clientstylingurl",i[5])},d(e){e&&ci(r),u=!1,d()}}}function Qd(i){let r,n,o;return{c(){(r=di("div")).innerHTML="<span></span>",gi(r,"class","InfoCardRemoveIcon")},m(e,t){li(e,r,t),n||(o=fi(r,"click",function(){ue(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),n=!0)},p(e,t){i=e},d(e){e&&ci(r),n=!1,o()}}}function ep(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("expirationDate")+"";function w(e){return 0!==e[41].amount?qd:Gd}let b=w(e),_=b(e);function x(e){return e[41].expiryDate?Xd:Kd}let C=x(e),P=C(e);function E(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?Qd:"No limit"!=e[41].amount&&e[41].isModified?Jd:void 0}let T=E(e,[-1,-1]),A=T&&T(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=di("div"),a=hi(y),s=mi(),l=di("div"),_.c(),c=mi(),u=di("div"),d=di("div"),p=hi(v),h=mi(),P.c(),m=mi(),A&&A.c(),g=mi(),gi(o,"class","InfoCardRowTitle"),gi(l,"class","InfoCardRowValue"),gi(n,"class","InfoCardRow InfoMainRow"),gi(d,"class","InfoCardRowTitle"),gi(u,"class","InfoCardRow"),gi(r,"class","InfoCardRowContainer"),gi(i,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(o,a),si(n,s),si(n,l),_.m(l,null),si(r,c),si(r,u),si(u,d),si(d,p),si(u,h),P.m(u,null),si(i,m),A&&A.m(i,null),si(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yi(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&yi(p,v),C===(C=x(e))&&P?P.p(e,t):(P.d(1),(P=C(e))&&(P.c(),P.m(u,null))),T===(T=E(e,t))&&A?A.p(e,t):(A&&A.d(1),(A=T&&T(e))&&(A.c(),A.m(i,g)))},d(e){e&&ci(i),_.d(),P.d(),A&&A.d()}}}function tp(i){let r,n,o,a,s=i[15]("removeLimits")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","InfoCardRemoveButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function ip(e){let i,r,n;return{c(){i=di("player-account-modal"),ae(r=di("player-account-gaming-limits-confirmation-modal"),"modaltext",n=e[10]?e[12]:e[13]),ae(r,"modalsource","infoCard"),ae(r,"lang",e[3]),ae(r,"clientstyling",e[4]),ae(r,"clientstylingurl",e[5]),ae(i,"clientstyling",e[4]),ae(i,"clientstylingurl",e[5])},m(e,t){li(e,i,t),si(i,r)},p(e,t){13312&t[0]&&n!==(n=e[10]?e[12]:e[13])&&ae(r,"modaltext",n),8&t[0]&&ae(r,"lang",e[3]),16&t[0]&&ae(r,"clientstyling",e[4]),32&t[0]&&ae(r,"clientstylingurl",e[5]),16&t[0]&&ae(i,"clientstyling",e[4]),32&t[0]&&ae(i,"clientstylingurl",e[5])},d(e){e&&ci(i)}}}function rp(i){let r;function n(e){return e[7]?Od:Fd}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[28](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[28](null)}}}function np(r,e,n){let o,{limitsdata:a=[]}=(Le(r,De,e=>n(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e;Object.keys(Xu).forEach(e=>{Ku(e,Xu[e])});let p,h=!0,i=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==$e(v),b="",_="",x=!0,C=z();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},E=e=>{n(11,y=!0),n(10,g=!0),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:s},window.location.href)},T=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{n(8,i[e]=!0,i)},50)},A=(e,t,i,r)=>{e.splice(t,0,"time"===r?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},L=(e,t)=>"Weekly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Daily"===t.period||"Monthly"===e.period&&"Weekly"===t.period?1:"Daily"===e.period&&"Weekly"===t.period||"Daily"===e.period&&"Monthly"===t.period||"Weekly"===e.period&&"Monthly"===t.period?-1:0,k=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":n(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),n(11,y=!1),n(10,g=!1)}};return ke(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)})),r.$$set=e=>{"limitsdata"in e&&n(0,a=e.limitsdata),"limitname"in e&&n(1,s=e.limitname),"playercurrency"in e&&n(2,t=e.playercurrency),"lang"in e&&n(3,l=e.lang),"clientstyling"in e&&n(4,c=e.clientstyling),"clientstylingurl"in e&&n(5,u=e.clientstylingurl),"translationurl"in e&&n(22,d=e.translationurl)},r.$$.update=()=>{if(11&r.$$.dirty[0]&&a&&s&&l){var e=l;Se.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",n(12,b=o("removeLimitsText",{values:{limit:e}})),n(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&n(14,x=!1)});{var i=a;const t=m;m.forEach((t,e)=>{i.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&n(9,f=!1)}),n(7,h=!1)}),m.forEach(e=>{"Time Limit"===i.name?A(i,t.indexOf(e),e,"time"):A(i,t.indexOf(e),e,"currency")})}a.sort(L)}if(80&r.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&r.$$.dirty[0]&&u&&p){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}4194304&r.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ku(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,i,f,g,y,b,_,x,o,w,C,P,E,(e,t)=>{n(11,y=!0),n(10,g=!1),window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href),window.postMessage({type:"DeleteLimitsItem",removeData:e,removeName:t},window.location.href)},T,d,()=>T(0),e=>T(e+1),e=>T(e+1),()=>P(a),()=>E(a),function(e){Me[e?"unshift":"push"](()=>{p=e,n(6,p)})}]}function op(e){let i;return{c(){ae(i=di("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ae(i,"limitname",e[14]),ae(i,"showsuccessnotification",e[7]),ae(i,"showdeletenotification",e[6]),ae(i,"playercurrency",e[5]),ae(i,"lang",e[0]),ae(i,"separatelimits",e[8]),ae(i,"clientstyling",e[9]),ae(i,"clientstylingurl",e[10])},m(e,t){li(e,i,t)},p(e,t){8192&t&&ae(i,"limitsdata",e[13]),16384&t&&ae(i,"limitname",e[14]),128&t&&ae(i,"showsuccessnotification",e[7]),64&t&&ae(i,"showdeletenotification",e[6]),32&t&&ae(i,"playercurrency",e[5]),1&t&&ae(i,"lang",e[0]),256&t&&ae(i,"separatelimits",e[8]),512&t&&ae(i,"clientstyling",e[9]),1024&t&&ae(i,"clientstylingurl",e[10])},d(e){e&&ci(i)}}}function ap(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[16]("gamingLimitsText")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(e);return{c(){i=di("div"),g&&g.c(),r=mi(),n=di("h2"),o=hi(f),a=mi(),s=di("div"),l=di("player-account-gaming-limits-info-card"),c=mi(),u=di("player-account-gaming-limits-info-card"),d=mi(),p=di("player-account-gaming-limits-info-card"),h=mi(),m=di("player-account-gaming-limits-info-card"),gi(n,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ae(l,"limitsdata",e[1]),ae(l,"limitname",cp),ae(l,"playercurrency",e[5]),ae(l,"lang",e[0]),ae(l,"clientstyling",e[9]),ae(l,"clientstylingurl",e[10]),ae(u,"limitsdata",e[2]),ae(u,"limitname",up),ae(u,"playercurrency",e[5]),ae(u,"lang",e[0]),ae(u,"clientstyling",e[9]),ae(u,"clientstylingurl",e[10]),ae(p,"limitsdata",e[3]),ae(p,"limitname",dp),ae(p,"playercurrency",e[5]),ae(p,"lang",e[0]),ae(p,"clientstyling",e[9]),ae(p,"clientstylingurl",e[10]),ae(m,"limitsdata",e[4]),ae(m,"limitname",pp),ae(m,"playercurrency",e[5]),ae(m,"lang",e[0]),ae(m,"clientstyling",e[9]),ae(m,"clientstylingurl",e[10]),gi(s,"class","PlayerAccountGamingLimitsContainer"),gi(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){li(e,i,t),g&&g.m(i,null),si(i,r),si(i,n),si(n,o),si(i,a),si(i,s),si(s,l),si(s,c),si(s,u),si(s,d),si(s,p),si(s,h),si(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&yi(o,f),2&t&&ae(l,"limitsdata",e[1]),32&t&&ae(l,"playercurrency",e[5]),1&t&&ae(l,"lang",e[0]),512&t&&ae(l,"clientstyling",e[9]),1024&t&&ae(l,"clientstylingurl",e[10]),4&t&&ae(u,"limitsdata",e[2]),32&t&&ae(u,"playercurrency",e[5]),1&t&&ae(u,"lang",e[0]),512&t&&ae(u,"clientstyling",e[9]),1024&t&&ae(u,"clientstylingurl",e[10]),8&t&&ae(p,"limitsdata",e[3]),32&t&&ae(p,"playercurrency",e[5]),1&t&&ae(p,"lang",e[0]),512&t&&ae(p,"clientstyling",e[9]),1024&t&&ae(p,"clientstylingurl",e[10]),16&t&&ae(m,"limitsdata",e[4]),32&t&&ae(m,"playercurrency",e[5]),1&t&&ae(m,"lang",e[0]),512&t&&ae(m,"clientstyling",e[9]),1024&t&&ae(m,"clientstylingurl",e[10])},d(e){e&&ci(i),g&&g.d()}}}function sp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function lp(i){let r;function n(e){return e[12]?sp:e[15]?ap:op}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[22](r)},p(e,[t]){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:relative;background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));margin:0 20px}.GamingLimitsConfirmationContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);color:var(--emfe-w-color-black, #000000);padding:60px 30px 30px 30px;text-align:center}.GamingLimitsConfirmationContainerMobile{padding:30px}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{width:100%;font-size:18px;line-height:48px;border-radius:5px;color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);background-color:transparent;text-transform:uppercase;cursor:pointer}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:40px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},md,hd,i,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),p()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),p()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Bd,$d,i,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,playercurrency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[1]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get playercurrency(){return this.$$.ctx[4]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@charset "UTF-8";.InfoCard{padding:20px;color:var(--emfe-w-color-black, #000000);background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839))}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emfe-w-color-black, #000000)}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid ar(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},np,rp,i,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),p()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),p()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),p()}});let cp="Deposit Limit",up="Wagering Limit",dp="Loss Limit",pp="Time Limit";function hp(t,e,i){let r,n=(Le(t,De,e=>i(16,r=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:c=!1}=e,{lang:u="en"}=e,{playercurrency:d=""}=e,{separatelimits:p="true"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g;Object.keys(Zu).forEach(e=>{qu(e,Zu[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==$e(w),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,u=e.data.limits.lang),i(1,n=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return ke(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&i(1,n=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,c=e.showsuccessnotification),"lang"in e&&i(0,u=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,p=e.separatelimits),"clientstyling"in e&&i(9,h=e.clientstyling),"clientstylingurl"in e&&i(10,m=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,Se.set(e)),2560&t.$$.dirty&&h&&g&&((e=document.createElement("style")).innerHTML=h,g.appendChild(e)),3072&t.$$.dirty&&m&&g){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{g.appendChild(t)},1)})}var e;1048576&t.$$.dirty&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qu(e,t[e])})}).catch(e=>{console.log(e)})},[u,n,o,a,s,d,l,c,p,h,m,g,v,y,_,x,r,b,C,P,f,()=>P(),function(e){Me[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}function mp(e,t){B(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},hp,lp,i,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,playercurrency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,translationurl:20},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["depositlimit","wageringlimit","losslimit","timelimit","showdeletenotification","showsuccessnotification","lang","playercurrency","separatelimits","clientstyling","clientstylingurl","translationurl"]}get depositlimit(){return this.$$.ctx[1]}set depositlimit(e){this.$$set({depositlimit:e}),p()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),p()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),p()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),p()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),p()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),p()}});const fp={en:{title:"Active Bonuses",bonusCode:"Do you have a bonus code?",getBonus:"Get Bonus",invalidBonusCode:"The bonus code provided is invalid.",noActiveBonuses:"You have no active bonuses at the moment.",forfeitBonus:"Are you sure want to forfeit bonus?",forfeitBonusConfirm:"Confirm",forfeitBonusCancel:"Cancel",successMessage:"Bonus claimed!",errorMessage:"Invalid bonus"},"zh-hk":{title:"活躍獎金",bonusCode:"你有獎金代碼嗎?",getBonus:"獲得獎金",invalidBonusCode:"提供的紅利代碼無效。",noActiveBonuses:"您目前沒有有效的獎金。",forfeitBonus:"您確定要放棄獎金及其獎金嗎?",forfeitBonusConfirm:"確認",forfeitBonusCancel:"取消",successMessage:"獎金要求!",errorMessage:"無效獎金"},fr:{title:"Bonus actifs",bonusCode:"Avez-vous un code bonus?",getBonus:"Obtenir un bonus",invalidBonusCode:"Le code bonus fourni n'est pas valide.",noActiveBonuses:"Vous n'avez pas de bonus actifs pour le moment.",forfeitBonus:"Etes-vous sûr de vouloir supprimer le bonus et ses gains?",forfeitBonusConfirm:"Confirmer",forfeitBonusCancel:"Annuler",successMessage:"Bonus réclamé!",errorMessage:"Bonus invalide"},ro:{title:"Bonusuri active",bonusCode:"Ai un cod de bonus?",getBonus:"Revendică",invalidBonusCode:"Codul de bonus introdus este invalid.",noActiveBonuses:"Nu ai niciun bonus activ în acest moment.",forfeitBonus:"Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",forfeitBonusConfirm:"Confirmă",forfeitBonusCancel:"Anulează",successMessage:"Bonus revendicat!",errorMessage:"Bonus invalid"},es:{title:"Bonos Activos",bonusCode:"Tienes un código de Bono?",getBonus:"Obtener Bono",invalidBonusCode:"El código del Bono no es válido.",noActiveBonuses:"Usted no tiene Bonos activos en este momento.",forfeitBonus:"Estas seguro que quieres perder el bono?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bono adjudicado!",errorMessage:"Bono invalido"},pt:{title:"Bônus Ativos",bonusCode:"Você tem um código de bônus?",getBonus:"Obter bônus",invalidBonusCode:"O código de bônus fornecido é inválido.",noActiveBonuses:"Você não tem bônus ativos no momento.",forfeitBonus:"Tem certeza de que deseja perder o bônus e seus ganhos?",forfeitBonusConfirm:"Confirmar",forfeitBonusCancel:"Cancelar",successMessage:"Bônus reivindicado!",errorMessage:"Bônus inválido"},hr:{title:"Aktivni bonusi",bonusCode:"Imate li bonus kod?",getBonus:"Preuzmi bonus",invalidBonusCode:"Navedeni bonus kod je nevažeći.",noActiveBonuses:"Trenutno nemate aktivnih bonusa.",forfeitBonus:"Jeste li sigurni da želite otkazati bonus?",forfeitBonusConfirm:"Potvrdi",forfeitBonusCancel:"Otkaži",successMessage:"Preuzet bonus!",errorMessage:"Nevažeći bonus"}};function gp(e,t){B(e,t)}const yp={en:{date:"Granted date:",bonusName:"Bonus Name",bonusType:"Bonus Type",bonusAmount:"Bonus Amount",wageringAmount:"Wagering Progress (Rollover)",remainingBonus:"Current Bonus Balance",forfeitBonus:"Forfeit Bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},"zh-hk":{date:"授予日期:",bonusName:"獎金名稱",bonusType:"獎金類型",bonusAmount:"獎金金額",wageringAmount:"投注進展",remainingBonus:"剩餘紅利金額",forfeitBonus:"沒收獎金",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},fr:{date:"Date d'attribution:",bonusName:"Nom du bonus",bonusType:"Type de bonus",bonusAmount:"Montant du bonus",wageringAmount:"Changer les progrès",remainingBonus:"Montant du bonus restant",forfeitBonus:"Supprimer le bonus",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},ro:{date:"Dată Alocare:",bonusName:"Nume bonus",bonusType:"Tip de bonus",bonusAmount:"Sumă",wageringAmount:"Progresul de pariere",remainingBonus:"Bonus rămas",forfeitBonus:"Anulează bonusul",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},es:{date:"Fecha de Canje",bonusName:"Nombre de Bono",bonusType:"Tipo de Bono",bonusAmount:"Monto de Bono",wageringAmount:"Progreso ( Rollover)",remainingBonus:"Saldo Actual de Bono",forfeitBonus:"cancelar bono",active:"Activo",released:"released",expired:"expired",forfeited:"forfeited"},pt:{date:"Data de atribuição do bônus:",bonusName:"Nome do bônus",bonusType:"Tipo de bônus",bonusAmount:"Valor do bônus",wageringAmount:"Progresso de apostas",remainingBonus:"Valor do bônus restante",forfeitBonus:"Bônus de Perda",active:"active",released:"released",expired:"expired",forfeited:"forfeited"},hr:{date:"Odobreni datum:",bonusName:"Ime bonusa",bonusType:"Vrsta bonusa",bonusAmount:"Iznos bonusa",wageringAmount:"Potrebno odigrati",remainingBonus:"Trenutno stanje bonusa",forfeitBonus:"Otkaži bonus",active:"activan",released:"razriješen",expired:"Istekao",forfeited:"otkazan"}};function vp(e){let i,r,n,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[3]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&yi(n,u),8&t&&yi(s,e[3]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function wp(e){let i,r,n,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[4]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&yi(n,u),16&t&&yi(s,e[4]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function bp(e){let i,r,n,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){i=di("div"),r=di("p"),n=hi(u),o=mi(),a=di("p"),s=hi(e[5]),l=mi(),c=hi(e[6]),gi(r,"class","BonusCardRowTitle"),gi(a,"class","BonusCardRowText"),gi(i,"class","BonusCardRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),si(i,a),si(a,s),si(a,l),si(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&yi(n,u),32&t&&yi(s,e[5]),64&t&&yi(c,e[6])},d(e){e&&ci(i)}}}function _p(i){let r,n,o,a,s=i[9]("forfeitBonus")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","DeleteBonus "+(i[10]?"DeleteBonusMobile":""))},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function xp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,O,x,C,P,R,E,T,H,A,L,j,k=i[9]("date")+"",M=z(i[0]).format("DD/MM/YYYY h:mm A")+"",S=i[9](""+i[1])+"",D=i[9]("bonusName")+"",$=i[9]("bonusType")+"",B=i[3]&&vp(i),I=i[4]&&wp(i),N=i[5]&&bp(i),F="active"===i[1]&&_p(i);return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(k),l=mi(),c=di("span"),u=hi(M),d=mi(),p=di("p"),h=hi(S),f=mi(),g=di("div"),y=di("p"),v=hi(D),w=mi(),b=di("p"),_=hi(i[2]),O=mi(),x=di("div"),C=di("p"),P=hi($),R=mi(),E=di("p"),T=hi(i[8]),H=mi(),B&&B.c(),A=mi(),I&&I.c(),L=mi(),N&&N.c(),j=mi(),F&&F.c(),this.c=oe,gi(a,"class","BonusCardRowTitle"),gi(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===i[1]||"released"===i[1]?"StatusActive":"")+" "+("expired"===i[1]?"StatusExpired":"")+" "+("forfeited"===i[1]?"StatusForfeited":"")),gi(o,"class","BonusCardRow"),gi(y,"class","BonusCardRowTitle"),gi(b,"class","BonusCardRowText"),gi(g,"class","BonusCardRow"),gi(C,"class","BonusCardRowTitle"),gi(E,"class","BonusCardRowText TextCapitalize"),gi(x,"class","BonusCardRow"),gi(n,"class","BonusCardInfo"),gi(r,"class","BonusCard")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(a,l),si(a,c),si(c,u),si(o,d),si(o,p),si(p,h),si(n,f),si(n,g),si(g,y),si(y,v),si(g,w),si(g,b),si(b,_),si(n,O),si(n,x),si(x,C),si(C,P),si(x,R),si(x,E),si(E,T),si(n,H),B&&B.m(n,null),si(n,A),I&&I.m(n,null),si(n,L),N&&N.m(n,null),si(r,j),F&&F.m(r,null),i[18](r)},p(e,[t]){512&t&&k!==(k=e[9]("date")+"")&&yi(s,k),1&t&&M!==(M=z(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yi(u,M),514&t&&S!==(S=e[9](""+e[1])+"")&&yi(h,S),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&gi(p,"class",m),512&t&&D!==(D=e[9]("bonusName")+"")&&yi(v,D),4&t&&yi(_,e[2]),512&t&&$!==($=e[9]("bonusType")+"")&&yi(P,$),256&t&&yi(T,e[8]),e[3]?B?B.p(e,t):((B=vp(e)).c(),B.m(n,A)):B&&(B.d(1),B=null),e[4]?I?I.p(e,t):((I=wp(e)).c(),I.m(n,L)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=bp(e)).c(),N.m(n,null)):N&&(N.d(1),N=null),"active"===e[1]?F?F.p(e,t):((F=_p(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),i[18](null)}}}function Cp(t,e,i){let r;Le(t,De,e=>i(9,r=e));let n,{bonuswalletid:o=""}=e,{bonusdate:a=""}=e,{bonusstatus:s=""}=e,{bonusname:l=""}=e,{bonustype:c=""}=e,{bonusamount:u=""}=e,{bonuswageringamount:d=""}=e,{bonusremainingamount:p=""}=e,{bonuscurrency:h=""}=e,{lang:m="en"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,v=window.navigator.userAgent,w="PC"!==$e(v),b="";Object.keys(yp).forEach(e=>{gp(e,yp[e])});return t.$$set=e=>{"bonuswalletid"in e&&i(12,o=e.bonuswalletid),"bonusdate"in e&&i(0,a=e.bonusdate),"bonusstatus"in e&&i(1,s=e.bonusstatus),"bonusname"in e&&i(2,l=e.bonusname),"bonustype"in e&&i(13,c=e.bonustype),"bonusamount"in e&&i(3,u=e.bonusamount),"bonuswageringamount"in e&&i(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&i(5,p=e.bonusremainingamount),"bonuscurrency"in e&&i(6,h=e.bonuscurrency),"lang"in e&&i(14,m=e.lang),"clientstyling"in e&&i(15,f=e.clientstyling),"clientstylingurl"in e&&i(16,g=e.clientstylingurl),"translationurl"in e&&i(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,Se.set(e)),8192&t.$$.dirty&&c&&(i(8,b=c),"freeRound"===b?i(8,b="Free Spins"):"freeBet"===b&&i(8,b="Free Bet")),65664&t.$$.dirty&&g&&n){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{gp(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,n,b,r,w,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,c,m,f,g,y,function(e){Me[e?"unshift":"push"](()=>{n=e,i(7,n)})}]}function Pp(e,t,i){e=e.slice();return e[43]=t[i],e[45]=i,e}function Ep(e,t,i){e=e.slice();return e[46]=t[i],e}function Tp(e){let i,r,n=e[14]("invalidBonusCode")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidBonusCodeMessage")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("invalidBonusCode")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ap(t){let n,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=Sp(Ep(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(4103&i[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var r=Ep(t,o,e);a[e]?a[e].p(r,i):(a[e]=Sp(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Lp(e){let i,r,n=e[14]("noActiveBonuses")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noActiveBonuses")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function kp(e){let i,r,n,o,a,s,l,c,u,d;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),ae(i,"bonusdate",n=e[46].granted),ae(i,"bonusstatus",o=e[46].status),ae(i,"bonusname",a=e[46].name),ae(i,"bonustype",s=e[46].type),ae(i,"bonusamount",l=e[46].extension.grantedPlayerCurrencyAmount),ae(i,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),ae(i,"bonusremainingamount",u=e[46].currentAmount),ae(i,"bonuscurrency",d=e[46].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&ae(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&ae(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&ae(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&ae(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&ae(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].extension.grantedPlayerCurrencyAmount)&&ae(i,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&ae(i,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&ae(i,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&ae(i,"bonuscurrency",d),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Mp(e){let i,r,n,o,a,s,l;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[46].walletId),ae(i,"bonusdate",n=e[46].granted),ae(i,"bonusstatus",o=e[46].status),ae(i,"bonusname",a=e[46].name),ae(i,"bonustype",s=e[46].type),ae(i,"bonuscurrency",l=e[46].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){4096&t[0]&&r!==(r=e[46].walletId)&&ae(i,"bonuswalletid",r),4096&t[0]&&n!==(n=e[46].granted)&&ae(i,"bonusdate",n),4096&t[0]&&o!==(o=e[46].status)&&ae(i,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&ae(i,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&ae(i,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&ae(i,"bonuscurrency",l),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Sp(e){let i;function r(e){return"freeRound"===e[46].type?Mp:kp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Dp(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=$p(Pp(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[11]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[11]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[11]===i[10]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[11]===i[10]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[29]),fi(l,"click",i[30]),fi(p,"click",i[32]),fi(g,"click",i[33])],w=!0)},p(t,i){if(2048&i[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&gi(n,"class",a),2048&i[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&gi(l,"class",e),265216&i[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=Pp(t,_,e);x[e]?x[e].p(a,i):(x[e]=$p(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&i[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&gi(p,"class",m),3072&i[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function $p(i){let r,n,o,a,s,e=i[45]+1+"";function l(){return i[31](i[45])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,2048&t[0]&&o!==(o="BonusesPage "+(i[45]===i[11]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function Bp(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[14]("forfeitBonus")+"",v=i[14]("forfeitBonusCancel")+"",w=i[14]("forfeitBonusConfirm")+"";return{c(){r=di("div"),n=di("div"),o=di("div"),a=di("p"),s=hi(y),l=mi(),c=di("div"),u=di("button"),d=hi(v),p=mi(),h=di("button"),m=hi(w),gi(a,"class","ModalText"),gi(u,"class","ModalCancel"),gi(h,"class","ModalConfirm"),gi(c,"class","ModalButtons"),gi(o,"class","ModalBody"),gi(n,"class","ModalContent"),gi(r,"class","ModalWrapper "+(i[15]?"ModalWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(o,l),si(o,c),si(c,u),si(u,d),si(c,p),si(c,h),si(h,m),f||(g=[fi(u,"click",i[20]),fi(h,"click",i[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&yi(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&yi(d,v),16384&t[0]&&w!==(w=e[14]("forfeitBonusConfirm")+"")&&yi(m,w)},d(e){e&&ci(r),f=!1,ai(g)}}}function Ip(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E=i[14]("title")+"",T=i[14]("bonusCode")+"",A=i[14]("getBonus")+"",L=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ActiveBonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),k=i[5]&&Tp(i);function M(e){return 0===e[12].length?Lp:Ap}let S=M(i),D=S(i),$=0!==i[12].length&&Dp(i),B=i[13]&&Bp(i);return{c(){r=di("div"),L&&L.c(),n=mi(),o=di("h2"),a=hi(E),s=mi(),l=di("div"),c=di("label"),u=hi(T),d=mi(),p=di("div"),h=di("input"),m=mi(),f=di("button"),g=hi(A),y=mi(),k&&k.c(),v=mi(),w=di("div"),D.c(),b=mi(),$&&$.c(),_=mi(),B&&B.c(),x=I(),gi(o,"class","ActiveBonusesTitle "+(i[15]?"ActiveBonusesTitleNone":"")),gi(c,"for","BonusCode"),gi(h,"class","BonusCodeInput "+(i[15]?"BonusCodeInputMobile":"")),gi(h,"type","text"),gi(h,"id","BonusCode"),gi(f,"class","SubmitBonusCode "+(i[15]?"SubmitBonusCodeMobile":"")),f.disabled=i[4],gi(p,"class","BonusCodeWrapper "+(i[15]?"BonusCodeWrapperMobile":"")),gi(l,"class","BonusCodeContainer "+(i[15]?"BonusCodeContainerMobile":"")),gi(w,"class","ActiveBonusesGrid "+(i[15]?"ActiveBonusesGridMobile":"")),gi(r,"class","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":"")),gi(r,"part","ActiveBonusesWrapper "+(i[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){li(e,r,t),L&&L.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),vi(h,i[6]),si(p,m),si(p,f),si(f,g),si(l,y),k&&k.m(l,null),si(r,v),si(r,w),D.m(w,null),si(r,b),$&&$.m(r,null),li(e,_,t),B&&B.m(e,t),li(e,x,t),C||(P=[fi(h,"input",i[28]),fi(h,"keyup",i[17]),fi(f,"click",i[19])],C=!0)},p(e,t){e[15]&&L.p(e,t),16384&t[0]&&E!==(E=e[14]("title")+"")&&yi(a,E),16384&t[0]&&T!==(T=e[14]("bonusCode")+"")&&yi(u,T),64&t[0]&&h.value!==e[6]&&vi(h,e[6]),16384&t[0]&&A!==(A=e[14]("getBonus")+"")&&yi(g,A),16&t[0]&&(f.disabled=e[4]),e[5]?k?k.p(e,t):((k=Tp(e)).c(),k.m(l,null)):k&&(k.d(1),k=null),S===(S=M(e))&&D?D.p(e,t):(D.d(1),(D=S(e))&&(D.c(),D.m(w,null))),0!==e[12].length?$?$.p(e,t):(($=Dp(e)).c(),$.m(r,null)):$&&($.d(1),$=null),e[13]?B?B.p(e,t):((B=Bp(e)).c(),B.m(x.parentNode,x)):B&&(B.d(1),B=null)},d(e){e&&ci(r),L&&L.d(),k&&k.d(),D.d(),$&&$.d(),e&&ci(_),B&&B.d(e),e&&ci(x),C=!1,ai(P)}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[34](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[34](null)}}}function Np(t,e,r){let i;Le(t,De,e=>r(14,i=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{playercurrency:c=""}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,h=window.navigator.userAgent,m="PC"!==$e(h),f,g=!1,y="",v=0,w=0,b=0,_=0,x=0,C=[],P="",E=!1;Object.keys(fp).forEach(e=>{mp(e,fp[e])});const T=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,r(13,E=!0))},A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},L=t=>{var e={method:"GET",headers:{"X-SessionId":a}},i=new URL(`${o}/v1/player/${s}/bonusWallet`);i.searchParams.append("filter","status=active"),i.searchParams.append("pagination",`offset=${t},limit=6`),fetch(i,e).then(e=>e.json()).then(e=>{r(10,_=Math.ceil(e.total/6)),0<=t-6&&r(7,v=t-6),t+6<e.total&&r(8,w=t+6),r(9,b=6*(_-1)),r(11,x=t/6),r(12,C=e.items)},e=>{console.error(e)})},k=()=>{window.postMessage({type:"EnableScroll"},window.location.href),r(13,E=!1)};return ke(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"endpoint"in e&&r(22,o=e.endpoint),"session"in e&&r(23,a=e.session),"playerid"in e&&r(24,s=e.playerid),"lang"in e&&r(0,l=e.lang),"playercurrency"in e&&r(25,c=e.playercurrency),"clientstyling"in e&&r(1,u=e.clientstyling),"clientstylingurl"in e&&r(2,d=e.clientstylingurl),"translationurl"in e&&r(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,Se.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&L(0),12&t.$$.dirty[0]&&d&&n){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&n&&((e=document.createElement("style")).innerHTML=u,n.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,n,!0,g,y,v,w,b,_,x,C,E,i,m,A,()=>{r(4,f=!y)},L,()=>{var e=new URL(`${o}/v1/player/${s}/claimbonus`),t={method:"POST",headers:{"X-SessionId":a,accept:"application/json"}};e.searchParams.append("currency",c),e.searchParams.append("bonusCode",y),fetch(e.href,t).then(e=>{200==e.status?(r(5,g=!1),L(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(r(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorMessage")}},window.location.href))})},k,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/v1/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(L(0),k())})},o,a,s,c,p,()=>A(),function(){y=this.value,r(6,y)},()=>L(0),()=>L(v),e=>L(6*e),()=>L(w),()=>L(b),function(e){Me[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function Fp(e,t){B(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusCard{background-color:var(--emfe-w-color-white, #FFFFFF);padding:10px 20px 20px;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:14px}.BonusCardRow .BonusCardRowTitle{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:700}.BonusCardRow .BonusCardRowTitle span{font-weight:400;color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emfe-w-color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:700;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.DeleteBonus{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:50%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Cp,xp,i,{bonuswalletid:12,bonusdate:0,bonusstatus:1,bonusname:2,bonustype:13,bonusamount:3,bonuswageringamount:4,bonusremainingamount:5,bonuscurrency:6,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["bonuswalletid","bonusdate","bonusstatus","bonusname","bonustype","bonusamount","bonuswageringamount","bonusremainingamount","bonuscurrency","lang","clientstyling","clientstylingurl","translationurl"]}get bonuswalletid(){return this.$$.ctx[12]}set bonuswalletid(e){this.$$set({bonuswalletid:e}),p()}get bonusdate(){return this.$$.ctx[0]}set bonusdate(e){this.$$set({bonusdate:e}),p()}get bonusstatus(){return this.$$.ctx[1]}set bonusstatus(e){this.$$set({bonusstatus:e}),p()}get bonusname(){return this.$$.ctx[2]}set bonusname(e){this.$$set({bonusname:e}),p()}get bonustype(){return this.$$.ctx[13]}set bonustype(e){this.$$set({bonustype:e}),p()}get bonusamount(){return this.$$.ctx[3]}set bonusamount(e){this.$$set({bonusamount:e}),p()}get bonuswageringamount(){return this.$$.ctx[4]}set bonuswageringamount(e){this.$$set({bonuswageringamount:e}),p()}get bonusremainingamount(){return this.$$.ctx[5]}set bonusremainingamount(e){this.$$set({bonusremainingamount:e}),p()}get bonuscurrency(){return this.$$.ctx[6]}set bonuscurrency(e){this.$$set({bonuscurrency:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}}),customElements.get("player-active-bonuses")||customElements.define("player-active-bonuses",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Np,Ip,i,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[22]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[24]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get playercurrency(){return this.$$.ctx[25]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Op={en:{title:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"},"zh-hk":{title:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",securityQuestion:"安全問題:",securityQuestionError:"安全問題的長度必須至少為 1 個字符,最多 120 個字符。",firstName:"名:",securityAnswer:"安全答案:",securityAnswerError:"安全答案的長度必須至少為 1 個字符,最多為 120 個字符。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",userTitle:"標題:",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",userAppSettings:"生物识别",userSMSNotification:"啟用短信通知",userBiometrics:"启用生物识别",userEmailNotification:"啟用電子郵件",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!"},fr:{title:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",securityQuestion:"Questions de sécurité:",securityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",firstName:"Prénom:",securityAnswer:"Reponses de sécurité:",securityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",userTitle:"Titre:",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",userAppSettings:"Biométrie",userSMSNotification:"Activer les notifications par sms",userBiometrics:"Activer la biométrie",userEmailNotification:"Activer les e-mails",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!"},ro:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Raspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"},tr:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 12 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"İlk adı:",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"},es:{title:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",securityQuestion:"Tipo de Documento (DNI, CE o Pasaporte):",securityQuestionError:"La Pregunta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",firstName:"Nombre",securityAnswer:"Número de Documento:",securityAnswerError:"La Respuesta de seguridad debe tener un mínimo de 1 carácter y un máximo de 120 caracteres",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",userTitle:"Título:",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",userAppSettings:"Biometría",userSMSNotification:"Habilitar notificaciones SMS",userBiometrics:"Habilitar datos biométricos",userEmailNotification:"Habilitar Emails",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!"},pt:{title:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",securityQuestion:"Pergunta de segurança:",securityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",firstName:"Primeiro nome:",securityAnswer:"Resposta de segurança:",securityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",userTitle:"Título:",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",userAppSettings:"Biometrics",userSMSNotification:"Ativar notificações por SMS",userBiometrics:"Ativar biometria.",userEmailNotification:"Ativar notificações por e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!"},hr:{title:"Informacije o profilu",personalDetails:"Osobni podatci",userName:"Korisničko ime:",userPhone:"Telefon:",userPhoneError:"Broj telefona mora imati najmanje 5 znakova i najviše 12 znakova.","userE-mail":"E-mail:",profileSecurityQuestion:"Sigurnosno pitanje",profileSecurityQuestion2:"Vrsta dokumenta",profileSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",firstName:"Ime",profileSecurityAnswer:"Sigurnosni odgovor",profileSecurityAnswer2:"Broj dokumenta:",profileSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",lastName:"Prezime",dateOfBirth:"Datum rođenja:",currency:"Valuta:",userTitle:"Titula:",locationDetails:"Detalji lokacije",userCountry:"Zemlja:",userCity:"Grad:",userCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",userAddress:"Adresa:",userAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",userPostalCode:"Poštanski broj:",userPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",userNotifications:"Obavijesti",userAppSettings:"Biometrija",userSMSNotification:"Omogućite SMS obavijesti",userBiometrics:"Omogući biometriju","userE-mailNotification":"Omogući e-mail",userProfileSaveChanges:"Spremi promjene",userProfileConfirmationMessage:"Vaše izmjene su spremljene!"}};function Rp(){"undefined"!=typeof window&&window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var i,r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t)return i=window.cstmNativeBridge.eventListeners[r],window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],i&&i.apply(this,arguments),t.apply(this,arguments)},!0;console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t,i=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof i?(t=Array.prototype.slice.call(arguments,1),i.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var Hp,jp,zp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Wp=function(e,...t){try{return Rp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Up=function(e,t){try{return Rp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Yp(e,t,i){e=e.slice();return e[108]=t[i],e}function Vp(i){let n,O,R,H,j,z,W,U,Y,r,V,G,q,Z,o,K,a,X,J,Q,ee,s,te,l,e,ie,re,ne,c,oe,ae,se,le,ce,u,ue,de,pe,he,d,me,fe,ge,ye,ve,p,we,be,_e,xe,Ce,Pe,Ee,Te,h,Ae,Le,ke,Me,Se,m,De,$e,Be,Ie,Ne,f,Fe,Oe,Re,He,je,g,ze,We,Ue,Ye,Ve,y,Ge,qe,Ze,Ke,Xe,v,Je,Qe,et,tt,it,w,rt,nt,ot,at,b,st,lt,_,ct,ut,dt,x,pt,ht,mt,ft,gt,C,yt,vt,wt,P,bt,_t,xt,Ct,E,Pt,Et,Tt,T,At,Lt,kt,Mt,St,Dt,$t,Bt,It,Nt,Ft,Ot,Rt,Ht,jt=i[38]("title")+"",zt=i[38]("personalDetails")+"",Wt=i[38]("userName")+"",Ut=i[38]("userPhone")+"",Yt=("true"==i[1]?i[38]("profileSecurityQuestion2"):i[38]("profileSecurityQuestion"))+"",Vt=("true"==i[1]?i[38]("profileSecurityAnswer2"):i[38]("profileSecurityAnswer"))+"",Gt=i[38]("userEmail")+"",qt=i[38]("dateOfBirth")+"",Zt=i[38]("firstName")+"",Kt=i[38]("lastName")+"",Xt=i[38]("userTitle")+"",Jt=i[38]("currency")+"",Qt=i[38]("locationDetails")+"",ei=i[38]("userCountry")+"",ti=i[38]("userCity")+"",ii=i[38]("userAddress")+"",ri=i[38]("userPostalCode")+"",ni=i[38]("userProfileSaveChanges")+"",A=i[39]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[38]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","MyAccountCategoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),oi=i[17],L=[];for(let e=0;e<oi.length;e+=1)L[e]=Kp(Yp(i,oi,e));let k=i[26]&&Xp(i),M=i[24]&&Jp(i),S=i[25]&&Qp(i),D=i[21]&&eh(i),$=i[23]&&th(i),B=i[22]&&ih(i),I=(i[18]||i[19])&&rh(i),N=i[28]&&ah(i),F=i[27]&&sh(i);return{c(){n=di("form"),A&&A.c(),O=mi(),R=di("h2"),H=hi(jt),j=mi(),z=di("div"),W=di("h3"),U=hi(zt),Y=mi(),r=di("section"),V=di("div"),G=di("label"),q=hi(Wt),Z=mi(),o=di("input"),K=mi(),a=di("div"),X=di("label"),J=hi(Ut),Q=mi(),ee=di("div"),s=di("select");for(let e=0;e<L.length;e+=1)L[e].c();te=mi(),l=di("input"),ie=mi(),k&&k.c(),ne=mi(),c=di("div"),oe=di("label"),ae=hi(Yt),se=hi(":"),(le=di("span")).textContent="*",ce=mi(),u=di("input"),de=mi(),M&&M.c(),he=mi(),d=di("div"),me=di("label"),fe=hi(Vt),ge=hi(":"),(ye=di("span")).textContent="*",ve=mi(),p=di("input"),be=mi(),S&&S.c(),xe=mi(),Ce=di("div"),Pe=di("label"),Ee=hi(Gt),Te=mi(),h=di("input"),Ae=mi(),Le=di("div"),ke=di("label"),Me=hi(qt),Se=mi(),m=di("input"),De=mi(),$e=di("div"),Be=di("label"),Ie=hi(Zt),Ne=mi(),f=di("input"),Fe=mi(),Oe=di("div"),Re=di("label"),He=hi(Kt),je=mi(),g=di("input"),ze=mi(),We=di("div"),Ue=di("label"),Ye=hi(Xt),Ve=mi(),y=di("input"),Ge=mi(),qe=di("div"),Ze=di("label"),Ke=hi(Jt),Xe=mi(),v=di("input"),Je=mi(),Qe=di("div"),et=di("h3"),tt=hi(Qt),it=mi(),w=di("section"),rt=di("div"),nt=di("label"),ot=hi(ei),at=mi(),b=di("input"),lt=mi(),_=di("div"),ct=di("label"),ut=hi(ti),dt=mi(),x=di("input"),mt=mi(),D&&D.c(),gt=mi(),C=di("div"),yt=di("label"),vt=hi(ii),wt=mi(),P=di("input"),_t=mi(),$&&$.c(),Ct=mi(),E=di("div"),Pt=di("label"),Et=hi(ri),Tt=mi(),T=di("input"),kt=mi(),B&&B.c(),St=mi(),I&&I.c(),Dt=mi(),N&&N.c(),$t=mi(),Bt=di("section"),It=di("button"),Nt=hi(ni),Ot=mi(),F&&F.c(),gi(R,"class","MyAccountCategoryTitle "+(i[39]?"MyAccountCategoryTitleNone":"")),gi(z,"class","PlayerNotificationsHeader"),gi(o,"type","text"),gi(o,"class","FieldDisabled"),o.value=i[37],o.readOnly=!0,gi(V,"class","PlayerInfoBox"),void 0===i[13]&&bi(()=>i[61].call(s)),gi(l,"type","text"),gi(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),gi(l,"placeholder",e=i[4]?i[32].number:""),gi(ee,"class","PlayerPhoneNumber"),gi(a,"class",re="PlayerInfoBox "+(i[26]?"InvalidField":"")),gi(le,"class","FormRequired"),gi(oe,"for","SecurityQuestion"),gi(u,"type","text"),gi(u,"placeholder",ue=i[4]?i[45]:""),gi(c,"class",pe="PlayerInfoBox "+(i[24]?"InvalidField":"")),gi(ye,"class","FormRequired"),gi(me,"for","SecurityAnswer"),gi(p,"type","text"),gi(p,"placeholder",we=i[4]?i[44]:""),gi(d,"class",_e="PlayerInfoBox "+(i[25]?"InvalidField":"")),gi(h,"type","email"),gi(h,"class","FieldDisabled"),h.value=i[33],h.readOnly=!0,gi(Ce,"class","PlayerInfoBox"),gi(m,"type","text"),gi(m,"class","FieldDisabled"),m.value=i[30],m.readOnly=!0,gi(Le,"class","PlayerInfoBox"),gi(f,"type","text"),gi(f,"class","FieldDisabled"),f.value=i[34],f.readOnly=!0,gi($e,"class","PlayerInfoBox"),gi(g,"type","text"),gi(g,"class","FieldDisabled"),g.value=i[36],g.readOnly=!0,gi(Oe,"class","PlayerInfoBox"),gi(y,"type","text"),gi(y,"class","FieldDisabled"),y.value=i[35],y.readOnly=!0,gi(We,"class","PlayerInfoBox"),gi(v,"type","text"),gi(v,"class","FieldDisabled"),v.value=i[31],v.readOnly=!0,gi(qe,"class","PlayerInfoBox"),gi(r,"class","PlayerDetailsContent"),gi(Qe,"class","PlayerLocationHeader"),gi(b,"type","text"),gi(b,"class","PlayerCountry FieldDisabled"),gi(b,"placeholder",i[0]),b.value=st=i[16].Name,b.readOnly=!0,gi(rt,"class","PlayerInfoBox"),gi(x,"type","text"),gi(x,"placeholder",pt=i[4]?i[42]:""),x.value=ht=i[4]?"":i[29].city,gi(_,"class",ft="PlayerInfoBox "+(i[21]?"InvalidField":"")),gi(P,"placeholder",i[41]),gi(P,"type","text"),P.value=bt=i[4]?"":i[29].address,gi(C,"class",xt="PlayerInfoBox "+(i[23]?"InvalidField":"")),gi(T,"type","text"),gi(T,"placeholder",At=i[4]?i[43]:""),T.value=Lt=i[4]?"":i[29].postalCode,gi(E,"class",Mt="PlayerInfoBox "+(i[22]?"InvalidField":"")),gi(w,"class","PlayerLocationContent"),gi(It,"class",Ft="PlayerDetailsSaveButton "+(i[15]&&i[20]?"":"PlayerButtonDisabled")),gi(Bt,"class","PlayerDetailsButtonsArea "+(i[39]?"PlayerDetailsButtonsAreaMobile":"")),gi(n,"class","PlayerInfoWrapper "+(i[39]?"PlayerInfoWrapperMobile":"")+" "+(i[40].matches&&i[39]?"PlayerInfoWrapperTablet":""))},m(e,t){li(e,n,t),A&&A.m(n,null),si(n,O),si(n,R),si(R,H),si(n,j),si(n,z),si(z,W),si(W,U),si(n,Y),si(n,r),si(r,V),si(V,G),si(G,q),si(V,Z),si(V,o),si(r,K),si(r,a),si(a,X),si(X,J),si(a,Q),si(a,ee),si(ee,s);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(s,null);wi(s,i[13],!0),si(ee,te),si(ee,l),vi(l,i[14]),si(a,ie),k&&k.m(a,null),si(r,ne),si(r,c),si(c,oe),si(oe,ae),si(oe,se),si(oe,le),si(c,ce),si(c,u),vi(u,i[11]),si(c,de),M&&M.m(c,null),si(r,he),si(r,d),si(d,me),si(me,fe),si(me,ge),si(me,ye),si(d,ve),si(d,p),vi(p,i[12]),si(d,be),S&&S.m(d,null),si(r,xe),si(r,Ce),si(Ce,Pe),si(Pe,Ee),si(Ce,Te),si(Ce,h),si(r,Ae),si(r,Le),si(Le,ke),si(ke,Me),si(Le,Se),si(Le,m),si(r,De),si(r,$e),si($e,Be),si(Be,Ie),si($e,Ne),si($e,f),si(r,Fe),si(r,Oe),si(Oe,Re),si(Re,He),si(Oe,je),si(Oe,g),si(r,ze),si(r,We),si(We,Ue),si(Ue,Ye),si(We,Ve),si(We,y),si(r,Ge),si(r,qe),si(qe,Ze),si(Ze,Ke),si(qe,Xe),si(qe,v),si(n,Je),si(n,Qe),si(Qe,et),si(et,tt),si(n,it),si(n,w),si(w,rt),si(rt,nt),si(nt,ot),si(rt,at),si(rt,b),si(w,lt),si(w,_),si(_,ct),si(ct,ut),si(_,dt),si(_,x),i[69](x),si(_,mt),D&&D.m(_,null),si(w,gt),si(w,C),si(C,yt),si(yt,vt),si(C,wt),si(C,P),i[71](P),si(C,_t),$&&$.m(C,null),si(w,Ct),si(w,E),si(E,Pt),si(Pt,Et),si(E,Tt),si(E,T),i[73](T),si(E,kt),B&&B.m(E,null),si(n,St),I&&I.m(n,null),si(n,Dt),N&&N.m(n,null),si(n,$t),si(n,Bt),si(Bt,It),si(It,Nt),si(n,Ot),F&&F.m(n,null),Rt||(Ht=[fi(s,"change",i[61]),fi(s,"change",i[62]),fi(l,"input",i[63]),fi(l,"keyup",i[46]),fi(l,"keyup",i[64]),fi(u,"input",i[65]),fi(u,"keyup",i[66]),fi(u,"blur",i[47]),fi(p,"input",i[67]),fi(p,"keyup",i[68]),fi(p,"blur",i[48]),fi(x,"blur",i[49]),fi(x,"keyup",i[70]),fi(P,"blur",i[51]),fi(P,"keyup",i[72]),fi(T,"blur",i[50]),fi(T,"keyup",i[74]),fi(It,"click",i[78])],Rt=!0)},p(t,i){if(t[39]&&A.p(t,i),128&i[1]&&jt!==(jt=t[38]("title")+"")&&yi(H,jt),128&i[1]&&zt!==(zt=t[38]("personalDetails")+"")&&yi(U,zt),128&i[1]&&Wt!==(Wt=t[38]("userName")+"")&&yi(q,Wt),64&i[1]&&o.value!==t[37]&&(o.value=t[37]),128&i[1]&&Ut!==(Ut=t[38]("userPhone")+"")&&yi(J,Ut),537001984&i[0]){let e;for(oi=t[17],e=0;e<oi.length;e+=1){var r=Yp(t,oi,e);L[e]?L[e].p(r,i):(L[e]=Kp(r),L[e].c(),L[e].m(s,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=oi.length}139264&i[0]&&wi(s,t[13]),16&i[0]|2&i[1]&&e!==(e=t[4]?t[32].number:"")&&gi(l,"placeholder",e),16384&i[0]&&l.value!==t[14]&&vi(l,t[14]),t[26]?k?k.p(t,i):((k=Xp(t)).c(),k.m(a,null)):k&&(k.d(1),k=null),67108864&i[0]&&re!==(re="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gi(a,"class",re),2&i[0]|128&i[1]&&Yt!==(Yt=("true"==t[1]?t[38]("profileSecurityQuestion2"):t[38]("profileSecurityQuestion"))+"")&&yi(ae,Yt),16&i[0]&&ue!==(ue=t[4]?t[45]:"")&&gi(u,"placeholder",ue),2048&i[0]&&u.value!==t[11]&&vi(u,t[11]),t[24]?M?M.p(t,i):((M=Jp(t)).c(),M.m(c,null)):M&&(M.d(1),M=null),16777216&i[0]&&pe!==(pe="PlayerInfoBox "+(t[24]?"InvalidField":""))&&gi(c,"class",pe),2&i[0]|128&i[1]&&Vt!==(Vt=("true"==t[1]?t[38]("profileSecurityAnswer2"):t[38]("profileSecurityAnswer"))+"")&&yi(fe,Vt),16&i[0]&&we!==(we=t[4]?t[44]:"")&&gi(p,"placeholder",we),4096&i[0]&&p.value!==t[12]&&vi(p,t[12]),t[25]?S?S.p(t,i):((S=Qp(t)).c(),S.m(d,null)):S&&(S.d(1),S=null),33554432&i[0]&&_e!==(_e="PlayerInfoBox "+(t[25]?"InvalidField":""))&&gi(d,"class",_e),128&i[1]&&Gt!==(Gt=t[38]("userEmail")+"")&&yi(Ee,Gt),4&i[1]&&h.value!==t[33]&&(h.value=t[33]),128&i[1]&&qt!==(qt=t[38]("dateOfBirth")+"")&&yi(Me,qt),1073741824&i[0]&&m.value!==t[30]&&(m.value=t[30]),128&i[1]&&Zt!==(Zt=t[38]("firstName")+"")&&yi(Ie,Zt),8&i[1]&&f.value!==t[34]&&(f.value=t[34]),128&i[1]&&Kt!==(Kt=t[38]("lastName")+"")&&yi(He,Kt),32&i[1]&&g.value!==t[36]&&(g.value=t[36]),128&i[1]&&Xt!==(Xt=t[38]("userTitle")+"")&&yi(Ye,Xt),16&i[1]&&y.value!==t[35]&&(y.value=t[35]),128&i[1]&&Jt!==(Jt=t[38]("currency")+"")&&yi(Ke,Jt),1&i[1]&&v.value!==t[31]&&(v.value=t[31]),128&i[1]&&Qt!==(Qt=t[38]("locationDetails")+"")&&yi(tt,Qt),128&i[1]&&ei!==(ei=t[38]("userCountry")+"")&&yi(ot,ei),1&i[0]&&gi(b,"placeholder",t[0]),65536&i[0]&&st!==(st=t[16].Name)&&b.value!==st&&(b.value=st),128&i[1]&&ti!==(ti=t[38]("userCity")+"")&&yi(ut,ti),16&i[0]&&pt!==(pt=t[4]?t[42]:"")&&gi(x,"placeholder",pt),536870928&i[0]&&ht!==(ht=t[4]?"":t[29].city)&&x.value!==ht&&(x.value=ht),t[21]?D?D.p(t,i):((D=eh(t)).c(),D.m(_,null)):D&&(D.d(1),D=null),2097152&i[0]&&ft!==(ft="PlayerInfoBox "+(t[21]?"InvalidField":""))&&gi(_,"class",ft),128&i[1]&&ii!==(ii=t[38]("userAddress")+"")&&yi(vt,ii),536870928&i[0]&&bt!==(bt=t[4]?"":t[29].address)&&P.value!==bt&&(P.value=bt),t[23]?$?$.p(t,i):(($=th(t)).c(),$.m(C,null)):$&&($.d(1),$=null),8388608&i[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gi(C,"class",xt),128&i[1]&&ri!==(ri=t[38]("userPostalCode")+"")&&yi(Et,ri),16&i[0]&&At!==(At=t[4]?t[43]:"")&&gi(T,"placeholder",At),536870928&i[0]&&Lt!==(Lt=t[4]?"":t[29].postalCode)&&T.value!==Lt&&(T.value=Lt),t[22]?B?B.p(t,i):((B=ih(t)).c(),B.m(E,null)):B&&(B.d(1),B=null),4194304&i[0]&&Mt!==(Mt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gi(E,"class",Mt),t[18]||t[19]?I?I.p(t,i):((I=rh(t)).c(),I.m(n,Dt)):I&&(I.d(1),I=null),t[28]?N?N.p(t,i):((N=ah(t)).c(),N.m(n,$t)):N&&(N.d(1),N=null),128&i[1]&&ni!==(ni=t[38]("userProfileSaveChanges")+"")&&yi(Nt,ni),1081344&i[0]&&Ft!==(Ft="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gi(It,"class",Ft),t[27]?F?F.p(t,i):((F=sh(t)).c(),F.m(n,null)):F&&(F.d(1),F=null)},d(e){e&&ci(n),A&&A.d(),ui(L,e),k&&k.d(),M&&M.d(),S&&S.d(),i[69](null),D&&D.d(),i[71](null),$&&$.d(),i[73](null),B&&B.d(),I&&I.d(),N&&N.d(),F&&F.d(),Rt=!1,ai(Ht)}}}function Gp(e){let i;return{c(){gi(i=di("div"),"class","ModalLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function qp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Zp(e){let i,r,n,o=e[108].Prefix+"";return{c(){i=di("option"),r=hi(o),i.selected=!0,i.__value=n=e[108].Prefix,i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yi(r,o),131072&t[0]&&n!==(n=e[108].Prefix)&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Kp(e){let i;function r(e){return e[108].Prefix===e[29].mobiePrefix?Zp:qp}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Xp(e){let i,r,n=e[38]("userPhoneError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPhoneError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Jp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Qp(e){let i,r,n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t[0]|128&t[1]&&n!==(n=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yi(r,n)},d(e){e&&ci(i)}}}function eh(e){let i,r,n=e[38]("userCityError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userCityError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function th(e){let i,r,n=e[38]("userAddressError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userAddressError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function ih(e){let i,r,n=e[38]("userPostalCodeError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){128&t[1]&&n!==(n=e[38]("userPostalCodeError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function rh(e){let i,r,n,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&nh(e),u=e[18]&&oh(e);return{c(){i=di("div"),r=di("h3"),n=hi(l),o=mi(),a=di("section"),c&&c.c(),s=mi(),u&&u.c(),gi(i,"class","PlayerNotificationsHeader"),gi(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,i,t),si(i,r),si(r,n),li(e,o,t),li(e,a,t),c&&c.m(a,null),si(a,s),u&&u.m(a,null)},p(e,t){128&t[1]&&l!==(l=e[38]("userNotifications")+"")&&yi(n,l),e[19]?c?c.p(e,t):((c=nh(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=oh(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&ci(i),e&&ci(o),e&&ci(a),c&&c.d(),u&&u.d()}}}function nh(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userSMSNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","SMSNotification"),gi(o,"name","Enable SMS notifications"),gi(s,"class","Checkmark"),gi(n,"for","SMSNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[8],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[75]),fi(o,"change",i[54])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),128&t[1]&&h!==(h=e[38]("userSMSNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function oh(i){let r,n,o,a,s,l,c,u,d,p,h=i[38]("userEmailNotification")+"";return{c(){r=di("div"),n=di("label"),o=di("input"),a=mi(),s=di("span"),l=mi(),c=di("span"),u=hi(h),gi(o,"type","checkbox"),gi(o,"id","EmailNotification"),gi(o,"name","Enable Emails"),gi(s,"class","Checkmark"),gi(n,"for","EmailNotification"),gi(r,"class","PlayerNotificationBox")},m(e,t){li(e,r,t),si(r,n),si(n,o),o.checked=i[9],si(n,a),si(n,s),si(n,l),si(n,c),si(c,u),d||(p=[fi(o,"change",i[76]),fi(o,"change",i[54])],d=!0)},p(e,t){512&t[0]&&(o.checked=e[9]),128&t[1]&&h!==(h=e[38]("userEmailNotification")+"")&&yi(u,h)},d(e){e&&ci(r),d=!1,ai(p)}}}function ah(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v=i[38]("userAppSettings")+"",w=i[38]("userBiometrics")+"";return{c(){r=di("div"),n=di("h3"),o=hi(v),a=mi(),s=di("section"),l=di("div"),c=di("label"),u=di("input"),d=mi(),p=di("span"),h=mi(),m=di("span"),f=hi(w),gi(r,"class","PlayerNotificationsHeader"),gi(u,"type","checkbox"),gi(u,"id","BiometricsEnabled"),gi(u,"name","Biometric Enabled"),gi(p,"class","Checkmark"),gi(c,"for","Biometrics"),gi(l,"class","PlayerNotificationBox"),gi(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),li(e,a,t),li(e,s,t),si(s,l),si(l,c),si(c,u),u.checked=i[10],si(c,d),si(c,p),si(c,h),si(c,m),si(m,f),g||(y=[fi(u,"change",i[77]),fi(u,"change",i[54])],g=!0)},p(e,t){128&t[1]&&v!==(v=e[38]("userAppSettings")+"")&&yi(o,v),1024&t[0]&&(u.checked=e[10]),128&t[1]&&w!==(w=e[38]("userBiometrics")+"")&&yi(f,w)},d(e){e&&ci(r),e&&ci(a),e&&ci(s),g=!1,ai(y)}}}function sh(e){let i,r,n,o=e[38]("userProfileConfirmationMessage")+"";return{c(){i=di("section"),r=di("p"),n=hi(o),gi(r,"class","PlayerDetailsConfirmSaveText"),gi(i,"class","PlayerDetailsConfirmSave")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yi(n,o)},d(e){e&&ci(i)}}}function lh(i){let r;function n(e){return e[3]?Gp:Vp}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[79](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[79](null)}}}function ch(t,e,i){let N;Le(t,De,e=>i(38,N=e));let r,n,o,a,s,{endpoint:l=""}=e,{lang:c="en"}=e,{countrycode:u="IR"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{custominputtextswitch:m="false"}=e,F=!0,O=window.navigator.userAgent,R="PC"!==$e(O),H=!0,f=!1,g=!1,y=!1,v="",w="",b="",_="",x=!1,j={Name:"I.e Ireland"},C=[],z=[],P=[],E=!1,T=!1,A={items:[]},W=!1,U="",Y="",V="",G=!1,q=!1,Z=!1,L=!1,K={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Op).forEach(e=>{Fp(e,Op[e])});e=window.matchMedia("(min-width: 768px)");let X={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},k={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},M={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:J,birth:Q,city:ee,currency:te,mobile:S,email:ie,firstname:re,userTitles:ne,language:oe,lastname:ae,postalCode:se,securityAnswer:D,securityQuestion:$,username:le}=M;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":i(4,H=!1),M=e.data.profileDetails,i(37,le=M.username),i(32,S=M.mobile),i(33,ie=M.email),i(34,re=M.firstname),i(36,ae=M.lastname),oe=M.language,i(30,Q=(null==(t=M.birth)?void 0:t.day)+"/"+(null==(t=M.birth)?void 0:t.month)+"/"+(null==(t=M.birth)?void 0:t.year)),i(31,te=M.currency),i(35,ne=M.title),i(11,v=M.securityQuestion),i(12,w=M.securityAnswer),i(13,b=null==(t=M.mobile)?void 0:t.prefix),i(14,_=null==(t=M.mobile)?void 0:t.number),i(29,k.address=M.address1,k),i(29,k.city=M.city,k),i(29,k.mobilePrefix=null==S?void 0:S.prefix,k),i(29,k.mobileNumber=null==S?void 0:S.number,k),i(29,k.postalCode=M.postalCode,k),i(29,k.securityAnswer=M.securityAnswer,k),i(29,k.securityQuestion=M.securityQuestion,k);break;case"ProfileConsentData":P=e.data.consent.items,Array.isArray(P)&&P.forEach(e=>{"emailmarketing"==e.tagCode?(i(18,E=!0),i(9,g="Accepted"==e.status),i(29,k.acceptNewsEmail=g,k)):"sms"==e.tagCode&&(i(19,T=!0),i(8,f="Accepted"==e.status),i(29,k.acceptSMSOffers=f,k))});break;case"ConfirmProfileInfoSave":L&&(Up("BIOMETRICS_ENABLED",e=>{e!==y&&i(10,y=e)}),Wp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),i(15,x=!1),i(27,Z=!0),setTimeout(()=>{i(27,Z=!1)},3e3)}},B=()=>{i(20,W=!(G||q||U||V||Y||s))},ue=e=>{e.preventDefault(),1==x&&1==W&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:X},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:A},window.location.href))},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;X={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:b,postalCode:n.value,securityAnswer:w,securityQuestion:v},e=X,t=k,JSON.stringify(e)===JSON.stringify(t)?i(15,x=!1):i(15,x=!0),A={items:[]},T&&A.items.push({tagCode:"sms",status:f?"Accepted":"Denied"}),E&&A.items.push({tagCode:"emailmarketing",status:g?"Accepted":"Denied"}),B()};return ke(()=>(window.addEventListener("message",ce,!1),i(28,L=!!zp(O)),L&&(Up("BIOMETRICS_ENABLED",e=>{i(10,y=!!e)}),Wp("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",ce)})),t.$$set=e=>{"endpoint"in e&&i(55,l=e.endpoint),"lang"in e&&i(56,c=e.lang),"countrycode"in e&&i(0,u=e.countrycode),"clientstyling"in e&&i(57,d=e.clientstyling),"clientstylingurl"in e&&i(58,p=e.clientstylingurl),"translationurl"in e&&i(59,h=e.translationurl),"custominputtextswitch"in e&&i(1,m=e.custominputtextswitch)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&c&&(e=c,Se.set(e)),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&l&&u&&fetch(l+"/v1/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/v1/player/operatorSupportedCountries").then(e=>300<=e.status?new Error("Error while fetching the supported countries"):e.json()).then(t=>{z=e.countries.filter(e=>0<=t.countries.indexOf(e.Alpha2Code)),i(16,j=z.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),i(3,F=!1)})}),16777216&t.$$.dirty[1]&&l&&fetch(l+"/v1/player/phonecodes").then(e=>e.json()).then(e=>{i(17,C=e.phoneCodes)}),4&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&p&&r){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,r,F,H,n,o,a,f,g,y,v,w,b,_,x,j,C,E,T,W,U,Y,V,G,q,s,Z,L,k,Q,te,S,ie,re,ne,ae,le,N,R,e,J,ee,se,D,$,()=>{i(26,s=!(_&&5<=_.length&&_.length<=12)),B()},()=>{i(24,G=!(()=>{if($)switch(m){case"true":if(K.document.test($)&&$.length<=50)return!0;break;case"false":if($&&$.length<=120)return!0}return!1})()),B()},()=>{i(25,q=!(()=>{if(D)switch(m){case"true":if(K.document.test(D)&&D.length<=50)return!0;break;case"false":if(D&&D.length<=120)return!0}return!1})()),B()},()=>{i(21,U=!(a.value&&a.value.length<=50)),B()},()=>{i(22,Y=!(n.value&&n.value.length<=20)),B()},()=>{i(23,V=!(o.value&&o.value.length<=100)),B()},ue,de,I,l,c,d,p,h,()=>de(),function(){b=pe(this),i(13,b),i(17,C)},()=>I(),function(){_=this.value,i(14,_)},()=>I(),function(){v=this.value,i(11,v)},()=>I(),function(){w=this.value,i(12,w)},()=>I(),function(e){Me[e?"unshift":"push"](()=>{a=e,i(7,a)})},()=>I(),function(e){Me[e?"unshift":"push"](()=>{o=e,i(6,o)})},()=>I(),function(e){Me[e?"unshift":"push"](()=>{n=e,i(5,n)})},()=>I(),function(){f=this.checked,i(8,f)},function(){g=this.checked,i(9,g)},function(){y=this.checked,i(10,y)},e=>ue(e),function(e){Me[e?"unshift":"push"](()=>{r=e,i(2,r)})}]}function uh(e,t){B(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ch,lh,i,{endpoint:55,lang:56,countrycode:0,clientstyling:57,clientstylingurl:58,translationurl:59,custominputtextswitch:1},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","lang","countrycode","clientstyling","clientstylingurl","translationurl","custominputtextswitch"]}get endpoint(){return this.$$.ctx[55]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[56]}set lang(e){this.$$set({lang:e}),p()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$$set({countrycode:e}),p()}get clientstyling(){return this.$$.ctx[57]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[58]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[59]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[1]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}});const dh={en:{title:"Change Password",currentPassword:"Current Password:",invalidCurrentPassword:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",newPassword:"New Password:",invalidNewPassword:"The new password must be different from the old password.",invalidNewPasswordSecondary:"The password should be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",confirmPassword:"Confirm Password:",confirmPasswordInvalid:"Password must match the new password and must follow the same rules.",submitChangePassword:"Change Password",simplePasswordError:"Password must be 8-20 characters long.",returnToMenu:"Return to menu",changePasswordText:"Change Password",passwordReset:"PASSWORD RESET",passwordResetConfirmation:"Your password has been reset successfully.",backButtonText:"Back"},"zh-hk":{title:"更改密碼",currentPassword:"當前密碼",invalidCurrentPassword:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",newPassword:"新密碼",invalidNewPassword:"新密碼必須與舊密碼不同。",invalidNewPasswordSecondary:"密碼長度為 8-20 個字符,至少包含 1 個大寫字母、1 個數字和 1 個特殊字符。",confirmPassword:"確認密碼",simplePasswordError:"密码长度必须为 8-20 个字符。",confirmPasswordInvalid:"密碼必須與新密碼匹配,並且必須遵循相同的規則。",submitChangePassword:"更改密碼",returnToMenu:"返回菜單",changePasswordText:"更改密碼",passwordReset:"重設密碼",passwordResetConfirmation:"您的密碼已成功重置。",backButtonText:"回到賭場"},fr:{title:"Modifier le mot de passe",currentPassword:"Mot de passe actuel:",invalidCurrentPassword:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",newPassword:"Nouveau mot de passe:",invalidNewPassword:"Le nouveau mot de passe doit être different de l'ancien.",invalidNewPasswordSecondary:"Le mot de passe doit comporter de 8 à 20 caractères et contenir au moins une lettre majuscule ,un chiffre et un caratère spécial.",confirmPassword:"Confirmer le mot de passe:",confirmPasswordInvalid:"Le mot de passe doit correspondre au nouveau mot de passe et doit suivre les mêmes règles.",submitChangePassword:"Modifier le mot de passe",simplePasswordError:"Le mot de passe doit comporter entre 8 et 20 caractères.",returnToMenu:"Retour au menu",changePasswordText:"Modifier le mot de passe",passwordReset:"Réinitialisation du mot de passe",passwordResetConfirmation:"Votre mot de passe a été réinitialisé avec succès.",backButtonText:"Retour"},ro:{title:"Schimbă parola",currentPassword:"Parola curentă",invalidCurrentPassword:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",newPassword:"Parola nouă",invalidNewPassword:"Noua parolă trebuie să fie diferită de cea veche.",invalidNewPasswordSecondary:"Parola ar trebui să aibă între 8 și 20 de caractere și să conțină cel putin 1 majusculă, 1 număr și 1 caracter special.",confirmPassword:"Confirmă parola",confirmPasswordInvalid:"Parolele trebuie să coincidă și să îndeplinească aceleași condiții.",submitChangePassword:"Schimbă parola",simplePasswordError:"Parola trebuie să aibă 8-20 de caractere.",returnToMenu:"Înapoi la meniu",changePasswordText:"Schimbă parola",passwordReset:"Resetează parola",passwordResetConfirmation:"Parola a fost resetată cu succes.",backButtonText:"Înapoi"},es:{title:"Cambiar Contraseña",currentPassword:"Contraseña Actual",invalidCurrentPassword:"La contraseña debe ser entre 8 a 20 caracteres y contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",newPassword:"Nueva contraseña:",invalidNewPassword:"La nueva contraseña debe ser diferente de la contraseña anterior.",invalidNewPasswordSecondary:"Cambiar Contraseñay contener al menos 1 letra mayúscula, 1 número y 1 carácter especial.",confirmPassword:"Confirmar Contraseña:",confirmPasswordInvalid:"La Contraseña debe coincidir con la Nueva Contraseña y debe seguir las mismas reglas.",submitChangePassword:"Cambiar Contraseña",simplePasswordError:"La contraseña debe ser entre 8 a 20 caracteres.",returnToMenu:"Regresar al menu",changePasswordText:"Cambiar Contraseña",passwordReset:"REESTABLECER CONTRASEÑA",passwordResetConfirmation:"Tu contraseña se ha reestablecido exitosamente..",backButtonText:"Regresar"},pt:{title:"Mudar senha",currentPassword:"Senha atual",invalidCurrentPassword:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",newPassword:"Nova Senha",invalidNewPassword:"A nova senha deve ser diferente da senha antiga.",invalidNewPasswordSecondary:"A senha deve ter de 8 a 20 caracteres e conter pelo menos 1 letra maiúscula, 1 número e 1 caractere especial.",confirmPassword:"Confirme sua senha",confirmPasswordInvalid:"A senha deve corresponder à nova senha e deve seguir as mesmas regras.",submitChangePassword:"Mudar senha",simplePasswordError:"A senha deve ter de 8 a 20 caracteres.",returnToMenu:"Voltar ao menu",changePasswordText:"Mudar senha",passwordReset:"REDEFINIÇÃO DE SENHA",passwordResetConfirmation:"Sua senha foi redefinida com sucesso.",backButtonText:"Voltar"},hr:{title:"Promjena lozinke",currentPassword:"Trenutna lozinka:",invalidCurrentPassword:"Lozinka bi trebala imati 8-20 znakova",newPassword:"Nova lozinka:",invalidNewPassword:"Nova lozinka mora se razlikovati od stare lozinke.",invalidNewPasswordSecondary:"Lozinka bi trebala imati 8-20 znakova",confirmPassword:"Potvrdi lozinku:",confirmPasswordInvalid:"Lozinka mora odgovarati novoj lozinci i mora slijediti ista pravila.",submitChangePassword:"Promjena lozinke",simplePasswordError:"Lozinka mora imati 8-20 znakova.",returnToMenu:"Povratak na izbornik",changePasswordText:"Promjena lozinke",passwordReset:"RESETIRANJE LOZINKE",passwordResetConfirmation:"Vaša lozinka je uspješno resetirana.",backButtonText:"Natrag"}};function ph(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C=i[19]("changePasswordText")+"",P=i[19]("passwordReset")+"",E=i[19]("passwordResetConfirmation")+"",T=i[19]("backButtonText")+"",A=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p=i[19]("returnToMenu")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("g"),a=pi("path"),s=mi(),l=di("span"),c=hi(p),gi(a,"id","Chevron_Right"),gi(a,"d","M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z"),gi(n,"version","1.1"),gi(n,"id","Capa_1"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(n,"x","0px"),gi(n,"y","0px"),gi(n,"viewBox","0 0 240.823 240.823"),L(n,"enable-background","new 0 0 240.823 240.823"),gi(n,"xml:space","preserve"),gi(n,"width","18px"),gi(n,"fill","var(--emfe-w-color-gray-300, #58586B)"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(r,l),si(l,c),u||(d=fi(r,"click",i[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yi(c,p)},d(e){e&&ci(r),u=!1,d()}}}(i);return{c(){A&&A.c(),r=mi(),n=di("div"),o=di("h3"),a=hi(C),s=mi(),l=di("div"),c=di("div"),(u=di("div")).innerHTML='<div class="Checkmark"></div>',d=mi(),p=di("div"),h=di("h3"),m=hi(P),f=mi(),g=di("p"),y=hi(E),v=mi(),w=di("div"),b=hi(T),gi(n,"class","PlayerChangePasswordHeader"),gi(u,"class","IconContainer"),gi(p,"class","TextContainer"),gi(c,"class","SuccessWrapper"),gi(w,"class","PlayerChangePasswordBackButton"),gi(l,"class","ChangedPasswordSuccessfully")},m(e,t){A&&A.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),li(e,s,t),li(e,l,t),si(l,c),si(c,u),si(c,d),si(c,p),si(p,h),si(h,m),si(p,f),si(p,g),si(g,y),si(l,v),si(l,w),si(w,b),_||(x=fi(w,"click",i[46]),_=!0)},p(e,t){e[20]&&A.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&yi(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&yi(m,P),524288&t[0]&&E!==(E=e[19]("passwordResetConfirmation")+"")&&yi(y,E),524288&t[0]&&T!==(T=e[19]("backButtonText")+"")&&yi(b,T)},d(e){A&&A.d(e),e&&ci(r),e&&ci(n),e&&ci(s),e&&ci(l),_=!1,x()}}}function hh(i){let O,r,R,H,n,o,a,j,z,s,W,U,l,Y,c,u,V,G,d,q,Z,p,K,h,m,X,J,f,Q,ee,g,te,y,v,w,ie,b,_,re,ne,x=i[19]("title")+"",C=i[19]("currentPassword")+"",P=i[19]("newPassword")+"",E=i[19]("confirmPassword")+"",T=i[19]("submitChangePassword")+"",A=i[20]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[19]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","ChangePasswordTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function oe(e){return e[10]?fh:mh}let L=oe(i),k=L(i),M=i[4]&&gh(i);function ae(e){return e[11]?bh:wh}let S=ae(i),D=S(i);function se(e){return e[13]?xh:e[5]?_h:void 0}let $=se(i),B=$&&$(i);function le(e){return e[12]?Th:Eh}let ce=le(i),I=ce(i),N=i[6]&&Ah(i),F=i[18]&&Lh(i);return{c(){A&&A.c(),O=mi(),r=di("h2"),R=hi(x),H=mi(),n=di("section"),o=di("div"),a=di("label"),j=hi(C),z=mi(),s=di("input"),W=mi(),k.c(),U=mi(),M&&M.c(),Y=mi(),c=di("div"),u=di("label"),V=hi(P),G=mi(),d=di("input"),q=mi(),D.c(),Z=mi(),B&&B.c(),K=mi(),h=di("div"),m=di("label"),X=hi(E),J=mi(),f=di("input"),Q=mi(),I.c(),ee=mi(),N&&N.c(),te=mi(),F&&F.c(),y=mi(),v=di("section"),w=di("button"),ie=hi(T),gi(r,"class","ChangePasswordTitle "+(i[20]?"ChangePasswordTitleNone":"")),gi(a,"for","CurrentPassword"),gi(s,"id","CurrentPassword"),gi(s,"type","password"),gi(o,"class",l="PlayerChangePasswordBox "+(i[4]?"InvalidField":"")),gi(u,"for","NewPassword"),gi(d,"id","NewPassword"),gi(d,"autocomplete","new-password"),gi(d,"type","password"),gi(c,"class",p="PlayerChangePasswordBox "+(i[5]?"InvalidField":"")),gi(m,"for","ConfirmPassword"),gi(f,"id","ConfirmPassword"),gi(f,"type","password"),gi(h,"class",g="PlayerChangePasswordBox "+(i[6]?"InvalidField":"")),gi(n,"class","PlayerChangePasswordContent"),gi(w,"class",b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive")),w.disabled=_=!i[3],gi(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){A&&A.m(e,t),li(e,O,t),li(e,r,t),si(r,R),li(e,H,t),li(e,n,t),si(n,o),si(o,a),si(a,j),si(o,z),si(o,s),vi(s,i[14]),i[33](s),si(o,W),k.m(o,null),si(o,U),M&&M.m(o,null),si(n,Y),si(n,c),si(c,u),si(u,V),si(c,G),si(c,d),vi(d,i[15]),i[37](d),si(c,q),D.m(c,null),si(c,Z),B&&B.m(c,null),si(n,K),si(n,h),si(h,m),si(m,X),si(h,J),si(h,f),vi(f,i[16]),i[41](f),si(h,Q),I.m(h,null),si(h,ee),N&&N.m(h,null),li(e,te,t),F&&F.m(e,t),li(e,y,t),li(e,v,t),si(v,w),si(w,ie),re||(ne=[fi(s,"input",i[32]),fi(s,"blur",function(){ue(i[23](i[4],i[14],i[7]))&&i[23](i[4],i[14],i[7]).apply(this,arguments)}),fi(d,"input",i[36]),fi(d,"blur",function(){ue(i[23](i[5],i[15],i[8]))&&i[23](i[5],i[15],i[8]).apply(this,arguments)}),fi(f,"input",i[40]),fi(f,"blur",function(){ue(i[23](i[6],i[16],i[9]))&&i[23](i[6],i[16],i[9]).apply(this,arguments)}),fi(w,"click",i[44])],re=!0)},p(e,t){(i=e)[20]&&A.p(i,t),524288&t[0]&&x!==(x=i[19]("title")+"")&&yi(R,x),524288&t[0]&&C!==(C=i[19]("currentPassword")+"")&&yi(j,C),16384&t[0]&&s.value!==i[14]&&vi(s,i[14]),L===(L=oe(i))&&k?k.p(i,t):(k.d(1),(k=L(i))&&(k.c(),k.m(o,U))),i[4]?M?M.p(i,t):((M=gh(i)).c(),M.m(o,null)):M&&(M.d(1),M=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(i[4]?"InvalidField":""))&&gi(o,"class",l),524288&t[0]&&P!==(P=i[19]("newPassword")+"")&&yi(V,P),32768&t[0]&&d.value!==i[15]&&vi(d,i[15]),S===(S=ae(i))&&D?D.p(i,t):(D.d(1),(D=S(i))&&(D.c(),D.m(c,Z))),$===($=se(i))&&B?B.p(i,t):(B&&B.d(1),(B=$&&$(i))&&(B.c(),B.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(i[5]?"InvalidField":""))&&gi(c,"class",p),524288&t[0]&&E!==(E=i[19]("confirmPassword")+"")&&yi(X,E),65536&t[0]&&f.value!==i[16]&&vi(f,i[16]),ce===(ce=le(i))&&I?I.p(i,t):(I.d(1),(I=ce(i))&&(I.c(),I.m(h,ee))),i[6]?N?N.p(i,t):((N=Ah(i)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(i[6]?"InvalidField":""))&&gi(h,"class",g),i[18]?F?F.p(i,t):((F=Lh(i)).c(),F.m(y.parentNode,y)):F&&(F.d(1),F=null),524288&t[0]&&T!==(T=i[19]("submitChangePassword")+"")&&yi(ie,T),8&t[0]&&b!==(b="PlayerChangePasswordSaveButton "+(i[3]?"":"ButtonInactive"))&&gi(w,"class",b),8&t[0]&&_!==(_=!i[3])&&(w.disabled=_)},d(e){A&&A.d(e),e&&ci(O),e&&ci(r),e&&ci(H),e&&ci(n),i[33](null),k.d(),M&&M.d(),i[37](null),D.d(),B&&B.d(),i[41](null),I.d(),N&&N.d(),e&&ci(te),F&&F.d(e),e&&ci(y),e&&ci(v),re=!1,ai(ne)}}}function mh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function fh(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[4]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function gh(e){let i;function r(e){return"true"==e[0]?vh:yh}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function yh(e){let i,r,n=e[19]("invalidCurrentPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidCurrentPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function vh(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function wh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function bh(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[5]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function _h(e){let i;function r(e){return"true"==e[0]?Ph:Ch}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function xh(e){let i,r,n=e[19]("invalidNewPassword")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInputNew")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPassword")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ch(e){let i,r,n=e[19]("invalidNewPasswordSecondary")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("invalidNewPasswordSecondary")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ph(e){let i,r,n=e[19]("simplePasswordError")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("simplePasswordError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Eh(i){let r,n,o,a,s,l,c,u,d,p;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("path"),c=pi("circle"),gi(l,"class","a"),gi(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),gi(l,"transform","translate(0)"),gi(c,"class","a"),gi(c,"cx","2.779"),gi(c,"cy","2.779"),gi(c,"r","2.779"),gi(c,"transform","translate(20.827 30.303)"),gi(s,"transform","translate(-14.185 -27.832)"),gi(r,"class",u="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.843"),gi(r,"height","10.5"),gi(r,"viewBox","0 0 18.843 10.5")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),d||(p=fi(r,"click",i[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",u)},d(e){e&&ci(r),d=!1,p()}}}function Th(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){r=pi("svg"),n=pi("defs"),o=pi("style"),a=hi(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pi("g"),l=pi("circle"),c=pi("g"),u=pi("path"),d=pi("path"),p=pi("g"),h=pi("path"),m=pi("path"),f=pi("rect"),gi(l,"class","a"),gi(l,"cx","0.05"),gi(l,"cy","0.05"),gi(l,"r","0.05"),gi(l,"transform","translate(121.017 31.148)"),gi(u,"class","a"),gi(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gi(u,"transform","translate(-142.164 -39.123)"),gi(d,"class","a"),gi(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gi(d,"transform","translate(-136.413 -42.068)"),gi(c,"transform","translate(117.499 27.37)"),gi(h,"class","a"),gi(h,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),gi(h,"transform","translate(-110.856 -33.157)"),gi(m,"class","a"),gi(m,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),gi(m,"transform","translate(-130.743 -29.617)"),gi(p,"transform","translate(110.856 24.899)"),gi(f,"class","a"),gi(f,"width","0.972"),gi(f,"height","15.861"),gi(f,"rx","0.486"),gi(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gi(s,"transform","translate(-110.856 -23.242)"),gi(r,"class",g="TogglePasswordVisibility "+(i[6]?"InvalidToggle":"")+" "+(i[20]?"TogglePasswordVisibilityMobile":"")),gi(r,"xmlns","http://www.w3.org/2000/svg"),gi(r,"width","18.844"),gi(r,"height","12.887"),gi(r,"viewBox","0 0 18.844 12.887")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(r,s),si(s,l),si(s,c),si(c,u),si(c,d),si(s,p),si(p,h),si(p,m),si(s,f),y||(v=fi(r,"click",i[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gi(r,"class",g)},d(e){e&&ci(r),y=!1,v()}}}function Ah(e){let i,r,n=e[19]("confirmPasswordInvalid")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){524288&t[0]&&n!==(n=e[19]("confirmPasswordInvalid")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Lh(e){let i,r,n;return{c(){i=di("div"),r=di("p"),n=hi(e[17]),gi(r,"class","PasswordChangedError")},m(e,t){li(e,i,t),si(i,r),si(r,n)},p(e,t){131072&t[0]&&yi(n,e[17])},d(e){e&&ci(i)}}}function kh(i){let r,n=function(e){let i;function r(e){return e[2]?ph:hh}let n=r(e),o=n(e);return{c(){i=di("form"),o.c(),gi(i,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){li(e,i,t),o.m(i,null)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i,null)))},d(e){e&&ci(i),o.d()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[47](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[47](null)}}}function Mh(t,e,r){let i;Le(t,De,e=>r(19,i=e));let n,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==$e(u),p=!1;const N=window.matchMedia("(min-width: 768px)"),h={password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/};let m,f,g,y=!1,v=!1,w=!1,b=!1,_=!1,x=!1,C=!1,P="",E="",T="",A=!1,L="",k=!1;Object.keys(dh).forEach(e=>{uh(e,dh[e])});const M=e=>{switch(e){case"userCurrentPassword":r(10,b=!b),r(7,m.type=b?"text":"password",m);break;case"userNewPassword":r(11,_=!_),r(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":r(12,x=!x),r(9,g.type=x?"text":"password",g)}},S=e=>!!h.password.test(e),D=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:E},window.location.href)},$=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},B=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":r(2,A=!0);break;case"ShowPasswordChangedError":r(18,k=e.data.showErrorPasswordChanged),r(17,L=e.data.errorPasswordChanged)}};return ke(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&r(27,o=e.lang),"simplepasswordvalidation"in e&&r(0,a=e.simplepasswordvalidation),"clientstyling"in e&&r(28,s=e.clientstyling),"clientstylingurl"in e&&r(29,l=e.clientstylingurl),"translationurl"in e&&r(30,c=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&a&&"true"==a&&(h.password=/^(?!.* ).{8,20}$/),134217728&t.$$.dirty[0]&&o&&(e=o,Se.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;268435458&t.$$.dirty[0]&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{uh(e,t[e])})}).catch(e=>{console.log(e)})},[a,n,A,p,y,v,w,m,f,g,b,_,x,C,P,E,T,L,k,i,d,N,M,(e,t,i)=>{"CurrentPassword"===i.id?r(4,y=!S(t)):"NewPassword"===i.id&&(r(5,v=!S(t)),P&&r(13,C=P===E),!T)||r(6,w=E!==T||!S(t)),r(3,p=!(y||v||w||C||!P||!E||!T))},D,$,B,o,s,l,c,()=>$(),function(){P=this.value,r(14,P)},function(e){Me[e?"unshift":"push"](()=>{m=e,r(7,m)})},()=>M("userCurrentPassword"),()=>M("userCurrentPassword"),function(){E=this.value,r(15,E)},function(e){Me[e?"unshift":"push"](()=>{f=e,r(8,f)})},()=>M("userNewPassword"),()=>M("userNewPassword"),function(){T=this.value,r(16,T)},function(e){Me[e?"unshift":"push"](()=>{g=e,r(9,g)})},()=>M("userConfirmPassword"),()=>M("userConfirmPassword"),e=>D(e),()=>$(),()=>B(),function(e){Me[e?"unshift":"push"](()=>{n=e,r(1,n)})}]}function Sh(e,t){B(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ChangePasswordTitleNone{display:none}.PlayerChangePasswordContent{display:grid;grid-column-gap:50px;grid-row-gap:30px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerChangePasswordButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr}.PlayerChangePasswordSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordSaveButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordBox{display:flex;flex-direction:column;position:relative}.PlayerChangePasswordBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerChangePasswordBox input{font-size:14px;font-weight:300;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:10px;line-height:16px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerChangePasswordBox input:focus,.PlayerChangePasswordBox input :focus-within,.PlayerChangePasswordBox input :focus-visible,.PlayerChangePasswordBox input :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox input::-webkit-outer-spin-button,.PlayerChangePasswordBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerChangePasswordBox input::-ms-reveal,.PlayerChangePasswordBox input::-ms-clear{display:none}.PlayerChangePasswordBox.InvalidField input{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInput{bottom:-16px}.PlayerChangePasswordBox:last-child.InvalidField .InvalidInputNew{bottom:-24px}.TogglePasswordVisibility{height:20px;position:absolute;right:10px;top:38px;cursor:pointer;color:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.TogglePasswordVisibilityMobile{top:35px}.InvalidInput,.InvalidInputNew{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:10px;padding-top:5px;margin:0;line-height:12px}.InvalidInputNew{bottom:-24px}.PasswordChangedError{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:16px;line-height:18px;margin-top:0}.ChangedPasswordSuccessfully{color:var(--emfe-w-color-white, #FFFFFF);position:relative}.ChangedPasswordSuccessfully .SuccessWrapper{display:inline-flex;align-items:center;margin-bottom:20px}.ChangedPasswordSuccessfully .IconContainer{width:45px;height:45px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-radius:50px;display:flex;align-items:center;justify-content:center}.ChangedPasswordSuccessfully .Checkmark{width:12px;height:22px;border:1px solid var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:relative;top:-3px}.ChangedPasswordSuccessfully h3{font-size:20px;font-weight:400;margin:10px 0;color:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a))}.ChangedPasswordSuccessfully p{margin:0;font-size:14px;font-weight:300;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.ChangedPasswordSuccessfully .TextContainer{display:flex;flex-direction:column;padding:10px 20px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));background:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile{height:100%;max-width:unset;padding:20px 20px 40px 20px;display:flex;flex-flow:column}.PlayerChangePasswordWrapperMobile:after{content:"";position:absolute;bottom:0}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordHeader h3{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:14px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordButtonsArea{grid-column-gap:10px}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{font-size:12px;height:44px;color:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerChangePasswordWrapperMobile .PlayerChangePasswordSaveButton.ButtonInactive{opacity:0.3}.PlayerChangePasswordWrapperMobile .ChangedPasswordSuccessfully{color:var(--emfe-w-color-gray-300, #58586B)}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerChangePasswordWrapperTablet{padding:40px 25% 100% 25%}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordContent{grid-row-gap:20px}.PlayerChangePasswordWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerChangePasswordWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox label{font-size:20px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox input{height:30px;font-size:20px;line-height:30px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility{width:30px;top:46px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility.InvalidToggle rect{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility path,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility circle,.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .TogglePasswordVisibility rect{fill:var(--emfe-w-color-gray-300, #58586B)}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea{grid-column-gap:40px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{font-size:18px;height:56px}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.PlayerChangePasswordWrapperTablet .PlayerChangePasswordButtonsArea .PlayerChangePasswordSaveButton.ButtonInactive{color:var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Mh,kh,i,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","simplepasswordvalidation","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[27]}set lang(e){this.$$set({lang:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[0]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Dh={en:{title:"Reality Check",never:"Never",minutes:"Minutes",oneHour:"1 Hour",hours:"Hours",successMessage:"Reality check has been successfully updated.",realityCheckText:"The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",realityCheckLoading:"Loading items, please wait ...",setFrequency:"Set frequency"},"zh-hk":{title:"現實檢查",never:"絕不",minutes:"分鐘",oneHour:"1小時",hours:"小時",successMessage:"現實檢查已成功更新。",realityCheckText:"該工具允許您設置在遊戲會話中在屏幕上看到消息的頻率。 它將顯示自會話開始以來經過的時間。",realityCheckLoading:"正在加載項目,請稍候...",setFrequency:"設置頻率"},fr:{title:"Verification de la réalité",never:"Jamais",minutes:"Minutes",oneHour:"1 Heure",hours:"Heure",successMessage:"Le contrôle de la réalité a été mis à jour avec succès.",realityCheckText:"La fonction de contrôle de la réalité vous permet de définir la fréquence à laquelle vous verrez un contrôlede la réalité sur l'écran au cours de votre sessions de jeu , c'est-à-dire un affichage du temps écoulé depuis le début de votre session.",realityCheckLoading:"Chargement des éléments, veuillez patienter ...",setFrequency:"Régler la fréquence"},ro:{title:"Verificare timp",never:"Niciodata",minutes:"Minute",oneHour:"1 Ora",hours:"Ore",successMessage:"Frecvența a fost setată cu succes!",realityCheckText:"Opțiunea Reality Check îți permite să setezi frecvența cu care vei vedea verificarea timpului de joc pe parcursul sesiunii tale de joc. O astfel de verificare reprezintă afișarea timpului trecut de la începerea sesiunii de joc.",realityCheckLoading:"Se încarcă...",setFrequency:"Stabilește frecvența"},es:{title:"Verificación de la realidad",never:"Nunca",minutes:"Minutos",oneHour:"1 Hora",hours:"Horas",successMessage:"La verificación de la realidad se ha actualizado con éxito.",realityCheckText:"La función de Verificación de la realidad le permite establecer la frecuencia con la que verá una Verificación de la realidad en la pantalla dentro de su sesión de juego. Una verificación de la realidad significa una visualización del tiempo transcurrido desde que comenzó su sesión. Puede controlar la frecuencia con la que aparecerá la Verificación de realidad en su pantalla.",realityCheckLoading:"Cargando items",setFrequency:"Estabelecer frecuencia"},pt:{title:"Verificação da realidade",never:"Nunca",minutes:"Minutos",oneHour:"1 hora",hours:"Horas",successMessage:"A verificação da realidade foi atualizada com sucesso.",realityCheckText:"O recurso Verificação da Realidade permite que você defina a frequência com que você verá uma Verificação da Realidade na tela durante sua sessão de jogo. Uma verificação da realidade significa uma exibição do tempo decorrido desde o início da sua sessão.",realityCheckLoading:"Carregando itens, por favor aguarde...",setFrequency:"Definir frequência"},hr:{title:"Provjera stvarnosti",never:"Nikad",minutes:"Minuta",oneHour:"1 sat",hours:"Sati",successMessage:"Provjera stvarnosti je uspješno ažurirana.",realityCheckText:"Mogućnost Provjere stvarnosti omogućuje vam da postavite učestalost na kojoj ćete vidjeti Provjeru stvarnosti na zaslonu tijekom svoje sesije igranja. Provjera stvarnosti znači prikaz vremena proteklog od početka vaše sesije. Možete kontrolirati učestalost kojom će se Reality Provjera stvarnosti pojaviti na vašem zaslonu.",realityCheckLoading:"Učitavanje stavki",setFrequency:"Postavite frekvenciju"}};function $h(e,t,i){e=e.slice();return e[35]=t[i].value,e[36]=t[i].text,e[38]=i,e}function Bh(e){let i;return{c(){(i=di("div")).textContent=""+e[6],gi(i,"class","successMessageMobile")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Ih(e){let i,r;return{c(){i=di("div"),r=hi(e[6]),gi(i,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Nh(i){let r,n,o,a,s,l,c,e=i[4]("setFrequency")+"",u=i[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=Oh($h(i,u,e));return{c(){r=di("form");for(let e=0;e<d.length;e+=1)d[e].c();n=mi(),o=di("div"),a=di("button"),s=hi(e),gi(a,"class","PlayerRealityCheckButton"),gi(o,"class","BottomButtonsArea "+(i[5]?"BottomButtonsAreaMobile":"")),gi(r,"class","customRadio")},m(e,t){li(e,r,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(r,null);si(r,n),si(r,o),si(o,a),si(a,s),l||(c=fi(a,"click",i[22]),l=!0)},p(t,i){if(130&i[0]){let e;for(u=t[7],e=0;e<u.length;e+=1){const s=$h(t,u,e);d[e]?d[e].p(s,i):(d[e]=Oh(s),d[e].c(),d[e].m(r,n))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&i[0]&&e!==(e=t[4]("setFrequency")+"")&&yi(s,e)},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function Fh(e){let i,r,n=e[4]("realityCheckLoading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[4]("realityCheckLoading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Oh(i){let r,n,o,a,s,t,l,c,e=i[36]+"";return t=function(t){let i;return{p(...e){(i=e).forEach(e=>t.push(e))},r(){i.forEach(e=>t.splice(t.indexOf(e),1))}}}(i[21][0]),{c(){r=di("div"),n=di("input"),o=mi(),a=di("label"),s=hi(e),gi(n,"type","radio"),gi(n,"id",i[35]),n.__value=i[35],n.value=n.__value,gi(a,"for",i[35]),t.p(n)},m(e,t){li(e,r,t),si(r,n),n.checked=n.__value===i[1],si(r,o),si(r,a),si(a,s),l||(c=fi(n,"change",i[20]),l=!0)},p(e,t){2&t[0]&&(n.checked=n.__value===e[1])},d(e){e&&ci(r),t.r(),l=!1,c()}}}function Rh(i){let r,n,o,a,s,l,c,u,d,p,h=i[4]("title")+"",m=i[4]("realityCheckText")+"",f=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y=i[4]("title")+"",v=i[3]&&Bh(i);return{c(){v&&v.c(),r=mi(),n=di("div"),o=pi("svg"),a=pi("defs"),s=pi("style"),l=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=pi("g"),u=pi("g"),d=pi("path"),p=mi(),h=di("h2"),m=hi(y),gi(d,"class","aaa"),gi(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(d,"transform","translate(15 15) rotate(180)"),gi(u,"transform","translate(20 158)"),gi(c,"transform","translate(-20 -158)"),gi(o,"xmlns","http://www.w3.org/2000/svg"),gi(o,"width","15"),gi(o,"height","15"),gi(o,"viewBox","0 0 15 15"),gi(h,"class","RealityCheckTitleMobile"),gi(h,"part","RealityCheckTitleMobile"),gi(n,"class","MenuReturnButton"),gi(n,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),li(e,r,t),li(e,n,t),si(n,o),si(o,a),si(a,s),si(s,l),si(o,c),si(c,u),si(u,d),si(n,p),si(n,h),si(h,m),f||(g=fi(n,"click",i[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=Bh(e)).c(),v.m(r.parentNode,r)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&yi(m,y)},d(e){v&&v.d(e),e&&ci(r),e&&ci(n),f=!1,g()}}}(i),g=i[3]&&Ih(i);function y(e){return e[2]?Fh:Nh}let v=y(i),w=v(i);return{c(){r=di("div"),f&&f.c(),n=mi(),g&&g.c(),o=mi(),a=di("h2"),s=hi(h),l=mi(),c=di("div"),u=di("p"),d=hi(m),p=mi(),w.c(),this.c=oe,gi(a,"class","RealityCheckTitle "+(i[5]?"RealityCheckTitleNone":"")),gi(c,"class","RealityCheckDescription "+(i[5]?"RealityCheckDescriptionMobile":"")),gi(r,"class","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":"")),gi(r,"part","PlayerRealityCheckWrapper "+(i[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){li(e,r,t),f&&f.m(r,null),si(r,n),g&&g.m(r,null),si(r,o),si(r,a),si(a,s),si(r,l),si(r,c),si(c,u),si(u,d),si(c,p),w.m(c,null),i[23](r)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Ih(e)).c(),g.m(r,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&yi(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&yi(d,m),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(c,null)))},i:oe,o:oe,d(e){e&&ci(r),f&&f.d(),g&&g.d(),w.d(),i[23](null)}}}function Hh(i,e,r){let n;Le(i,De,e=>r(4,n=e));let o,{realitycheck:a=""}=e,{endpoint:s=""}=e,{playerid:l=""}=e,{session:c=""}=e,{lang:u="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,t=window.navigator.userAgent,m="PC"!==$e(t),f="",g=!0,y=(Object.keys(Dh).forEach(e=>{Sh(e,Dh[e])}),!1),v=n("successMessage"),w=[],b=[];const _=e=>{e.preventDefault(),window.postMessage({type:"SubmittedRealityCheck",realityCheckUpdatedValue:f},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},C=e=>{e.data&&"RealityCheckValueUpdated"===e.data.type&&(r(3,y=!0),setTimeout(()=>{r(3,y=!1)},2e3))};return ke(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),i.$$set=e=>{"realitycheck"in e&&r(10,a=e.realitycheck),"endpoint"in e&&r(11,s=e.endpoint),"playerid"in e&&r(12,l=e.playerid),"session"in e&&r(13,c=e.session),"lang"in e&&r(14,u=e.lang),"clientstyling"in e&&r(15,d=e.clientstyling),"clientstylingurl"in e&&r(16,p=e.clientstylingurl),"translationurl"in e&&r(17,h=e.translationurl)},i.$$.update=()=>{if(16384&i.$$.dirty[0]&&u&&(t=u,Se.set(t)),14336&i.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/v1/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(18,w=e.AvailableRealityCheckValues),w.forEach(e=>{0==e?b.push({value:e.toString(),text:n("never")}):e<60?b.push({value:e.toString(),text:e+" "+n("minutes")}):60==e?b.push({value:e.toString(),text:n("oneHour")}):60<e&&b.push({value:e.toString(),text:e/60+" "+n("hours")})}),r(2,g=!1)},e=>{console.error(e)})),263168&i.$$.dirty[0]&&w&&a&&r(1,f=a),65537&i.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}var e,t;32769&i.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&i.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sh(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,n,m,v,b,_,x,a,s,l,c,u,d,p,h,w,()=>x(),function(){f=this.__value,r(1,f)},[[]],e=>_(e),function(e){Me[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function jh(e,t){B(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emfe-w-color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Hh,Rh,i,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["realitycheck","endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl"]}get realitycheck(){return this.$$.ctx[10]}set realitycheck(e){this.$$set({realitycheck:e}),p()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[12]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[14]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),p()}});const zh={en:{title:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{title:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{title:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{title:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{title:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{title:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{title:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa za odabrano razdoblje."}};function Wh(e,t,i){e=e.slice();return e[42]=t[i],e[44]=i,e}function Uh(e,t,i){e=e.slice();return e[45]=t[i],e}function Yh(t){let n,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Zh(Uh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(8199&i[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var r=Uh(t,o,e);a[e]?a[e].p(r,i):(a[e]=Zh(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function Vh(e){let i,r,n=e[14]("noBonusHistory")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noBonusHistory")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Gh(e){let i,r,n,o,a,s,l,c,u,d;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),ae(i,"bonusdate",n=e[45].granted),ae(i,"bonusstatus",o=e[45].status),ae(i,"bonusname",a=e[45].name),ae(i,"bonustype",s=e[45].type),ae(i,"bonusamount",l=e[45].extension.grantedPlayerCurrencyAmount),ae(i,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),ae(i,"bonusremainingamount",u=e[45].currentAmount),ae(i,"bonuscurrency",d=e[45].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&ae(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&ae(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&ae(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&ae(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&ae(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].extension.grantedPlayerCurrencyAmount)&&ae(i,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&ae(i,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&ae(i,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&ae(i,"bonuscurrency",d),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function qh(e){let i,r,n,o,a,s,l;return{c(){ae(i=di("player-bonus-card"),"bonuswalletid",r=e[45].walletId),ae(i,"bonusdate",n=e[45].granted),ae(i,"bonusstatus",o=e[45].status),ae(i,"bonusname",a=e[45].name),ae(i,"bonustype",s=e[45].type),ae(i,"bonuscurrency",l=e[45].currency),ae(i,"lang",e[0]),ae(i,"clientstyling",e[1]),ae(i,"clientstylingurl",e[2])},m(e,t){li(e,i,t)},p(e,t){8192&t[0]&&r!==(r=e[45].walletId)&&ae(i,"bonuswalletid",r),8192&t[0]&&n!==(n=e[45].granted)&&ae(i,"bonusdate",n),8192&t[0]&&o!==(o=e[45].status)&&ae(i,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&ae(i,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&ae(i,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&ae(i,"bonuscurrency",l),1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"clientstyling",e[1]),4&t[0]&&ae(i,"clientstylingurl",e[2])},d(e){e&&ci(i)}}}function Zh(e){let i;function r(e){return"freeRound"===e[45].type?qh:Gh}let n=r(e),o=n(e);return{c(){o.c(),i=I()},m(e,t){o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o.d(1),(o=n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&ci(i)}}}function Kh(i){let r,n,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,w,b,_=Array(i[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Xh(Wh(i,_,e));return{c(){r=di("div"),n=di("span"),o=hi("|<"),s=mi(),l=di("span"),c=hi("<"),u=mi();for(let e=0;e<x.length;e+=1)x[e].c();d=mi(),p=di("span"),h=hi(">"),f=mi(),g=di("span"),y=hi(">|"),gi(n,"class",a="BonusesFirst "+(0===i[12]?"Inactive":"")),gi(l,"class",e="BonusesPrev "+(0===i[12]?"Inactive":"")),gi(p,"class",m="BonusesNext "+(i[12]===i[11]-1?"Inactive":"")),gi(g,"class",v="BonusesLast "+(i[12]===i[11]-1?"Inactive":"")),gi(r,"class","BonusesPaginationWrapper "+(i[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,s),si(r,l),si(l,c),si(r,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(r,null);si(r,d),si(r,p),si(p,h),si(r,f),si(r,g),si(g,y),w||(b=[fi(n,"click",i[26]),fi(l,"click",i[27]),fi(p,"click",i[29]),fi(g,"click",i[30])],w=!0)},p(t,i){if(4096&i[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&gi(n,"class",a),4096&i[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&gi(l,"class",e),137216&i[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=Wh(t,_,e);x[e]?x[e].p(a,i):(x[e]=Xh(a),x[e].c(),x[e].m(r,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&i[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&gi(p,"class",m),6144&i[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&gi(g,"class",v)},d(e){e&&ci(r),ui(x,e),w=!1,ai(b)}}}function Xh(i){let r,n,o,a,s,e=i[44]+1+"";function l(){return i[28](i[44])}return{c(){r=di("span"),n=hi(e),gi(r,"class",o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))},m(e,t){li(e,r,t),si(r,n),a||(s=fi(r,"click",l),a=!0)},p(e,t){i=e,4096&t[0]&&o!==(o="BonusesPage "+(i[44]===i[12]?"BonusPageActive":""))&&gi(r,"class",o)},d(e){e&&ci(r),a=!1,s()}}}function Jh(i){let r,n=function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,T,A,L,k=i[14]("title")+"",M=i[14]("dateFrom")+"",S=i[14]("dateTo")+"",D=i[14]("dateFilter")+"",$=i[15]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BonusesTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function B(e){return 0===e[13].length?Vh:Yh}let I=B(i),N=I(i),F=0!==i[13].length&&Kh(i);return{c(){r=di("div"),$&&$.c(),n=mi(),o=di("h2"),a=hi(k),s=mi(),l=di("div"),c=di("div"),u=di("div"),d=di("label"),p=hi(M),h=mi(),m=di("vaadin-date-picker"),f=mi(),g=di("div"),y=di("label"),v=hi(S),w=mi(),b=di("vaadin-date-picker"),_=mi(),x=di("button"),C=hi(D),P=mi(),E=di("div"),N.c(),T=mi(),F&&F.c(),gi(o,"class","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(o,"part","BonusesTitle "+(i[15]?"BonusesTitleNone":"")),gi(d,"for","BonusCalendarStartDate"),ae(m,"max",i[6]),ae(m,"value",i[7]),ae(m,"placeholder","From"),ae(m,"class","VaadinDatePicker"),gi(u,"class","BonusesCalendarStartDate "+(i[15]?"BonusesCalendarMobile":"")),gi(y,"for","BonusesCalendarEndDate"),ae(b,"max",i[6]),ae(b,"value",i[6]),ae(b,"placeholder","To"),ae(b,"class","VaadinDatePicker"),gi(g,"class","BonusesCalendarEndDate "+(i[15]?"BonusesCalendarMobile":"")),gi(c,"class","BonusesCalendarContainer "+(i[15]?"BonusesCalendarContainerMobile":"")),gi(x,"class","BonusesCalendarFilter "+(i[15]?"BonusesCalendarFilterMobile":"")),gi(l,"class","BonusCalendarWrapper "+(i[15]?"BonusCalendarWrapperMobile":"")),gi(E,"class","BonusesGrid "+(i[15]?"BonusesGridMobile":"")),gi(r,"class","BonusesWrapper "+(i[15]?"BonusesWrapperMobile":""))},m(e,t){li(e,r,t),$&&$.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(u,d),si(d,p),si(u,h),si(u,m),i[23](m),si(c,f),si(c,g),si(g,y),si(y,v),si(g,w),si(g,b),i[24](b),si(l,_),si(l,x),si(x,C),si(r,P),si(r,E),N.m(E,null),si(r,T),F&&F.m(r,null),A||(L=fi(x,"click",i[25]),A=!0)},p(e,t){e[15]&&$.p(e,t),16384&t[0]&&k!==(k=e[14]("title")+"")&&yi(a,k),16384&t[0]&&M!==(M=e[14]("dateFrom")+"")&&yi(p,M),64&t[0]&&ae(m,"max",e[6]),128&t[0]&&ae(m,"value",e[7]),16384&t[0]&&S!==(S=e[14]("dateTo")+"")&&yi(v,S),64&t[0]&&ae(b,"max",e[6]),64&t[0]&&ae(b,"value",e[6]),16384&t[0]&&D!==(D=e[14]("dateFilter")+"")&&yi(C,D),I===(I=B(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(E,null))),0!==e[13].length?F?F.p(e,t):((F=Kh(e)).c(),F.m(r,null)):F&&(F.d(1),F=null)},d(e){e&&ci(r),$&&$.d(),i[23](null),i[24](null),N.d(),F&&F.d(),A=!1,L()}}}(i);return{c(){r=di("div"),n.c(),this.c=oe},m(e,t){li(e,r,t),n.m(r,null),i[31](r)},p(e,t){n.p(e,t)},i:oe,o:oe,d(e){e&&ci(r),n.d(),i[31](null)}}}function Qh(t,e,r){let i;Le(t,De,e=>r(14,i=e));let n,o,a,s,l,{endpoint:c=""}=e,{session:u=""}=e,{playerid:d=""}=e,{lang:p="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:m=""}=e,{translationurl:f=""}=e,g=window.navigator.userAgent,y="PC"!==$e(g),v=(s=z(new Date).format("YYYY-MM-DD"),l=z(new Date).subtract(3,"months").format("YYYY-MM-DD")),w=s,b=0,_=0,x=0,C=0,P=0,E=[];Object.keys(zh).forEach(e=>{jh(e,zh[e])});const T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},A=t=>{var e=new URL(`${c}/v1/player/${d}/bonusWallet`),i=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(w).toISOString()}]`,i=(e.searchParams.append("filter",i),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,i).then(e=>e.json()).then(e=>{r(11,C=Math.ceil(e.total/6)),0<=t-6&&r(8,b=t-6),t+6<e.total&&r(9,_=t+6),r(10,x=6*(C-1)),r(12,P=t/6),r(13,E=e.items)},e=>{console.error(e)}),window.postMessage({type:"ScrollToTop"},window.location.href)},L=e=>{v=e.target.value},k=e=>{w=e.target.value};ke(()=>()=>{o.removeEventListener("change",L),a.removeEventListener("change",k)});return t.$$set=e=>{"endpoint"in e&&r(18,c=e.endpoint),"session"in e&&r(19,u=e.session),"playerid"in e&&r(20,d=e.playerid),"lang"in e&&r(0,p=e.lang),"clientstyling"in e&&r(1,h=e.clientstyling),"clientstylingurl"in e&&r(2,m=e.clientstylingurl),"translationurl"in e&&r(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,Se.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",L,!1),a.addEventListener("change",k,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&A(0),12&t.$$.dirty[0]&&m&&n){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&n&&((e=document.createElement("style")).innerHTML=h,n.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{jh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,n,o,a,s,l,b,_,x,C,P,E,i,y,T,A,c,u,d,f,()=>T(),function(e){Me[e?"unshift":"push"](()=>{o=e,r(4,o)})},function(e){Me[e?"unshift":"push"](()=>{a=e,r(5,a)})},()=>A(0),()=>A(0),()=>A(b),e=>A(6*e),()=>A(_),()=>A(x),function(e){Me[e?"unshift":"push"](()=>{n=e,r(3,n)})}]}function em(e,t){B(e,t)}customElements.define=(Hp=customElements.define,function(...e){try{return Hp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:120px;height:40px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Qh,Jh,i,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[18]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[20]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),p()}});const tm={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."},hr:{title:"Uplata",loading:"Učitavanje"}};function im(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[3])||gi(r,"src",n),gi(r,"title","Deposit Iframe"),gi(i,"class","DepositIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&!b(r.src,n=e[3])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function rm(e){let i,r,n=e[4]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t&&n!==(n=e[4]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function nm(i){let r,n,o,a,s,l=i[4]("title")+"",c=i[5]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[4]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","DepositTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[17]),m=!0)},p(e,t){16&t&&g!==(g=e[4]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?rm:im}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","DepositTitle "+(i[5]?"DepositTitleNone":"")),gi(r,"class","DepositWrapper "+(i[5]?"DepositWrapperMobile":"")),L(r,"--dynamic-height",i[2])},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[18](r)},p(e,[t]){e[5]&&c.p(e,t),16&t&&l!==(l=e[4]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null))),4&t&&L(r,"--dynamic-height",e[2])},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[18](null)}}}function om(r,e,n){let t;Le(r,De,e=>n(4,t=e));let o,i,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,{shortcashierenabled:f="false"}=e,g=window.navigator.userAgent,y="PC"!==$e(g),v=!0,w=0,b="";Object.keys(tm).forEach(e=>{em(e,tm[e])});const _=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:y},window.location.href)},x=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(7,m=e.data.profileDetails.currency),e.data["MMFE:setQuickDepositHeight"]&&n(2,i=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),"true"===e.data["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href)}};return ke(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)})),r.$$set=e=>{"endpoint"in e&&n(8,a=e.endpoint),"session"in e&&n(9,s=e.session),"playerid"in e&&n(10,l=e.playerid),"lang"in e&&n(11,c=e.lang),"hasdefaultamount"in e&&n(12,u=e.hasdefaultamount),"clientstyling"in e&&n(13,d=e.clientstyling),"clientstylingurl"in e&&n(14,p=e.clientstylingurl),"translationurl"in e&&n(15,h=e.translationurl),"playercurrency"in e&&n(7,m=e.playercurrency),"shortcashierenabled"in e&&n(16,f=e.shortcashierenabled)},r.$$.update=()=>{if(2048&r.$$.dirty&&c&&(i=c,Se.set(i)),16385&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8193&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),32768&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{em(e,t[e])})}).catch(e=>{console.log(e)}),69504&r.$$.dirty&&s&&l&&a&&m&&c&&f){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(f&&e.searchParams.append("isShortCashier",f),u)switch(m){case"USD":w=.4;break;case"CDF":w=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:w,cashierMode:"Default",IsShortCashier:f,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,v=!1),n(3,b=e.CashierUrl)},e=>{console.error(e)})}var i},[o,v,i,b,t,y,_,m,a,s,l,c,u,d,p,h,f,()=>_(),function(e){Me[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function am(e,t){B(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},om,nm,i,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[8]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(e){this.$$set({playercurrency:e}),p()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),p()}});const sm={en:{title:"Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"退出",loading:"加載請稍候…"},fr:{title:"Retrait",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere",loading:"Se încarcă..."},es:{title:"Retirar",loading:"Cargando..."},pt:{title:"Retirada",loading:"Carregando, por favor espere ..."},hr:{title:"Isplata",loading:"Učitavanje"}};function lm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Withdrawal Iframe"),gi(i,"class","WithdrawalIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function cm(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function um(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","WithdrawalTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?cm:lm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","WithdrawalTitle "+(i[4]?"WithdrawalTitleNone":"")),gi(r,"class","WithdrawalWrapper "+(i[4]?"WithdrawalWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[16](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[16](null)}}}function dm(r,e,n){let t;Le(r,De,e=>n(3,t=e));let o,{endpoint:a=""}=e,{session:s=""}=e,{playerid:l=""}=e,{lang:c="en"}=e,{hasdefaultamount:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,{playercurrency:m=""}=e,i=window.navigator.userAgent,f="PC"!==$e(i),g=!0,y=0,v="";Object.keys(sm).forEach(e=>{am(e,sm[e])});const w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},b=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&n(6,m=e.data.profileDetails.currency),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href)}};return ke(()=>(window.addEventListener("message",b,!1),()=>{window.removeEventListener("message",b)})),r.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"session"in e&&n(8,s=e.session),"playerid"in e&&n(9,l=e.playerid),"lang"in e&&n(10,c=e.lang),"hasdefaultamount"in e&&n(11,u=e.hasdefaultamount),"clientstyling"in e&&n(12,d=e.clientstyling),"clientstylingurl"in e&&n(13,p=e.clientstylingurl),"translationurl"in e&&n(14,h=e.translationurl),"playercurrency"in e&&n(6,m=e.playercurrency)},r.$$.update=()=>{if(1024&r.$$.dirty&&c&&(i=c,Se.set(i)),8193&r.$$.dirty&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(4097&r.$$.dirty&&d&&o&&((i=document.createElement("style")).innerHTML=d,o.appendChild(i)),16384&r.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{am(e,t[e])})}).catch(e=>{console.log(e)}),1984&r.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/v1/player/${l}/hostedcashier/initializewithdraw`);if(e.searchParams.append("language",c),u)switch(m){case"USD":y=.4;break;case"CDF":y=1e3}var t={method:"POST",headers:{"X-SessionId":s,currency:m||"EUR",amount:y,cashierMode:"Default",IsShortCashier:!1,accept:"application/json"}};fetch(e.href,t).then(e=>e.json()).then(e=>{n(1,g=!1),n(2,v=e.CashierUrl)},e=>{console.error(e)})}var i},[o,g,v,t,f,w,m,a,s,l,c,u,d,p,h,()=>w(),function(e){Me[e?"unshift":"push"](()=>{o=e,n(0,o)})}]}function pm(e,t){B(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},dm,um,i,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[9]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),p()}get hasdefaultamount(){return this.$$.ctx[11]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),p()}get playercurrency(){return this.$$.ctx[6]}set playercurrency(e){this.$$set({playercurrency:e}),p()}});const hm={en:{title:"Pending Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{title:"待取款",loading:"加載請稍候…"},fr:{title:"Retrait en cours",loading:"Chargement, veuillez patienter ..."},ro:{title:"Retragere în așteptare",loading:"Se încarcă..."},es:{title:"Retiro Pendiente",loading:"Cargando..."},pt:{title:"Retirada pendente",loading:"Carregando, por favor espere ..."},hr:{title:"Isplate na čekanju",loading:"Učitavanje"}};function mm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Pending Withdrawals Iframe"),gi(i,"class","PendingWithdrawalsIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function fm(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function gm(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PendingWithdrawalsTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?fm:mm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","PendingWithdrawalsTitle "+(i[4]?"PendingWithdrawalsTitleNone":"")),gi(r,"class","PendingWithdrawalsWrapper "+(i[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function ym(i,e,r){let t;Le(i,De,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(hm).forEach(e=>{pm(e,hm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Se.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/pendingwithdrawals`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{pm(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Me[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function vm(e,t){B(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},ym,gm,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const wm={en:{title:"Transaction History",loading:"Loading, please wait ..."},"zh-hk":{title:"交易記錄",loading:"加載請稍候…"},fr:{title:"Historique des transactions",loading:"Chargement, veuillez patienter ..."},ro:{title:"Istoric tranzacții",loading:"Se încarcă..."},es:{title:"Historial de transacciones",loading:"Cargando ... Por favor espere ..."},pt:{title:"Histórico de transações",loading:"Carregando, por favor espere ..."},hr:{title:"Povijest transakcija",loading:"Učitavanje"}};function bm(e){let i,r,n;return{c(){i=di("div"),b((r=di("iframe")).src,n=e[2])||gi(r,"src",n),gi(r,"title","Transaction History Iframe"),gi(i,"class","TransactionHistoryIframeWrapper")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4&t&&!b(r.src,n=e[2])&&gi(r,"src",n)},d(e){e&&ci(i)}}}function _m(e){let i,r,n=e[3]("loading")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){8&t&&n!==(n=e[3]("loading")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function xm(i){let r,n,o,a,s,l=i[3]("title")+"",c=i[4]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[3]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","TransactionHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function u(e){return e[1]?_m:bm}let d=u(i),p=d(i);return{c(){r=di("div"),c&&c.c(),n=mi(),o=di("h2"),a=hi(l),s=mi(),p.c(),this.c=oe,gi(o,"class","TransactionHistoryTitle "+(i[4]?"TransactionHistoryTitleNone":"")),gi(r,"class","TransactionHistoryWrapper "+(i[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){li(e,r,t),c&&c.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),p.m(r,null),i[14](r)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yi(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),c&&c.d(),p.d(),i[14](null)}}}function Cm(i,e,r){let t;Le(i,De,e=>r(3,t=e));let n,{endpoint:o=""}=e,{session:a=""}=e,{playerid:s=""}=e,{lang:l="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{translationurl:d=""}=e,p=window.navigator.userAgent,h="PC"!==$e(p),m=!0,f="";Object.keys(wm).forEach(e=>{vm(e,wm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return i.$$set=e=>{"endpoint"in e&&r(6,o=e.endpoint),"session"in e&&r(7,a=e.session),"playerid"in e&&r(8,s=e.playerid),"lang"in e&&r(9,l=e.lang),"clientstyling"in e&&r(10,c=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl),"translationurl"in e&&r(12,d=e.translationurl)},i.$$.update=()=>{if(512&i.$$.dirty&&l&&(t=l,Se.set(t)),960&i.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/v1/player/${s}/hostedcashier/customertransactionhistoryurl`)).searchParams.append("language",l),e={method:"GET",headers:{"X-SessionId":a,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{r(1,m=!1),r(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&i.$$.dirty&&u&&n){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e,t;1025&i.$$.dirty&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),4096&i.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{vm(e,t[e])})}).catch(e=>{console.log(e)})},[n,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){Me[e?"unshift":"push"](()=>{n=e,r(0,n)})}]}function Pm(e,t){B(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Cm,xm,i,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","session","playerid","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),p()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),p()}get playerid(){return this.$$.ctx[8]}set playerid(e){this.$$set({playerid:e}),p()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Em={en:{title:"Gaming History",return:"Return",previous:"Prev",next:"Next",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",numberOfResults:"Show:",noRecord:"You haven't played any games so far.",transactionId:"Transaction ID",date:"Date",gameName:"Game Name",stake:"Stake"},"zh-hk":{title:"遊戲歷史",return:"回來",previous:"上一頁",next:"下一個",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",numberOfResults:"節目:",noRecord:"到目前為止,您還沒有玩任何遊戲。",transactionId:"交易編號",date:"日期",gameName:"遊戲名稱",stake:"賭注"},fr:{title:"Historique des jeux",return:"Revenir",previous:"Précedent",next:"Suivant",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",numberOfResults:"Afficher:",noRecord:"Vous n'avez joué à aucun jeu jusqu'à présent.",transactionId:"Transaction ID",date:"Date",gameName:"Nom du jeu",stake:"Mise"},ro:{title:"Istoric jocuri",return:"Înapoi la meniu",previous:"Înapoi",next:"Înainte",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",numberOfResults:"Arată",noRecord:"Nu ai niciun istoric de jocuri în acest moment."},es:{title:"Historial de apuestas",return:"Regresar",previous:"Previo",next:"Siguiente",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",numberOfResults:"Mostrar:",noRecord:"Aún no ha jugado ningún juego",transactionId:"ID de Transacción",date:"Fecha",gameName:"Nombre del juego",stake:"Apostado"},pt:{title:"Histórico de jogos",return:"Voltar ao menu",previous:"Anterior",next:"Próximo",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",numberOfResults:"Mostrar:",noRecord:"Você não jogou nenhum jogo até agora."},hr:{title:"Povijest igranja",return:"Povratak",previous:"Prethodno",next:"Slijedeće",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",numberOfResults:"Prikaži:",noRecord:"Do sada niste igrali nijednu igru.",transactionId:"ID transakcije",date:"Datum",gameName:"Naziv igre",stake:"Ulog"}};function Tm(e,t,i){e=e.slice();return e[55]=t[i],e}function Am(e,t,i){e=e.slice();return e[58]=t[i],e}function Lm(i){let r,n,o,a,s,l,c,e=i[14]("numberOfResults")+"",u=i[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=km(Am(i,u,e));return{c(){r=di("div"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(s,"class","PlayerGamingHistoryItemCount"),void 0===i[7]&&bi(()=>i[33].call(s)),gi(r,"class","PlayerGamingItemCountContainer")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[33]),fi(s,"change",i[34])],l=!0)},p(t,i){if(16384&i[0]&&e!==(e=t[14]("numberOfResults")+"")&&yi(o,e),32768&i[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=Am(t,u,e);d[e]?d[e].p(o,i):(d[e]=km(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function km(e){let i,r,t=e[58]+"";return{c(){i=di("option"),r=hi(t),i.__value=e[58],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p:oe,d(e){e&&ci(i)}}}function Mm(e){let i,r,n=e[14]("noRecord")+"";return{c(){i=di("p"),r=hi(n),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r)},p(e,t){16384&t[0]&&n!==(n=e[14]("noRecord")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Sm(e){let i,r,n;return{c(){i=di("p"),r=hi("Invalid data: "),n=hi(e[8]),gi(i,"class","PlayerGamingHistoryEmpty")},m(e,t){li(e,i,t),si(i,r),si(i,n)},p(e,t){256&t[0]&&yi(n,e[8])},d(e){e&&ci(i)}}}function Dm(i){let r,n,o,a,s,l,F,c,u,O,d,p,R,H,j,z,W,U,Y,h,V,m,f,g,y,e,G,v,q,w,b,Z,_,x,K,X,C,P,E,T,A,J,Q,L=i[14]("transactionId")+"",k=i[14]("date")+"",M=i[14]("gameName")+"",S=i[14]("stake")+"",D=i[14]("return")+"",$=i[14]("previous")+"",B=i[14]("next")+"",I=i[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=Bm(Tm(i,I,e));return{c(){r=di("div"),n=di("table"),o=di("thead"),a=di("tr"),s=di("th"),l=hi(L),F=mi(),c=di("th"),u=hi(k),O=mi(),d=di("th"),p=hi(M),R=mi(),H=di("th"),j=hi(S),z=mi(),W=di("th"),U=hi(D),Y=mi(),h=di("tbody");for(let e=0;e<N.length;e+=1)N[e].c();V=mi(),m=di("div"),f=di("button"),g=pi("svg"),y=pi("path"),G=mi(),v=di("span"),q=hi($),Z=mi(),_=di("button"),x=di("span"),K=hi(B),X=mi(),C=pi("svg"),P=pi("path"),gi(r,"class","PlayerGamingHistoryContainer"),gi(y,"fill",e=i[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(y,"class","a"),gi(y,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(y,"transform","translate(19.246 -6.188) rotate(90)"),gi(g,"xmlns","http://www.w3.org/2000/svg"),gi(g,"width","8"),gi(g,"height","13.992"),gi(g,"viewBox","0 0 8 13.992"),gi(v,"class","PlayerPaginationControlsText"),gi(f,"class",w="PlayerPaginationControls "+(i[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=b=!i[5],gi(x,"class","PlayerPaginationControlsText"),gi(P,"fill",E=i[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gi(P,"class","a"),gi(P,"d","M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"),gi(P,"transform","translate(-11.246 20.179) rotate(-90)"),gi(C,"xmlns","http://www.w3.org/2000/svg"),gi(C,"width","8"),gi(C,"height","13.992"),gi(C,"viewBox","0 0 8 13.992"),gi(_,"class",T="PlayerPaginationControls "+(i[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=A=!i[4],gi(m,"class","PlayerPaginationControlsArea")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(s,l),si(a,F),si(a,c),si(c,u),si(a,O),si(a,d),si(d,p),si(a,R),si(a,H),si(H,j),si(a,z),si(a,W),si(W,U),si(n,Y),si(n,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);li(e,V,t),li(e,m,t),si(m,f),si(f,g),si(g,y),si(f,G),si(f,v),si(v,q),si(m,Z),si(m,_),si(_,x),si(x,K),si(_,X),si(_,C),si(C,P),J||(Q=[fi(f,"click",i[35]),fi(_,"click",i[36])],J=!0)},p(t,i){if(16384&i[0]&&L!==(L=t[14]("transactionId")+"")&&yi(l,L),16384&i[0]&&k!==(k=t[14]("date")+"")&&yi(u,k),16384&i[0]&&M!==(M=t[14]("gameName")+"")&&yi(p,M),16384&i[0]&&S!==(S=t[14]("stake")+"")&&yi(j,S),16384&i[0]&&D!==(D=t[14]("return")+"")&&yi(U,D),1073152&i[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var r=Tm(t,I,e);N[e]?N[e].p(r,i):(N[e]=Bm(r),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&i[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(y,"fill",e),16384&i[0]&&$!==($=t[14]("previous")+"")&&yi(q,$),32&i[0]&&w!==(w="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&gi(f,"class",w),32&i[0]&&b!==(b=!t[5])&&(f.disabled=b),16384&i[0]&&B!==(B=t[14]("next")+"")&&yi(K,B),16&i[0]&&E!==(E=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gi(P,"fill",E),16&i[0]&&T!==(T="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&gi(_,"class",T),16&i[0]&&A!==(A=!t[4])&&(_.disabled=A)},d(e){e&&ci(r),ui(N,e),e&&ci(V),e&&ci(m),J=!1,ai(Q)}}}function $m(e){let i;return{c(){gi(i=di("div"),"class","DataLoader")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function Bm(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,T,A,L,k=e[55].roundId+"",M=e[20](e[55])+"",S=e[55].gameModel.name+"",D=e[55].stakeAmount+"",$=e[55].returnAmount+"";return{c(){i=di("tr"),r=di("td"),n=di("span"),o=hi(k),l=mi(),c=di("td"),u=di("span"),d=hi(M),h=mi(),m=di("td"),f=di("span"),g=hi(S),v=mi(),w=di("td"),b=di("span"),_=hi(D),C=mi(),P=di("td"),E=di("span"),T=hi($),L=mi(),gi(r,"data-label",a=e[14]("transactionId")),gi(r,"title",s=e[55].roundId),gi(c,"data-label",p=e[14]("date")),gi(m,"data-label",y=e[14]("gameName")),gi(w,"data-label",x=e[14]("stake")),gi(P,"data-label",A=e[14]("return"))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,l),si(i,c),si(c,u),si(u,d),si(i,h),si(i,m),si(m,f),si(f,g),si(i,v),si(i,w),si(w,b),si(b,_),si(i,C),si(i,P),si(P,E),si(E,T),si(i,L)},p(e,t){8192&t[0]&&k!==(k=e[55].roundId+"")&&yi(o,k),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gi(r,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gi(r,"title",s),8192&t[0]&&M!==(M=e[20](e[55])+"")&&yi(d,M),16384&t[0]&&p!==(p=e[14]("date"))&&gi(c,"data-label",p),8192&t[0]&&S!==(S=e[55].gameModel.name+"")&&yi(g,S),16384&t[0]&&y!==(y=e[14]("gameName"))&&gi(m,"data-label",y),8192&t[0]&&D!==(D=e[55].stakeAmount+"")&&yi(_,D),16384&t[0]&&x!==(x=e[14]("stake"))&&gi(w,"data-label",x),8192&t[0]&&$!==($=e[55].returnAmount+"")&&yi(T,$),16384&t[0]&&A!==(A=e[14]("return"))&&gi(P,"data-label",A)},d(e){e&&ci(i)}}}function Im(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_,x,C,P,E,T,A,L,k,M=i[14]("title")+"",S=i[14]("dateFrom")+"",D=i[14]("dateTo")+"",$=i[14]("dateFilter")+"",B=i[16]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[14]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","PlayerGamingHistoryTitleMobile"),gi(p,"part","PlayerGamingHistoryTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),I=!i[12].matches&&Lm(i);function O(e){return e[9]?$m:0<e[13].length?Dm:0<e[8].length?Sm:Mm}let N=O(i),F=N(i);return{c(){r=di("div"),n=di("div"),B&&B.c(),o=mi(),a=di("h2"),s=hi(M),l=mi(),c=di("div"),u=di("div"),d=di("div"),p=di("div"),h=di("span"),m=hi(S),f=mi(),g=di("vaadin-date-picker"),y=mi(),v=di("div"),w=di("span"),b=hi(D),_=mi(),x=di("vaadin-date-picker"),C=mi(),P=di("button"),E=hi($),T=mi(),I&&I.c(),A=mi(),F.c(),this.c=oe,gi(a,"class","PlayerGamingHistoryTitle "+(i[16]?"PlayerGamingHistoryTitleNone":"")),ae(g,"max",i[10]),ae(g,"placeholder","From"),ae(g,"value",i[11]),ae(g,"class","VaadinDatePicker"),gi(p,"class","PlayerGamingDateWrapper"),ae(x,"max",i[10]),ae(x,"placeholder","To"),ae(x,"value",i[10]),ae(x,"class","VaadinDatePicker"),gi(v,"class","PlayerGamingDateWrapper"),gi(d,"class","PlayerGamingDateContainer"),gi(P,"class","PlayerGamingHistoryFilterButton"),gi(u,"class","PlayerGamingHistoryFilterWrapper"),gi(c,"class","PlayerGamingHistoryTopSection"),gi(n,"class","PlayerGamingHistoryWrapper "+(i[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(i[17].matches&&i[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){li(e,r,t),si(r,n),B&&B.m(n,null),si(n,o),si(n,a),si(a,s),si(n,l),si(n,c),si(c,u),si(u,d),si(d,p),si(p,h),si(h,m),si(p,f),si(p,g),i[30](g),si(d,y),si(d,v),si(v,w),si(w,b),si(v,_),si(v,x),i[31](x),si(u,C),si(u,P),si(P,E),si(u,T),I&&I.m(u,null),si(n,A),F.m(n,null),i[37](n),i[38](r),L||(k=fi(P,"click",i[32]),L=!0)},p(e,t){e[16]&&B.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yi(s,M),16384&t[0]&&S!==(S=e[14]("dateFrom")+"")&&yi(m,S),1024&t[0]&&ae(g,"max",e[10]),2048&t[0]&&ae(g,"value",e[11]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&yi(b,D),1024&t[0]&&ae(x,"max",e[10]),1024&t[0]&&ae(x,"value",e[10]),16384&t[0]&&$!==($=e[14]("dateFilter")+"")&&yi(E,$),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=Lm(e)).c(),I.m(u,null)),N===(N=O(e))&&F?F.p(e,t):(F.d(1),(F=N(e))&&(F.c(),F.m(n,null)))},i:oe,o:oe,d(e){e&&ci(r),B&&B.d(),i[30](null),i[31](null),I&&I.d(),F.d(),i[37](null),i[38](null),L=!1,k()}}}function Nm(t,e,n){let i;Le(t,De,e=>n(14,i=e));let r,o,a,s,l,c,{endpoint:u=""}=e,{playerid:d=""}=e,{session:p=""}=e,{lang:h="en"}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{gmversion:y=""}=e,v="",w="",b="",_=z().format("YYYY-MM-DD"),x=z().format("YYYY-MM-DD"),C=["5","10","25","50"],P="5",E="",T=!1,A=window.navigator.userAgent,L="PC"!==$e(A),N=(l=z(new Date).format("YYYY-MM-DD"),c=z(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(Em).forEach(e=>{Pm(e,Em[e])}),window.matchMedia("(min-width: 768px)")),k=window.matchMedia("(max-width: 1280px)"),M=[];const S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:L},window.location.href)},F=()=>{n(12,k=window.matchMedia("(max-width: 1280px)"))},O=(e,t,i)=>{var e=new URL(e),r=(n(13,M=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,T=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,M=e.transactions),n(13,M=(e=>{let r=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",i=r.get(e.roundId);i?i[t]=e.totalAmount:((i=Object.assign({},e))[t]=e.totalAmount,r.set(e.roundId,i))}),Array.from(r.values())})(M)),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,T=!1)},e=>{n(9,T=!1),console.error(e)})},D=(e,t,i)=>{var r;"gm16"===y?O(e,t,i):(t=t,i=i,e=new URL(e),n(13,M=[]),n(8,E=""),r={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),i&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),n(9,T=!0),fetch(e.href,r).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),n(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(n(13,M=e.transactions),n(4,w=e.pagination.next),n(5,b=e.pagination.previous)),n(9,T=!1)},e=>{n(9,T=!1),console.error(e)})),window.postMessage({type:"ScrollToTop"},window.location.href)},$=e=>{e.data&&e.data.type},B=e=>{_=e.target.value},I=e=>{x=e.target.value};return ke(()=>(window.addEventListener("message",$,!1),window.addEventListener("resize",F,!1),()=>{o.removeEventListener("change",B),a.removeEventListener("change",I),window.removeEventListener("message",$),window.removeEventListener("resize",$)})),t.$$set=e=>{"endpoint"in e&&n(21,u=e.endpoint),"playerid"in e&&n(22,d=e.playerid),"session"in e&&n(23,p=e.session),"lang"in e&&n(24,h=e.lang),"clientstyling"in e&&n(25,m=e.clientstyling),"clientstylingurl"in e&&n(26,f=e.clientstylingurl),"translationurl"in e&&n(27,g=e.translationurl),"gmversion"in e&&n(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",B,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,Se.set(e),n(3,v="gm16"===y?`${u}/v1/player/${d}/transactions/wagering?type=Casino`:`${u}/v1/player/${d}/bets`),D(v,!1,!0)),67108868&t.$$.dirty[0]&&f&&s){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1)})}var e;33554436&t.$$.dirty[0]&&m&&s&&((e=document.createElement("style")).innerHTML=m,s.appendChild(e)),134217728&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Pm(e,t[e])})}).catch(e=>{console.log(e)})},[o,a,s,v,w,b,void 0,P,E,T,l,c,k,M,i,C,L,N,S,D,e=>("gm16"===y?z(e.ins):z(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>S(),function(e){Me[e?"unshift":"push"](()=>{o=e,n(0,o)})},function(e){Me[e?"unshift":"push"](()=>{a=e,n(1,a)})},()=>D(v,!1,!0),function(){P=pe(this),n(7,P),n(15,C)},()=>D(v,!1,!0),()=>D(b,!0,!1),()=>D(w,!0,!1),function(e){Me[e?"unshift":"push"](()=>{r=e,n(6,r)})},function(e){Me[e?"unshift":"push"](()=>{s=e,n(2,s)})}]}function Fm(e,t){B(e,t)}customElements.define=(jp=customElements.define,function(...e){try{return jp.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingHistoryWrapper .PlayerGamingHistoryTitle{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerGamingDateContainer{display:inline-flex;gap:20px}.PlayerGamingHistoryFilterWrapper,.PlayerGamingDateWrapper{display:inline-flex;align-items:center;gap:10px}.PlayerGamingHistoryFilterWrapper{margin-bottom:20px;gap:20px;width:100%}.PlayerGamingItemCountContainer{margin-left:auto}.PlayerGamingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;padding:10px 0}.PlayerGamingHistoryContainer table{border:0}.PlayerGamingHistoryContainer table tr{border:0;background:var(--emfe-w-color-white, #FFFFFF)}.PlayerGamingHistoryContainer table tr:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead tr{border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.PlayerGamingHistoryContainer thead th{font-size:14px;font-weight:400}.PlayerGamingHistoryItemCount{padding:8px;border-radius:5px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);-webkit-appearance:none;-moz-appearance:none;appearance:none;width:60px;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center;cursor:pointer}.PlayerGamingHistoryItemCount:focus,.PlayerGamingHistoryItemCount :focus-within,.PlayerGamingHistoryItemCount :focus-visible,.PlayerGamingHistoryItemCount :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;gap:8px;cursor:pointer}.PlayerPaginationControls.PlayerPaginationControlsDisabled{color:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerPaginationControlsArea{margin-top:30px;display:flex;justify-content:center}.PlayerGamingHistoryFilterWrapper span{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));font-weight:300;font-size:14px}.PlayerGamingHistoryFilterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:0;width:120px;height:40px;font-size:15px;text-transform:uppercase;padding:10px;cursor:pointer}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper{align-items:flex-start;gap:10px;flex-direction:column}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateContainer{gap:0;flex-direction:row;width:100%;justify-content:space-between}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper{display:block;gap:0;align-items:end;width:48%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingDateWrapper span{display:block;margin-bottom:5px}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryFilterWrapper .PlayerGamingHistoryFilterButton{padding:15px 20px;width:100%}.PlayerGamingHistoryWrapperMobile .PlayerGamingHistoryTitle{font-size:16px;font-weight:400}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea{justify-content:center;gap:30px}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControls{align-items:center}.PlayerGamingHistoryWrapperMobile .PlayerPaginationControlsArea .PlayerPaginationControlsText{font-size:16px}.PlayerGamingHistoryWrapperMobile .VaadinDatePicker{width:100%}table{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:fixed}table tr{border:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}table th,table td{padding:10px;text-align:center}table th:first-child,table td:first-child{padding-left:20px}table th:first-child span,table td:first-child span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}table th:last-child,table td:last-child{padding-right:20px}table th{font-size:0.85em;letter-spacing:0.1em;text-align:left}table tr td{font-size:12px;font-weight:300;text-align:left}@media screen and (max-width: 1024px){.PlayerGamingHistoryWrapper{padding:20px}.PlayerGamingHistoryContainer{box-shadow:none;padding:0}table{border:0}tbody{background:var(--emfe-w-color-gray-50, #F9F8F8)}table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}table tr{border-bottom:3px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;border-radius:5px;box-shadow:0px 3px 12px var(--emfe-w-color-gray-100, #E6E6E6);padding:10px}table tr:not(:last-child){margin-bottom:0.625em}table tr th,table tr td{border:0;border-radius:5px}table tr th:nth-child(even),table tr td:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}table th:first-child,table td:first-child{padding-left:10px}table th:last-child,table td:last-child{padding-right:10px}table td{border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:0.8em;text-align:right;display:flex}table th:first-child span,table td:first-child span{width:50%;text-align:right}table td::before{content:attr(data-label);float:left;font-weight:bold;text-transform:uppercase;flex:1}table td:last-child{border-bottom:0}}.DataLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.DataLoader:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Nm,Im,i,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","playerid","session","lang","clientstyling","clientstylingurl","translationurl","gmversion"]}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),p()}get playerid(){return this.$$.ctx[22]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),p()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),p()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),p()}get gmversion(){return this.$$.ctx[28]}set gmversion(e){this.$$set({gmversion:e}),p()}});const Om={en:{title:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{title:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{title:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"},hr:{title:"Povijest klađenja",settledBets:"Obračunate oklade",openBets:"Otvorene oklade"}};function Rm(i){let r,n,o,a,s,l,c,t,u,d,p;return{c(){r=di("div"),n=di("div"),o=di("div"),(a=di("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></slot>',s=mi(),l=di("slot"),gi(a,"class","ModalCloseBtn"),gi(a,"role","button"),gi(o,"class","LoginModalContainer"),gi(o,"part","LoginModalContainer"),gi(n,"class",c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":""))},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),i[8](n),i[9](r),u=!0,d||(p=fi(a,"click",i[5]),d=!0)},p(e,t){i=e,(!u||16&t&&c!==(c="LoginModalWindow "+(i[4]?"LoginModalMobileWindow":"")))&&gi(n,"class",c)},i(e){u||(bi(()=>{u&&(t=t||ee(n,sd,{transitionDuration:i[1]},!0)).run(1)}),u=!0)},o(e){(t=t||ee(n,sd,{transitionDuration:i[1]},!1)).run(0),u=!1},d(e){e&&ci(r),i[8](null),e&&t&&t.end(),i[9](null),d=!1,p()}}}function Hm(e){let i,r,n="true"==e[0]&&Rm(e);return{c(){n&&n.c(),i=I(),this.c=oe},m(e,t){n&&n.m(e,t),li(e,i,t),r=!0},p(e,[t]){"true"==e[0]?n?(n.p(e,t),1&t&&X(n,1)):((n=Rm(e)).c(),X(n,1),n.m(i.parentNode,i)):n&&(Z(),J(n,1,1,()=>{n=null}),K())},i(e){r||(X(n),r=!0)},o(e){J(n),r=!1},d(e){n&&n.d(e),e&&ci(i)}}}function jm(t,e,i){let r,n,{show:o="false"}=e,{duration:a="350"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,c=!1,u=window.navigator.userAgent;const d=e=>{if("OpenLoginRegisterModal"===e.data.type)switch(window.postMessage({type:"DisableScroll"},window.location.href),i(0,o="true"),e.data.transition){case"Register":window.postMessage({type:"ToRegister"},window.location.href);break;case"Login":window.postMessage({type:"ToLogin"},window.location.href);break;case"ForgotPassword":window.postMessage({type:"ToForgotPassword",key:e.data.key},window.location.href)}"UserSessionID"===e.data.type&&(window.postMessage({type:"EnableScroll"},window.location.href),i(0,o="false"))};return ke(()=>(window.addEventListener("message",d,!1),i(4,c=un(u)),()=>{window.removeEventListener("message",d)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(6,s=e.clientstyling),"clientstylingurl"in e&&i(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e)),132&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[o,a,n,void 0,c,()=>{i(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){Me[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){Me[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function zm(e){let i,r;return{c(){i=di("general-player-login-register-modal"),ae(r=di("om-betting-history-details"),"item-layout","V2"),ae(r,"cashoutserver","V2"),ae(r,"matchscorelayout","V2"),ae(r,"matchscorescope","BHDetailed"),ae(r,"tournament-route",":sportId/:tournamentId"),ae(r,"match-route",":sportId/:tournamentId/:matchId"),ae(r,"betid",e[1]),ae(i,"show",e[5]),ae(i,"clientstyling",e[2]),ae(i,"clientstylingurl",e[3])},m(e,t){li(e,i,t),si(i,r)},p(e,t){2&t&&ae(r,"betid",e[1]),32&t&&ae(i,"show",e[5]),4&t&&ae(i,"clientstyling",e[2]),8&t&&ae(i,"clientstylingurl",e[3])},d(e){e&&ci(i)}}}function Wm(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,_=i[6]("bettingHistory.title")+"",x=i[6]("bettingHistory.openBets")+"",C=i[6]("bettingHistory.settledBets")+"",P=i[7]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[6]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","BettingHistoryTitleMobile"),gi(r,"class","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i),E="true"===i[5]&&i[1]&&zm(i);return{c(){r=di("div"),P&&P.c(),n=mi(),o=di("h2"),a=hi(_),s=mi(),l=di("div"),c=di("button"),u=hi(x),d=mi(),p=di("button"),h=hi(C),m=mi(),f=di("om-betting-history-list"),g=mi(),E&&E.c(),y=mi(),v=di("div"),this.c=oe,gi(o,"class","BettingHistoryTitle "+(i[7]?"BettingHistoryTitleNone":"")),gi(o,"part","`BettingHistoryTitleMobile"),gi(c,"class","BettingHistoryButton "+(i[7]?"BettingHistoryButtonMobile":"")),A(c,"BettingHistoryButtonSelected","openBets"===i[0]),gi(p,"class","BettingHistoryButton"),A(p,"BettingHistoryButtonSelected","settledBets"===i[0]),A(p,"mobile",i[7]),gi(l,"class","BettingHistoryTabs"),ae(f,"bet-status",i[0]),ae(f,"item-layout","V2"),ae(f,"match-score-layout","v2"),ae(f,"match-score-scope","BHDetailed"),ae(f,"date-format","dd.mm.yyyy"),ae(f,"time-format","HH:MM"),ae(f,"tournament-route",":sportId/:tournamentId"),ae(f,"match-route",":betId"),gi(v,"class","OM-MatchScore OM-MatchScore__List"),gi(r,"class","BettingHistoryWrapper"),A(r,"BettingHistoryWrapperMobile",i[7])},m(e,t){li(e,r,t),P&&P.m(r,null),si(r,n),si(r,o),si(o,a),si(r,s),si(r,l),si(l,c),si(c,u),si(l,d),si(l,p),si(p,h),si(r,m),si(r,f),si(r,g),E&&E.m(r,null),si(r,y),si(r,v),i[16](r),w||(b=[fi(c,"click",i[14]),fi(p,"click",i[15]),fi(f,"routeChange",i[10])],w=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&yi(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&yi(u,x),1&t&&A(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yi(h,C),1&t&&A(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&ae(f,"bet-status",e[0]),"true"===e[5]&&e[1]?E?E.p(e,t):((E=zm(e)).c(),E.m(r,y)):E&&(E.d(1),E=null)},i:oe,o:oe,d(e){e&&ci(r),P&&P.d(),E&&E.d(),i[16](null),w=!1,ai(b)}}}function Um(t,e,i){let r;Le(t,De,e=>i(6,r=e));let n,{betstatus:o="openBets"}=e,{lang:a="en"}=e,{selectedBetId:s=null}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e,d="false",p=window.navigator.userAgent,h="PC"!==$e(p);Object.entries(Om).forEach(([e,t])=>{Fm(e,t)});const m=e=>{i(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&i(5,d="false")};return ke(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&i(0,o=e.betstatus),"lang"in e&&i(11,a=e.lang),"selectedBetId"in e&&i(1,s=e.selectedBetId),"clientstyling"in e&&i(2,l=e.clientstyling),"clientstylingurl"in e&&i(3,c=e.clientstylingurl),"translationurl"in e&&i(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,Se.set(e)),20&t.$$.dirty&&l&&n&&((e=document.createElement("style")).innerHTML=l,n.appendChild(e)),24&t.$$.dirty&&c&&n){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Fm(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,n,d,r,h,m,f,e=>{e=e.detail.params.betId;i(1,s=e),i(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){Me[e?"unshift":"push"](()=>{n=e,i(4,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LoginModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:200;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.LoginModalWindow .LoginModalContainer{width:90%;max-width:992px;height:auto;min-height:650px;padding:30px 60px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-registration-color-modal-bg, var(--emfe-w-color-white, #FFFFFF))}.LoginModalWindow .ModalCloseBtn{position:absolute;top:15px;right:15px;width:24px;height:24px;border-radius:100%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;z-index:1}.LoginModalWindow .ModalCloseBtn svg{width:24px;height:24px;margin:50%;transform:translate(-50%, -50%)}.LoginModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.LoginModalMobileWindow{width:100%;display:block}.LoginModalMobileWindow .LoginModalContainer{width:100%;height:100%;padding:0;border-top:0;border-radius:0}.LoginModalMobileWindow .LoginModalContainer .ModalCloseBtn{top:10px;right:10px}",this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},jm,Hm,i,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),p()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),p()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}}),customElements.get("player-account-betting-history")||customElements.define("player-account-betting-history",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='@import \'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css\';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #fff);border:2px solid var(--emfe-w-color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emfe-w-color-white, #fff);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Um,Wm,i,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["betstatus","lang","selectedBetId","clientstyling","clientstylingurl","translationurl"]}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),p()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),p()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),p()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Ym={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"},hr:{title:"Ograničenja"}},ce={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas"},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit"},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss"},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering"},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake"},sessionLimit:{title:"Single Session Time Limit",value:"sessionLimit",callValue:"sessionLimits",callValue16:"sessionLimit"},cumulativeSession:{title:"Cumulative Session Time Limit",value:"cumulativeSession",callValue:"cumulativeSessionLimits",callValue16:"cumulativeSession"}};function Vm(e,t){B(e,t)}const Gm={en:{loadingText:"Loading, please wait...",Monthly:"per month",Weekly:"per week",Daily:"per day",newPeriodLimit:"New monthly limit",adjectiveMonthly:"monthly",adjectiveWeekly:"weekly",adjectiveDaily:"daily",None:"",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",minutes:"minutes",setLimit:"SET LIMIT",loss:"Loss Limit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",deposit:"Deposit Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugas:"Current Deposit Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",wagerCasino:"Slots Limit",wagerSports:"Stake Limit",sessionLimit:"Single Session Time Limit",sessionLimitUpdated:"Session limit updated successfully.",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Successful",popupError:"An error occured.",popupUpdateLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",popupRemoveLimitException:"You can change your self-limiting settings after the specified limitation period has expired.",notFoundException:"Limit does not exist",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"The value entered must be higher than {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be less than {maxValue} {currency}.",unableToUpdatePendingRequest:"We were unable to update your limit because another update is already pending. Please try again after the current update is applied.",docsRequired:"Documents required!",okButton:"OK"},de:{loadingText:"Lädt ...",Monthly:"pro Monat",Weekly:"pro Woche",Daily:"pro Tag",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Monatlich",adjectiveWeekly:"Wöchentlich",adjectiveDaily:"Täglich",None:"",noPeriod:".",per:"pro",updateText:"Anwendung am",removedLimitText:"Entfernung des Limits am",noLimitText:"Derzeit ist kein Limit gesetzt.",lugasPrivacy:"Das anbieterübergreifende LUGAS-Limit ist für Anbieter nicht einsehbar.",limitType:"Limitart",period:"Zeitraum",amount:"Betrag",minutes:"minute",setLimit:"LIMIT SETZEN",loss:"Verlustlimit",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Einzahlungslimit",wager:"Einsatzlimit",stake:"Einsatzlimit",lugas:"Aktuelles Einzahlungslimit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ENTFERNEN",popupPendingUpdate:"Wir haben die Anfrage zur Änderung des Limits erhalten. Bitte beachten Sie, dass die Änderung erst in Kraft tritt am",popupImmediateUpdate:"Ihre neues Limit {selectedLimit} beträgt {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit geändert!",popupSuccess:"Erfolgreich",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Der eingegebene Wert muss kleiner sein als. {minValue} {currency}.",invalidInputMessageLimitMax:"Der eingegebene Wert muss höher sein als {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},hr:{loadingText:"Učitavanje",Monthly:"mjesečno",Weekly:"tjedno",Daily:"dnevno",newPeriodLimit:"Novi mjesečni limit",adjectiveMonthly:"mjesečno",adjectiveWeekly:"tjedno",adjectiveDaily:"dnevno",None:"",noPeriod:".",per:"po",updateText:"primjenjivat će se na",removedLimitText:"Ograničenje će biti uklonjeno dana",noLimitText:"Trenutno nije postavljeno ograničenje.",lugasPrivacy:"Ograničenje LUGAS za više pružatelja nije vidljivo pružateljima.",limitType:"Vrsta ograničenja",period:"Razdoblje",amount:"Iznos",minutes:"minute",setLimit:"POSTAVITE OGRANIČENJE",loss:"Ograničenje gubitka",lossAll:"Ograničenje gubitka",lossCasino:"Ograničenje gubitka",lossSports:"Ograničenje gubitka",depositAll:"Ograničenje uplate",depositCasino:"Ograničenje uplate",depositSports:"Ograničenje uplate",stakeAll:"Ograničenje uloga",stakeCasino:"Ograničenje uloga",stakeSports:"Ograničenje uloga",lugasAll:"Trenutno ograničenje uplate",lugasCasino:"Trenutno ograničenje uplate",lugasSports:"Trenutno ograničenje uplate",wagerAll:"Ograničenje igranja",deposit:"Ograničenje uplate",wager:"Ograničenje igranja",stake:"Ograničenje uloga",lugas:"Trenutno ograničenje uplate",sessionLimit:"Vremensko ograničenje jedne sesije",cumulativeSession:"Vremensko ograničenje razdoblja",removeLimit:"OTKAŽI",popupPendingUpdate:"Primili smo zahtjev za promjenu limita. Imajte na umu da će ažuriranje stupiti na snagu tek od",popupImmediateUpdate:"Vaš novi {selectedLimit} je {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Ograničenje promijenjeno",popupSuccess:"Uspješno",popup3:"Hvala!",popup2_a:"Uspjeli smo postaviti vaš mjesečno ograničenje uplate na",popup2_b:". Za odabrano ograničenje",kycNeeded2:". Kako bi povećali ograničenje na željeni iznos",uploadDocumentsButton:"UČITAJ DOKUMENTE",closeButton:"ZATVORI",invalidInputMessageLimitMin:"Unesena vrijednost mora biti manja od {minValue} {currency}.",invalidInputMessageLimitMax:"Unesena vrijednost mora biti veća od {maxValue} {currency}.",docsRequired:"Potrebni dokumenti!",okButton:"OK",wagerCasino:"Ograničenje za slotove",wagerSports:"Ograničenje uloga",sessionLimitUpdated:"Ograničenje sesije uspješno je ažurirano.",popupError:"Došlo je do greške.",popupUpdateLimitException:"Postavke samoograničenja možete promijeniti nakon isteka navedenog roka ograničenja.",popupRemoveLimitException:"Postavke samoograničenja možete promijeniti nakon isteka navedenog roka ograničenja.",notFoundException:"Ograničenje ne postoji",unableToUpdatePendingRequest:"Nismo uspjeli ažurirati vaše ograničenje jer je drugo ažuriranje već na čekanju. Molimo pokušajte ponovno nakon primjene trenutnog ažuriranja."},sl:{loadingText:"Nalaga...",Monthly:"na mesec",Weekly:"na teden",Daily:"na dan",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Mesečno",adjectiveWeekly:"Tedensko",adjectiveDaily:"Dnevno",None:"",noPeriod:".",per:"na",updateText:"uporabljeno bo na",removedLimitText:"Limit bo odstranjen",noLimitText:"Trenutno ni določen noben limit.",lugasPrivacy:"Na vse ponudnike vezan limit LUGAS, ponudnikom ni v pogled.",limitType:"Vrsta limita",period:"Časovno obdobje",amount:"Znesek",minutes:"minutes",setLimit:"NASTAVITE LIMIT",loss:"Limit izgube",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit vplačila",wager:"Limit igralnih avtomatov",stake:"Limit vložkov",lugas:"Trenuten vplačilni limit",sessionLimit:"Single Session Time Limits",cumulativeSession:"Period Time Limit",removeLimit:"ODSTRANI",popupPendingUpdate:"Prejeli smo prošnjo za spremembo limita. Prosimo upoštevajte, da sprememba začne veljati šele",popupImmediateUpdate:"Vaš novi {selectedLimit} znaša {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit spremenjen!",popupSuccess:"Uspešno",popup3:"Thank you! \n We have transmitted your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Vrednost, ki jo vnesete, mora biti manjša od {minValue} {currency}.",invalidInputMessageLimitMax:"Vrednost, ki jo vnesete, mora biti višja od {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},pl:{loadingText:"Ładowanie...",Monthly:"na miesiąc",Weekly:"na tydzień",Daily:"na dzień",newPeriodLimit:"New monthly limit",adjectiveMonthly:"Miesięcznie",adjectiveWeekly:"Tygodniowo",adjectiveDaily:"Codzienny",None:"",noPeriod:".",per:"za",updateText:"Zostanie zastosowany w dniu",removedLimitText:"Limit zostanie usunięty",noLimitText:"Obecnie nie posiadasz limitu.",lugasPrivacy:"Świadczeniodawcy nie widzą wzajemnie ustalonego limitu LUGAS.",limitType:"Rodzaj limitu",period:"Przedział czasowy",amount:"Kwota",minutes:"minutes",setLimit:"USTAW LIMIT",loss:"Limit Strat",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Limit wpłat",wager:"Limit na gre na automatach",stake:"Limit stawek",lugas:"Obecny limit depozytów",sessionLimit:"USUŃ",cumulativeSession:"Period Time Limit",removeLimit:"REMOVE",popupPendingUpdate:"Otrzymaliśmy prośbę o zmianę limitu. Informujemy, że aktualizacja wejdzie w życie w dniu",popupImmediateUpdate:"Twój nowy {selectedLimit} jest {aktualizateAmount} {waluta} {selectederiod}",popupTitle:"Limit zmieniony!",popupSuccess:"Zakończone powodzeniem",popup3:"Thank you! \n We have transmited your desired limit to Lugas \n Please be aware that the limit will only come into effect after 8 days at the latest.",popup2_a:"We were able to set your monthly deposit limit to ",popup2_b:". For the selected limit, we require documents that show your economic capacity. Please upload your last payslip as well as a current bank statement, including the balance, that confirms that you received the payment.",kycNeeded2:". In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",uploadDocumentsButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",invalidInputMessageLimitMin:"Wprowadzona wartość musi być niższa niż {minValue} {currency}.",invalidInputMessageLimitMax:"Wprowadzona wartość musi być wyższa niż {maxValue} {currency}.",docsRequired:"Documents required!",okButton:"OK"},fr:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",newPeriodLimit:"New monthly limit",per:"par",updateText:"sera appliqué sur",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."},ro:{loadingText:"Se încarcă, va rugam așteptați ...",Monthly:"lunara",Weekly:"saptamanala",Daily:"zilnica",newPeriodLimit:"Noua limita lunară",adjectiveMonthly:"lunara",adjectiveWeekly:"saptamanala",adjectiveDaily:"zilnica",None:"",noPeriod:".",per:"pe",updateText:"se va aplica in",removedLimitText:"Limita va fi anulată in",noLimitText:"Momentan nu exista nicio limita setată.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Tip limita",period:"Perioada",amount:"Suma",minutes:"minute",setLimit:"SETEAZA LIMITA",loss:"Limita pierdere",lossAll:"Limita pierdere",lossCasino:"Limita pierdere",lossSports:"Limita pierdere",deposit:"Limita depunere",depositAll:"Limita depunere",depositCasino:"Limita depunere",depositSports:"Limita depunere",wager:"Limita pariere",stake:"Limita miza",stakeAll:"Limita miza",stakeCasino:"Limita miza",stakeSports:"Limita miza",lugas:"Limita depunere curenta",lugasAll:"Limita depunere curenta",lugasCasino:"Limita depunere curenta",lugasSports:"Limita depunere curenta",wagerAll:"Limita pariere",wagerCasino:"Limita pariere",wagerSports:"Limita pariere",sessionLimit:"Limita timp pe sesiune",sessionLimitUpdated:"Limita de timp pe sesiune a fost salvata cu succes.",cumulativeSession:"Limita timp cumulata",removeLimit:"ANULEAZA",popupPendingUpdate:"Am primit cererea de modificare a limitei. Va rugam sa rețineri ca actualizarea va intra in vigoare doar in",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount} {currency} {selectedPeriod}",popupTitle:"Limita modificata",popupSuccess:"Succes",popupError:"A apărut o eroare.",popup3:"Va multumim! \n Am transmis limita dorita catre Lugas \n Va rugam sa rețineri ca limita va intra in vigoare numai după 8 zile cel târziu.",popup2_a:"Am putut seta limit dvs. lunară de depunere la ",popup2_b:". Pentru limita selectata, solicitam documente care sa arate capacitatea dumneavoastră economica. Va rugam sa încărcați ultima fisa de plata, precum si un extras de cont bancar curent, inclusiv soldul, care confirma ca ati primit plata.",kycNeeded2:"Pentru a creste limita la suma dorita, va rugam sa ne furnizați informațiile relevante. Aceste informații pot fi transmise prin încărcarea documentelor.",uploadDocumentsButton:"INCARCA DOCUMENTE",closeButton:"INCHIDE",invalidInputMessageLimit:"Valoarea introdusă trebuie sa fie între {minValue} si {maxValue} {currency}.",unableToUpdatePendingRequest:"Nu am putut sa actualizam limita deoarece o alta actualizare este deja in așteptare. Va rugam încercați din nou după ce actualizarea curenta este aplicată.",docsRequired:"Documente necesare!",okButton:"OK"},es:{loadingText:"Cargando",Monthly:"por mes",Weekly:"por semana",Daily:"por día",newPeriodLimit:"New monthly limit",adjectiveMonthly:"mensual",adjectiveWeekly:"semanal",adjectiveDaily:"diario",None:"Ninguno / NA",noPeriod:"Sin periodo",per:"por cada",updateText:"será aplicado en",removedLimitText:"El límite será retirado en",noLimitText:"Actualmente no hay un límite establecido.",lugasPrivacy:"El límite del proveedor-cruzado LUGAS no es visible para los proveedores.",limitType:"Tipo de Límite",period:"Periodo",amount:"Monto",minutes:"minutos",setLimit:"Fijar límite",loss:"Límite de pérdida",lossAll:"Loss Limit",lossCasino:"Loss Limit",lossSports:"Loss Limit",depositAll:"Deposit Limit",depositCasino:"Deposit Limit",depositSports:"Deposit Limit",stakeAll:"Stake Limit",stakeCasino:"Stake Limit",stakeSports:"Stake Limit",lugasAll:"Current Deposit Limit",lugasCasino:"Current Deposit Limit",lugasSports:"Current Deposit Limit",wagerAll:"Wager Limit",deposit:"Límite de depósito",wager:"Límite de apuesta",stake:"Límite de apuesta",lugas:"Límite de depósito actual",wagerCasino:"Límite de Tragamonedas",wagerSports:"Límite de apuesta",sessionLimit:"Límite de tiempo en sesión única",sessionLimitUpdated:"Límite de tiempo en sesión única actualizado satisfactoriamente",cumulativeSession:"Límite de tiempo en periodo",removeLimit:"QUITAR / RETIRAR",popupPendingUpdate:"Hemos recibido la solicitud de cambiar el límite. Por favor este al tanto que el cambio solo entrará en efecto en",popupImmediateUpdate:"Tú nuevo {selectedLimit} esta {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Límite cambiado",popupSuccess:"Exitoso",popupError:"Ha ocurrido un error.",kycNotNeeded:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kycNeeded1:"Pudimos estabelecer tu límite de deposito mensual en",kycNeeded2:"Para aumentar el límite a la cantidad deseada",uploadDocumentsButton:"Subir documentos / Adjuntar documentos",closeButton:"CERRAR",invalidInputMessageLimitMin:"El valor ingresado debe ser menor que {minValue} {currency}.",invalidInputMessageLimitMax:"El valor ingresado debe ser mayor que {maxValue} {currency}.",unableToUpdatePendingRequest:"No pudimos actualizar tu límite porque ya hay otra actualización pendiente. Vuelve a intentarlo después de haberse aplicado la actualización actual.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado",okButton:"OK"},pt:{loadingText:"Carregando, por favor espere...",okButton:"OK",invalidInputMessageLimitMin:"The value entered must be less then {minValue} {currency}.",invalidInputMessageLimitMax:"The value entered must be higher than {maxValue} {currency}."}},qm=u["document"];function Zm(e,t,i){e=e.slice();return e[102]=t[i],e}function Km(e,t,i){e=e.slice();return e[105]=t[i],e[107]=i,e}function Xm(e,t,i){e=e.slice();return e[105]=t[i],e}function Jm(e,t,i){e=e.slice();return e[110]=t[i],e}function Qm(e){let i,r;function n(e){return e[18]?ef:tf}let o=n(e),a=o(e);return{c(){i=di("div"),r=di("div"),a.c(),gi(r,"class","PopupContainer "+(e[23]?"Desktop":"")),gi(i,"class","PopupOverlay")},m(e,t){li(e,i,t),si(i,r),a.m(r,null)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},d(e){e&&ci(i),a.d()}}}function ef(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w=i[22]("popupTitle")+"";function b(e){return e[16]?of:2==e[20]?nf:rf}let _=b(i),x=_(i);function C(e){return e[16]?lf:2==e[20]?sf:af}let P=C(i),E=P(i);function T(e){return 2==e[20]?uf:cf}let A=T(i),L=A(i);return{c(){r=di("div"),n=di("span"),o=hi(w),a=mi(),(s=di("button")).textContent="X",l=mi(),c=di("div"),u=di("div"),x.c(),d=mi(),E.c(),p=mi(),h=di("p"),m=hi(i[19]),f=mi(),L.c(),g=I(),gi(n,"class","PopupTitle"),gi(s,"class","ClosePopup"),gi(r,"class","PopupTitleWrapper"),gi(u,"class","ResultIconWrapper"),gi(h,"class","DescriptionParagraph"),gi(c,"class","DescriptionWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s),li(e,l,t),li(e,c,t),si(c,u),x.m(u,null),si(u,d),E.m(u,null),si(c,p),si(c,h),si(h,m),li(e,f,t),L.m(e,t),li(e,g,t),y||(v=fi(s,"click",i[31]),y=!0)},p(e,t){4194304&t[0]&&w!==(w=e[22]("popupTitle")+"")&&yi(o,w),_!==(_=b(e))&&(x.d(1),x=_(e))&&(x.c(),x.m(u,d)),P===(P=C(e))&&E?E.p(e,t):(E.d(1),(E=P(e))&&(E.c(),E.m(u,null))),524288&t[0]&&yi(m,e[19]),A===(A=T(e))&&L?L.p(e,t):(L.d(1),(L=A(e))&&(L.c(),L.m(g.parentNode,g)))},d(e){e&&ci(r),e&&ci(l),e&&ci(c),x.d(),E.d(),e&&ci(f),L.d(e),e&&ci(g),y=!1,v()}}}function tf(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function rf(e){let i,r,n,o,a,s;return{c(){i=pi("svg"),r=pi("defs"),n=pi("style"),o=hi(".fil0 {fill:black;fill-rule:nonzero}\n "),a=pi("g"),s=pi("polygon"),gi(n,"type","text/css"),gi(s,"class","fil0"),gi(s,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"xml:space","preserve"),gi(i,"version","1.1"),L(i,"shape-rendering","geometricPrecision"),L(i,"text-rendering","geometricPrecision"),L(i,"image-rendering","optimizeQuality"),gi(i,"viewBox","0 0 90 69"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"fill-rule","evenodd"),gi(i,"clip-rule","evenodd")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(i,a),si(a,s)},d(e){e&&ci(i)}}}function nf(e){let i,r,n;return{c(){i=pi("svg"),r=pi("g"),gi(n=pi("path"),"id","XMLID_6_"),gi(n,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),gi(r,"id","XMLID_1_"),gi(i,"version","1.1"),gi(i,"id","Layer_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 512 512"),L(i,"enable-background","new 0 0 512 512"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n)},d(e){e&&ci(i)}}}function of(e){let i,r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b;return{c(){i=pi("svg"),r=pi("g"),n=pi("path"),o=pi("path"),a=pi("g"),s=pi("g"),l=pi("g"),c=pi("g"),u=pi("g"),d=pi("g"),p=pi("g"),h=pi("g"),m=pi("g"),f=pi("g"),g=pi("g"),y=pi("g"),v=pi("g"),w=pi("g"),b=pi("g"),gi(n,"d","M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26\n S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z"),gi(o,"d","M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0\n s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36\n s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293\n c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z"),gi(i,"version","1.1"),gi(i,"id","Capa_1"),gi(i,"xmlns","http://www.w3.org/2000/svg"),gi(i,"xmlns:xlink","http://www.w3.org/1999/xlink"),gi(i,"x","0px"),gi(i,"y","0px"),gi(i,"viewBox","0 0 52 52"),L(i,"enable-background","new 0 0 52 52"),gi(i,"xml:space","preserve")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(r,o),si(i,a),si(i,s),si(i,l),si(i,c),si(i,u),si(i,d),si(i,p),si(i,h),si(i,m),si(i,f),si(i,g),si(i,y),si(i,v),si(i,w),si(i,b)},d(e){e&&ci(i)}}}function af(e){let i,r,n=e[22]("popupSuccess")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupSuccess")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function sf(e){let i,r,n=e[22]("docsRequired")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("docsRequired")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function lf(e){let i,r,n=e[22]("popupError")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194304&t[0]&&n!==(n=e[22]("popupError")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function cf(i){let r,n,o,a,s=i[22]("okButton")+"";return{c(){r=di("button"),n=hi(s),gi(r,"class","ConfirmButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",i[31]),o=!0)},p(e,t){4194304&t[0]&&s!==(s=e[22]("okButton")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function uf(i){let r,n,o,a,s,l,c,u=i[22]("uploadDocumentsButton")+"",d=i[22]("closeButton")+"";return{c(){r=di("button"),n=hi(u),o=mi(),a=di("button"),s=hi(d),gi(r,"class","ConfirmButton"),gi(a,"class","CloseButton")},m(e,t){li(e,r,t),si(r,n),li(e,o,t),li(e,a,t),si(a,s),l||(c=[fi(r,"click",i[32]),fi(a,"click",i[31])],l=!0)},p(e,t){4194304&t[0]&&u!==(u=e[22]("uploadDocumentsButton")+"")&&yi(n,u),4194304&t[0]&&d!==(d=e[22]("closeButton")+"")&&yi(s,d)},d(e){e&&ci(r),e&&ci(o),e&&ci(a),l=!1,ai(c)}}}function df(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g,y,v,w,b,e=i[13]?""+i[22]("amount"):""+i[22]("newPeriodLimit"),_=i[22]("setLimit")+"",x=i[4],C=[];for(let e=0;e<x.length;e+=1)C[e]=Cf(Xm(i,x,e));let P=i[12]&&Pf(i),E=i[13]&&Tf(i),T=i[21]&&Lf(i);return{c(){r=di("div"),n=di("div"),o=di("div");for(let e=0;e<C.length;e+=1)C[e].c();a=mi(),s=di("form"),P&&P.c(),l=mi(),E&&E.c(),c=mi(),u=di("label"),d=di("span"),p=hi(e),h=mi(),m=di("input"),f=mi(),T&&T.c(),g=mi(),y=di("button"),v=hi(_),gi(o,"class","LimitsList "+(i[23]?"Desktop":"")),gi(d,"class","LimitInputText"),gi(m,"type","number"),gi(m,"pattern","[0-9]*"),gi(u,"class","LimitAmountInputWrapper"),gi(y,"class","LimitSubmitButton"),gi(y,"type","button"),y.disabled=!0,gi(s,"class","LimitsInteractionArea "+(i[23]?"Desktop":"")),gi(n,"class","LimitsPageContainer"),gi(r,"class","player-account-gaming-limits-page-2-gm16")},m(e,t){li(e,r,t),si(r,n),si(n,o);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(o,null);si(n,a),si(n,s),P&&P.m(s,null),si(s,l),E&&E.m(s,null),si(s,c),si(s,u),si(u,d),si(d,p),si(u,h),si(u,m),vi(m,i[8]),si(u,f),T&&T.m(u,null),si(s,g),si(s,y),si(y,v),i[51](y),w||(b=[fi(m,"input",i[50]),fi(m,"keydown",i[33]),fi(m,"keyup",i[27]),fi(y,"click",i[26]),fi(s,"submit",i[26])],w=!0)},p(t,i){if(1623195666&i[0]){let e;for(x=t[4],e=0;e<x.length;e+=1){var r=Xm(t,x,e);C[e]?C[e].p(r,i):(C[e]=Cf(r),C[e].c(),C[e].m(o,null))}for(;e<C.length;e+=1)C[e].d(1);C.length=x.length}t[12]?P?P.p(t,i):((P=Pf(t)).c(),P.m(s,l)):P&&(P.d(1),P=null),t[13]?E?E.p(t,i):((E=Tf(t)).c(),E.m(s,c)):E&&(E.d(1),E=null),4202496&i[0]&&e!==(e=t[13]?""+t[22]("amount"):""+t[22]("newPeriodLimit"))&&yi(p,e),256&i[0]&&de(m.value)!==t[8]&&vi(m,t[8]),t[21]?T?T.p(t,i):((T=Lf(t)).c(),T.m(u,null)):T&&(T.d(1),T=null),4194304&i[0]&&_!==(_=t[22]("setLimit")+"")&&yi(v,_)},d(e){e&&ci(r),ui(C,e),P&&P.d(),E&&E.d(),T&&T.d(),i[51](null),w=!1,ai(b)}}}function pf(e){let i;return{c(){(i=di("p")).textContent="500 Server error"},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function hf(e){return{c:oe,m:oe,p:oe,d:oe}}function mf(e){let i;return{c(){gi(i=di("div"),"class","LoadingIndicator")},m(e,t){li(e,i,t)},p:oe,d(e){e&&ci(i)}}}function ff(e){let i,r,n,o,a=e[22]("noLimitText")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("noLimitText")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function gf(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function yf(t){let n,o=t[105].currentLimits,a=[];for(let e=0;e<o.length;e+=1)a[e]=xf(Jm(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();n=I()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);li(t,n,i)},p(t,i){if(541065234&i[0]){let e;for(o=t[105].currentLimits,e=0;e<o.length;e+=1){var r=Jm(t,o,e);a[e]?a[e].p(r,i):(a[e]=xf(r),a[e].c(),a[e].m(n.parentNode,n))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){ui(a,e),e&&ci(n)}}}function vf(e){let i,r,n,o,a=e[22]("lugasPrivacy")+"";return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(a),gi(n,"class","LimitDetailsTextWrapper"),gi(r,"class","LimitDetailsWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o)},p(e,t){4194304&t[0]&&a!==(a=e[22]("lugasPrivacy")+"")&&yi(o,a)},d(e){e&&ci(i)}}}function wf(e){let i,r,n=e[22]("removedLimitText")+" "+e[110].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=e[22]("removedLimitText")+" "+e[110].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function bf(e){let i,r,n=""+e[110].updateAmount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} ${e[22](""+e[110].period)} ${e[22]("updateText")} `+e[110].expiryDate;return{c(){i=di("div"),r=hi(n),gi(i,"class","PendingLimit")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194320&t[0]&&n!==(n=""+e[110].updateAmount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} ${e[22](""+e[110].period)} ${e[22]("updateText")} `+e[110].expiryDate)&&yi(r,n)},d(e){e&&ci(i)}}}function _f(i){let r,n,o,a,s=i[22]("removeLimit")+"";function l(){return i[46](i[110])}return{c(){r=di("button"),n=hi(s),gi(r,"class","RemoveLimitButton")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,4194304&t[0]&&s!==(s=i[22]("removeLimit")+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function xf(e){let i,r,n,o,a,s,l,c,u=""+e[110].amount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} `+e[22](""+e[110].period),d=!e[110].isModified&&-1<e[1].indexOf(e[105].value);function p(e,t){return(s=null==(s=16&t[0]?null:s)?!!(e[110].isModified&&0<+e[110].updateAmount.replaceAll(",","")):s)?bf:e[110].isModified?wf:void 0}let h=p(e,[-1,-1,-1,-1]),m=h&&h(e),f=d&&_f(e);return{c(){i=di("div"),r=di("div"),n=di("div"),o=hi(u),a=mi(),m&&m.c(),l=mi(),f&&f.c(),c=mi(),gi(n,"class","CurrentLimit"),gi(r,"class","LimitDetailsTextWrapper"),gi(i,"class","LimitDetails")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),m&&m.m(r,null),si(i,l),f&&f.m(i,null),si(i,c)},p(e,t){4194320&t[0]&&u!==(u=""+e[110].amount+e[110].currency+` ${"None"!==e[110].period||"cumulativeSession"!==e[110].value?" ":e[22]("per")} `+e[22](""+e[110].period))&&yi(o,u),h===(h=p(e,t))&&m?m.p(e,t):(m&&m.d(1),(m=h&&h(e))&&(m.c(),m.m(r,null))),(d=18&t[0]?!e[110].isModified&&-1<e[1].indexOf(e[105].value):d)?f?f.p(e,t):((f=_f(e)).c(),f.m(i,c)):f&&(f.d(1),f=null)},d(e){e&&ci(i),m&&m.d(),f&&f.d()}}}function Cf(e){let i,r,n,o,a,s=e[30](e[105])+"";function l(e){return"lugas"===e[105].value?vf:0<e[105].currentLimits.length?yf:"lugas"===e[105].value?gf:ff}let c=l(e),u=c(e);return{c(){i=di("div"),r=di("p"),n=hi(s),o=mi(),u.c(),a=mi(),gi(r,"class","LimitTitle"),gi(i,"class","LimitWrapper "+(e[23]?"Desktop":""))},m(e,t){li(e,i,t),si(i,r),si(r,n),si(i,o),u.m(i,null),si(i,a)},p(e,t){16&t[0]&&s!==(s=e[30](e[105])+"")&&yi(n,s),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(i,a)))},d(e){e&&ci(i),u.d()}}}function Pf(i){let r,n,o,a,s,l,c,e=i[22]("limitType")+"",u=i[4],d=[];for(let e=0;e<u.length;e+=1)d[e]=Ef(Km(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","LimitSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[7]&&bi(()=>i[47].call(s)),gi(r,"class","LimitTypeDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[7],!0),l||(c=[fi(s,"change",i[47]),fi(s,"change",i[48])],l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("limitType")+"")&&yi(o,e),1073741840&i[0]){let e;for(u=t[4],e=0;e<u.length;e+=1){const o=Km(t,u,e);d[e]?d[e].p(o,i):(d[e]=Ef(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}128&i[0]&&wi(s,t[7])},d(e){e&&ci(r),ui(d,e),l=!1,ai(c)}}}function Ef(e){let i,r,n=e[30](e[105])+"";return{c(){i=di("option"),r=hi(n),i.__value=e[107],i.value=i.__value},m(e,t){li(e,i,t),si(i,r)},p(e,t){16&t[0]&&n!==(n=e[30](e[105])+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Tf(i){let r,n,o,a,s,l,c,e=i[22]("period")+"",u=i[3][i[5]].periods,d=[];for(let e=0;e<u.length;e+=1)d[e]=Af(Zm(i,u,e));return{c(){r=di("label"),n=di("span"),o=hi(e),a=mi(),s=di("select");for(let e=0;e<d.length;e+=1)d[e].c();gi(n,"class","PeriodSelectText"),gi(s,"name",""),gi(s,"id",""),void 0===i[6]&&bi(()=>i[49].call(s)),gi(r,"class","LimitPeriodDropdownWrapper")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(r,a),si(r,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wi(s,i[6],!0),l||(c=fi(s,"change",i[49]),l=!0)},p(t,i){if(4194304&i[0]&&e!==(e=t[22]("period")+"")&&yi(o,e),4194344&i[0]){let e;for(u=t[3][t[5]].periods,e=0;e<u.length;e+=1){const o=Zm(t,u,e);d[e]?d[e].p(o,i):(d[e]=Af(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}104&i[0]&&wi(s,t[6])},d(e){e&&ci(r),ui(d,e),l=!1,c()}}}function Af(e){let i,r,n,o=e[22](e[102])+"";return{c(){i=di("option"),r=hi(o),i.__value=n=e[102],i.value=i.__value,i.selected=!0},m(e,t){li(e,i,t),si(i,r)},p(e,t){4194344&t[0]&&o!==(o=e[22](e[102])+"")&&yi(r,o),40&t[0]&&n!==(n=e[102])&&(i.__value=n,i.value=i.__value)},d(e){e&&ci(i)}}}function Lf(e){let i,r,n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}});return{c(){i=di("p"),r=hi(n),gi(i,"class","InvalidInput")},m(e,t){li(e,i,t),si(i,r)},p(e,t){4197633&t[0]&&n!==(n=e[8]<e[10]?""+e[22]("invalidInputMessageLimitMin",{values:{minValue:e[10],currency:e[0]}}):""+e[22]("invalidInputMessageLimitMax",{values:{maxValue:e[11],currency:e[0]}}))&&yi(r,n)},d(e){e&&ci(i)}}}function kf(i){let r,n,o,a,s=i[17]&&Qm(i);function l(e){return e[14]&&!e[17]?mf:e[14]?hf:e[15]?pf:df}let c=l(i),u=c(i);return{c(){r=di("meta"),n=mi(),o=di("div"),s&&s.c(),a=mi(),u.c(),this.c=oe,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1")},m(e,t){si(qm.head,r),li(e,n,t),li(e,o,t),s&&s.m(o,null),si(o,a),u.m(o,null),i[52](o)},p(e,t){e[17]?s?s.p(e,t):((s=Qm(e)).c(),s.m(o,a)):s&&(s.d(1),s=null),c===(c=l(e))&&u?u.p(e,t):(u.d(1),(u=c(e))&&(u.c(),u.m(o,null)))},i:oe,o:oe,d(e){ci(r),e&&ci(n),e&&ci(o),s&&s.d(),u.d(),i[52](null)}}}function Mf(s,e,l){let c;Le(s,De,e=>l(22,c=e));let u,a,t,F,O,{lang:d="en"}=e,{currency:p=""}=e,{limits:r=""}=e,{session:h=""}=e,{userid:m=""}=e,{endpoint:f=""}=e,{apiversion:g=""}=e,{customcurrencysymbols:y=""}=e,{deletelimit:R=""}=e,{amountsconfig:v=""}=e,{periodsconfig:H=""}=e,{clientstyling:j=""}=e,{clientstylingurl:z=""}=e,{translationurl:W=""}=e,U=window.navigator.userAgent,Y=!un(U),w=[],b="",_="",x="",C=0,P="",E="",V="",T={},G=!1,q=!1,A=!0,L=!1,Z=!1,n=!1,k=!1,M="",S=[],i=!1,K={},D={EUR:"€",RON:" lei",USD:"$"};const X={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"]},J=(Object.keys(Gm).forEach(e=>{Vm(e,Gm[e])}),()=>{l(5,b=w[C].value),l(6,_=ce[b].periods[0]),l(13,q=1<ce[b].periods.length)}),Q=()=>{x=w[C].product},$=e=>{if(!(300<=e.status))return l(16,Z=!1),e.json();{let i;throw l(15,L=!0),e.json().then(t=>{for(const e in X)if(X[e].some(e=>t.error.includes(e))){i=e;break}console.error("errType",i),i||o(t)}).finally(()=>{i&&o(i),l(15,L=!1),l(14,A=!1)}),new Error("An error occured during the fetch request")}},B=()=>{switch(g){case"gmcore":{l(14,A=!0);let e=new URL(`/v2/player/${m}/limits`,f),t={method:"GET",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then(e=>$(e)).then(e=>{S=e,n&&o(),ee(S),te(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{l(14,A=!1)})}break;case"gm16":{l(14,A=!0),S=[];let e=new URL(`/v1/player/${m}/limits/monetary`,f),t=new URL(`/v1/player/${m}/limits/session`,f),i=!1,r={method:"GET",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then(e=>$(e)).then(e=>{S.push(e),n&&o(),"gmcore"===g&&ee(S),"gm16"===g&&ie(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0}),fetch(t.href,r).then(e=>$(e)).then(e=>{S.push(e),n&&o(),"gm16"===g&&re(S),"gm16"===g&&ne(S),l(8,a=null)}).catch(e=>{console.error("Error LimitsWidget: ",e),l(15,L=!0)}).finally(()=>{i&&l(14,A=!1),i=!0});return}}},ee=o=>{w.forEach(n=>{n.currentLimits=[];var e=Array.isArray(o[ce[n.value].callValue])?o[ce[n.value].callValue]:[o[ce[n.value].callValue]];0!==e.length&&void 0!==e[0]&&(e.forEach((e,t)=>{var i,r=o[ce[n.value].callValue][t];n.currentLimits.push({}),n.currentLimits[t].limitType=n.value,n.currentLimits[t].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),n.currentLimits[t].currency=null!=(i=D[r.currency])?i:r.currency,n.currentLimits[t].period=r.period,n.currentLimits[t].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.updateAmount),n.currentLimits[t].isModified=r.isModified,n.currentLimits[t].expiryDate=new Date(r.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"}),n.currentLimits=I(n.currentLimits))})},te=r=>{const n=c("minutes");w.filter(e=>"sessionLimit"===e.value||"cumulativeSession"===e.value).forEach(i=>{var e;i.currentLimits=[],null!=(e=r[ce[i.value].callValue])&&e.forEach((e,t)=>{t=r[ce[i.value].callValue][t];i.currentLimits.push({limitType:i.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:n,isModified:t.isModified,period:"cumulativeSession"===i.value?t.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:new Date(t.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)"})}),i.currentLimits=I(i.currentLimits)})},ie=r=>{var e;null!=(e=r[0])&&e.limits&&w.forEach(e=>{var t;e.currentLimits=[];for(const i of r[0].limits)if(i.type===e.callValue16&&i.products.includes(e.product)){const r=i;e.currentLimits.push({limitType:e.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.amount),currency:null!=(t=D[r.currency])?t:r.currency,isModified:0<r.schedules.length,period:r.period,product:r.products[0],updateAmount:0<r.schedules.length?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.schedules[0].updateAmount):"",expiryDate:0<r.schedules.length?new Date(r.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"",id:r.id})}e.currentLimits=I(e.currentLimits)})},re=t=>{var e;null!=(e=t[1])&&e.sessionLimit&&w.filter(e=>"sessionLimit"===e.value).forEach(e=>{e.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.minutes),currency:c("minutes"),isModified:t[1].sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t[1].sessionLimit.updateMinutes),expiryDate:t[1].sessionLimit.expiryDate}),e.currentLimits=I(e.currentLimits)})},ne=i=>{var e;null!=(e=i[1])&&e.cumulativeSessionLimits&&w.filter(e=>"cumulativeSession"===e.value).forEach(e=>{for(const t of i[1].cumulativeSessionLimits)e.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.minutes),currency:c("minutes"),isModified:t.isModified,period:t.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.updateMinutes),expiryDate:t.expiryDate});e.currentLimits=I(e.currentLimits)})},I=e=>{const i={Daily:0,Weekly:1,Monthly:2};return e.sort((e,t)=>i[e.period]-i[t.period]),e},oe=()=>{l(21,i=!1),null!=T&&T[b]?(l(10,P=T[b].min),l(11,E=T[b].max)):(l(10,P=1),l(11,E=9999999))},o=e=>{var t,i,r;if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),L)l(16,Z=!0),e&&!e.thirdPartyResponse&&l(19,M=c(""+e)),e&&e.thirdPartyResponse&&l(19,M=e.thirdPartyResponse.message),e&&(null==(t=null==e?void 0:e.error)?void 0:t.includes("Limit update is not permitted due to LimitUpdateControl"))&&l(19,M=c("popupUpdateLimitException")),e&&(null==(t=null==e?void 0:e.error)?void 0:t.includes("Limit remove is not permitted due to LimitUpdateControl"))&&l(19,M=c("popupRemoveLimitException")),e&&(null==(e=null==e?void 0:e.error)?void 0:e.includes("[NotFoundException] Limit does not exist"))&&l(19,M=c("notFoundException")),l(18,k=!0);else switch(g){case"gmcore":"sessionLimit"===b||"cumulativeSession"===b?S&&(i=S[ce[b].callValue].filter(e=>(e.period===_||"None"===_)&&e.products[0]===x)[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.minutes),r=c("popupImmediateUpdate").replace("{selectedLimit}",c(""+b)).replace("{updatedAmount}",r).replace("{currency}",c("minutes")).replace("{selectedPeriod}",c(""+_)),l(19,M=i.isModified?`${c("popupPendingUpdate")} ${new Date(i.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)):S&&(i=S[ce[b].callValue].filter(e=>e.period===_)[0],r=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(i.amount),r=c("popupImmediateUpdate").replace("{selectedLimit}",se()).replace("{updatedAmount}",r).replace("{currency}",D[i.currency]||i.currency).replace("{selectedPeriod}",c(""+_)),l(19,M=i.isModified?`${c("popupPendingUpdate")} ${new Date(i.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)),l(18,k=!0);break;case"gm16":if("lugas"===b)2==F&&l(19,M=""+c("popup2_a")+Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(O)+` ${p} `+c("popup2_b")),3==F&&l(19,M=c("popup3")),l(18,k=!0);else if("sessionLimit"===b||"cumulativeSession"===b)l(19,M=c("sessionLimitUpdated")),l(18,k=!0);else{var n,o=(null==(n=S[0])?void 0:n.limits)||S.limits;if(S){const n=o.filter(e=>e.type===ce[b].callValue16&&(e.period===_||"None"===e.period)&&e.products[0]===x)[0],a=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(n.amount),s=0<n.schedules.length?new Date(n.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")+" (GMT)":"";o=c("popupImmediateUpdate").replace("{selectedLimit}",se()).replace("{updatedAmount}",a).replace("{currency}",D[n.currency]||n.currency).replace("{selectedPeriod}",c(""+_));l(19,M=0<n.schedules.length?c("popupPendingUpdate")+" "+s:o)}l(18,k=!0)}break;default:throw new Error("Invalid apiversion attribute: "+g)}},N=()=>{l(17,n=!0),window.postMessage({type:"DisableScroll"},window.location.href)},ae=e=>{switch(g){case"gmcore":t=e,l(5,b=t.limitType),l(6,_=t.period),N(),l(14,A=!0),i=new URL(`/v2/player/${m}/limits/`+{wager:"wagering",loss:"loss",deposit:"deposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"}[t.limitType],f),"sessionLimit"!==t.limitType&&i.searchParams.append("periods",t.period),t={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}},fetch(i.href,t).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)});break;case"gm16":("sessionLimit"===e.limitType||"cumulativeSession"===e.limitType?e=>{const t=new URL(`/v1/player/${m}/limits/session/session`,f),i=new URL(`/v1/player/${m}/limits/session/cumulativeSession?periods=${e.period}`,f);let r;switch(e.limitType){case"sessionLimit":r=t;break;case"cumulativeSession":r=i;break;default:throw Error(`Unknown limit.limitType: ${e.limitType}`)}N(),l(14,A=!0);let n={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(r.href,n).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})}:e=>{const t=new URL(`/v1/player/${m}/limits/monetary/${e.id}`,f);N(),l(14,A=!0);let i={method:"DELETE",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,i).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})})(e)}var t,i},se=e=>{return c(e?e.value+e.product:b)},le=()=>{l(18,k=l(17,n=!1)),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href)};return s.$$set=e=>{"lang"in e&&l(34,d=e.lang),"currency"in e&&l(0,p=e.currency),"limits"in e&&l(35,r=e.limits),"session"in e&&l(36,h=e.session),"userid"in e&&l(37,m=e.userid),"endpoint"in e&&l(38,f=e.endpoint),"apiversion"in e&&l(39,g=e.apiversion),"customcurrencysymbols"in e&&l(40,y=e.customcurrencysymbols),"deletelimit"in e&&l(1,R=e.deletelimit),"amountsconfig"in e&&l(41,v=e.amountsconfig),"periodsconfig"in e&&l(42,H=e.periodsconfig),"clientstyling"in e&&l(43,j=e.clientstyling),"clientstylingurl"in e&&l(44,z=e.clientstylingurl),"translationurl"in e&&l(45,W=e.translationurl)},s.$$.update=()=>{if(512&s.$$.dirty[1]&&y&&y){let t={};y.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),D=Object.assign(Object.assign({},D),t)}if(3072&s.$$.dirty[1]&&H&&v){[...v.matchAll(/\(([^)]+)\)/g)].flat().filter(e=>!e.includes("(")).forEach(e=>{ce[e]?w.push(Object.assign({},ce[e])):console.error("Unknown limit: "+e)});{var e,t;const o=v.split(",").map(e=>e.split(":")),a=H.split(",").map(e=>e.split(":"));for([e,t]of o.entries())if(t[0]!==a[e][0])throw new Error(`Limit config mismatch: "${t[0]}" does not match "${a[e][0]}"`);var i=o.reduce((e,t,i)=>{var r=t[0].slice(t[0].indexOf("(")+1,t[0].indexOf(")")),t={value:r,product:t[0].slice(0,t[0].indexOf("(")),minMax:t[1],periods:a[i][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),callValue:ce[r].callValue,callValue16:ce[r].callValue16,title:ce[r].title};return e.push(t),e},[]);for(let e=0;e<i.length;e++)l(4,w[e].product=i[e].product,w),l(4,w[e].min=parseInt(i[e].minMax.split("-")[0],10),w),l(4,w[e].max=parseInt(i[e].minMax.split("-")[1],10),w),l(3,ce[i[e].value].periods=i[e].periods,ce);V=null==(n=w[0])?void 0:n.value,w.forEach(e=>{T[e.value]={min:e.min,max:e.max},K[e.value]=e.product}),T&&(T[V]?(l(10,P=T[V].min),l(11,E=T[V].max)):(l(10,P=1),l(11,E=9999999)))}l(5,b=w[0].value),l(6,_=ce[b].periods[0]),x=w[0].product,l(12,G=1<w.length),l(13,q=1<ce[b].periods.length)}if(8&s.$$.dirty[1]&&d&&(n=d,Se.set(n)),488&s.$$.dirty[1]&&m&&h&&f&&g&&d&&B(),4&s.$$.dirty[0]|8192&s.$$.dirty[1]&&z&&u){let e=new URL(z),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{u.appendChild(t)},1)})}var r,n;4&s.$$.dirty[0]|4096&s.$$.dirty[1]&&j&&u&&((r=document.createElement("style")).innerHTML=j,u.appendChild(r)),16384&s.$$.dirty[1]&&W&&fetch(W).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Vm(e,t[e])})}).catch(e=>{console.log(e)})},[p,R,u,ce,w,b,_,C,a,t,P,E,G,q,A,L,Z,n,k,M,F,i,c,Y,J,Q,()=>{switch(g){case"gmcore":if(0<a){N(),l(14,A=!0);let e=new URL(`/v2/player/${m}/limits`,f),t={};"sessionLimit"===b?t={sessionLimit:a,sessionLimitUnit:"minute"}:t[ce[b].callValue]="cumulativeSession"===b?[{period:_,minutes:a}]:[{period:"None"===ce[b].periods[0]?null:_,amount:a,currency:p}];var i={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,i).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.error(e),l(15,L=!0)})}break;case"gm16":"lugas"===b?0<a&&(N(),l(14,A=!0),i=new URL(`/v2/player/${m}/limit/lugas`,f),o={amount:a,roleLimitAmount:0,softMigration:!1,keepLimit:!1},o={method:"POST",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)},fetch(i.href,o).then(e=>$(e)).then(e=>{l(20,F=e.popup),e.operatorDepositLimitAmount,O=e.regulatorDepositLimitAmount,B()}).catch(e=>{console.log(e),l(15,L=!0)})):"sessionLimit"===b?0<a&&(N(),l(14,A=!0),o=new URL(`/v1/player/${m}/limits/session/`,f),n={sessionLimit:a,sessionLimitUnit:"minute"},n={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)},fetch(o.href,n).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})):"cumulativeSession"===b?0<a&&(N(),l(14,A=!0),n=new URL(`/v1/player/${m}/limits/session/`,f),r={cumulativeSessionLimits:[{period:_,minutes:a}]},r={method:"PUT",headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(n.href,r).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)})):a<=0||(N(),l(14,A=!0),r=w[C].currentLimits.filter(e=>e.period===_)[0],e=new URL(`/v1/player/${m}/limits/monetary/`+(r?r.id:""),f),t=r?"PUT":"POST",r=r?{amount:a,skipCoolOff:!1}:{amount:a,currency:p,period:"None"===ce[b].periods[0]?null:_,type:ce[b].callValue16,products:[null!=x?x:"All"],walletTypes:["All"]},t={method:t,headers:{"X-SessionID":h,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},fetch(e.href,t).then(e=>$(e)).then(e=>{B()}).catch(e=>{console.log(e),l(15,L=!0)}));break;default:throw Error("Invalid apiversion attribute: "+g)}var e,t,r,n,o},()=>{var e=a-Math.floor(a)==0;a>=P&&a<=E&&e?(l(21,i=!1),t.removeAttribute("disabled")):(l(21,i=!0),t.setAttribute("disabled","true"))},oe,ae,se,le,()=>{window.postMessage({type:"uploadDocuments"},window.location.href),le()},e=>{13===e.keyCode&&i&&e.preventDefault()},d,r,h,m,f,g,y,v,H,j,z,W,e=>ae(e),function(){C=pe(this),l(7,C)},()=>{Q(),J(),oe()},function(){_=pe(this),l(6,_),l(3,ce),l(5,b)},function(){a=de(this.value),l(8,a)},function(e){Me[e?"unshift":"push"](()=>{t=e,l(9,t)})},function(e){Me[e?"unshift":"push"](()=>{u=e,l(2,u)})}]}function Sf(e,t){B(e,t)}customElements.get("player-account-gaming-limits-page-2-gm16")||customElements.define("player-account-gaming-limits-page-2-gm16",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}input:focus{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);background:var(--emfe-w-color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px;float:left}.LimitsInteractionArea .InvalidInput{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839));font-size:14px;padding:6px 0px;margin-bottom:6px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:1.3rem;border:1px solid var(--emfe-w-color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emfe-w-color-valid, var(--emfe-w-color-green, #48952a));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.CloseButton{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);margin-top:8px;border-radius:2px;padding:12px;cursor:pointer}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emfe-w-color-black, #000000)}.PendingLimit{color:var(--emfe-w-color-black, #000000)}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:rgba(35, 38, 43, 0.7);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center;z-index:99}.PopupContainer{background:var(--emfe-w-color-white, #FFFFFF);font-size:1.3rem;color:var(--emfe-w-color-black, #000000);width:80vw;min-height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-black, #000000);font-size:1.3rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Mf,kf,i,{lang:34,currency:0,limits:35,session:36,userid:37,endpoint:38,apiversion:39,customcurrencysymbols:40,deletelimit:1,amountsconfig:41,periodsconfig:42,clientstyling:43,clientstylingurl:44,translationurl:45},null,[-1,-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","customcurrencysymbols","deletelimit","amountsconfig","periodsconfig","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[34]}set lang(e){this.$$set({lang:e}),p()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),p()}get limits(){return this.$$.ctx[35]}set limits(e){this.$$set({limits:e}),p()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),p()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),p()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[39]}set apiversion(e){this.$$set({apiversion:e}),p()}get customcurrencysymbols(){return this.$$.ctx[40]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get deletelimit(){return this.$$.ctx[1]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get amountsconfig(){return this.$$.ctx[41]}set amountsconfig(e){this.$$set({amountsconfig:e}),p()}get periodsconfig(){return this.$$.ctx[42]}set periodsconfig(e){this.$$set({periodsconfig:e}),p()}get clientstyling(){return this.$$.ctx[43]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[44]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[45]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Df={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function $f(e,t,i){e=e.slice();return e[36]=t[i],e[37]=t,e[38]=i,e}function Bf(i){let r,n,o,a,s,l,c,u,d,p,h,m,e=i[9]("expandLimits")+"",f=i[7],g=[];for(let e=0;e<f.length;e+=1)g[e]=Rf($f(i,f,e));return{c(){r=di("div"),n=di("div"),o=di("button"),a=hi(e),s=mi(),l=pi("svg"),c=pi("path"),u=pi("path"),d=mi(),p=di("div");for(let e=0;e<g.length;e+=1)g[e].c();gi(c,"d","M10.5 15l7.5 7.5 7.5-7.5z"),gi(u,"d","M0 0h36v36h-36z"),gi(u,"fill","none"),gi(l,"class","ExpandArrow"),gi(l,"xmlns","http://www.w3.org/2000/svg"),gi(l,"width","36"),gi(l,"height","36"),gi(l,"viewBox","0 0 36 36"),gi(l,"fill","#999"),A(l,"extended",i[8]),gi(o,"class","ExpandButton"),gi(p,"class","HistoryDisplayArea"),A(p,"hidden",i[5]),gi(n,"class","HistoryWrapper "+(i[10]?"Desktop":"")),gi(r,"class","player-account-gaming-limits-history-2")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(o,s),si(o,l),si(l,c),si(l,u),si(n,d),si(n,p);for(let e=0;e<g.length;e+=1)g[e]&&g[e].m(p,null);h||(m=fi(o,"click",i[11]),h=!0)},p(t,i){if(512&i[0]&&e!==(e=t[9]("expandLimits")+"")&&yi(a,e),256&i[0]&&A(l,"extended",t[8]),650&i[0]){let e;for(f=t[7],e=0;e<f.length;e+=1){var r=$f(t,f,e);g[e]?g[e].p(r,i):(g[e]=Rf(r),g[e].c(),g[e].m(p,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}32&i[0]&&A(p,"hidden",t[5])},d(e){e&&ci(r),ui(g,e),h=!1,m()}}}function If(e){return{c:oe,m:oe,p:oe,d:oe}}function Nf(e){let i,r,n=(e[0]?e[9]("error"):"500 Server Error")+"";return{c(){i=di("p"),r=hi(n)},m(e,t){li(e,i,t),si(i,r)},p(e,t){513&t[0]&&n!==(n=(e[0]?e[9]("error"):"500 Server Error")+"")&&yi(r,n)},d(e){e&&ci(i)}}}function Ff(e){let i,r,n,o,a,s,l,c,u,d,p,h,m=e[36].type+"",f=e[36].amount+"",g=e[36].currency+"",y=e[36].period+"",v=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(m),a=di("span"),s=hi(f),l=mi(),c=hi(g),u=mi(),d=hi(y),p=di("span"),h=hi(v),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(p,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(a,l),si(a,c),si(a,u),si(a,d),si(i,p),si(p,h)},p(e,t){128&t[0]&&m!==(m=e[36].type+"")&&yi(o,m),128&t[0]&&f!==(f=e[36].amount+"")&&yi(s,f),128&t[0]&&g!==(g=e[36].currency+"")&&yi(c,g),128&t[0]&&y!==(y=e[36].period+"")&&yi(d,y),128&t[0]&&v!==(v=e[36].date+"")&&yi(h,v)},d(e){e&&ci(i)}}}function Of(e){let i,r,n,o,a,s,l,c,u=e[36].type+"",d=e[9]("limitRemoved")+"",p=e[36].date+"";return{c(){i=di("div"),r=di("span"),n=di("span"),o=hi(u),a=di("span"),s=hi(d),l=di("span"),c=hi(p),gi(n,"class","LimitType"),gi(a,"class","LimitAmountPeriod"),gi(r,"class","GeneralLimitInformation"),gi(l,"class","DateLimitInformation"),gi(i,"class","HistoryRow")},m(e,t){li(e,i,t),si(i,r),si(r,n),si(n,o),si(r,a),si(a,s),si(i,l),si(l,c)},p(e,t){128&t[0]&&u!==(u=e[36].type+"")&&yi(o,u),512&t[0]&&d!==(d=e[9]("limitRemoved")+"")&&yi(s,d),128&t[0]&&p!==(p=e[36].date+"")&&yi(c,p)},d(e){e&&ci(i)}}}function Rf(i){let r,n,o,a=i[38];function s(e){return e[36].removed?Of:Ff}let l=s(i),c=l(i);const u=()=>i[20](r,a),d=()=>i[20](null,a);return{c(){r=di("div"),c.c(),n=mi(),gi(r,"class",o=i[38]>+i[1]?"LimitContainer":"")},m(e,t){li(e,r,t),c.m(r,null),si(r,n),u()},p(e,t){l===(l=s(i=e))&&c?c.p(i,t):(c.d(1),(c=l(i))&&(c.c(),c.m(r,n))),2&t[0]&&o!==(o=i[38]>+i[1]?"LimitContainer":"")&&gi(r,"class",o),a!==i[38]&&(d(),a=i[38],u())},d(e){e&&ci(r),c.d(),d()}}}function Hf(i){let r;function n(e){return e[6]?Nf:e[4]?If:Bf}let o=n(i),a=o(i);return{c(){r=di("div"),a.c(),this.c=oe},m(e,t){li(e,r,t),a.m(r,null),i[21](r)},p(e,t){o===(o=n(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(r,null)))},i:oe,o:oe,d(e){e&&ci(r),a.d(),i[21](null)}}}function jf(i,e,r){let n;Le(i,De,e=>r(9,n=e));let o,t=window.navigator.userAgent,a=!un(t),{lang:s=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:u=""}=e,{apiversion:d=""}=e,{numberofentries:p="10"}=e,{customcurrencysymbols:h=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,y=new Array,v=parseInt(p,10),w=!1,b=!0,_=[],x=[],C=!0,P=!1,E={EUR:"€",RON:"lei"};Object.keys(Df).forEach(e=>{Sf(e,Df[e])});let T=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(v+=parseInt(p,10)||10,x.length<_.length)&&r(7,x=_.slice(0,v))})});return ke(()=>()=>{T.unobserve(y[y.length-1])}),i.$$set=e=>{"lang"in e&&r(0,s=e.lang),"userid"in e&&r(12,l=e.userid),"session"in e&&r(13,c=e.session),"endpoint"in e&&r(14,u=e.endpoint),"apiversion"in e&&r(15,d=e.apiversion),"numberofentries"in e&&r(1,p=e.numberofentries),"customcurrencysymbols"in e&&r(16,h=e.customcurrencysymbols),"clientstyling"in e&&r(17,m=e.clientstyling),"clientstylingurl"in e&&r(18,f=e.clientstylingurl),"translationurl"in e&&r(19,g=e.translationurl)},i.$$.update=()=>{if(65536&i.$$.dirty[0]&&h&&h){let t={};h.split(",").forEach(e=>{e=e.split(":");t[e[0].trim()]=e[1].trim()}),E=Object.assign(Object.assign({},E),t)}if(61440&i.$$.dirty[0]&&u&&l&&c&&d&&((e=new URL("gmcore"===d?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,u)).searchParams.append("startDate",""+new Date("2022").toISOString()),e.searchParams.append("endDate",""+new Date("2099").toISOString()),e.searchParams.append("limit","10000"),t={method:"GET",headers:{"X-SessionID":c}},fetch(e.href,t).then(e=>{if(300<=e.status)throw r(4,b=!1),r(6,w=!0),new Error("There was an error fetching the limits");return e.json()}).then(e=>{e.length&&(_=(e=>{const i=!!Df[s];return e.map(e=>{var t={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return t.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),t.currency=i?E[e.limitCurrencyCode]:e.limitCurrencyCode,t.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),t.period=n(""+e.limitPeriod.toLowerCase()),t.type="gmcore"===d?n("historyLimitType"+e.limitType.split(" ")[0]):n("historyLimitType"+e.limitType.split(" ")[0])+" "+n("historyProductType"+e.limitProductType),t.removed=-1===e.limitAmount,t})})(e),r(7,x=_.slice(0,v))),r(4,b=!1)},e=>{console.error("There was an error",e),r(6,w=!0)})),56&i.$$.dirty[0]&&y[0]&&!b&&!C&&T.observe(y[y.length-1]),1&i.$$.dirty[0]&&s&&(e=s,Se.set(e)),262144&i.$$.dirty[0]&&f){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}var e,t;131076&i.$$.dirty[0]&&m&&o&&((t=document.createElement("style")).innerHTML=m,o.appendChild(t)),524292&i.$$.dirty[0]&&g&&o&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Sf(e,t[e])})}).catch(e=>{console.log(e)})},[s,p,o,y,b,C,w,x,P,n,a,()=>{r(5,C=!C),r(8,P=!P)},l,c,u,d,h,m,f,g,function(e,t){Me[e?"unshift":"push"](()=>{y[t]=e,r(3,y)})},function(e){Me[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.get("player-account-gaming-limits-history-2")||customElements.define("player-account-gaming-limits-history-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},jf,Hf,i,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,clientstyling:17,clientstylingurl:18,translationurl:19},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[12]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[13]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[14]}set endpoint(e){this.$$set({endpoint:e}),p()}get apiversion(){return this.$$.ctx[15]}set apiversion(e){this.$$set({apiversion:e}),p()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),p()}});const zf=u["document"];function Wf(e,t,i){e=e.slice();return e[39]=t[i],e[41]=i,e}function Uf(e,t,i){e=e.slice();return e[42]=t[i],e[41]=i,e}function Yf(i){let r,n,o,a,s=1<i[21].length&&function(i){let n,o=i[21],a=[];for(let e=0;e<o.length;e+=1)a[e]=Gf(Uf(i,o,e));return{c(){n=di("div");for(let e=0;e<a.length;e+=1)a[e].c();gi(n,"class","TabsContainer")},m(e,t){li(e,n,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null);i[30](n)},p(t,i){if(10551296&i[0]){let e;for(o=t[21],e=0;e<o.length;e+=1){var r=Uf(t,o,e);a[e]?a[e].p(r,i):(a[e]=Gf(r),a[e].c(),a[e].m(n,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&ci(n),ui(a,e),i[30](null)}}}(i),l=i[21],c=[];for(let e=0;e<l.length;e+=1)c[e]=qf(Wf(i,l,e));let u="true"===i[6]&&Zf(i);return{c(){s&&s.c(),r=mi(),n=di("div");for(let e=0;e<c.length;e+=1)c[e].c();o=mi(),u&&u.c(),a=I(),gi(n,"class","PlayerAccountGamingLmitsWrapper2")},m(e,t){s&&s.m(e,t),li(e,r,t),li(e,n,t);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(n,null);i[31](n),li(e,o,t),u&&u.m(e,t),li(e,a,t)},p(t,i){if(1<t[21].length&&s.p(t,i),794303&i[0]){let e;for(l=t[21],e=0;e<l.length;e+=1){const a=Wf(t,l,e);c[e]?c[e].p(a,i):(c[e]=qf(a),c[e].c(),c[e].m(n,null))}for(;e<c.length;e+=1)c[e].d(1);c.length=l.length}"true"===t[6]?u?u.p(t,i):((u=Zf(t)).c(),u.m(a.parentNode,a)):u&&(u.d(1),u=null)},d(e){s&&s.d(e),e&&ci(r),e&&ci(n),ui(c,e),i[31](null),e&&ci(o),u&&u.d(e),e&&ci(a)}}}function Vf(e){return{c:oe,m:oe,p:oe,d:oe}}function Gf(i){let r,n,o,a,s=(i[16][i[41]]??i[42])+"";function l(){return i[29](i[41])}return{c(){r=di("div"),n=hi(s),gi(r,"class","LimitsTab")},m(e,t){li(e,r,t),si(r,n),o||(a=fi(r,"click",l),o=!0)},p(e,t){i=e,65536&t[0]&&s!==(s=(i[16][i[41]]??i[42])+"")&&yi(n,s)},d(e){e&&ci(r),o=!1,a()}}}function qf(e){let i,r,n;return{c(){ae(i=di("player-account-gaming-limits-page-2-gm16"),"class","hidden selected"),ae(i,"lang",e[0]),ae(i,"currency",e[4]),ae(i,"amountsconfig",r=e[18][e[41]]),ae(i,"periodsconfig",n=e[19][e[41]]),ae(i,"userid",e[1]),ae(i,"deletelimit",e[7]),ae(i,"session",e[2]),ae(i,"endpoint",e[3]),ae(i,"apiversion",e[5]),ae(i,"clientstyling",e[10]),ae(i,"clientstylingurl",e[11]),ae(i,"translationurl",e[12]),ae(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&ae(i,"lang",e[0]),16&t[0]&&ae(i,"currency",e[4]),262144&t[0]&&r!==(r=e[18][e[41]])&&ae(i,"amountsconfig",r),524288&t[0]&&n!==(n=e[19][e[41]])&&ae(i,"periodsconfig",n),2&t[0]&&ae(i,"userid",e[1]),128&t[0]&&ae(i,"deletelimit",e[7]),4&t[0]&&ae(i,"session",e[2]),8&t[0]&&ae(i,"endpoint",e[3]),32&t[0]&&ae(i,"apiversion",e[5]),1024&t[0]&&ae(i,"clientstyling",e[10]),2048&t[0]&&ae(i,"clientstylingurl",e[11]),4096&t[0]&&ae(i,"translationurl",e[12]),512&t[0]&&ae(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Zf(e){let i;return{c(){ae(i=di("player-account-gaming-limits-history-2"),"lang",e[0]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"endpoint",e[3]),ae(i,"apiversion",e[5]),ae(i,"numberofentries",e[8]),ae(i,"clientstyling",e[10]),ae(i,"clientstylingurl",e[11]),ae(i,"translationurl",e[12]),ae(i,"customcurrencysymbols",e[9])},m(e,t){li(e,i,t)},p(e,t){1&t[0]&&ae(i,"lang",e[0]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),8&t[0]&&ae(i,"endpoint",e[3]),32&t[0]&&ae(i,"apiversion",e[5]),256&t[0]&&ae(i,"numberofentries",e[8]),1024&t[0]&&ae(i,"clientstyling",e[10]),2048&t[0]&&ae(i,"clientstylingurl",e[11]),4096&t[0]&&ae(i,"translationurl",e[12]),512&t[0]&&ae(i,"customcurrencysymbols",e[9])},d(e){e&&ci(i)}}}function Kf(i){let r,n,o,a,s,l,c,u,d,p=i[20]("title")+"",h=i[22]&&function(i){let r,n,o,a,s,l,c,u,d,p,h,m,f,g=i[20]("title")+"";return{c(){r=di("div"),n=pi("svg"),o=pi("defs"),a=pi("style"),s=hi(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pi("g"),c=pi("g"),u=pi("path"),d=mi(),p=di("h2"),h=hi(g),gi(u,"class","aaa"),gi(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gi(u,"transform","translate(15 15) rotate(180)"),gi(c,"transform","translate(20 158)"),gi(l,"transform","translate(-20 -158)"),gi(n,"xmlns","http://www.w3.org/2000/svg"),gi(n,"width","15"),gi(n,"height","15"),gi(n,"viewBox","0 0 15 15"),gi(p,"class","GamingLimitsTitleMobile"),gi(r,"class","MenuReturnButton"),gi(r,"part","MenuReturnButton")},m(e,t){li(e,r,t),si(r,n),si(n,o),si(o,a),si(a,s),si(n,l),si(l,c),si(c,u),si(r,d),si(r,p),si(p,h),m||(f=fi(r,"click",i[28]),m=!0)},p(e,t){1048576&t[0]&&g!==(g=e[20]("title")+"")&&yi(h,g)},d(e){e&&ci(r),m=!1,f()}}}(i);function m(e){return e[13]?Vf:Yf}let f=m(i),g=f(i);return{c(){r=di("meta"),n=mi(),o=di("div"),a=di("div"),s=di("div"),h&&h.c(),l=mi(),c=di("h2"),u=hi(p),d=mi(),g.c(),this.c=oe,gi(r,"name","viewport"),gi(r,"content","width=device-width, initial-scale=1"),gi(c,"class","GamingLimitsTitle "+(i[22]?"GamingLimitsTitleNone":"")),gi(s,"class","TitleSection"),gi(a,"class","GamingLimitsWrapper "+(i[22]?"GamingLimitsWrapperMobile":""))},m(e,t){si(zf.head,r),li(e,n,t),li(e,o,t),si(o,a),si(a,s),h&&h.m(s,null),si(s,l),si(s,c),si(c,u),si(a,d),g.m(a,null),i[32](o)},p(e,t){e[22]&&h.p(e,t),1048576&t[0]&&p!==(p=e[20]("title")+"")&&yi(u,p),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(a,null)))},i:oe,o:oe,d(e){ci(r),e&&ci(n),e&&ci(o),h&&h.d(),g.d(),i[32](null)}}}function Xf(i,e,r){let t,{lang:n=""}=(Le(i,De,e=>r(20,t=e)),e),{userid:o=""}=e,{session:a=""}=e,{endpoint:s=""}=e,{currency:l=""}=e,{apiversion:c=""}=e,{tablabels:u=""}=e,{historyenabled:d="true"}=e,{deletelimit:p=""}=e,{limitsamount:h=""}=e,{limitsperiods:m=""}=e,{numberofentries:f=""}=e,{customcurrencysymbols:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{translationurl:w=""}=e;var b,_;({withLocale:b,translations:_}={withLocale:"en",translations:{}}),Se.subscribe(e=>{null==e&&(kr.set(_),Se.set(b))});let x,C,P,E,T,A,L=!0,k=[],M=window.navigator.userAgent,S="PC"!==$e(M);Object.keys(Ym).forEach(e=>{B(e,Ym[e])});const D=t=>{if(0<P.children.length)for(let e=0;e<P.children.length;e++)t===e?(P.children[e].classList.remove("hidden"),null!=E&&E.children[e].classList.add("selected")):(P.children[e].classList.add("hidden"),null!=E&&E.children[e].classList.remove("selected"))},$=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:S},window.location.href)};return ke(()=>()=>{r(15,P=null),r(17,E=null)}),i.$$set=e=>{"lang"in e&&r(0,n=e.lang),"userid"in e&&r(1,o=e.userid),"session"in e&&r(2,a=e.session),"endpoint"in e&&r(3,s=e.endpoint),"currency"in e&&r(4,l=e.currency),"apiversion"in e&&r(5,c=e.apiversion),"tablabels"in e&&r(25,u=e.tablabels),"historyenabled"in e&&r(6,d=e.historyenabled),"deletelimit"in e&&r(7,p=e.deletelimit),"limitsamount"in e&&r(26,h=e.limitsamount),"limitsperiods"in e&&r(27,m=e.limitsperiods),"numberofentries"in e&&r(8,f=e.numberofentries),"customcurrencysymbols"in e&&r(9,g=e.customcurrencysymbols),"clientstyling"in e&&r(10,y=e.clientstyling),"clientstylingurl"in e&&r(11,v=e.clientstylingurl),"translationurl"in e&&r(12,w=e.translationurl)},i.$$.update=()=>{if(33554479&i.$$.dirty[0]&&o&&a&&s&&u&&n&&c){var e=h,t=m;if(r(18,T=e.replace(/\s/g,"").split("|")),r(19,A=t.replace(/\s/g,"").split("|")),0===T.length)throw new Error("Please provide a full limits configuration.");if(T.length!==A.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.");h.split("|").forEach(e=>{k.includes(e)||k.push(e)}),r(16,C=u.split(",").map(e=>e.trim())),r(13,L=!1)}if(40960&i.$$.dirty[0]&&P&&!L&&D(0),18432&i.$$.dirty[0]&&v&&x){let e=new URL(v),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{x.appendChild(t)},1)})}17408&i.$$.dirty[0]&&y&&x&&((e=document.createElement("style")).innerHTML=y,x.appendChild(e))},[n,o,a,s,l,c,d,p,f,g,y,v,w,L,x,P,C,E,T,A,t,k,S,D,$,u,h,m,()=>$(),e=>D(e),function(e){Me[e?"unshift":"push"](()=>{E=e,r(17,E)})},function(e){Me[e?"unshift":"push"](()=>{P=e,r(15,P)})},function(e){Me[e?"unshift":"push"](()=>{x=e,r(14,x)})}]}customElements.get("player-account-gaming-limits-wrapper-2")||customElements.define("player-account-gaming-limits-wrapper-2",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emfe-w-color-gray-300, #58586B);justify-content:center;background:var(--emfe-w-color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));margin:0}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Xf,Kf,i,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:25,historyenabled:6,deletelimit:7,limitsamount:26,limitsperiods:27,numberofentries:8,customcurrencysymbols:9,clientstyling:10,clientstylingurl:11,translationurl:12},null,[-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),p()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),p()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),p()}get tablabels(){return this.$$.ctx[25]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[7]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[26]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[27]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[8]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[9]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Jf=u["document"];function Qf(e){let i,r,n,o,a,s,l;function c(e){return e[38]&&e[37]===e[44][0]?bg:e[38]&&e[37]===e[44][1]?wg:e[38]&&e[37]===e[44][2]?vg:e[38]&&e[37]===e[44][3]?yg:e[38]&&e[37]===e[44][4]?gg:e[38]&&e[37]==e[44][5]?fg:e[38]&&e[37]===e[44][6]?mg:e[38]&&e[37]===e[44][7]?hg:e[38]&&e[37]===e[44][8]?pg:e[38]&&e[37]===e[44][9]?dg:e[38]&&e[37]===e[44][10]?ug:e[38]&&e[37]===e[44][11]?cg:e[38]&&e[37]===e[44][12]?lg:e[38]&&e[37]===e[44][13]?sg:e[38]&&e[37]===e[44][14]?ag:e[38]&&e[37]===e[44][15]?og:e[38]&&e[37]===e[44][16]?ng:e[38]&&e[37]===e[44][17]?rg:e[38]&&e[37]===e[44][18]?ig:e[38]&&e[37]===e[44][19]?tg:void 0}let u=c(e),d=u&&u(e);return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("main"),d&&d.c(),a=mi(),s=di("aside"),l=di("player-account-notifications"),ae(r,"endpoint",e[3]),ae(r,"session",e[2]),ae(r,"playerid",e[1]),ae(r,"lang",e[4]),ae(r,"selecteditem",e[42]),ae(r,"userroles",e[9]),ae(r,"clientstyling",e[22]),ae(r,"clientstylingurl",e[23]),ae(l,"customnotif",e[0]),ae(l,"clientstyling",e[22]),ae(l,"clientstylingurl",e[23])},m(e,t){li(e,i,t),si(i,r),li(e,n,t),li(e,o,t),d&&d.m(o,null),li(e,a,t),li(e,s,t),si(s,l)},p(e,t){8&t[0]&&ae(r,"endpoint",e[3]),4&t[0]&&ae(r,"session",e[2]),2&t[0]&&ae(r,"playerid",e[1]),16&t[0]&&ae(r,"lang",e[4]),2048&t[1]&&ae(r,"selecteditem",e[42]),512&t[0]&&ae(r,"userroles",e[9]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23]),u===(u=c(e))&&d?d.p(e,t):(d&&d.d(1),(d=u&&u(e))&&(d.c(),d.m(o,null))),1&t[0]&&ae(l,"customnotif",e[0]),4194304&t[0]&&ae(l,"clientstyling",e[22]),8388608&t[0]&&ae(l,"clientstylingurl",e[23])},d(e){e&&ci(i),e&&ci(n),e&&ci(o),d&&d.d(),e&&ci(a),e&&ci(s)}}}function eg(e){let i;function r(e){return e[38]?e[38]&&e[37]===e[44][0]?Hg:e[38]&&e[37]===e[44][1]?Rg:e[38]&&e[37]===e[44][2]?Og:e[38]&&e[37]===e[44][3]?Fg:e[38]&&e[37]===e[44][4]?Ng:e[38]&&e[37]===e[44][5]?Ig:e[38]&&e[37]===e[44][6]?Bg:e[38]&&e[37]===e[44][7]?$g:e[38]&&e[37]===e[44][8]?Dg:e[38]&&e[37]===e[44][9]?Sg:e[38]&&e[37]===e[44][10]?Mg:e[38]&&e[37]===e[44][11]?kg:e[38]&&e[37]===e[44][12]?Lg:e[38]&&e[37]===e[44][13]?Ag:e[38]&&e[37]===e[44][14]?Tg:e[38]&&e[37]===e[44][15]?Eg:e[38]&&e[37]===e[44][16]?Pg:e[38]&&e[37]===e[44][17]?Cg:e[38]&&e[37]===e[44][18]?xg:e[38]&&e[37]===e[44][19]?_g:void 0:jg}let n=r(e),o=n&&n(e);return{c(){o&&o.c(),i=I()},m(e,t){o&&o.m(e,t),li(e,i,t)},p(e,t){n===(n=r(e))&&o?o.p(e,t):(o&&o.d(1),(o=n&&n(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o&&o.d(e),e&&ci(i)}}}function tg(e){let i;return{c(){ae(i=di("user-transaction-history"),"endpoint",e[3]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"mobile",e[43]),ae(i,"translation-url",e[24]),ae(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),16777216&t[0]&&ae(i,"translation-url",e[24]),16&t[0]&&ae(i,"language",e[4])},d(e){e&&ci(i)}}}function ig(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","withdraw"),ae(i,"channel","Desktop"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function rg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","deposit"),ae(i,"channel","Desktop"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function ng(e){let i;return{c(){ae(i=di("player-kyc-verification"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"user-id",e[1]),ae(i,"language",e[4]),ae(i,"kyc-title",e[19]),ae(i,"description",e[20]),ae(i,"translation-url",e[24]),ae(i,"client-styling",e[22]),ae(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"user-id",e[1]),16&t[0]&&ae(i,"language",e[4]),524288&t[0]&&ae(i,"kyc-title",e[19]),1048576&t[0]&&ae(i,"description",e[20]),16777216&t[0]&&ae(i,"translation-url",e[24]),4194304&t[0]&&ae(i,"client-styling",e[22]),8388608&t[0]&&ae(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function og(e){let i;return{c(){ae(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"tablabels",e[11]),ae(i,"lang",e[4]),ae(i,"historyenabled",e[12]),ae(i,"deletelimit",e[13]),ae(i,"limitsamount",e[14]),ae(i,"limitsperiods",e[15]),ae(i,"numberofentries",e[16]),ae(i,"customcurrencysymbols",e[17]),ae(i,"currency",e[18]),ae(i,"apiversion",e[21]),ae(i,"translationurl",e[24]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),2048&t[0]&&ae(i,"tablabels",e[11]),16&t[0]&&ae(i,"lang",e[4]),4096&t[0]&&ae(i,"historyenabled",e[12]),8192&t[0]&&ae(i,"deletelimit",e[13]),16384&t[0]&&ae(i,"limitsamount",e[14]),32768&t[0]&&ae(i,"limitsperiods",e[15]),65536&t[0]&&ae(i,"numberofentries",e[16]),131072&t[0]&&ae(i,"customcurrencysymbols",e[17]),262144&t[0]&&ae(i,"currency",e[18]),2097152&t[0]&&ae(i,"apiversion",e[21]),16777216&t[0]&&ae(i,"translationurl",e[24]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function ag(e){let i;return{c(){ae(i=di("player-account-betting-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function sg(e){let i;return{c(){ae(i=di("player-transaction-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function lg(e){let i;return{c(){ae(i=di("player-pending-withdrawals"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function cg(e){let i;return{c(){ae(i=di("player-withdrawal"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function ug(e){let i;return{c(){ae(i=di("player-deposit"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function dg(e){let i;return{c(){ae(i=di("player-gaming-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),67108864&t[0]&&ae(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function pg(e){let i;return{c(){ae(i=di("player-bonus-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function hg(e){let i;return{c(){ae(i=di("player-active-bonuses"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"playercurrency",e[40]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),512&t[1]&&ae(i,"playercurrency",e[40]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function mg(e){let i;return{c(){ae(i=di("player-account-self-exclusion"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"supportemail",e[6]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),64&t[0]&&ae(i,"supportemail",e[6]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function fg(i){let r,n,o;return{c(){ae(r=di("player-account-gaming-limits"),"playercurrency",i[40]),ae(r,"separatelimits",i[7]),ae(r,"clientstyling",i[22]),ae(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[45].call(null,r)),n=!0)},p(e,t){512&t[1]&&ae(r,"playercurrency",e[40]),128&t[0]&&ae(r,"separatelimits",e[7]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function gg(e){let i;return{c(){ae(i=di("player-account-closure"),"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function yg(e){let i;return{c(){ae(i=di("player-account-timeout"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function vg(e){let i;return{c(){ae(i=di("player-reality-check"),"realitycheck",e[41]),ae(i,"endpoint",e[3]),ae(i,"playerid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[1]&&ae(i,"realitycheck",e[41]),8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"playerid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function wg(e){let i;return{c(){ae(i=di("player-change-password"),"simplepasswordvalidation",e[10]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&ae(i,"simplepasswordvalidation",e[10]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function bg(e){let i;return{c(){ae(i=di("player-profile-info"),"endpoint",e[3]),ae(i,"lang",e[4]),ae(i,"countrycode",e[39]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"lang",e[4]),256&t[1]&&ae(i,"countrycode",e[39]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),33554432&t[0]&&ae(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function _g(e){let i;return{c(){ae(i=di("user-transaction-history"),"endpoint",e[3]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"mobile",e[43]),ae(i,"translation-url",e[24]),ae(i,"language",e[4])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),16777216&t[0]&&ae(i,"translation-url",e[24]),16&t[0]&&ae(i,"language",e[4])},d(e){e&&ci(i)}}}function xg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","withdraw"),ae(i,"channel","Mobile"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function Cg(e){let i,r,n,o,a,s,l,c,u;return{c(){ae(i=di("user-deposit-withdrawal"),"endpoint",e[3]),ae(i,"type","deposit"),ae(i,"channel","Mobile"),ae(i,"language",e[4]),ae(i,"product-type",e[27]),ae(i,"user-id",e[1]),ae(i,"session",e[2]),ae(i,"success-url",r="https://"+window.location.hostname+"/"+e[4]+e[28]),ae(i,"cancel-url",n="https://"+window.location.hostname+"/"+e[4]+e[30]),ae(i,"fail-url",o="https://"+window.location.hostname+"/"+e[4]+e[29]),ae(i,"sports-url",a="https://"+window.location.hostname+"/"+e[4]+e[31]),ae(i,"casino-url",s="https://"+window.location.hostname+"/"+e[4]+e[32]),ae(i,"contact-url",l="https://"+window.location.hostname+"/"+e[4]+e[33]),ae(i,"home-url",c="https://"+window.location.hostname+"/"+e[4]+e[34]),ae(i,"deposit-url",u="https://"+window.location.hostname+"/"+e[4]+e[35])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"language",e[4]),134217728&t[0]&&ae(i,"product-type",e[27]),2&t[0]&&ae(i,"user-id",e[1]),4&t[0]&&ae(i,"session",e[2]),268435472&t[0]&&r!==(r="https://"+window.location.hostname+"/"+e[4]+e[28])&&ae(i,"success-url",r),1073741840&t[0]&&n!==(n="https://"+window.location.hostname+"/"+e[4]+e[30])&&ae(i,"cancel-url",n),536870928&t[0]&&o!==(o="https://"+window.location.hostname+"/"+e[4]+e[29])&&ae(i,"fail-url",o),16&t[0]|1&t[1]&&a!==(a="https://"+window.location.hostname+"/"+e[4]+e[31])&&ae(i,"sports-url",a),16&t[0]|2&t[1]&&s!==(s="https://"+window.location.hostname+"/"+e[4]+e[32])&&ae(i,"casino-url",s),16&t[0]|4&t[1]&&l!==(l="https://"+window.location.hostname+"/"+e[4]+e[33])&&ae(i,"contact-url",l),16&t[0]|8&t[1]&&c!==(c="https://"+window.location.hostname+"/"+e[4]+e[34])&&ae(i,"home-url",c),16&t[0]|16&t[1]&&u!==(u="https://"+window.location.hostname+"/"+e[4]+e[35])&&ae(i,"deposit-url",u)},d(e){e&&ci(i)}}}function Pg(e){let i;return{c(){ae(i=di("player-kyc-verification"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"user-id",e[1]),ae(i,"language",e[4]),ae(i,"kyc-title",e[19]),ae(i,"description",e[20]),ae(i,"translation-url",e[24]),ae(i,"client-styling",e[22]),ae(i,"client-styling-url",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"user-id",e[1]),16&t[0]&&ae(i,"language",e[4]),524288&t[0]&&ae(i,"kyc-title",e[19]),1048576&t[0]&&ae(i,"description",e[20]),16777216&t[0]&&ae(i,"translation-url",e[24]),4194304&t[0]&&ae(i,"client-styling",e[22]),8388608&t[0]&&ae(i,"client-styling-url",e[23])},d(e){e&&ci(i)}}}function Eg(e){let i;return{c(){ae(i=di("player-account-gaming-limits-wrapper-2"),"endpoint",e[3]),ae(i,"userid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"tablabels",e[11]),ae(i,"historyenabled",e[12]),ae(i,"deletelimit",e[13]),ae(i,"limitsamount",e[14]),ae(i,"limitsperiods",e[15]),ae(i,"numberofentries",e[16]),ae(i,"customcurrencysymbols",e[17]),ae(i,"currency",e[18]),ae(i,"apiversion",e[21]),ae(i,"translationurl",e[24]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"userid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),2048&t[0]&&ae(i,"tablabels",e[11]),4096&t[0]&&ae(i,"historyenabled",e[12]),8192&t[0]&&ae(i,"deletelimit",e[13]),16384&t[0]&&ae(i,"limitsamount",e[14]),32768&t[0]&&ae(i,"limitsperiods",e[15]),65536&t[0]&&ae(i,"numberofentries",e[16]),131072&t[0]&&ae(i,"customcurrencysymbols",e[17]),262144&t[0]&&ae(i,"currency",e[18]),2097152&t[0]&&ae(i,"apiversion",e[21]),16777216&t[0]&&ae(i,"translationurl",e[24]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Tg(e){let i;return{c(){ae(i=di("player-account-betting-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Ag(e){let i;return{c(){ae(i=di("player-transaction-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Lg(e){let i;return{c(){ae(i=di("player-pending-withdrawals"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function kg(e){let i;return{c(){ae(i=di("player-withdrawal"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function Mg(e){let i;return{c(){ae(i=di("player-deposit"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"hasdefaultamount",e[8]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"playercurrency",e[40])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),256&t[0]&&ae(i,"hasdefaultamount",e[8]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),512&t[1]&&ae(i,"playercurrency",e[40])},d(e){e&&ci(i)}}}function Sg(e){let i;return{c(){ae(i=di("player-gaming-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"gmversion",e[26])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),67108864&t[0]&&ae(i,"gmversion",e[26])},d(e){e&&ci(i)}}}function Dg(e){let i;return{c(){ae(i=di("player-bonus-history"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function $g(e){let i;return{c(){ae(i=di("player-active-bonuses"),"endpoint",e[3]),ae(i,"session",e[2]),ae(i,"playerid",e[1]),ae(i,"lang",e[4]),ae(i,"playercurrency",e[40]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),4&t[0]&&ae(i,"session",e[2]),2&t[0]&&ae(i,"playerid",e[1]),16&t[0]&&ae(i,"lang",e[4]),512&t[1]&&ae(i,"playercurrency",e[40]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Bg(e){let i;return{c(){ae(i=di("player-account-self-exclusion"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"supportemail",e[6]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),64&t[0]&&ae(i,"supportemail",e[6]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Ig(i){let r,n,o;return{c(){ae(r=di("player-account-gaming-limits"),"playercurrency",i[40]),ae(r,"separatelimits",i[7]),ae(r,"clientstyling",i[22]),ae(r,"clientstylingurl",i[23])},m(e,t){li(e,r,t),n||(o=c(i[45].call(null,r)),n=!0)},p(e,t){512&t[1]&&ae(r,"playercurrency",e[40]),128&t[0]&&ae(r,"separatelimits",e[7]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23])},d(e){e&&ci(r),n=!1,o()}}}function Ng(e){let i;return{c(){ae(i=di("player-account-closure"),"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Fg(e){let i;return{c(){ae(i=di("player-account-timeout"),"lang",e[4]),ae(i,"operator",e[5]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){16&t[0]&&ae(i,"lang",e[4]),32&t[0]&&ae(i,"operator",e[5]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Og(e){let i;return{c(){ae(i=di("player-reality-check"),"realitycheck",e[41]),ae(i,"endpoint",e[3]),ae(i,"playerid",e[1]),ae(i,"session",e[2]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[1]&&ae(i,"realitycheck",e[41]),8&t[0]&&ae(i,"endpoint",e[3]),2&t[0]&&ae(i,"playerid",e[1]),4&t[0]&&ae(i,"session",e[2]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Rg(e){let i;return{c(){ae(i=di("player-change-password"),"simplepasswordvalidation",e[10]),ae(i,"lang",e[4]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23])},m(e,t){li(e,i,t)},p(e,t){1024&t[0]&&ae(i,"simplepasswordvalidation",e[10]),16&t[0]&&ae(i,"lang",e[4]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function Hg(e){let i;return{c(){ae(i=di("player-profile-info"),"endpoint",e[3]),ae(i,"lang",e[4]),ae(i,"countrycode",e[39]),ae(i,"clientstyling",e[22]),ae(i,"clientstylingurl",e[23]),ae(i,"custominputtextswitch",e[25])},m(e,t){li(e,i,t)},p(e,t){8&t[0]&&ae(i,"endpoint",e[3]),16&t[0]&&ae(i,"lang",e[4]),256&t[1]&&ae(i,"countrycode",e[39]),4194304&t[0]&&ae(i,"clientstyling",e[22]),8388608&t[0]&&ae(i,"clientstylingurl",e[23]),33554432&t[0]&&ae(i,"custominputtextswitch",e[25])},d(e){e&&ci(i)}}}function jg(e){let i,r,n,o;return{c(){i=di("nav"),r=di("player-account-menu"),n=mi(),o=di("player-account-notifications"),ae(r,"endpoint",e[3]),ae(r,"session",e[2]),ae(r,"playerid",e[1]),ae(r,"lang",e[4]),ae(r,"userroles",e[9]),ae(r,"clientstyling",e[22]),ae(r,"clientstylingurl",e[23]),ae(o,"customnotif",e[0]),ae(o,"clientstyling",e[22]),ae(o,"clientstylingurl",e[23]),gi(i,"class","PlayerAccountMobile")},m(e,t){li(e,i,t),si(i,r),si(i,n),si(i,o)},p(e,t){8&t[0]&&ae(r,"endpoint",e[3]),4&t[0]&&ae(r,"session",e[2]),2&t[0]&&ae(r,"playerid",e[1]),16&t[0]&&ae(r,"lang",e[4]),512&t[0]&&ae(r,"userroles",e[9]),4194304&t[0]&&ae(r,"clientstyling",e[22]),8388608&t[0]&&ae(r,"clientstylingurl",e[23]),1&t[0]&&ae(o,"customnotif",e[0]),4194304&t[0]&&ae(o,"clientstyling",e[22]),8388608&t[0]&&ae(o,"clientstylingurl",e[23])},d(e){e&&ci(i)}}}function zg(i){let r,n,o,a,s,l=function(e){let i,t=e[43]?eg:Qf,r=t(e);return{c(){i=di("section"),r.c(),gi(i,"class","PlayerAccountPage "+(e[43]?"PlayerAccountMobilePage":""))},m(e,t){li(e,i,t),r.m(i,null)},p(e,t){r.p(e,t)},d(e){e&&ci(i),r.d()}}}(i);return{c(){r=di("script"),n=di("script"),o=di("script"),a=mi(),s=di("div"),l.c(),this.c=oe,gi(r,"type","module"),b(r.src,"https://unpkg.com/@everymatrix/user-deposit-withdrawal")||gi(r,"src","https://unpkg.com/@everymatrix/user-deposit-withdrawal"),gi(n,"type","module"),b(n.src,"https://unpkg.com/@everymatrix/player-kyc-verification")||gi(n,"src","https://unpkg.com/@everymatrix/player-kyc-verification"),gi(o,"type","module"),b(o.src,"https://unpkg.com/@everymatrix/user-transaction-history")||gi(o,"src","https://unpkg.com/@everymatrix/user-transaction-history")},m(e,t){si(Jf.head,r),si(Jf.head,n),si(Jf.head,o),li(e,a,t),li(e,s,t),l.m(s,null),i[57](s)},p(e,t){l.p(e,t)},i:oe,o:oe,d(e){ci(r),ci(n),ci(o),e&&ci(a),e&&ci(s),l.d(),i[57](null)}}}function Wg(t,e,o){let a;Le(t,De,e=>o(69,a=e));let i,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:r=""}=e,{limitspath:n=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:N="Everymatrix"}=e,{supportemail:F=""}=e,{operatorid:O=""}=e,{realm:R=""}=e,{webapiendpoint:H="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:j="true"}=e,{hasdefaultamount:z="false"}=e,{userroles:h=""}=e,{simplepasswordvalidation:W="false"}=e,{tablabels:U=""}=e,{historyenabled:Y=""}=e,{deletelimit:V=""}=e,{limitsamount:G=""}=e,{limitsperiods:q=""}=e,{numberofentries:Z=""}=e,{customcurrencysymbols:K=""}=e,{currency:X=""}=e,{kyctitle:J=""}=e,{kycdescription:Q=""}=e,{apiversion:ee=""}=e,{clientstyling:m=""}=e,{clientstylingurl:f=""}=e,{translationurl:g=""}=e,{custominputtextswitch:te="false"}=e,{gmversion:ie=""}=e,{channel:re=""}=e,{producttype:ne=""}=e,{successurl:oe=""}=e,{failurl:ae=""}=e,{cancelurl:se=""}=e,{sportsurl:le=""}=e,{casinourl:ce=""}=e,{contacturl:ue=""}=e,{homeurl:de=""}=e,{depositurl:pe=""}=e;var he,me;({withLocale:he,translations:me}={withLocale:"en",translations:{}}),Se.subscribe(e=>{null==e&&(kr.set(me),Se.set(he))});let y,v,w,b,fe,_,ge=window.navigator.userAgent,ye="PC"!==$e(ge),x=[],ve=[],C="",P="",E="",we="",T=null,A="",L={},k=!1,M=!1,be="",S="",_e=!1,D=!1;Object.keys(pn).forEach(e=>{dn(e,pn[e])});const xe=i=>{let t;if(i.data)switch(i.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(38,D=!0),o(37,E=i.data.page.path),"/profile-info"==E&&($(),B()),"/deposit"==E&&"function"==typeof gtag&&gtag("event","GoToDeposit",{context:"PlayerAccountController"}),"/withdrawal"==E&&"function"==typeof gtag&&gtag("event","GoToWithdrawal",{context:"PlayerAccountController"});break;case"SetActivePage":o(38,D=!0),o(37,E=i.data.pagePath),Ee(),"/profile-info"==E&&($(),B());var r=new URL(`${s}/${p}/profile-menu?env=`+l);r.searchParams.append("device",A),Ce(r).then(e=>{e=e.filter(e=>e.label==i.data.pageName);0<e.length&&o(42,_=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":i.data.isMobile&&(o(38,D=!1),Ae());break;case"UpdatePlayerInfo":r=i.data.provisionalArray,r={mobile:{prefix:r.mobilePrefix,number:r.mobileNumber},address1:r.address,city:r.city,postalCode:r.postalCode,securityQuestion:r.securityQuestion,securityAnswer:r.securityAnswer},r=(t=new URL(`${d}/v1/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)});fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("profileUpdateSuccess")}},window.location.href),window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href))});break;case"UpdatePlayerConsent":t=new URL(`${d}/v1/player/${C}/consent`);r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i.data.consentArray)};fetch(t.href,r).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let i=new URL(`${d}/v1/player/${C}/password`),r={currentPassword:e,newPassword:t},n={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)},o=await fetch(i.href,n);if(o.ok)window.postMessage({type:"PasswordChangedSuccessfully"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("passwordChangedSuccess")}},window.location.href);else{let e=await o.json();S=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),_e=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:_e,errorPasswordChanged:S},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:S}},window.location.href)}})(i.data.userCurrentPassword,i.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={coolOff:{period:i.data.timeoutSelected}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{if(200!=e.status)throw new Error("Failed to fetch");window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("timeoutSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(e=>console.error(e));break;case"SetSelfExclusion":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={selfExclusion:{period:i.data.selfExclusionPeriod,expiryDate:i.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"AccountClosure":(t=new URL(`/v2/player/${C}/limits`,d)).searchParams.append("playerId",C);r={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("accountClosureSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href))});break;case"UserSessionID":P=i.data.session,C=i.data.userid,Te();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`/v2/player/${C}/limits`,d);r=i.data.payload,r={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,r).then(e=>{200==e.status&&(k=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsUpdateSuccess")}},window.location.href),I(new URL(`/v2/player/${C}/limits`,d)))});break;case"PlayerAccountGamingLimitDelete":var r=i.data.limit||{},n=Array.isArray(r)?r.map(e=>e.period):r.period;let e="";switch(i.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}r={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(r)};t=new URL(`/v2/player/${C}/limits/`+e,d),Array.isArray(n)?n.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",n),fetch(t.href,r).then(e=>{200==e.status&&(M=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`/v2/player/${C}/limits`,d))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`/v2/player/${C}/limits`,d));break;case"SubmittedRealityCheck":{n=i.data.realityCheckUpdatedValue;let e=new URL(`${d}/v1/player/${C}/realitycheck`),t=(n&&(be=n),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(be,10)}});fetch(e.href,t).then(e=>{200==e.status&&(Pe(new URL(`${d}/v1/player/${c}/realitycheck`)),window.postMessage({type:"RealityCheckValueUpdated"},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("realityCheckSuccess")}},window.location.href))},e=>{console.error(e)});return}}};async function Ce(e){return e.searchParams.append("device",A),(await fetch(e.href)).json()}const $=()=>{var e=new URL(`${d}/v1/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(39,we=e.country),o(40,T=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},B=()=>{var e=new URL(`${d}/v1/player/${C}/consent`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{window.postMessage({type:"ProfileConsentData",consent:e},window.location.href)},e=>{console.error(e)})},Pe=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(41,fe=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===k?setTimeout(()=>{k=!1},3e3):!0===M&&setTimeout(()=>{M=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{L=e,0!==Object.keys(L).length?(o(53,y=null!=(e=L.depositLimits)?e:[]),o(54,v=null!=(e=L.wageringLimits)?e:[]),o(55,w=null!=(e=L.lossLimits)?e:[]),L.hasOwnProperty("cumulativeSessionLimits")?(o(56,b=L.timeLimit),o(56,b=L.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(56,b=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:T,depositlimit:y,wageringlimit:v,losslimit:w,timelimit:b,showsuccessnotification:k,showdeletenotification:M,lang:p}},window.location.href)):(o(53,y=[]),o(54,v=[]),o(55,w=[]),o(56,b=[])),Be()},e=>{console.error(e)})},Ee=()=>{x.forEach(e=>{e.path.includes(E)&&o(42,_=e.id)})},Te=()=>{var e;Ce(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{x=e,Ee(),window.postMessage({type:"AccountMenuDetails",accountMenuInfo:x},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",h),e.searchParams.append("device",A),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(ve=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:ve},window.location.href))},e=>{console.error(e)}),$(),B(),Pe(new URL(`${d}/v1/player/${c}/realitycheck`))},Ae=()=>{var e;(e=$e(ge))&&(A="PC"===e?"dk":"mtWeb"),C=c,P=u,ye||o(38,D=!0),Te()};return ke(()=>(window.addEventListener("message",xe,!1),()=>{window.removeEventListener("message",xe)})),t.$$set=e=>{"cmsendpoint"in e&&o(46,s=e.cmsendpoint),"env"in e&&o(47,l=e.env),"customnotifications"in e&&o(0,r=e.customnotifications),"limitspath"in e&&o(48,n=e.limitspath),"playerid"in e&&o(1,c=e.playerid),"session"in e&&o(2,u=e.session),"endpoint"in e&&o(3,d=e.endpoint),"lang"in e&&o(4,p=e.lang),"operator"in e&&o(5,N=e.operator),"supportemail"in e&&o(6,F=e.supportemail),"operatorid"in e&&o(49,O=e.operatorid),"realm"in e&&o(50,R=e.realm),"webapiendpoint"in e&&o(51,H=e.webapiendpoint),"separatelimits"in e&&o(7,j=e.separatelimits),"hasdefaultamount"in e&&o(8,z=e.hasdefaultamount),"userroles"in e&&o(9,h=e.userroles),"simplepasswordvalidation"in e&&o(10,W=e.simplepasswordvalidation),"tablabels"in e&&o(11,U=e.tablabels),"historyenabled"in e&&o(12,Y=e.historyenabled),"deletelimit"in e&&o(13,V=e.deletelimit),"limitsamount"in e&&o(14,G=e.limitsamount),"limitsperiods"in e&&o(15,q=e.limitsperiods),"numberofentries"in e&&o(16,Z=e.numberofentries),"customcurrencysymbols"in e&&o(17,K=e.customcurrencysymbols),"currency"in e&&o(18,X=e.currency),"kyctitle"in e&&o(19,J=e.kyctitle),"kycdescription"in e&&o(20,Q=e.kycdescription),"apiversion"in e&&o(21,ee=e.apiversion),"clientstyling"in e&&o(22,m=e.clientstyling),"clientstylingurl"in e&&o(23,f=e.clientstylingurl),"translationurl"in e&&o(24,g=e.translationurl),"custominputtextswitch"in e&&o(25,te=e.custominputtextswitch),"gmversion"in e&&o(26,ie=e.gmversion),"channel"in e&&o(52,re=e.channel),"producttype"in e&&o(27,ne=e.producttype),"successurl"in e&&o(28,oe=e.successurl),"failurl"in e&&o(29,ae=e.failurl),"cancelurl"in e&&o(30,se=e.cancelurl),"sportsurl"in e&&o(31,le=e.sportsurl),"casinourl"in e&&o(32,ce=e.casinourl),"contacturl"in e&&o(33,ue=e.contacturl),"homeurl"in e&&o(34,de=e.homeurl),"depositurl"in e&&o(35,pe=e.depositurl)},t.$$.update=()=>{if(16&t.$$.dirty[0]|192&t.$$.dirty[1]&&p&&D&&E&&(e=p,Se.set(e)),543&t.$$.dirty[0]|98304&t.$$.dirty[1]&&s&&d&&r&&c&&u&&p&&l&&h&&Ae(),t.$$.dirty[1],4194304&t.$$.dirty[0]|32&t.$$.dirty[1]&&m&&i&&((e=document.createElement("style")).innerHTML=m,i.appendChild(e)),8388608&t.$$.dirty[0]|32&t.$$.dirty[1]&&f&&i){let e=new URL(f),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;16777216&t.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{dn(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,u,d,p,N,F,j,z,h,W,U,Y,V,G,q,Z,K,X,J,Q,ee,m,f,g,te,ie,ne,oe,ae,se,le,ce,ue,de,pe,i,E,D,we,T,void 0,_,ye,["/profile-info","/change-password","/reality-check","/timeout","/account-closure","/gaming-limits","/self-exclusion","/active-bonuses","/bonus-history","/gaming-history","/deposit","/withdrawal","/pending-withdrawals","/transaction-history","/betting-history","/limits","/account-verification","/cashier-deposit","/cashier-withdrawal","/transactions-history"],e=>{I(new URL(`/v2/player/${C}/limits`,d))},s,l,n,O,R,H,re,y,v,w,b,function(e){Me[e?"unshift":"push"](()=>{i=e,o(36,i)})}]}class Ug extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.PlayerAccountPage{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:250px 1fr 230px;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:30px}.PlayerAccountPage.PlayerAccountMobilePage{display:block;background:var(--emfe-w-pam-color-bg, var(--emfe-w-color-gray-50, #F9F8F8));padding-right:0px}.PlayerAccountPage>nav{grid-area:nav;color:red;background:var(--emfe-w-pam-color-nav-desktop-bg, var(--emfe-w-color-gray-300, #58586B))}.PlayerAccountPage>nav.PlayerAccountMobile{background:var(--emfe-w-pam-color-nav-mobile-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),n(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},Wg,zg,i,{cmsendpoint:46,env:47,customnotifications:0,limitspath:48,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:49,realm:50,webapiendpoint:51,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,tablabels:11,historyenabled:12,deletelimit:13,limitsamount:14,limitsperiods:15,numberofentries:16,customcurrencysymbols:17,currency:18,kyctitle:19,kycdescription:20,apiversion:21,clientstyling:22,clientstylingurl:23,translationurl:24,custominputtextswitch:25,gmversion:26,channel:52,producttype:27,successurl:28,failurl:29,cancelurl:30,sportsurl:31,casinourl:32,contacturl:33,homeurl:34,depositurl:35},null,[-1,-1,-1]),e&&(e.target&&li(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["cmsendpoint","env","customnotifications","limitspath","playerid","session","endpoint","lang","operator","supportemail","operatorid","realm","webapiendpoint","separatelimits","hasdefaultamount","userroles","simplepasswordvalidation","tablabels","historyenabled","deletelimit","limitsamount","limitsperiods","numberofentries","customcurrencysymbols","currency","kyctitle","kycdescription","apiversion","clientstyling","clientstylingurl","translationurl","custominputtextswitch","gmversion","channel","producttype","successurl","failurl","cancelurl","sportsurl","casinourl","contacturl","homeurl","depositurl"]}get cmsendpoint(){return this.$$.ctx[46]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[47]}set env(e){this.$$set({env:e}),p()}get customnotifications(){return this.$$.ctx[0]}set customnotifications(e){this.$$set({customnotifications:e}),p()}get limitspath(){return this.$$.ctx[48]}set limitspath(e){this.$$set({limitspath:e}),p()}get playerid(){return this.$$.ctx[1]}set playerid(e){this.$$set({playerid:e}),p()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),p()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),p()}get operator(){return this.$$.ctx[5]}set operator(e){this.$$set({operator:e}),p()}get supportemail(){return this.$$.ctx[6]}set supportemail(e){this.$$set({supportemail:e}),p()}get operatorid(){return this.$$.ctx[49]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[50]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[51]}set webapiendpoint(e){this.$$set({webapiendpoint:e}),p()}get separatelimits(){return this.$$.ctx[7]}set separatelimits(e){this.$$set({separatelimits:e}),p()}get hasdefaultamount(){return this.$$.ctx[8]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),p()}get userroles(){return this.$$.ctx[9]}set userroles(e){this.$$set({userroles:e}),p()}get simplepasswordvalidation(){return this.$$.ctx[10]}set simplepasswordvalidation(e){this.$$set({simplepasswordvalidation:e}),p()}get tablabels(){return this.$$.ctx[11]}set tablabels(e){this.$$set({tablabels:e}),p()}get historyenabled(){return this.$$.ctx[12]}set historyenabled(e){this.$$set({historyenabled:e}),p()}get deletelimit(){return this.$$.ctx[13]}set deletelimit(e){this.$$set({deletelimit:e}),p()}get limitsamount(){return this.$$.ctx[14]}set limitsamount(e){this.$$set({limitsamount:e}),p()}get limitsperiods(){return this.$$.ctx[15]}set limitsperiods(e){this.$$set({limitsperiods:e}),p()}get numberofentries(){return this.$$.ctx[16]}set numberofentries(e){this.$$set({numberofentries:e}),p()}get customcurrencysymbols(){return this.$$.ctx[17]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),p()}get currency(){return this.$$.ctx[18]}set currency(e){this.$$set({currency:e}),p()}get kyctitle(){return this.$$.ctx[19]}set kyctitle(e){this.$$set({kyctitle:e}),p()}get kycdescription(){return this.$$.ctx[20]}set kycdescription(e){this.$$set({kycdescription:e}),p()}get apiversion(){return this.$$.ctx[21]}set apiversion(e){this.$$set({apiversion:e}),p()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[25]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}get gmversion(){return this.$$.ctx[26]}set gmversion(e){this.$$set({gmversion:e}),p()}get channel(){return this.$$.ctx[52]}set channel(e){this.$$set({channel:e}),p()}get producttype(){return this.$$.ctx[27]}set producttype(e){this.$$set({producttype:e}),p()}get successurl(){return this.$$.ctx[28]}set successurl(e){this.$$set({successurl:e}),p()}get failurl(){return this.$$.ctx[29]}set failurl(e){this.$$set({failurl:e}),p()}get cancelurl(){return this.$$.ctx[30]}set cancelurl(e){this.$$set({cancelurl:e}),p()}get sportsurl(){return this.$$.ctx[31]}set sportsurl(e){this.$$set({sportsurl:e}),p()}get casinourl(){return this.$$.ctx[32]}set casinourl(e){this.$$set({casinourl:e}),p()}get contacturl(){return this.$$.ctx[33]}set contacturl(e){this.$$set({contacturl:e}),p()}get homeurl(){return this.$$.ctx[34]}set homeurl(e){this.$$set({homeurl:e}),p()}get depositurl(){return this.$$.ctx[35]}set depositurl(e){this.$$set({depositurl:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",Ug),Ug});
2221
2221
  //# sourceMappingURL=player-account-controller.js.map