@everymatrix/player-account-controller 1.14.6 → 1.14.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- !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(c){"use strict";(e=c)&&"object"==typeof e&&0 in e;function se(){}const w=e=>e;function h(e){return e()}function m(){return Object.create(null)}function nn(e){e.forEach(h)}function ge(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let u;function _(e,t){return(u=u||document.createElement("a")).href=t,e===u.href}function d(e,...t){if(null==e)return se;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ue(e,t,n){e.$$.on_destroy.push(d(t,n))}function x(e){return e&&ge(e.destroy)?e.destroy:se}var e="undefined"!=typeof window;let P=e?()=>window.performance.now():()=>Date.now(),E=e?e=>requestAnimationFrame(e):se;const T=new Set;function A(t){T.forEach(e=>{e.c(t)||(T.delete(e),e.f())}),0!==T.size&&E(A)}function rn(e,t){e.appendChild(t)}function S(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function on(e,t,n){e.insertBefore(t,n||null)}function an(e){e.parentNode&&e.parentNode.removeChild(e)}function mn(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function sn(e){return document.createElement(e)}function ln(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function cn(e){return document.createTextNode(e)}function un(){return cn(" ")}function I(){return cn("")}function dn(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function G(t){return function(e){return e.preventDefault(),t.call(this,e)}}function pn(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:pn(e,t,n)}function j(e){return""===e?null:+e}function hn(e,t){e.data!==(t=""+t)&&(e.data=t)}function fn(e,t){e.value=null==t?"":t}function M(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function gn(t,n,e){for(let e=0;e<t.options.length;e+=1){var i=t.options[e];if(i.__value===n)return i.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function ye(e){e=e.querySelector(":checked");return e&&e.__value}function k(e,t,n){e.classList[n?"add":"remove"](t)}function i(e){var t={};for(const n of e)t[n.name]=n.value;return t}const D=new Map;let L,B=0;function $(e,t,n,i,r,o,a,s=0){var l=16.666/i;let c="{\n";for(let e=0;e<=1;e+=l){const i=t+(n-t)*o(e);c+=100*e+`%{${a(i,1-i)}}
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(c){"use strict";(e=c)&&"object"==typeof e&&0 in e;function se(){}const w=e=>e;function h(e){return e()}function m(){return Object.create(null)}function sn(e){e.forEach(h)}function ue(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let u;function _(e,t){return(u=u||document.createElement("a")).href=t,e===u.href}function d(e,...t){if(null==e)return se;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function pe(e,t,n){e.$$.on_destroy.push(d(t,n))}function x(e){return e&&ue(e.destroy)?e.destroy:se}var e="undefined"!=typeof window;let P=e?()=>window.performance.now():()=>Date.now(),E=e?e=>requestAnimationFrame(e):se;const A=new Set;function T(t){A.forEach(e=>{e.c(t)||(A.delete(e),e.f())}),0!==A.size&&E(T)}function ln(e,t){e.appendChild(t)}function S(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function cn(e,t,n){e.insertBefore(t,n||null)}function un(e){e.parentNode&&e.parentNode.removeChild(e)}function vn(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function dn(e){return document.createElement(e)}function pn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function hn(e){return document.createTextNode(e)}function mn(){return hn(" ")}function I(){return hn("")}function fn(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function G(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gn(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:gn(e,t,n)}function j(e){return""===e?null:+e}function yn(e,t){e.data!==(t=""+t)&&(e.data=t)}function bn(e,t){e.value=null==t?"":t}function M(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function wn(t,n,e){for(let e=0;e<t.options.length;e+=1){var i=t.options[e];if(i.__value===n)return i.selected=!0}e&&void 0===n||(t.selectedIndex=-1)}function ve(e){e=e.querySelector(":checked");return e&&e.__value}function k(e,t,n){e.classList[n?"add":"remove"](t)}function i(e){var t={};for(const n of e)t[n.name]=n.value;return t}const D=new Map;let L,B=0;function $(e,t,n,i,r,o,a,s=0){var l=16.666/i;let c="{\n";for(let e=0;e<=1;e+=l){const i=t+(n-t)*o(e);c+=100*e+`%{${a(i,1-i)}}
2
2
  `}var u,d=c+`100% {${a(n,1-n)}}
3
- }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(d)}_`+s,p=S(e),{stylesheet:h,rules:m}=D.get(p)||(p=p,u={stylesheet:(u=e,m=sn("style"),u=S(u),h=m,rn(u.head||u,h),h.sheet,m.sheet),rules:{}},D.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+` ${i}ms linear ${r}ms 1 both`,B+=1,s}function N(e){L=e}function de(e){!function(){if(L)return L;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],pe=[];let F=[];const R=[],H=Promise.resolve();let z=!1;function re(){z||(z=!0,H.then(p))}function yn(e){F.push(e)}const Y=new Set;let U,V=0;function p(){if(0===V){const i=L;do{try{for(;V<O.length;){const i=O[V];V++,N(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),nn(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(yn))}}catch(i){throw O.length=0,V=0,i}for(N(null),O.length=0,V=0;pe.length;)pe.pop()();for(let e=0;e<F.length;e+=1){var n=F[e];Y.has(n)||(Y.add(n),n())}}while(F.length=0,O.length);for(;R.length;)R.pop()();z=!1,Y.clear(),N(i)}}function q(e,t,n){var i;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(i=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),i))}const X=new Set;let Z;function J(){Z={r:0,c:[],p:Z}}function K(){Z.r||nn(Z.c),Z=Z.p}function Q(e,t){e&&e.i&&(X.delete(e),e.i(t))}function ee(e,t,n,i){e&&e.o?X.has(e)||(X.add(e),Z.c.push(()=>{X.delete(e),i&&(n&&e.d(1),i())}),e.o(t)):i&&i()}const te={duration:0};function ne(l,e,t,n){const i={direction:"both"};let c=e(l,t,i),u=n?0:1,d=null,p=null,h=null;function m(){var e,t,n,i;h&&(e=l,t=h,n=(e.style.animation||"").split(", "),i=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-i.length)||(e.style.animation=i.join(", "),B-=n)||E(()=>{B||(D.forEach(e=>{e=e.stylesheet.ownerNode;e&&an(e)}),D.clear())}))}function f(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function r(e){const{delay:t=0,duration:n=300,easing:i=w,tick:r=se,css:o}=c||te,a={start:P()+t,b:e};if(e||((a.group=Z).r+=1),d||p)p=a;else{o&&(m(),h=$(l,u,e,n,t,i,o)),e&&r(0,1),d=f(a,n),yn(()=>q(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,n),p=null,q(l,d.b,"start"),o)&&(m(),h=$(l,u,d.b,d.duration,0,i,c.css)),d)if(e>=d.end)r(u=d.b,1-u),q(l,d.b,"end"),p||(d.b?m():--d.group.r||nn(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*i(l/d.duration),r(u,1-u)}return!(!d&&!p)};let t;0===T.size&&E(A),new Promise(e=>{T.add(t={c:s,f:e})})}}}return{run(e){ge(c)?(U||(U=Promise.resolve()).then(()=>{U=null}),U.then(()=>{c=c(i),r(e)})):r(e)},end(){m(),d=p=null}}}function r(i,e,t,n,r,o,a,s=[-1]){var l=L;N(i);const c=i.$$={fragment:null,ctx:[],props:o,update:se,not_equal:r,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(i,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=i).$$.dirty[0]&&(O.push(e),re(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,nn(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){o=e.target;const i=Array.from(o.childNodes);c.fragment&&c.fragment.l(i),i.forEach(an)}else c.fragment&&c.fragment.c();e.intro&&Q(i.$$.fragment);var d=i,s=e.target,a=e.anchor,t=e.customElement,{fragment:n,after_update:o}=d.$$;n&&n.m(s,a),t||yn(()=>{var e=d.$$.on_mount.map(h).filter(ge);d.$$.on_destroy?d.$$.on_destroy.push(...e):nn(e),d.$$.on_mount=[]}),o.forEach(yn),p()}N(l)}let t;"function"==typeof HTMLElement&&(t=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(h).filter(ge);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){nn(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const i=[],r=[];F.forEach(e=>(-1===n.indexOf(e)?i:r).push(e)),r.forEach(e=>e()),F=i}nn(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=se}$on(e,t){if(!ge(t))return se;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ie,oe,ae="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ce="URLSearchParams"in ae,ve="Symbol"in ae&&"iterator"in Symbol,be="FileReader"in ae&&"Blob"in ae&&function(){try{return new Blob,!0}catch(e){return!1}}(),we="FormData"in ae,_e="ArrayBuffer"in ae;function xe(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 Ce(e){return e="string"!=typeof e?String(e):e}function Pe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ve&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 Ee(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Te(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Ae(e){var t=new FileReader,n=Te(t);return t.readAsArrayBuffer(e),n}function Se(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Me(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:be&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:we&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ce&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_e&&be&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Se(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_e&&(ArrayBuffer.prototype.isPrototypeOf(e)||oe(e))?this._bodyArrayBuffer=Se(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):ce&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},be&&(this.blob=function(){var e=Ee(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 Ee(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(be)return this.blob().then(Ae);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,i=Ee(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,e=new FileReader,t=Te(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(i.type))?n[1]:"utf-8",e.readAsText(i,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},we&&(this.formData=function(){return this.text().then(Le)}),this.json=function(){return this.text().then(JSON.parse)},this}_e&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],oe=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=xe(e),t=Ce(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[xe(e)]},l.prototype.get=function(e){return e=xe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(xe(e))},l.prototype.set=function(e,t){this.map[xe(e)]=Ce(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Pe(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Pe(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Pe(n)},ve&&(l.prototype[Symbol.iterator]=l.prototype.entries);var ke=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<ke.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in ae)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Le(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function Be(e,t){if(!(this instanceof Be))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 l(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},Me.call(De.prototype),Me.call(Be.prototype),Be.prototype.clone=function(){return new Be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},Be.error=function(){var e=new Be(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var $e=[301,302,303,307,308],Ie=(Be.redirect=function(e,t){if(-1===$e.indexOf(t))throw new RangeError("Invalid status code");return new Be(null,{status:t,headers:{location:e}})},ae.DOMException);try{new Ie}catch(c){(Ie=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ie.prototype.constructor=Ie}function Ne(a,s){return new Promise(function(r,e){var t=new De(a,s);if(t.signal&&t.signal.aborted)return e(new Ie("Aborted","AbortError"));var n,o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var e,i,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",i=new l,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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{i.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),i)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){r(new Be(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Ie("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&ae.location.href?ae.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(be?o.responseType="blob":_e&&(o.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof l||ae.Headers&&s.headers instanceof ae.Headers)?(n=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){n.push(xe(e)),o.setRequestHeader(e,Ce(s.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",i)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}function Dn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ne.polyfill=!0,ae.fetch||(ae.fetch=Ne,ae.Headers=l,ae.Request=De,ae.Response=Be),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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function ze(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function We(e){return"function"==typeof e}function Ye(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 je=Ye(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 Ue(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}qe.prototype.unsubscribe=function(){var e,t,n,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Re(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){r=e instanceof je?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Re(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ze(u)}catch(e){r=null!=r?r:[],e instanceof je?r=ze(ze([],He(r)),He(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}if(r)throw new je(r)}},qe.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ze(e);else{if(e instanceof qe){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},qe.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},qe.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},qe.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ue(t,e)},qe.prototype.remove=function(e){var t=this._finalizers;t&&Ue(t,e),e instanceof qe&&e._removeParent(this)},qe.EMPTY=((e=new qe).closed=!0,e);var Ge=qe,Ve=Ge.EMPTY;function qe(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Xe(e){return e instanceof Ge||e&&"closed"in e&&We(e.remove)&&We(e.add)&&We(e.unsubscribe)}function Ze(e){We(e)?e():e.unsubscribe()}var Je=void 0,Ke=!1,Qe=!1,et={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=et.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],He(n))):setTimeout.apply(void 0,ze([e,t],He(n)))},clearTimeout:function(e){var t=et.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tt(){}var nt=null;function it(e){if(Ke){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var t=nt,n=t.errorThrown,t=t.error;if(nt=null,n)throw t}}else e()}Fe(st,rt=Ge),st.create=function(e,t,n){return new dt(e,t,n)},st.prototype.next=function(e){this.isStopped||this._next(e)},st.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},st.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},st.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,rt.prototype.unsubscribe.call(this),this.destination=null)},st.prototype._next=function(e){this.destination.next(e)},st.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},st.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var rt,ot=st,at=Function.prototype.bind;function st(e){var t=rt.call(this)||this;return t.isStopped=!1,e?Xe(t.destination=e)&&e.add(t):t.destination=ft,t}function lt(e,t){return at.call(e,t)}ht.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){mt(e)}},ht.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){mt(e)}else mt(e)},ht.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){mt(e)}};var ct,ut=ht,dt=(Fe(pt,ct=ot),pt);function pt(e,t,n){var i=ct.call(this)||this,n=We(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:i&&Qe?((t=Object.create(e)).unsubscribe=function(){return i.unsubscribe()},{next:e.next&&lt(e.next,t),error:e.error&&lt(e.error,t),complete:e.complete&&lt(e.complete,t)}):e;return i.destination=new ut(n),i}function ht(e){this.partialObserver=e}function mt(e){var t=e;et.setTimeout(function(){throw t})}var ft={closed:!0,next:tt,error:function(e){throw e},complete:tt},e="function"==typeof Symbol&&Symbol.observable||"@@observable";yt.prototype.lift=function(e){var t=new yt;return t.source=this,t.operator=e,t},yt.prototype.subscribe=function(e,t,n){var i,r=this,o=(i=e)&&i instanceof ot||i&&We(i.next)&&We(i.error)&&We(i.complete)&&Xe(i)?e:new dt(e,t,n);return it(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},yt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},yt.prototype.forEach=function(i,e){var r=this;return new(e=vt(e))(function(e,t){var n=new dt({next:function(e){try{i(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});r.subscribe(n)})},yt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},yt.prototype[e]=function(){return this},yt.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];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)},yt.prototype.toPromise=function(e){var i=this;return new(e=vt(e))(function(e,t){var n;i.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},yt.create=function(e){return new yt(e)};var gt=yt;function yt(e){e&&(this._subscribe=e)}function vt(e){return null!=(e=null!=e?e:Je)?e:Promise}var bt,wt,_t,xt=Ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Fe(St,_t=gt),St.prototype.lift=function(e){var t=new Ct(this,this);return t.operator=e,t},St.prototype._throwIfClosed=function(){if(this.closed)throw new xt},St.prototype.next=function(r){var o=this;it(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Re(o.currentObservers),i=n.next();!i.done;i=n.next())i.value.next(r)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},St.prototype.error=function(t){var n=this;it(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},St.prototype.complete=function(){var t=this;it(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},St.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(St.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),St.prototype._trySubscribe=function(e){return this._throwIfClosed(),_t.prototype._trySubscribe.call(this,e)},St.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},St.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,i=this.isStopped,r=this.observers;return n||i?Ve:(this.currentObservers=null,r.push(e),new Ge(function(){t.currentObservers=null,Ue(r,e)}))},St.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,i=this.isStopped;t?e.error(n):i&&e.complete()},St.prototype.asObservable=function(){var e=new gt;return e.source=this,e},St.create=function(e,t){return new Ct(e,t)},St),Ct=(Fe(At,wt=e),At.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},At.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},At.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},At.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ve},At),Pt={now:function(){return(Pt.delegate||Date).now()},delegate:void 0},Et=(Fe(Tt,bt=e),Tt.prototype.next=function(e){var t=this,n=t.isStopped,i=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(i.push(e),r)||i.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),n=this._infiniteTimeWindow,i=this._buffer.slice(),r=0;r<i.length&&!e.closed;r+=n?1:2)e.next(i[r]);return this._checkFinalizedStatuses(e),t},Tt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,i=this._infiniteTimeWindow,r=(i?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!i){for(var o=t.now(),a=0,s=1;s<n.length&&n[s]<=o;s+=2)a=s;a&&n.splice(0,a+1)}},Tt);function Tt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Pt);var i=bt.call(this)||this;return i._bufferSize=e,i._windowTime=t,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,t),i}function At(e,t){var n=wt.call(this)||this;return n.destination=e,n.source=t,n}function St(){var e=_t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Mt=[],kt={};const Dt=[];function Lt(i,r=se){let o;const a=new Set;function s(e){if(n(i,e)&&(i=e,o)){const e=!Dt.length;for(const e of a)e[1](),Dt.push(e,i);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(i))},subscribe:function(e,t=se){const n=[e,t];return a.add(n),1===a.size&&(o=r(s)||se),e(i),()=>{a.delete(n),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:Lt(t,t=>{let n=!1;const i=[];let r=0,o=se;const a=()=>{var e;r||(o(),e=s(l?i[0]:i,t),u?t(e):o=ge(e)?e:se)},e=c.map((e,t)=>d(e,e=>{i[t]=e,r&=~(1<<t),n&&a()},()=>{r|=1<<t}));return n=!0,a(),function(){nn(e),o(),n=!1}}).subscribe}}function $t(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===It);var t}var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?zt(Array.isArray(e)?[]:{},e,t):e}function Ot(e,t,n){return e.concat(t).map(function(e){return Nt(e,n)})}function Ft(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 Rt(e,t){try{return t in e}catch(e){return!1}}function Ht(i,r,o){var a={};return o.isMergeableObject(i)&&Ft(i).forEach(function(e){a[e]=Nt(i[e],o)}),Ft(r).forEach(function(e){var t,n;(!Rt(t=i,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Rt(i,e)&&o.isMergeableObject(r[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:zt)(i[e],r[e],o):a[e]=Nt(r[e],o))}),a}function zt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ot,n.isMergeableObject=n.isMergeableObject||$t,n.cloneUnlessOtherwiseSpecified=Nt;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):Ht(e,t,n):Nt(t,n)}zt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return zt(e,t,n)},{});throw new Error("first argument should be an array")};var Wt=zt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Ut,g=function(){return(g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Gt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Vt(e){return e.type===y.literal}function qt(e){return e.type===y.number}function Xt(e){return e.type===y.date}function Zt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Kt(e){return e.type===y.plural}function Qt(e){return e.type===y.tag}function en(e){return e&&"object"==typeof e&&e.type===Ut.number}function tn(e){return e&&"object"==typeof e&&e.type===Ut.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Ut=Ut||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,vn=/(?:[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 bn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,wn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_n=/^(@+)?(\+|#+)?[rs]?$/g,xn=/(\*)(0+)|(#+)(0+)|(0+)/g,Cn=/^(0+)$/;function Pn(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(_n,function(e,t,n){return"string"!=typeof n?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===n?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),i}function En(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 Tn(e){return En(e)||{}}function An(e){for(var a={},t=0,n=e;t<n.length;t++){var i,r=n[t];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.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=r.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"}),r.options.reduce(function(e,t){return g(g({},e),Tn(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return g(g({},e),Tn(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(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(xn,function(e,t,n,i,r,o){if(t)a.minimumIntegerDigits=n.length;else{if(i&&r)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(Cn.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(wn.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(wn,function(e,t,n,i,r,o){return"*"===n?a.minimumFractionDigits=t.length:i&&"#"===i[0]?a.maximumFractionDigits=i.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=r.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Pn(o)))}else _n.test(r.stem)?a=g(g({},a),Pn(r.stem)):((o=En(r.stem))&&(a=g(g({},a),o)),(i=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Cn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=g(g({},a),i)))}return a}var Sn={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 Mn=new RegExp("^".concat(e.source,"*")),kn=new RegExp("".concat(e.source,"*$"));function v(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,Ln=!!String.fromCodePoint,Bn=!!Object.fromEntries,$n=!!String.prototype.codePointAt,In=!!String.prototype.trimStart,Nn=!!String.prototype.trimEnd,On=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fn=!0;try{Fn="a"===(null==(oi=Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:oi[0])}catch(c){Fn=!1}var Rn,Hn,zn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Wn=Ln?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,i="",r=e.length,o=0;o<r;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},Yn=Bn?Object.fromEntries:function(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],r=r[1];t[o]=r}return t},jn=$n?function(e,t){return e.codePointAt(t)}:function(e,t){var n,i=e.length;if(!(t<0||i<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?n:i-56320+(n-55296<<10)+65536},Un=In?function(e){return e.trimStart()}:function(e){return e.replace(Mn,"")},Gn=Nn?function(e){return e.trimEnd()}:function(e){return e.replace(kn,"")};function Vn(e,t){return new RegExp(e,t)}Hn=Fn?(Rn=Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Rn.lastIndex=t,null!=(t=Rn.exec(e)[1])?t:""}):function(e,t){for(var n,i=[];;){var r=jn(e,t);if(void 0===r||Zn(r)||33<=(n=r)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;i.push(r),t+=65536<=r?2:1}return Wn.apply(void 0,i)};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,n){for(var i=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,n)).err)return r;i.push(r.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xn(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r}else if((r=this.parseLiteral(e,t)).err)return r;i.push(r.val)}else{o=this.clonePosition();this.bump(),i.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:i,err:null}},o.prototype.parseTag=function(e,t){var n,i=this.clonePosition(),r=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(r,"/>"),location:v(i,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()||!Xn(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(n=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:v(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(i,this.clonePosition()))):this.error(f.INVALID_TAG,v(i,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 n=this.clonePosition(),i="";;){var r=this.tryParseQuote(t);if(r)i+=r;else{r=this.tryParseUnquoted(e,t);if(r)i+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;i+=r}}}n=v(n,this.clonePosition());return{val:{type:y.literal,value:i,location:n},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xn(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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Wn.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Wn(n))},o.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(f.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Hn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,n,i){var r,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=Gn(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(i)).err?c:(h=v(i,this.clonePosition()),l&&zn(null==l?void 0:l.style,"::",0)?(m=Un(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:n,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 n="",i=0;i<e.length;i++){var r=e.charAt(i);if("j"===r){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Sn[t||""]||Sn[n||""]||Sn["".concat(n,"-001")]||Sn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<a--;)n=l+n}else n+="J"===r?"H":r}return n}(m,this.locale)),p={type:Ut.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(vn,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}},{val:{type:"date"===a?y.date:y.time,value:n,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:n,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(i)).err?c:(m=v(i,this.clonePosition()),"select"===a?{val:{type:y.select,value:n,options:Yn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:Yn(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(n,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 n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,i=e.split(bn).filter(function(e){return 0<e.length});n<i.length;n++){var r=i[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:r})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ut.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?An(n):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,n,i){for(var r=!1,o=[],a=new Set,s=i.value,l=i.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&&(r=!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,n);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&&!r?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}i=v(i,this.clonePosition());return r?On(o*=n)?{val:o,err:null}:this.error(t,i):this.error(e,i)},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=jn(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(zn(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()&&Zn(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 qn=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 Xn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Zn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Jn(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new qn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Jt(e)||Kt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else qt(e)&&en(e.style)||(Xt(e)||Zt(e))&&tn(e.style)?delete e.style.location:Qt(e)&&n(e.children)})}(e.val),e.val}function Kn(e,t){var n=t&&t.cache?t.cache:ai,i=t&&t.serializer?t.serializer:ni;return(t&&t.strategy?t.strategy:function(e,t){return ti(e,this,1===e.length?Qn:ei,t.cache.create(),t.serializer)})(e,{cache:n,serializer:i})}function Qn(e,t,n,i){var n=null==i||"number"==typeof i||"boolean"==typeof i?i:n(i),r=t.get(n);return void 0===r&&(r=e.call(this,i),t.set(n,r)),r}function ei(e,t,n){var i=Array.prototype.slice.call(arguments,3),n=n(i),r=t.get(n);return void 0===r&&(r=e.apply(this,i),t.set(n,r)),r}function ti(e,t,n,i,r){return n.bind(t,e,i,r)}var ni=function(){return JSON.stringify(arguments)};function ii(){this.cache=Object.create(null)}ii.prototype.get=function(e){return this.cache[e]},ii.prototype.set=function(e,t){this.cache[e]=t};var ri,oi,ai={create:function(){return new ii}},si={variadic:function(e,t){return ti(e,this,ei,t.cache.create(),t.serializer)},monadic:function(e,t){return ti(e,this,Qn,t.cache.create(),t.serializer)}};(oi=ri=ri||{}).MISSING_VALUE="MISSING_VALUE",oi.INVALID_VALUE="INVALID_VALUE",oi.MISSING_INTL_API="MISSING_INTL_API";jt(wi,pi=Error),wi.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var li,ci,ui,di,pi,hi=wi,mi=(jt(bi,di=hi),bi),fi=(jt(vi,ui=hi),vi),gi=(jt(yi,ci=hi),yi);function yi(e,t){return ci.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),ri.MISSING_VALUE,t)||this}function vi(e,t,n){return ui.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),ri.INVALID_VALUE,n)||this}function bi(e,t,n,i){return di.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ri.INVALID_VALUE,i)||this}function wi(e,t,n){e=pi.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function _i(e,t,n,i,r,o,a){if(1===e.length&&Vt(e[0]))return[{type:li.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Vt(u))s.push({type:li.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:li.literal,value:n.getNumberFormat(t).format(o)});else{var d=u.value;if(!(r&&d in r))throw new gi(d,a);d=r[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?li.literal:li.object,value:d});else if(Xt(u)){var p="string"==typeof u.style?i.date[u.style]:tn(u.style)?u.style.parsedOptions:void 0;s.push({type:li.literal,value:n.getDateTimeFormat(t,p).format(d)})}else if(Zt(u))p="string"==typeof u.style?i.time[u.style]:tn(u.style)?u.style.parsedOptions:i.time.medium,s.push({type:li.literal,value:n.getDateTimeFormat(t,p).format(d)});else if(qt(u))(p="string"==typeof u.style?i.number[u.style]:en(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:li.literal,value:n.getNumberFormat(t,p).format(d)});else{if(Qt(u)){var h=u.children,m=u.value,f=r[m];if("function"!=typeof f)throw new fi(m,"function",a);m=f(_i(h,t,n,i,r,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?li.literal:li.object,value:e}}))}if(Jt(u)){if(!(g=u.options[d]||u.options.other))throw new mi(u.value,d,Object.keys(u.options),a);s.push.apply(s,_i(g.value,t,n,i,r))}else if(Kt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new hi('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ri.MISSING_INTL_API,a);var f=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new mi(u.value,d,Object.keys(u.options),a);s.push.apply(s,_i(g.value,t,n,i,r,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===li.literal&&t.type===li.literal?n.value+=t.value:e.push(t),e},[])}function xi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=li=li||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(Pi,"defaultLocale",{get:function(){return Pi.memoizedDefaultLocale||(Pi.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Pi.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Pi.memoizedDefaultLocale=null,Pi.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])},Pi.__parse=Jn,Pi.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 Ci=Pi;function Pi(e,t,n,i){var r,o,a=this;if(void 0===t&&(t=Pi.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===li.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 _i(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=Pi.resolveLocale(t),"string"==typeof e){if(this.message=e,!Pi.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Pi.__parse(e,{ignoreTag:null==i?void 0:i.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=(r=Pi.formats,(o=n)?Object.keys(r).reduce(function(e,t){var n,i;return e[t]=(n=r[t],(i=o[t])?g(g(g({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),i[t]||{}),e},{})):n),e},g({},r)):r),this.formatters=i&&i.formatters||{getNumberFormat:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:si.variadic}),getDateTimeFormat:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi(t.dateTime),strategy:si.variadic}),getPluralRules:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi(t.pluralRules),strategy:si.variadic})}}const Ei={},Ti=(e,t,n)=>n&&(t in Ei||(Ei[t]={}),e in Ei[t]||(Ei[t][e]=n),n),Ai=(t,n)=>{if(null!=n){if(n in Ei&&t in Ei[n])return Ei[n][t];var i=zi(n);for(let e=0;e<i.length;e++){var r=function(e,t){if(!ki(e))return null;e=function(e){return Si[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}}(i[e],t);if(r)return Ti(t,n,r)}}};let Si;const Mi=Lt({});function ki(e){return e in Si}function a(t,...n){delete Ei[t],Mi.update(e=>(e[t]=Wt.all([e[t]||{},...n]),e))}Bt([Mi],([e])=>Object.keys(e)),Mi.subscribe(e=>Si=e);const Di={};function Li(e){return Di[e]}function Bi(e){return null!=e&&zi(e).some(e=>{return null==(e=Li(e))?void 0:e.size})}const $i={};function Ii(e){var t;return Bi(e)?(t=zi(e).map(e=>{var t=Li(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),$i[e]=Promise.all(t.map(([e,t])=>{return i=e,Promise.all(t.map(e=>{return t=i,n=e,Di[t].delete(n),0===Di[t].size&&delete Di[t],e().then(e=>e.default||e);var t,n})).then(e=>a(i,...e));var i})).then(()=>{if(Bi(e))return Ii(e);delete $i[e]}),$i[e]):e in $i?$i[e]:Promise.resolve()}const Ni={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};const Oi=Lt(!1);let Fi;const Ri=Lt(null);function Hi(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function zi(e,t=Ni.fallbackLocale){e=Hi(e);return t?[...new Set([...e,...Hi(t)])]:e}function Wi(){return null!=Fi?Fi:void 0}Ri.subscribe(e=>{Fi=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const he={...Ri,set:t=>{if(t&&function(e){if(null!=e){var t=zi(e);for(let e=0;e<t.length;e++){var n=t[e];if(ki(n))return n}}}(t)&&Bi(t)){var n=Ni["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Wi()&&n?e=window.setTimeout(()=>Oi.set(!0),n):Oi.set(!0),Ii(t).then(()=>{Ri.set(t)}).finally(()=>{clearTimeout(e),Oi.set(!1)})}return Ri.set(t)}},Yi=n=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=n(e)}},ji=(e,t)=>{var n=Ni["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ui=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=ji("number",t)),new Intl.NumberFormat(e,n)}),Gi=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=ji("date",t):0===Object.keys(n).length&&(n=ji("date","short")),new Intl.DateTimeFormat(e,n)}),Vi=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=ji("time",t):0===Object.keys(n).length&&(n=ji("time","short")),new Intl.DateTimeFormat(e,n)}),qi=Yi((e,t=Wi())=>new Ci(e,t,Ni.formats,{ignoreTag:Ni.ignoreTag})),me=Bt([he,Mi],()=>(e,t={})=>{var n,i;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Wi(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ai(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!=(i=null!=(n=null==(n=(i=Ni).handleMissingMessage)?void 0:n.call(i,{locale:a,id:e,defaultValue:s}))?n:s)?i:e;if(!o)return l;let c=l;try{c=qi(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),fe=(Bt([he],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Vi({locale:t,...n}).format(e);var n}),Bt([he],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Gi({locale:t,...n}).format(e);var n}),Bt([he],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Ui({locale:t,...n}).format(e);var n}),Bt([he,Mi],()=>(e,t=Wi())=>Ai(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Mt.indexOf(e)&&(t=new Et(t),kt[e]=t,Mt.push(e)),kt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Xi(e,t){a(e,t)}const Zi={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 Ji(e,t){a(e,t)}const Ki={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 Qi(e,t){a(e,t)}const er={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 tr(n){let i,r,o,a,s,l,c=n[2]("logoutButton")+"";return{c(){i=sn("div"),r=sn("button"),o=sn("span"),a=cn(c),pn(i,"class","GeneralLogout")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),s||(l=dn(r,"click",n[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&hn(a,c)},d(e){e&&an(i),s=!1,l()}}}function nr(o){let n,i,r,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let n,i,r=o[2]("logoutButton")+"";return{c(){n=sn("span"),i=cn(r),pn(n,"class","PlayerLogoutText")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){4&t&&r!==(r=e[2]("logoutButton")+"")&&hn(i,r)},d(e){e&&an(n)}}}();return{c(){n=sn("p"),i=sn("span"),r=ln("svg"),a=ln("defs"),s=ln("style"),l=cn(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=ln("path"),u=ln("path"),d=un(),m&&m.c(),pn(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),pn(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"),pn(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),pn(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"),pn(r,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),pn(r,"data-name","Layer 1"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"viewBox","0 0 150 150"),M(i,"width",o[3]?o[4].matches?"50px":"24px":"20px"),pn(n,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(r,a),rn(a,s),rn(s,l),rn(r,c),rn(r,u),rn(n,d),m&&m.m(n,null),p||(h=dn(n,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&an(n),m&&m.d(),p=!1,h()}}}function ir(n){let i;function r(e){return"PlayerAccountMenu"===e[0]?nr:tr}let o=r(n),a=o(n);return{c(){i=sn("div"),a.c(),this.c=se},m(e,t){on(e,i,t),a.m(i,null),n[14](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&an(i),a.d(),n[14](null)}}}function rr(t,e,n){let i;ue(t,me,e=>n(2,i=e));let r,{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"!==fe(m);e=window.matchMedia("(min-width: 768px)");Object.keys(er).forEach(e=>{Qi(e,er[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"buttonlocation"in e&&n(0,s=e.buttonlocation),"lang"in e&&n(8,l=e.lang),"clientstyling"in e&&n(9,c=e.clientstyling),"clientstylingurl"in e&&n(10,u=e.clientstylingurl),"translationurl"in e&&n(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,he.set(e)),514&t.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),1026&t.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qi(e,t[e])})}).catch(e=>{console.log(e)})},[s,r,i,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){pe[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}function or(e,t,n){e=e.slice();return e[32]=t[n],e}function ar(n){let i,r,o,a,s,l,c,u,d,p,h,m=n[32].label+"";function f(){return n[19](n[32])}return{c(){i=sn("div"),r=sn("p"),o=sn("img"),s=un(),l=sn("span"),c=cn(m),u=un(),pn(o,"class","PlayerAccountMenuItemIcon "+(n[10]?"PlayerAccountMenuItemIconMobile":"")),_(o.src,a=n[32].img)||pn(o,"src",a),pn(l,"class","PlayerAccountMenuItemTitle"),pn(r,"class","PlayerAccountMenuItemWrapper"),pn(i,"class",d="PlayerAccountMenuItemBox "+(n[6]!==n[32].id||n[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(r,s),rn(r,l),rn(l,c),rn(i,u),p||(h=dn(i,"click",f),p=!0)},p(e,t){n=e,32&t[0]&&!_(o.src,a=n[32].img)&&pn(o,"src",a),32&t[0]&&m!==(m=n[32].label+"")&&hn(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(n[6]!==n[32].id||n[10]?"":"PlayerAccountMenuActiveItemBox"))&&pn(i,"class",d)},d(e){e&&an(i),p=!1,h()}}}function sr(n){let i,r=function(t){let n,i,r,o,a,s,l,c,u,d,p,h,m=t[10]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[9]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h3"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","PlayerAccountMenuCategoryTitle"),pn(i,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=[dn(r,"click",n[12]),dn(p,"click",n[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,nn(f)}}}(t),f=t[10]&&function(e){let n,i;return{c(){n=sn("div"),le(i=sn("general-logout"),"endpoint",e[1]),le(i,"session",e[0]),le(i,"buttonlocation","PlayerAccountMenu"),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3]),pn(n,"class","PlayerAccountLogOutArea")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){2&t[0]&&le(i,"endpoint",e[1]),1&t[0]&&le(i,"session",e[0]),4&t[0]&&le(i,"clientstyling",e[2]),8&t[0]&&le(i,"clientstylingurl",e[3])},d(e){e&&an(n)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=ar(or(t,g,e));let v=!t[10]&&function(e){let n,i;return{c(){n=sn("div"),le(i=sn("general-logout"),"endpoint",e[1]),le(i,"session",e[0]),le(i,"buttonlocation","PlayerAccountMenu"),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3]),pn(n,"class","PlayerAccountLogOutArea")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){2&t[0]&&le(i,"endpoint",e[1]),1&t[0]&&le(i,"session",e[0]),4&t[0]&&le(i,"clientstyling",e[2]),8&t[0]&&le(i,"clientstylingurl",e[3])},d(e){e&&an(n)}}}(t);return{c(){n=sn("div"),i=sn("div"),m&&m.c(),r=un(),o=sn("p"),a=cn(t[7]),s=un(),l=sn("p"),c=cn(t[8]),u=un(),f&&f.c(),d=un(),p=sn("div");for(let e=0;e<y.length;e+=1)y[e].c();h=un(),v&&v.c(),pn(o,"class","PlayerAccountMenuUser"),pn(l,"class","PlayerAccountMenuEmail"),pn(i,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),pn(p,"class","PlayerAccountMenuList"),pn(n,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){on(e,n,t),rn(n,i),m&&m.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),rn(i,l),rn(l,c),rn(i,u),f&&f.m(i,null),rn(n,d),rn(n,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);rn(n,h),v&&v.m(n,null)},p(t,n){if(t[10]&&m.p(t,n),128&n[0]&&hn(a,t[7]),256&n[0]&&hn(c,t[8]),t[10]&&f.p(t,n),9312&n[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var i=or(t,g,e);y[e]?y[e].p(i,n):(y[e]=ar(i),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,n)},d(e){e&&an(n),m&&m.d(),f&&f.d(),mn(y,e),v&&v.d()}}}(n);return{c(){i=sn("div"),r.c(),this.c=se},m(e,t){on(e,i,t),r.m(i,null),n[20](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&an(i),r.d(),n[20](null)}}}function lr(n,e,i){let t;ue(n,me,e=>i(9,t=e));let r,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"!==fe(g),v="",b="";e=window.matchMedia("(min-width: 768px)");Object.keys(Ki).forEach(e=>{Ji(e,Ki[e])});const w=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":i(5,f=e.data.accountMenuInfo);break;case"UserSessionID":i(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),i(6,o=e.id)},x=()=>{i(6,o=u)};return de(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&i(1,a=e.endpoint),"session"in e&&i(0,s=e.session),"playerid"in e&&i(14,l=e.playerid),"lang"in e&&i(15,c=e.lang),"selecteditem"in e&&i(16,u=e.selecteditem),"userroles"in e&&i(17,d=e.userroles),"clientstyling"in e&&i(2,p=e.clientstyling),"clientstylingurl"in e&&i(3,h=e.clientstylingurl),"translationurl"in e&&i(18,m=e.translationurl)},n.$$.update=()=>{if(32768&n.$$.dirty[0]&&c&&(t=c,he.set(t)),49155&n.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{i(7,v=e.username),i(8,b=e.email)},e=>{console.error(e)})),65536&n.$$.dirty[0]&&u&&x(),24&n.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;20&n.$$.dirty[0]&&p&&r&&((e=document.createElement("style")).innerHTML=p,r.appendChild(e)),262144&n.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ji(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,r,f,o,v,b,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){pe[e?"unshift":"push"](()=>{r=e,i(4,r)})}]}function cr(e,t,n){e=e.slice();return e[14]=t[n],e}function ur(t){let r,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=dr(cr(t,o,e));return{c(){r=sn("div");for(let e=0;e<a.length;e+=1)a[e].c();pn(r,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),pn(r,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){on(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(2&n){let e;for(o=t[1],e=0;e<o.length;e+=1){var i=cr(t,o,e);a[e]?a[e].p(i,n):(a[e]=dr(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&an(r),mn(a,e)}}}function dr(e){let n,i,r,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){n=sn("div"),i=sn("div"),r=sn("img"),s=un(),l=sn("p"),c=cn(h),u=un(),d=sn("p"),p=un(),pn(r,"class","PlayerAccountNotificationIcon"),_(r.src,o=e[14].icon)||pn(r,"src",o),pn(r,"alt",a=e[14].title),pn(l,"class","PlayerAccountNotificationTitle"),pn(i,"class","PlayerAccountNotificationBoxHeader"),pn(d,"class","PlayerAccountNotificationText"),pn(n,"class","PlayerAccountNotificationBox"),M(n,"background",e[14].backgroundColor)},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(i,s),rn(i,l),rn(l,c),rn(n,u),rn(n,d),d.innerHTML=m,rn(n,p)},p(e,t){2&t&&!_(r.src,o=e[14].icon)&&pn(r,"src",o),2&t&&a!==(a=e[14].title)&&pn(r,"alt",a),2&t&&h!==(h=e[14].title+"")&&hn(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&M(n,"background",e[14].backgroundColor)},d(e){e&&an(n)}}}function pr(n){let i;function r(e){if(e[1].length)return ur}let o=r(n),a=o&&o(n);return{c(){i=sn("div"),a&&a.c(),this.c=se},m(e,t){on(e,i,t),a&&a.m(i,null),n[7](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&an(i),a&&a.d(),n[7](null)}}}function hr(t,e,n){let i,{customnotif:r=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==fe(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(n(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{r.replace(" ",""),u=r.split(",")};return de(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&n(4,r=e.customnotif),"clientstyling"in e&&n(5,o=e.clientstyling),"clientstylingurl"in e&&n(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&r&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&i){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&i&&((e=document.createElement("style")).innerHTML=o,i.appendChild(e))},[i,c,l,d,r,o,a,function(e){pe[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function mr(e,t){a(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},rr,ir,n,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&on(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #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-white, #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-white, #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-white, #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-pink-500, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #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-pink-500, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-white, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},lr,sr,n,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&on(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 t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},hr,pr,n,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&on(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 fr={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 gr(e,t,n){e=e.slice();return e[21]=t[n].value,e[22]=t[n].text,e}function yr(e){let n,i,t=e[22]+"";return{c(){n=sn("option"),i=cn(t),n.__value=e[21],n.value=n.__value},m(e,t){on(e,n,t),rn(n,i)},p:se,d(e){e&&an(n)}}}function vr(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,e=n[3]("title")+"",P=n[3]("timeoutTextFirst",{values:{operatorname:n[0]}})+"",E=n[3]("timeoutTextSecondary")+"",T=n[3]("save")+"",A=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","TimeoutTitleMobile"),pn(p,"part","TimeoutTitleMobile"),pn(i,"class","MenuReturnButton"),pn(i,"part","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),S=n[5],M=[];for(let e=0;e<S.length;e+=1)M[e]=yr(gr(n,S,e));return{c(){i=sn("div"),r=sn("form"),A&&A.c(),o=un(),a=sn("h2"),s=cn(e),l=un(),c=sn("div"),u=sn("p"),d=cn(P),p=un(),h=sn("p"),m=cn(E),f=un(),g=sn("div"),y=sn("select");for(let e=0;e<M.length;e+=1)M[e].c();v=un(),b=sn("div"),w=sn("button"),_=cn(T),this.c=se,pn(a,"class","TimeoutTitle "+(n[4]?"TimeoutTitleNone":"")),pn(c,"class","TimeoutDescription "+(n[4]?"TimeoutDescriptionMobile":"")),pn(y,"class","TimeoutSelect "+(n[4]?"TimeoutSelectMobile":"")),void 0===n[2]&&yn(()=>n[13].call(y)),pn(g,"class","TimeoutSelectWrapper"),pn(w,"class","TimeoutSave"),pn(b,"class","TimeoutActionButtons "+(n[4]?"TimeoutActionButtonsMobile":"")),pn(r,"class","TimeoutWrapper "+(n[4]?"TimeoutWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),A&&A.m(r,null),rn(r,o),rn(r,a),rn(a,s),rn(r,l),rn(r,c),rn(c,u),rn(u,d),rn(c,p),rn(c,h),rn(h,m),rn(r,f),rn(r,g),rn(g,y);for(let e=0;e<M.length;e+=1)M[e]&&M[e].m(y,null);gn(y,n[2],!0),rn(r,v),rn(r,b),rn(b,w),rn(w,_),n[15](i),x||(C=[dn(y,"change",n[13]),dn(w,"click",n[14])],x=!0)},p(t,[n]){if(t[4]&&A.p(t,n),8&n&&e!==(e=t[3]("title")+"")&&hn(s,e),9&n&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&hn(d,P),8&n&&E!==(E=t[3]("timeoutTextSecondary")+"")&&hn(m,E),32&n){let e;for(S=t[5],e=0;e<S.length;e+=1){var i=gr(t,S,e);M[e]?M[e].p(i,n):(M[e]=yr(i),M[e].c(),M[e].m(y,null))}for(;e<M.length;e+=1)M[e].d(1);M.length=S.length}36&n&&gn(y,t[2]),8&n&&T!==(T=t[3]("save")+"")&&hn(_,T)},i:se,o:se,d(e){e&&an(i),A&&A.d(),mn(M,e),n[15](null),x=!1,nn(C)}}}function br(t,e,n){let i;ue(t,me,e=>n(3,i=e));let r,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==fe(u),p=(Object.keys(fr).forEach(e=>{mr(e,fr[e])}),[{value:i("cooloff24"),text:i("cooloff24Text")},{value:i("cooloff7"),text:i("cooloff7Text")},{value:i("cooloff30"),text:i("cooloff30Text")},{value:i("cooloff3"),text:i("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&&n(0,o=e.operator),"lang"in e&&n(8,a=e.lang),"clientstyling"in e&&n(9,s=e.clientstyling),"clientstylingurl"in e&&n(10,l=e.clientstylingurl),"translationurl"in e&&n(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,he.set(e)),1026&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;514&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mr(e,t[e])})}).catch(e=>{console.log(e)})},[o,r,h,i,d,p,m,f,a,s,l,c,()=>f(),function(){h=ye(this),n(2,h),n(5,p)},e=>m(e),function(e){pe[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},br,vr,n,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&on(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()}});_r=wr={path:void 0,exports:{},require:function(e,t){return Dn(null==t&&wr.path)}},wr.exports,_r.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 O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(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 n=[],i=e.length,r=0;r<i;++r)n.push(t(e[r],r));return n}function W(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return Dt(e,t,n,i,!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 Y(e){if(null==e._isValid){var t=g(e),n=U.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function j(e){var t=c(NaN);return null!=e?W(g(t),e):g(t).userInvalidated=!0,t}var U=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var n,i,r,o=G.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(n=0;n<o;n++)s(r=t[i=G[n]])||(e[i]=r);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(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,n=[],i=arguments.length,r=0;r<i;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,i=W({},e);for(n in t)f(t,n)&&(O(e[n])&&O(t[n])?(i[n]={},W(i[n],e[n]),W(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)f(e,n)&&!f(t,n)&&O(e[n])&&(i[n]=W({},i[n]));return i}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function o(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var ne=/(\[[^\[]*\])|(\\)?([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,ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function i(e,t,n,i){var r="string"==typeof i?function(){return this[i]()}:i;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),re[t]=re[t]||function(i){for(var e,r=i.match(ne),t=0,o=r.length;t<o;t++)oe[r[t]]?r[t]=oe[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=u(r[n])?r[n].call(e,i):r[n];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(ie.lastIndex=0;0<=n&&ie.test(e);)e=e.replace(ie,i),ie.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,n,i={};for(n in e)f(e,n)&&(t=d(n))&&(i[t]=e[n]);return i}var ue={};function n(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,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(n=h(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),$e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var r=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,we=/\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,b=/[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 w(e,n,i){Se[e]=u(n)?n:function(e,t){return e&&i?i:n}}function Ae(e,t){return f(Se,e)?Se[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Se={},Me={};function x(e,n){var t,i,r=n;for("string"==typeof e&&(e=[e]),R(n)&&(r=function(e,t){t[n]=h(e)}),i=e.length,t=0;t<i;t++)Me[e[t]]=r}function ke(e,r){x(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}var C,P=0,E=1,T=2,A=3,S=4,M=5,De=6,Le=7,Be=8;function $e(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?de(e)?29:28:31-n%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",v),w("MM",v,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("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,n,i){i=n._locale.monthsParse(e,i,n._strict);null!=i?t[E]=i:g(n).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("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=b,Re=b;function He(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}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,n=[],i=[],r=[],o=0;o<12;o++)t=c([2e3,o]),n.push(this.monthsShort(t,"")),i.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(n.sort(e),i.sort(e),r.sort(e),o=0;o<12;o++)n[o]=_(n[o]),i[o]=_(i[o]);for(o=0;o<24;o++)r[o]=_(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ye(e){return de(e)?366:365}i("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",Pe),w("YY",v,y),w("YYYY",_e,ge),w("YYYYY",xe,ye),w("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 je=pe("FullYear",!0);function Ue(e,t,n,i,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Ge(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 Ve(e,t,n){n=7+t-n;return-(7+Ge(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,i,r){var o,t=1+7*(t-1)+(7+n-i)%7+Ve(e,i,r),n=t<=0?Ye(o=e-1)+t:t>Ye(e)?(o=e+1,t-Ye(e)):(o=e,t);return{year:o,dayOfYear:n}}function Xe(e,t,n){var i,r,o=Ve(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?i=o+k(r=e.year()-1,t,n):o>k(e.year(),t,n)?(i=o-k(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function k(e,t,n){var i=Ve(e,t,n),t=Ve(e+1,t,n);return(Ye(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",v),w("ww",v,y),w("W",v),w("WW",v,y),ke(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=h(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",v),w("e",v),w("E",v),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,n,i){i=n._locale.weekdaysParse(e,i,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,i){t[i]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,nt=b;function it(){function e(e,t){return t.length-e.length}for(var t,n,i,r=[],o=[],a=[],s=[],l=0;l<7;l++)i=c([2e3,1]).day(l),t=_(this.weekdaysMin(i,"")),n=_(this.weekdaysShort(i,"")),i=_(this.weekdays(i,"")),r.push(t),o.push(n),a.push(i),s.push(t),s.push(n),s.push(i);r.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("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,rt),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),i("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("hour",13),w("a",at),w("A",at),w("H",v),w("h",v),w("k",v),w("HH",v,y),w("hh",v,y),w("kk",v,y),w("hmm",ve),w("hmmss",be),w("Hmm",ve),w("Hmmss",be),x(["H","HH"],A),x(["k","kk"],function(e,t,n){e=h(e);t[A]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[A]=h(e),g(n).bigHour=!0}),x("hmm",function(e,t,n){var i=e.length-2;t[A]=h(e.substr(0,i)),t[S]=h(e.substr(i)),g(n).bigHour=!0}),x("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[A]=h(e.substr(0,i)),t[S]=h(e.substr(i,2)),t[M]=h(e.substr(r)),g(n).bigHour=!0}),x("Hmm",function(e,t,n){var i=e.length-2;t[A]=h(e.substr(0,i)),t[S]=h(e.substr(i))}),x("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[A]=h(e.substr(0,i)),t[S]=h(e.substr(i,2)),t[M]=h(e.substr(r))});b=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:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ut(e[o]).split("-")).length,n=(n=ut(e[o+1]))?n.split("-"):null;0<t;){if(i=pt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,n)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===D[t]&&_r&&_r.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Dn(),ht(e)}catch(e){D[t]=null}return D[t]}function ht(e,t){return e&&((t=s(t)?L(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 D[e],null;var n,i=lt;if(t.abbr=e,null!=D[e])K("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."),i=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])i=D[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=n._config}return D[e]=new ee(Q(i,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),D[e]}function L(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]>$e(t[P],t[E])?T:t[A]<0||24<t[A]||24===t[A]&&(0!==t[S]||0!==t[M]||0!==t[De])?A:t[S]<0||59<t[S]?S:t[M]<0||59<t[M]?M:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<P||T<t)&&(t=T),g(e)._overflowWeeks&&-1===t&&(t=Le),g(e)._overflowWeekday&&-1===t&&(t=Be),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)?/,bt=[["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]],wt=[["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,n,i,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=bt.length,c=wt.length;if(l){for(g(e).iso=!0,t=0,n=s;t<n;t++)if(bt[t][1].exec(l[1])){r=bt[t][0],i=!1!==bt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,n=c;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!i&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=r+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Et(e,t,n,i,r,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Tt(e){var t,n,i,r,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]),n=o[1],i=t,r=e,n&&Ke.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(n=o[8],i=o[9],r=o[10],n?Ct[n]:i?0:((n=parseInt(r,10))-(i=n%100))/100*60+i),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function St(e){var t,n,i,r,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),n=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,i=At(d.GG,u._a[P],Xe(B(),1,4).year),r=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=Xe(B(),a,s),i=At(d.gg,u._a[P],c.year),r=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),r<1||r>k(i,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(i,r,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=At(e._a[P],n[P]),(e._dayOfYear>Ye(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ge(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]=n[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[S]&&0===e._a[M]&&0===e._a[De]&&(e._nextDay=!0,e._a[A]=0),e._d=(e._useUTC?Ge:Ue).apply(null,p),i=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!==i&&(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,n,i,r=""+e._i,o=r.length,a=0,s=(n=se(e._f,e._locale).match(ne)||[]).length,l=0;l<s;l++)i=n[l],(t=(r.match(Ae(i,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&g(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),a+=t.length),oe[i]?(t?g(e).empty=!1:g(e).unusedTokens.push(i),d=i,h=e,null!=(p=t)&&f(Me,d)&&Me[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(i);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),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])),St(e),ft(e)}else Tt(e);else Pt(e);var c,u,d,p,h}function kt(e){var t,n=e._i,i=e._f;{var r,o;return(e._locale=e._locale||L(e._l),null===n||void 0===i&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(H(n)?e._d=n:a(i)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Mt(t),Y(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a)&&(s=!0);W(e,n||t)}(e):i?Mt(e):s(i=(n=e)._i)?n._d=new Date(m.now()):H(i)?n._d=new Date(i.valueOf()):"string"==typeof i?(r=n,null===(o=_t.exec(r._i))?(Pt(r),!1===r._isValid&&(delete r._isValid,Tt(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:m.createFromInputFallback(r))):r._d=new Date(+o[1])):a(i)?(n._a=z(i.slice(0),function(e){return parseInt(e,10)}),St(n)):O(i)?(r=n)._d||(t=void 0===(o=ce(r._i)).day?o.date:o.day,r._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),St(r)):R(i)?n._d=new Date(i):m.createFromInputFallback(n),Y(e)||(e._d=null),e))}}function Dt(e,t,n,i,r){var o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(O(e)&&F(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,(r=new X(ft(kt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function B(e,t,n,i){return Dt(e,t,n,i,!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=B.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),be=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Lt(e,t){var n,i;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return B();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $t(e){var e=ce(e),t=e.year||0,n=e.quarter||0,i=e.month||0,r=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,n,i=!1,r=Bt.length;for(t in e)if(f(e,t)&&(-1===C.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Bt[n]]){if(i)return!1;parseFloat(e[Bt[n]])!==h(e[Bt[n]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+i+3*n+12*t,this._data={},this._locale=L(),this._bubble()}function It(e){return e instanceof $t}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,n){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Ot("Z",":"),Ot("ZZ",""),w("Z",Te),w("ZZ",Te),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(Te,e)});var Ft=/([\+\-]|\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(Ft)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||H(e)?e:B(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):B(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 Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $(e,t){var n,i,r=e;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=Yt.exec(e))?(n="-"===t[1]?-1:1,r={y:0,d:h(t[T])*n,h:h(t[A])*n,m:h(t[S])*n,s:h(t[M])*n,ms:h(Nt(1e3*t[De]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,r={y:Ut(t[2],n),M:Ut(t[3],n),w:Ut(t[4],n),d:Ut(t[5],n),h:Ut(t[6],n),m:Ut(t[7],n),s:Ut(t[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=B(r.from),n=B(r.to),t=t.isValid()&&n.isValid()?(n=Ht(n,t),t.isBefore(n)?i=Gt(t,n):((i=Gt(n,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),i=new $t(r),It(e)&&f(e,"_locale")&&(i._locale=e._locale),It(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Ut(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Gt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(i,r){return function(e,t){var n;return null===t||isNaN(+t)||(K(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,$(e,t),i),this}}function qt(e,t,n,i){var r=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(i=null==i||i,t&&He(e,he(e,"Month")+t*n),o&&me(e,"Date",he(e,"Date")+o*n),r&&e._d.setTime(e._d.valueOf()+r*n),i)&&m.updateOffset(e,o||t)}$.fn=$t.prototype,$.invalid=function(){return $(NaN)};Ie=Vt(1,"add"),Je=Vt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||H(e)||Xt(e)||R(e)||(n=a(t=e),i=!1,n&&(i=0===t.filter(function(e){return!R(e)&&Xt(t)}).length),n&&i)||function(e){var t,n,i=O(e)&&!F(e),r=!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)n=o[t],r=r||f(e,n);return i&&r}(e)||null==e;var t,n,i}function Jt(e,t){var n,i;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(n,"months"))<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=L(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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){for(var e=[],t=[],n=[],i=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),n.push(_(r[o].narrow)),i.push(_(r[o].name)),i.push(_(r[o].abbr)),i.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function sn(e,t){i(0,[e,e.length],0,t)}function ln(e,t,n,i,r){var o;return null==e?Xe(this,i,r).year:(t>(o=k(e,i,r))&&(t=o),function(e,t,n,i,r){e=qe(e,t,n,i,r),t=Ge(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,i,r))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){i=n._locale.erasParse(e,i,n._strict);i?g(n).era=i:g(n).invalidEra=e}),w("y",Ce),w("yy",Ce),w("yyy",Ce),w("yyyy",Ce),w("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[P]=n._locale.eraYearOrdinalParse(e,r):t[P]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",Pe),w("g",Pe),w("GG",v,y),w("gg",v,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",xe,ye),w("ggggg",xe,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=h(e)}),ke(["gg","GG"],function(e,t,n,i){t[i]=m.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",r),x("Q",function(e,t){t[E]=3*(h(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",v),w("DD",v,y),w("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);i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",fe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=h(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",v),w("mm",v,y),x(["m","mm"],S);ge=pe("Minutes",!1);i("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",v),w("ss",v,y),x(["s","ss"],M);var cn,xe=pe("Seconds",!1);for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,r),w("SS",we,y),w("SSS",we,fe),cn="SSSS";cn.length<=9;cn+="S")w(cn,Ce);function un(e,t){t[De]=h(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")x(cn,un);ye=pe("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");r=X.prototype;function dn(e){return e}r.add=Ie,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!F(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<i.length;r+=1)n=n||f(e,i[r]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||B(),n=Ht(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(u(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,B(e)))},r.clone=function(){return new X(this)},r.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Ht(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Jt(this,i)/12;break;case"month":o=Jt(this,i);break;case"quarter":o=Jt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:p(o)},r.endOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},r.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?$({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(B(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?$({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(B(),e)},r.get=function(e){return u(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,n,i){return e=l(e)?e:B(e),t=l(t)?t:B(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},r.isSame=function(e,t){var e=l(e)?e:B(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()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return Y(this)},r.lang=Qe,r.locale=Kt,r.localeData=Qt,r.max=be,r.min=ve,r.parsingFlags=function(){return W({},g(this))},r.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ce(e)),i=n.length,r=0;r<i;r++)this[n[r].unit](e[n[r].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},r.subtract=Je,r.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},r.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.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},r.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},r.eraYear=function(){for(var e,t,n=this.localeData().eras(),i=0,r=n.length;i<r;++i)if(e=n[i].since<=n[i].until?1:-1,t=this.clone().startOf("day").valueOf(),n[i].since<=t&&t<=n[i].until||n[i].until<=t&&t<=n[i].since)return(this.year()-m(n[i].since).year())*e+n[i].offset;return this.year()},r.year=je,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=ze,r.daysInMonth=function(){return $e(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return k(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){var t,n,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,i=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},r.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},r.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},r.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")},r.hour=r.hours=b,r.minute=r.minutes=ge,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:zt(this);if("string"==typeof e){if(null===(e=Rt(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=zt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?qt(this,$(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},r.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},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?B(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=Wt,r.isUTC=Wt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",_e),r.months=e("months accessor is deprecated. Use month instead",ze),r.years=e("years accessor is deprecated. Use year instead",je),r.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()}),r.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=kt(t))._a?(e=(t._isUTC?c:B)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<i;a++)(n&&e[a]!==t[a]||!n&&h(e[a])!==h(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function pn(e,t,n,i){var r=L(),i=c().set(i,t);return r[n](i,e)}function hn(e,t,n){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");for(var i=[],r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function mn(e,t,n,i){t=("boolean"==typeof e||(n=t=e,e=!1),R(t)&&(n=t,t=void 0),t||"");var r,o=L(),a=e?o._week.dow:0,s=[];if(null!=n)return pn(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=pn(t,(r+a)%7,i,"day");return s}y.calendar=function(e,t,n){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=dn,y.postformat=dn,y.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return u(r)?r(e,t,n,i):r.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,n;for(n in e)f(e,n)&&(u(t=e[n])?this[n]=t:this["_"+n]=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 n,i=this._eras||L("en")._eras,r=0,o=i.length;r<o;++r)switch("string"==typeof i[r].since&&(n=m(i[r].since).startOf("day"),i[r].since=n.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=m(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf()}return i},y.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if(0<=[o,a,s].indexOf(e))return l[i]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Oe).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[Oe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var i,r;if(this._monthsParseExact)return function(e,t,n){var i,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))||-1!==(r=C.call(this._longMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))||-1!==(r=C.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},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=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var i,r;if(this._weekdaysParseExact)return function(e,t,n){var i,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.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")||it.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")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"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.",L);var fn=Math.abs;function gn(e,t,n,i){t=$(t,n);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),fe=wn("s"),Ie=wn("m"),be=wn("h"),ve=wn("d"),Je=wn("w"),b=wn("M"),ge=wn("Q"),xe=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),je=_n("minutes"),y=_n("hours"),xn=_n("days"),Cn=_n("months"),Pn=_n("years");var En=Math.round,Tn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function An(e,t,n,i){var r=$(e).abs(),o=En(r.as("s")),a=En(r.as("m")),s=En(r.as("h")),l=En(r.as("d")),c=En(r.as("M")),u=En(r.as("w")),r=En(r.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||(a<=1?["m"]:a<n.m&&["mm",a])||(s<=1?["h"]:s<n.h&&["hh",s])||(l<=1?["d"]:l<n.d&&["dd",l]);return(o=(o=null!=n.w?o||(u<=1?["w"]:u<n.w&&["ww",u]):o)||(c<=1?["M"]:c<n.M&&["MM",c])||(r<=1?["y"]:["yy",r]))[2]=t,o[3]=0<+e,o[4]=i,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,o)}var Sn=Math.abs;function Mn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,i,r,o,a,s,l,c,u;return this.isValid()?(s=Sn(this._milliseconds)/1e3,l=Sn(this._days),c=Sn(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,n=p(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Mn(this._months)!==Mn(u)?"-":"",o=Mn(this._days)!==Mn(u)?"-":"",a=Mn(this._milliseconds)!==Mn(u)?"-":"",(u<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+i+"S":"")):"P0D"):this.localeData().invalidDate()}var I=$t.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},I.add=function(e,t){return gn(this,e,t,1)},I.subtract=function(e,t){return gn(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Je,I.asMonths=b,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,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(bn(n)+t),n=t=0),i.milliseconds=e%1e3,e=p(e/1e3),i.seconds=e%60,e=p(e/60),i.minutes=e%60,e=p(e/60),i.hours=e%24,t+=p(e/24),n+=e=p(vn(t)),t-=yn(bn(e)),e=p(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},I.clone=function(){return $(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=je,I.hours=y,I.days=xn,I.weeks=function(){return p(this.days()/7)},I.months=Cn,I.years=Pn,I.humanize=function(e,t){var n,i;return this.isValid()?(n=!1,i=Tn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},Tn,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=An(this,!n,i,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=kn,I.toString=kn,I.toJSON=kn,I.locale=Kt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),I.lang=Qe,i("X",0,0,"unix"),i("x",0,0,"valueOf"),w("x",Pe),w("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(h(e))}),m.version="2.29.4",N=B,m.fn=r,m.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return B(1e3*e)},m.months=function(e,t){return hn(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=j,m.duration=$,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return B.apply(null,arguments).parseZone()},m.localeData=L,m.isDuration=It,m.monthsShort=function(e,t){return hn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,i;return null!=t?(i=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(i=null!=(n=pt(e))?n._config:i,t),null==n&&(t.abbr=e),(i=new ee(t)).parentLocale=D[e],D[e]=i),ht(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===ht()&&ht(e)):null!=D[e]&&delete D[e]),D[e]},m.locales=function(){return te(D)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==Tn[e]&&(void 0===t?Tn[e]:(Tn[e]=t,"s"===e&&(Tn.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=r,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 wr,_r,W=wr.exports;function xr(e,t){a(e,t)}const Cr={en:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",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."}};class Pr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Pr);let Er,Tr=null,Ar=window.HTMLImports&&window.HTMLImports.whenReady||null;function Sr(e){requestAnimationFrame(function(){Ar?Ar(e):(Tr||(Tr=new Promise(e=>{Er=e}),"complete"===document.readyState?Er():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Er()})),Tr.then(function(){e&&e()}))})}const Mr="__seenByShadyCSS",kr="__shadyCSSCachedStyle";let Dr=null,Lr=null;class Br{constructor(){this.customStyles=[],this.enqueued=!1,Sr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Lr&&(this.enqueued=!0,Sr(Lr))}addCustomStyle(e){e[Mr]||(e[Mr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[kr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[kr]){var i=this.getStyleForCustomStyle(n);if(i){const t=i.__appliedElement||i;Dr&&Dr(t),n[kr]=t}}}return t}}Object.defineProperties(Br.prototype,{transformCallback:{get:()=>Dr,set(e){Dr=e}},validateCallback:{get:()=>Lr,set(e){let t=!1;Lr||(t=!0),Lr=e,t&&this.enqueueDocumentValidation()}}});const $r=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ir=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Nr=/@media\s(.*)/;function Or(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Fr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Rr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Hr,zr;function Wr(e){Hr=(!e||!e.shimcssproperties)&&(Rr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(zr=window.ShadyCSS.cssBuild);Ln=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Hr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Wr(window.ShadyCSS),window.ShadyCSS=void 0):Wr(window.WebComponents&&window.WebComponents.flags);const Yr=Hr,jr=new Br;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){jr.processStyles(),Or(e,t)},styleElement(e){jr.processStyles()},styleDocument(e){jr.processStyles(),Or(document.body,e)},getComputedStyleValue:(e,t)=>Fr(e,t),flushCustomStyles(){},nativeCss:Yr,nativeShadow:Rr,cssBuild:zr,disableRuntime:Ln}),window.ShadyCSS.CustomStyleInterface=jr,window.JSCompiler_renameProperty=function(e,t){return e};let Ur,Gr,Vr=/(url\()([^)]*)(\))/g,qr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Xr(e,t){if(e&&qr.test(e))return e;if("//"===e)return e;if(void 0===Ur){Ur=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ur="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Ur)try{return new URL(e,t).href}catch(t){return e}return Gr||((Gr=document.implementation.createHTMLDocument("temp")).base=Gr.createElement("base"),Gr.head.appendChild(Gr.base),Gr.anchor=Gr.createElement("a"),Gr.body.appendChild(Gr.anchor)),Gr.base.href=t,Gr.anchor.href=e,Gr.anchor.href||e}function Zr(e,r){return e.replace(Vr,function(e,t,n,i){return t+"'"+Xr(n.replace(/["']/g,""),r)+"'"+i})}function Jr(e){return e.substring(0,e.lastIndexOf("/")+1)}const Kr=!window.ShadyDOM||!window.ShadyDOM.inUse,Qr=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Kr&&"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 eo=window.Polymer&&window.Polymer.rootPath||Jr(document.baseURI||window.location.href),to=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,no=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,io=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ro=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,oo=window.Polymer&&window.Polymer.legacyOptimizations||!1,ao=window.Polymer&&window.Polymer.legacyWarnings||!1,so=window.Polymer&&window.Polymer.syncInitialRender||!1,lo=window.Polymer&&window.Polymer.legacyUndefined||!1,co=window.Polymer&&window.Polymer.orderedComputed||!1,uo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,po=window.Polymer&&window.Polymer.fastDomIf||!1,ho=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,mo=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,fo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,go={},yo={};function vo(e,t){go[e]=yo[e.toLowerCase()]=t}function bo(e){return go[e]||yo[e.toLowerCase()]}class wo extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=bo(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,n,i){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Xr(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Jr(e)),this.__assetpath}register(e){if(e=e||this.id){if(io&&void 0!==bo(e))throw vo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);vo(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}wo.prototype.modules=go,customElements.define("dom-module",wo);const _o="link[rel=import][type~=css]",xo="include",Co="shady-unscoped";function Po(e){return wo.import(e)}function Eo(e){var e=Zr((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function To(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=Po(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...So(t));var n=t.querySelector("template");n&&e.push(...Ao(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function Ao(e,t){if(!e._styles){var n=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){var r=i[e],o=r.getAttribute(xo);o&&n.push(...To(o).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(r.textContent=Zr(r.textContent,t)),n.push(r)}e._styles=n}return e._styles}function So(t){const n=[],i=t.querySelectorAll(_o);for(let e=0;e<i.length;e++){var r=i[e];if(r.import){const t=r.import,i=r.hasAttribute(Co);if(i&&!t._unscopedStyle){const n=Eo(t);n.setAttribute(Co,""),t._unscopedStyle=n}else t._style||(t._style=Eo(t));n.push(i?t._unscopedStyle:t._style)}}return n}const Mo="include",ko=window.ShadyCSS.CustomStyleInterface;class Do extends HTMLElement{constructor(){super(),this._style=null,ko.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var i=(this._style=e).getAttribute(Mo);i&&(e.removeAttribute(Mo),e.textContent=function(){let t=i.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var o=Po(e);if(o&&void 0===o._cssText){let e=function(){let t="",n=So(o);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),r=o.querySelector("template");r&&(e+=function(){let t="";var n=Ao(r,o.assetpath);for(let e=0;e<n.length;e++){var i=n[e];i.parentNode&&i.parentNode.removeChild(i),t+=i.textContent}return t}()),o._cssText=e||null}return o||console.warn("Could not find style data in module named",e),o&&o._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Do);Bn=document.createElement("template"),Bn.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Bn.content),$n=document.createElement("template"),$n.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild($n.content),In=document.createElement("template"),In.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(In.content),Nn=document.createElement("template"),Nn.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Nn.content),Fn=document.createElement("template"),Fn.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Fn.content),e=document.createElement("template"),e.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content),Bn=document.createElement("template");Bn.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bn.content);const Lo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Bo(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function $o(i,...e){Io(i,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Bo(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+i[n+1],i[0]);return Lo&&(n=Lo.createHTML(n)),t.innerHTML=n,t}const Io=(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")},No=$o`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
3
+ }`,s=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(d)}_`+s,p=S(e),{stylesheet:h,rules:m}=D.get(p)||(p=p,u={stylesheet:(u=e,m=dn("style"),u=S(u),h=m,ln(u.head||u,h),h.sheet,m.sheet),rules:{}},D.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+` ${i}ms linear ${r}ms 1 both`,B+=1,s}function N(e){L=e}function he(e){!function(){if(L)return L;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const O=[],me=[];let F=[];const R=[],H=Promise.resolve();let z=!1;function oe(){z||(z=!0,H.then(p))}function _n(e){F.push(e)}const Y=new Set;let U,V=0;function p(){if(0===V){const i=L;do{try{for(;V<O.length;){const i=O[V];V++,N(i),e=t=void 0;var e,t=i.$$;null!==t.fragment&&(t.update(),sn(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(_n))}}catch(i){throw O.length=0,V=0,i}for(N(null),O.length=0,V=0;me.length;)me.pop()();for(let e=0;e<F.length;e+=1){var n=F[e];Y.has(n)||(Y.add(n),n())}}while(F.length=0,O.length);for(;R.length;)R.pop()();z=!1,Y.clear(),N(i)}}function q(e,t,n){var i;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:n=!1}={}]=[(t?"intro":"outro")+n],(i=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,void 0),i))}const X=new Set;let Z;function J(){Z={r:0,c:[],p:Z}}function K(){Z.r||sn(Z.c),Z=Z.p}function Q(e,t){e&&e.i&&(X.delete(e),e.i(t))}function ee(e,t,n,i){e&&e.o?X.has(e)||(X.add(e),Z.c.push(()=>{X.delete(e),i&&(n&&e.d(1),i())}),e.o(t)):i&&i()}const te={duration:0};function ne(l,e,t,n){const i={direction:"both"};let c=e(l,t,i),u=n?0:1,d=null,p=null,h=null;function m(){var e,t,n,i;h&&(e=l,t=h,n=(e.style.animation||"").split(", "),i=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(n=n.length-i.length)||(e.style.animation=i.join(", "),B-=n)||E(()=>{B||(D.forEach(e=>{e=e.stylesheet.ownerNode;e&&un(e)}),D.clear())}))}function f(e,t){var n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function r(e){const{delay:t=0,duration:n=300,easing:i=w,tick:r=se,css:o}=c||te,a={start:P()+t,b:e};if(e||((a.group=Z).r+=1),d||p)p=a;else{o&&(m(),h=$(l,u,e,n,t,i,o)),e&&r(0,1),d=f(a,n),_n(()=>q(l,e,"start"));{var s=e=>{if(p&&e>p.start&&(d=f(p,n),p=null,q(l,d.b,"start"),o)&&(m(),h=$(l,u,d.b,d.duration,0,i,c.css)),d)if(e>=d.end)r(u=d.b,1-u),q(l,d.b,"end"),p||(d.b?m():--d.group.r||sn(d.group.c)),d=null;else if(e>=d.start){const l=e-d.start;u=d.a+d.d*i(l/d.duration),r(u,1-u)}return!(!d&&!p)};let t;0===A.size&&E(T),new Promise(e=>{A.add(t={c:s,f:e})})}}}return{run(e){ue(c)?(U||(U=Promise.resolve()).then(()=>{U=null}),U.then(()=>{c=c(i),r(e)})):r(e)},end(){m(),d=p=null}}}function r(i,e,t,n,r,o,a,s=[-1]){var l=L;N(i);const c=i.$$={fragment:null,ctx:[],props:o,update:se,not_equal:r,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(i,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&r(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u)&&(n=e,-1===(e=i).$$.dirty[0]&&(O.push(e),oe(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],c.update(),u=!0,sn(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){o=e.target;const i=Array.from(o.childNodes);c.fragment&&c.fragment.l(i),i.forEach(un)}else c.fragment&&c.fragment.c();e.intro&&Q(i.$$.fragment);var d=i,s=e.target,a=e.anchor,t=e.customElement,{fragment:n,after_update:o}=d.$$;n&&n.m(s,a),t||_n(()=>{var e=d.$$.on_mount.map(h).filter(ue);d.$$.on_destroy?d.$$.on_destroy.push(...e):sn(e),d.$$.on_mount=[]}),o.forEach(_n),p()}N(l)}let t;"function"==typeof HTMLElement&&(t=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,n){this[e]=n}disconnectedCallback(){sn(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const i=[],r=[];F.forEach(e=>(-1===n.indexOf(e)?i:r).push(e)),r.forEach(e=>e()),F=i}sn(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=se}$on(e,t){if(!ue(t))return se;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ie,re,ae="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},ce="URLSearchParams"in ae,de="Symbol"in ae&&"iterator"in Symbol,be="FileReader"in ae&&"Blob"in ae&&function(){try{return new Blob,!0}catch(e){return!1}}(),we="FormData"in ae,_e="ArrayBuffer"in ae;function xe(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 Ce(e){return e="string"!=typeof e?String(e):e}function Pe(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?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 Ee(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Ae(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function Te(e){var t=new FileReader,n=Ae(t);return t.readAsArrayBuffer(e),n}function Se(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Me(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:be&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:we&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ce&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_e&&be&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Se(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_e&&(ArrayBuffer.prototype.isPrototypeOf(e)||re(e))?this._bodyArrayBuffer=Se(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):ce&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},be&&(this.blob=function(){var e=Ee(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 Ee(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(be)return this.blob().then(Te);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,i=Ee(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,e=new FileReader,t=Ae(e),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(i.type))?n[1]:"utf-8",e.readAsText(i,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},we&&(this.formData=function(){return this.text().then(Le)}),this.json=function(){return this.text().then(JSON.parse)},this}_e&&(ie=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(e){return e&&-1<ie.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=xe(e),t=Ce(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[xe(e)]},l.prototype.get=function(e){return e=xe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(xe(e))},l.prototype.set=function(e,t){this.map[xe(e)]=Ce(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),Pe(n)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),Pe(t)},l.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),Pe(n)},de&&(l.prototype[Symbol.iterator]=l.prototype.entries);var ke=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i=(t=t||{}).body;if(e instanceof De){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 l(t.headers)),this.method=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<ke.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in ae)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Le(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function Be(e,t){if(!(this instanceof Be))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 l(t.headers),this.url=t.url||"",this._initBody(e)}De.prototype.clone=function(){return new De(this,{body:this._bodyInit})},Me.call(De.prototype),Me.call(Be.prototype),Be.prototype.clone=function(){return new Be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},Be.error=function(){var e=new Be(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var $e=[301,302,303,307,308],Ie=(Be.redirect=function(e,t){if(-1===$e.indexOf(t))throw new RangeError("Invalid status code");return new Be(null,{status:t,headers:{location:e}})},ae.DOMException);try{new Ie}catch(c){(Ie=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Ie.prototype.constructor=Ie}function Ne(a,s){return new Promise(function(r,e){var t=new De(a,s);if(t.signal&&t.signal.aborted)return e(new Ie("Aborted","AbortError"));var n,o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var e,i,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",i=new l,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(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{i.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),i)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){r(new Be(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new Ie("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&ae.location.href?ae.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(be?o.responseType="blob":_e&&(o.responseType="arraybuffer")),s&&"object"==typeof s.headers&&!(s.headers instanceof l||ae.Headers&&s.headers instanceof ae.Headers)?(n=[],Object.getOwnPropertyNames(s.headers).forEach(function(e){n.push(xe(e)),o.setRequestHeader(e,Ce(s.headers[e]))}),t.headers.forEach(function(e,t){-1===n.indexOf(t)&&o.setRequestHeader(t,e)})):t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",i)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}function Dn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ne.polyfill=!0,ae.fetch||(ae.fetch=Ne,ae.Headers=l,ae.Request=De,ae.Response=Be),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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Oe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Re(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function ze(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function We(e){return"function"==typeof e}function Ye(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 je=Ye(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 Ue(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}qe.prototype.unsubscribe=function(){var e,t,n,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Re(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){r=e instanceof je?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Re(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{Ze(u)}catch(e){r=null!=r?r:[],e instanceof je?r=ze(ze([],He(r)),He(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}if(r)throw new je(r)}},qe.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ze(e);else{if(e instanceof qe){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},qe.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},qe.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},qe.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Ue(t,e)},qe.prototype.remove=function(e){var t=this._finalizers;t&&Ue(t,e),e instanceof qe&&e._removeParent(this)},qe.EMPTY=((e=new qe).closed=!0,e);var Ge=qe,Ve=Ge.EMPTY;function qe(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Xe(e){return e instanceof Ge||e&&"closed"in e&&We(e.remove)&&We(e.add)&&We(e.unsubscribe)}function Ze(e){We(e)?e():e.unsubscribe()}var Je=void 0,Ke=!1,Qe=!1,et={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=et.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],He(n))):setTimeout.apply(void 0,ze([e,t],He(n)))},clearTimeout:function(e){var t=et.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tt(){}var nt=null;function it(e){if(Ke){var t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){var t=nt,n=t.errorThrown,t=t.error;if(nt=null,n)throw t}}else e()}Fe(st,rt=Ge),st.create=function(e,t,n){return new dt(e,t,n)},st.prototype.next=function(e){this.isStopped||this._next(e)},st.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},st.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},st.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,rt.prototype.unsubscribe.call(this),this.destination=null)},st.prototype._next=function(e){this.destination.next(e)},st.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},st.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var rt,ot=st,at=Function.prototype.bind;function st(e){var t=rt.call(this)||this;return t.isStopped=!1,e?Xe(t.destination=e)&&e.add(t):t.destination=ft,t}function lt(e,t){return at.call(e,t)}ht.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){mt(e)}},ht.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){mt(e)}else mt(e)},ht.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){mt(e)}};var ct,ut=ht,dt=(Fe(pt,ct=ot),pt);function pt(e,t,n){var i=ct.call(this)||this,n=We(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:i&&Qe?((t=Object.create(e)).unsubscribe=function(){return i.unsubscribe()},{next:e.next&&lt(e.next,t),error:e.error&&lt(e.error,t),complete:e.complete&&lt(e.complete,t)}):e;return i.destination=new ut(n),i}function ht(e){this.partialObserver=e}function mt(e){var t=e;et.setTimeout(function(){throw t})}var ft={closed:!0,next:tt,error:function(e){throw e},complete:tt},e="function"==typeof Symbol&&Symbol.observable||"@@observable";yt.prototype.lift=function(e){var t=new yt;return t.source=this,t.operator=e,t},yt.prototype.subscribe=function(e,t,n){var i,r=this,o=(i=e)&&i instanceof ot||i&&We(i.next)&&We(i.error)&&We(i.complete)&&Xe(i)?e:new dt(e,t,n);return it(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},yt.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},yt.prototype.forEach=function(i,e){var r=this;return new(e=vt(e))(function(e,t){var n=new dt({next:function(e){try{i(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});r.subscribe(n)})},yt.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},yt.prototype[e]=function(){return this},yt.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];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)},yt.prototype.toPromise=function(e){var i=this;return new(e=vt(e))(function(e,t){var n;i.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},yt.create=function(e){return new yt(e)};var gt=yt;function yt(e){e&&(this._subscribe=e)}function vt(e){return null!=(e=null!=e?e:Je)?e:Promise}var bt,wt,_t,xt=Ye(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(Fe(St,_t=gt),St.prototype.lift=function(e){var t=new Ct(this,this);return t.operator=e,t},St.prototype._throwIfClosed=function(){if(this.closed)throw new xt},St.prototype.next=function(r){var o=this;it(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Re(o.currentObservers),i=n.next();!i.done;i=n.next())i.value.next(r)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},St.prototype.error=function(t){var n=this;it(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},St.prototype.complete=function(){var t=this;it(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},St.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(St.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),St.prototype._trySubscribe=function(e){return this._throwIfClosed(),_t.prototype._trySubscribe.call(this,e)},St.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},St.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,i=this.isStopped,r=this.observers;return n||i?Ve:(this.currentObservers=null,r.push(e),new Ge(function(){t.currentObservers=null,Ue(r,e)}))},St.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,i=this.isStopped;t?e.error(n):i&&e.complete()},St.prototype.asObservable=function(){var e=new gt;return e.source=this,e},St.create=function(e,t){return new Ct(e,t)},St),Ct=(Fe(Tt,wt=e),Tt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},Tt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},Tt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Tt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Ve},Tt),Pt={now:function(){return(Pt.delegate||Date).now()},delegate:void 0},Et=(Fe(At,bt=e),At.prototype.next=function(e){var t=this,n=t.isStopped,i=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(i.push(e),r)||i.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),n=this._infiniteTimeWindow,i=this._buffer.slice(),r=0;r<i.length&&!e.closed;r+=n?1:2)e.next(i[r]);return this._checkFinalizedStatuses(e),t},At.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,i=this._infiniteTimeWindow,r=(i?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!i){for(var o=t.now(),a=0,s=1;s<n.length&&n[s]<=o;s+=2)a=s;a&&n.splice(0,a+1)}},At);function At(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=Pt);var i=bt.call(this)||this;return i._bufferSize=e,i._windowTime=t,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,t),i}function Tt(e,t){var n=wt.call(this)||this;return n.destination=e,n.source=t,n}function St(){var e=_t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Mt=[],kt={};const Dt=[];function Lt(i,r=se){let o;const a=new Set;function s(e){if(n(i,e)&&(i=e,o)){const e=!Dt.length;for(const e of a)e[1](),Dt.push(e,i);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(i))},subscribe:function(e,t=se){const n=[e,t];return a.add(n),1===a.size&&(o=r(s)||se),e(i),()=>{a.delete(n),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:Lt(t,t=>{let n=!1;const i=[];let r=0,o=se;const a=()=>{var e;r||(o(),e=s(l?i[0]:i,t),u?t(e):o=ue(e)?e:se)},e=c.map((e,t)=>d(e,e=>{i[t]=e,r&=~(1<<t),n&&a()},()=>{r|=1<<t}));return n=!0,a(),function(){sn(e),o(),n=!1}}).subscribe}}function $t(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===It);var t}var It="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Nt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?zt(Array.isArray(e)?[]:{},e,t):e}function Ot(e,t,n){return e.concat(t).map(function(e){return Nt(e,n)})}function Ft(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 Rt(e,t){try{return t in e}catch(e){return!1}}function Ht(i,r,o){var a={};return o.isMergeableObject(i)&&Ft(i).forEach(function(e){a[e]=Nt(i[e],o)}),Ft(r).forEach(function(e){var t,n;(!Rt(t=i,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(Rt(i,e)&&o.isMergeableObject(r[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:zt)(i[e],r[e],o):a[e]=Nt(r[e],o))}),a}function zt(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ot,n.isMergeableObject=n.isMergeableObject||$t,n.cloneUnlessOtherwiseSpecified=Nt;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):Ht(e,t,n):Nt(t,n)}zt.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return zt(e,t,n)},{});throw new Error("first argument should be an array")};var Wt=zt,Yt=function(e,t){return(Yt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Yt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f,y,Ut,g=function(){return(g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Gt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Vt(e){return e.type===y.literal}function qt(e){return e.type===y.number}function Xt(e){return e.type===y.date}function Zt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Kt(e){return e.type===y.plural}function Qt(e){return e.type===y.tag}function en(e){return e&&"object"==typeof e&&e.type===Ut.number}function tn(e){return e&&"object"==typeof e&&e.type===Ut.dateTime}(e=f=f||{})[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",(e=y=y||{})[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",(e=Ut=Ut||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,nn=/(?:[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 rn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,on=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,an=/^(@+)?(\+|#+)?[rs]?$/g,xn=/(\*)(0+)|(#+)(0+)|(0+)/g,Cn=/^(0+)$/;function Pn(e){var i={};return"r"===e[e.length-1]?i.roundingPriority="morePrecision":"s"===e[e.length-1]&&(i.roundingPriority="lessPrecision"),e.replace(an,function(e,t,n){return"string"!=typeof n?(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length):"+"===n?i.minimumSignificantDigits=t.length:"#"===t[0]?i.maximumSignificantDigits=t.length:(i.minimumSignificantDigits=t.length,i.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),i}function En(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 An(e){return En(e)||{}}function Tn(e){for(var a={},t=0,n=e;t<n.length;t++){var i,r=n[t];switch(r.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=r.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=r.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"}),r.options.reduce(function(e,t){return g(g({},e),An(t))},{}));continue;case"engineering":a=g(g(g({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return g(g({},e),An(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(r.options[0]);continue;case"integer-width":if(1<r.options.length)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(xn,function(e,t,n,i,r,o){if(t)a.minimumIntegerDigits=n.length;else{if(i&&r)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(Cn.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(on.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(on,function(e,t,n,i,r,o){return"*"===n?a.minimumFractionDigits=t.length:i&&"#"===i[0]?a.maximumFractionDigits=i.length:r&&o?(a.minimumFractionDigits=r.length,a.maximumFractionDigits=r.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""});var o=r.options[0];"w"===o?a=g(g({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=g(g({},a),Pn(o)))}else an.test(r.stem)?a=g(g({},a),Pn(r.stem)):((o=En(r.stem))&&(a=g(g({},a),o)),(i=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Cn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=g(g({},a),i)))}return a}var Sn={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 Mn=new RegExp("^".concat(e.source,"*")),kn=new RegExp("".concat(e.source,"*$"));function v(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,Ln=!!String.fromCodePoint,Bn=!!Object.fromEntries,$n=!!String.prototype.codePointAt,In=!!String.prototype.trimStart,Nn=!!String.prototype.trimEnd,On=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fn=!0;try{Fn="a"===(null==(oi=Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:oi[0])}catch(c){Fn=!1}var Rn,Hn,zn=e?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Wn=Ln?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,i="",r=e.length,o=0;o<r;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},Yn=Bn?Object.fromEntries:function(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],r=r[1];t[o]=r}return t},jn=$n?function(e,t){return e.codePointAt(t)}:function(e,t){var n,i=e.length;if(!(t<0||i<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?n:i-56320+(n-55296<<10)+65536},Un=In?function(e){return e.trimStart()}:function(e){return e.replace(Mn,"")},Gn=Nn?function(e){return e.trimEnd()}:function(e){return e.replace(kn,"")};function Vn(e,t){return new RegExp(e,t)}Hn=Fn?(Rn=Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Rn.lastIndex=t,null!=(t=Rn.exec(e)[1])?t:""}):function(e,t){for(var n,i=[];;){var r=jn(e,t);if(void 0===r||Zn(r)||33<=(n=r)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;i.push(r),t+=65536<=r?2:1}return Wn.apply(void 0,i)};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,n){for(var i=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,n)).err)return r;i.push(r.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(f.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Xn(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r}else if((r=this.parseLiteral(e,t)).err)return r;i.push(r.val)}else{o=this.clonePosition();this.bump(),i.push({type:y.pound,location:v(o,this.clonePosition())})}}}return{val:i,err:null}},o.prototype.parseTag=function(e,t){var n,i=this.clonePosition(),r=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(r,"/>"),location:v(i,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()||!Xn(this.char())?this.error(f.INVALID_TAG,v(e,this.clonePosition())):(n=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,v(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:v(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,v(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,v(i,this.clonePosition()))):this.error(f.INVALID_TAG,v(i,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 n=this.clonePosition(),i="";;){var r=this.tryParseQuote(t);if(r)i+=r;else{r=this.tryParseUnquoted(e,t);if(r)i+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;i+=r}}}n=v(n,this.clonePosition());return{val:{type:y.literal,value:i,location:n},err:null}},o.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Xn(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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Wn.apply(void 0,t)},o.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),Wn(n))},o.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,v(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(f.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(f.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},o.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Hn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:v(e,this.clonePosition())}},o.prototype.parseArgumentOptions=function(e,t,n,i){var r,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=Gn(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(i)).err?c:(h=v(i,this.clonePosition()),l&&zn(null==l?void 0:l.style,"::",0)?(m=Un(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(m,l.styleLocation)).err?d:{val:{type:y.number,value:n,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 n="",i=0;i<e.length;i++){var r=e.charAt(i);if("j"===r){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Sn[t||""]||Sn[n||""]||Sn["".concat(n,"-001")]||Sn["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<a--;)n=l+n}else n+="J"===r?"H":r}return n}(m,this.locale)),p={type:Ut.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},u.replace(nn,function(e){var t=e.length;switch(e[0]){case"G":r.era=4===t?"long":5===t?"narrow":"short";break;case"y":r.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":r.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":r.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":r.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][t-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][t-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][t-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][t-1];break;case"k":r.hourCycle="h24",r.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":r.minute=["numeric","2-digit"][t-1];break;case"s":r.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":r.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""}),r):{}},{val:{type:"date"===a?y.date:y.time,value:n,location:h,style:p},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:n,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(i)).err?c:(m=v(i,this.clonePosition()),"select"===a?{val:{type:y.select,value:n,options:Yn(l.val),location:m},err:null}:{val:{type:y.plural,value:n,options:Yn(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 n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(n,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 n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,i=e.split(rn).filter(function(e){return 0<e.length});n<i.length;n++){var r=i[n].split("/");if(0===r.length)throw new Error("Invalid number skeleton");for(var o=r[0],r=r.slice(1),a=0,s=r;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:r})}return t}(e)}catch(e){return this.error(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ut.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Tn(n):{}},err:null}},o.prototype.tryParsePluralOrSelectOptions=function(e,t,n,i){for(var r=!1,o=[],a=new Set,s=i.value,l=i.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&&(r=!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,n);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&&!r?this.error(f.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:o,err:null}},o.prototype.tryParseDecimalInteger=function(e,t){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;r=!0,o=10*o+(a-48),this.bump()}i=v(i,this.clonePosition());return r?On(o*=n)?{val:o,err:null}:this.error(t,i):this.error(e,i)},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=jn(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(zn(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()&&Zn(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 qn=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 Xn(e){return 97<=e&&e<=122||65<=e&&e<=90}function Zn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Jn(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new qn(e,t).parse();if(e.err)throw(n=SyntaxError(f[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,Jt(e)||Kt(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else qt(e)&&en(e.style)||(Xt(e)||Zt(e))&&tn(e.style)?delete e.style.location:Qt(e)&&n(e.children)})}(e.val),e.val}function Kn(e,t){var n=t&&t.cache?t.cache:ai,i=t&&t.serializer?t.serializer:ni;return(t&&t.strategy?t.strategy:function(e,t){return ti(e,this,1===e.length?Qn:ei,t.cache.create(),t.serializer)})(e,{cache:n,serializer:i})}function Qn(e,t,n,i){var n=null==i||"number"==typeof i||"boolean"==typeof i?i:n(i),r=t.get(n);return void 0===r&&(r=e.call(this,i),t.set(n,r)),r}function ei(e,t,n){var i=Array.prototype.slice.call(arguments,3),n=n(i),r=t.get(n);return void 0===r&&(r=e.apply(this,i),t.set(n,r)),r}function ti(e,t,n,i,r){return n.bind(t,e,i,r)}var ni=function(){return JSON.stringify(arguments)};function ii(){this.cache=Object.create(null)}ii.prototype.get=function(e){return this.cache[e]},ii.prototype.set=function(e,t){this.cache[e]=t};var ri,oi,ai={create:function(){return new ii}},si={variadic:function(e,t){return ti(e,this,ei,t.cache.create(),t.serializer)},monadic:function(e,t){return ti(e,this,Qn,t.cache.create(),t.serializer)}};(oi=ri=ri||{}).MISSING_VALUE="MISSING_VALUE",oi.INVALID_VALUE="INVALID_VALUE",oi.MISSING_INTL_API="MISSING_INTL_API";jt(wi,pi=Error),wi.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var li,ci,ui,di,pi,hi=wi,mi=(jt(bi,di=hi),bi),fi=(jt(vi,ui=hi),vi),gi=(jt(yi,ci=hi),yi);function yi(e,t){return ci.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),ri.MISSING_VALUE,t)||this}function vi(e,t,n){return ui.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),ri.INVALID_VALUE,n)||this}function bi(e,t,n,i){return di.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),ri.INVALID_VALUE,i)||this}function wi(e,t,n){e=pi.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function _i(e,t,n,i,r,o,a){if(1===e.length&&Vt(e[0]))return[{type:li.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Vt(u))s.push({type:li.literal,value:u.value});else if(u.type===y.pound)"number"==typeof o&&s.push({type:li.literal,value:n.getNumberFormat(t).format(o)});else{var d=u.value;if(!(r&&d in r))throw new gi(d,a);d=r[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?li.literal:li.object,value:d});else if(Xt(u)){var p="string"==typeof u.style?i.date[u.style]:tn(u.style)?u.style.parsedOptions:void 0;s.push({type:li.literal,value:n.getDateTimeFormat(t,p).format(d)})}else if(Zt(u))p="string"==typeof u.style?i.time[u.style]:tn(u.style)?u.style.parsedOptions:i.time.medium,s.push({type:li.literal,value:n.getDateTimeFormat(t,p).format(d)});else if(qt(u))(p="string"==typeof u.style?i.number[u.style]:en(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),s.push({type:li.literal,value:n.getNumberFormat(t,p).format(d)});else{if(Qt(u)){var h=u.children,m=u.value,f=r[m];if("function"!=typeof f)throw new fi(m,"function",a);m=f(_i(h,t,n,i,r,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?li.literal:li.object,value:e}}))}if(Jt(u)){if(!(g=u.options[d]||u.options.other))throw new mi(u.value,d,Object.keys(u.options),a);s.push.apply(s,_i(g.value,t,n,i,r))}else if(Kt(u)){if(!(g=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new hi('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ri.MISSING_INTL_API,a);var f=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0)),g=u.options[f]||u.options.other}if(!g)throw new mi(u.value,d,Object.keys(u.options),a);s.push.apply(s,_i(g.value,t,n,i,r,d-(u.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===li.literal&&t.type===li.literal?n.value+=t.value:e.push(t),e},[])}function xi(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(e=li=li||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(Pi,"defaultLocale",{get:function(){return Pi.memoizedDefaultLocale||(Pi.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Pi.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Pi.memoizedDefaultLocale=null,Pi.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])},Pi.__parse=Jn,Pi.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 Ci=Pi;function Pi(e,t,n,i){var r,o,a=this;if(void 0===t&&(t=Pi.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===li.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 _i(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=Pi.resolveLocale(t),"string"==typeof e){if(this.message=e,!Pi.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Pi.__parse(e,{ignoreTag:null==i?void 0:i.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=(r=Pi.formats,(o=n)?Object.keys(r).reduce(function(e,t){var n,i;return e[t]=(n=r[t],(i=o[t])?g(g(g({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),i[t]||{}),e},{})):n),e},g({},r)):r),this.formatters=i&&i.formatters||{getNumberFormat:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:si.variadic}),getDateTimeFormat:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi(t.dateTime),strategy:si.variadic}),getPluralRules:Kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Gt([void 0],t,!1)))},{cache:xi(t.pluralRules),strategy:si.variadic})}}const Ei={},Ai=(e,t,n)=>n&&(t in Ei||(Ei[t]={}),e in Ei[t]||(Ei[t][e]=n),n),Ti=(t,n)=>{if(null!=n){if(n in Ei&&t in Ei[n])return Ei[n][t];var i=zi(n);for(let e=0;e<i.length;e++){var r=function(e,t){if(!ki(e))return null;e=function(e){return Si[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}}(i[e],t);if(r)return Ai(t,n,r)}}};let Si;const Mi=Lt({});function ki(e){return e in Si}function a(t,...n){delete Ei[t],Mi.update(e=>(e[t]=Wt.all([e[t]||{},...n]),e))}Bt([Mi],([e])=>Object.keys(e)),Mi.subscribe(e=>Si=e);const Di={};function Li(e){return Di[e]}function Bi(e){return null!=e&&zi(e).some(e=>{return null==(e=Li(e))?void 0:e.size})}const $i={};function Ii(e){var t;return Bi(e)?(t=zi(e).map(e=>{var t=Li(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),$i[e]=Promise.all(t.map(([e,t])=>{return i=e,Promise.all(t.map(e=>{return t=i,n=e,Di[t].delete(n),0===Di[t].size&&delete Di[t],e().then(e=>e.default||e);var t,n})).then(e=>a(i,...e));var i})).then(()=>{if(Bi(e))return Ii(e);delete $i[e]}),$i[e]):e in $i?$i[e]:Promise.resolve()}const Ni={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};const Oi=Lt(!1);let Fi;const Ri=Lt(null);function Hi(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function zi(e,t=Ni.fallbackLocale){e=Hi(e);return t?[...new Set([...e,...Hi(t)])]:e}function Wi(){return null!=Fi?Fi:void 0}Ri.subscribe(e=>{Fi=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const fe={...Ri,set:t=>{if(t&&function(e){if(null!=e){var t=zi(e);for(let e=0;e<t.length;e++){var n=t[e];if(ki(n))return n}}}(t)&&Bi(t)){var n=Ni["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Wi()&&n?e=window.setTimeout(()=>Oi.set(!0),n):Oi.set(!0),Ii(t).then(()=>{Ri.set(t)}).finally(()=>{clearTimeout(e),Oi.set(!1)})}return Ri.set(t)}},Yi=n=>{const i=Object.create(null);return e=>{var t=JSON.stringify(e);return t in i?i[t]:i[t]=n(e)}},ji=(e,t)=>{var n=Ni["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ui=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=ji("number",t)),new Intl.NumberFormat(e,n)}),Gi=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=ji("date",t):0===Object.keys(n).length&&(n=ji("date","short")),new Intl.DateTimeFormat(e,n)}),Vi=Yi(({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=ji("time",t):0===Object.keys(n).length&&(n=ji("time","short")),new Intl.DateTimeFormat(e,n)}),qi=Yi((e,t=Wi())=>new Ci(e,t,Ni.formats,{ignoreTag:Ni.ignoreTag})),ge=Bt([fe,Mi],()=>(e,t={})=>{var n,i;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Wi(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ti(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!=(i=null!=(n=null==(n=(i=Ni).handleMissingMessage)?void 0:n.call(i,{locale:a,id:e,defaultValue:s}))?n:s)?i:e;if(!o)return l;let c=l;try{c=qi(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),ye=(Bt([fe],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Vi({locale:t,...n}).format(e);var n}),Bt([fe],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Gi({locale:t,...n}).format(e);var n}),Bt([fe],()=>(e,t)=>{return[{locale:t=Wi(),...n}={}]=[t],Ui({locale:t,...n}).format(e);var n}),Bt([fe,Mi],()=>(e,t=Wi())=>Ti(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Mt.indexOf(e)&&(t=new Et(t),kt[e]=t,Mt.push(e)),kt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Xi(e,t){a(e,t)}const Zi={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 Ji(e,t){a(e,t)}const Ki={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 Qi(e,t){a(e,t)}const er={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 tr(n){let i,r,o,a,s,l,c=n[2]("logoutButton")+"";return{c(){i=dn("div"),r=dn("button"),o=dn("span"),a=hn(c),gn(i,"class","GeneralLogout")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),s||(l=fn(r,"click",n[13]),s=!0)},p(e,t){4&t&&c!==(c=e[2]("logoutButton")+"")&&yn(a,c)},d(e){e&&un(i),s=!1,l()}}}function nr(o){let n,i,r,a,s,l,c,u,d,p,h,m=!o[3]&&function(){let n,i,r=o[2]("logoutButton")+"";return{c(){n=dn("span"),i=hn(r),gn(n,"class","PlayerLogoutText")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){4&t&&r!==(r=e[2]("logoutButton")+"")&&yn(i,r)},d(e){e&&un(n)}}}();return{c(){n=dn("p"),i=dn("span"),r=pn("svg"),a=pn("defs"),s=pn("style"),l=hn(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"),c=pn("path"),u=pn("path"),d=mn(),m&&m.c(),gn(c,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gn(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"),gn(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),gn(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"),gn(r,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),gn(r,"data-name","Layer 1"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"viewBox","0 0 150 150"),M(i,"width",o[3]?o[4].matches?"50px":"24px":"20px"),gn(n,"class","PlayerAccountMenuItemBox "+(o[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(o[4].matches&&o[3]?"PlayerAccountMenuItemBoxTablet":""))},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(r,a),ln(a,s),ln(s,l),ln(r,c),ln(r,u),ln(n,d),m&&m.m(n,null),p||(h=fn(n,"click",o[12]),p=!0)},p(e,t){e[3]||m.p(e,t)},d(e){e&&un(n),m&&m.d(),p=!1,h()}}}function ir(n){let i;function r(e){return"PlayerAccountMenu"===e[0]?nr:tr}let o=r(n),a=o(n);return{c(){i=dn("div"),a.c(),this.c=se},m(e,t){cn(e,i,t),a.m(i,null),n[14](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&un(i),a.d(),n[14](null)}}}function rr(t,e,n){let i;pe(t,ge,e=>n(2,i=e));let r,{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"!==ye(m);e=window.matchMedia("(min-width: 768px)");Object.keys(er).forEach(e=>{Qi(e,er[e])});const g=()=>{var e=new Headers;e.append("Content-type","application/json"),e.append("X-SessionID",a),fetch(o+"/player/session/player",{method:"DELETE",headers:e}).then(e=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href)})};return t.$$set=e=>{"endpoint"in e&&n(6,o=e.endpoint),"session"in e&&n(7,a=e.session),"buttonlocation"in e&&n(0,s=e.buttonlocation),"lang"in e&&n(8,l=e.lang),"clientstyling"in e&&n(9,c=e.clientstyling),"clientstylingurl"in e&&n(10,u=e.clientstylingurl),"translationurl"in e&&n(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,fe.set(e)),514&t.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),1026&t.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;2048&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Qi(e,t[e])})}).catch(e=>{console.log(e)})},[s,r,i,f,e,g,o,a,l,c,u,d,()=>g(),()=>g(),function(e){me[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}function or(e,t,n){e=e.slice();return e[32]=t[n],e}function ar(n){let i,r,o,a,s,l,c,u,d,p,h,m=n[32].label+"";function f(){return n[19](n[32])}return{c(){i=dn("div"),r=dn("p"),o=dn("img"),s=mn(),l=dn("span"),c=hn(m),u=mn(),gn(o,"class","PlayerAccountMenuItemIcon "+(n[10]?"PlayerAccountMenuItemIconMobile":"")),_(o.src,a=n[32].img)||gn(o,"src",a),gn(l,"class","PlayerAccountMenuItemTitle"),gn(r,"class","PlayerAccountMenuItemWrapper"),gn(i,"class",d="PlayerAccountMenuItemBox "+(n[6]!==n[32].id||n[10]?"":"PlayerAccountMenuActiveItemBox"))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(r,s),ln(r,l),ln(l,c),ln(i,u),p||(h=fn(i,"click",f),p=!0)},p(e,t){n=e,32&t[0]&&!_(o.src,a=n[32].img)&&gn(o,"src",a),32&t[0]&&m!==(m=n[32].label+"")&&yn(c,m),96&t[0]&&d!==(d="PlayerAccountMenuItemBox "+(n[6]!==n[32].id||n[10]?"":"PlayerAccountMenuActiveItemBox"))&&gn(i,"class",d)},d(e){e&&un(i),p=!1,h()}}}function sr(n){let i,r=function(t){let n,i,r,o,a,s,l,c,u,d,p,h,m=t[10]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[9]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h3"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","PlayerAccountMenuCategoryTitle"),gn(i,"class","PlayerAccountMenuCategoryWrapper")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=[fn(r,"click",n[12]),fn(p,"click",n[12])],m=!0)},p(e,t){512&t[0]&&g!==(g=e[9]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,sn(f)}}}(t),f=t[10]&&function(e){let n,i;return{c(){n=dn("div"),le(i=dn("general-logout"),"endpoint",e[1]),le(i,"session",e[0]),le(i,"buttonlocation","PlayerAccountMenu"),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3]),gn(n,"class","PlayerAccountLogOutArea")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){2&t[0]&&le(i,"endpoint",e[1]),1&t[0]&&le(i,"session",e[0]),4&t[0]&&le(i,"clientstyling",e[2]),8&t[0]&&le(i,"clientstylingurl",e[3])},d(e){e&&un(n)}}}(t),g=t[5],y=[];for(let e=0;e<g.length;e+=1)y[e]=ar(or(t,g,e));let v=!t[10]&&function(e){let n,i;return{c(){n=dn("div"),le(i=dn("general-logout"),"endpoint",e[1]),le(i,"session",e[0]),le(i,"buttonlocation","PlayerAccountMenu"),le(i,"clientstyling",e[2]),le(i,"clientstylingurl",e[3]),gn(n,"class","PlayerAccountLogOutArea")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){2&t[0]&&le(i,"endpoint",e[1]),1&t[0]&&le(i,"session",e[0]),4&t[0]&&le(i,"clientstyling",e[2]),8&t[0]&&le(i,"clientstylingurl",e[3])},d(e){e&&un(n)}}}(t);return{c(){n=dn("div"),i=dn("div"),m&&m.c(),r=mn(),o=dn("p"),a=hn(t[7]),s=mn(),l=dn("p"),c=hn(t[8]),u=mn(),f&&f.c(),d=mn(),p=dn("div");for(let e=0;e<y.length;e+=1)y[e].c();h=mn(),v&&v.c(),gn(o,"class","PlayerAccountMenuUser"),gn(l,"class","PlayerAccountMenuEmail"),gn(i,"class","PlayerAccountMenuHeader "+(t[10]?"PlayerAccountMenuHeaderMobile":"")),gn(p,"class","PlayerAccountMenuList"),gn(n,"class","PlayerAccountMenuContainer "+(t[10]?"PlayerAccountMobileContainer":"")+" "+(t[11].matches&&t[10]?"PlayerAccountTabletContainer":""))},m(e,t){cn(e,n,t),ln(n,i),m&&m.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),ln(i,l),ln(l,c),ln(i,u),f&&f.m(i,null),ln(n,d),ln(n,p);for(let e=0;e<y.length;e+=1)y[e]&&y[e].m(p,null);ln(n,h),v&&v.m(n,null)},p(t,n){if(t[10]&&m.p(t,n),128&n[0]&&yn(a,t[7]),256&n[0]&&yn(c,t[8]),t[10]&&f.p(t,n),9312&n[0]){let e;for(g=t[5],e=0;e<g.length;e+=1){var i=or(t,g,e);y[e]?y[e].p(i,n):(y[e]=ar(i),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,n)},d(e){e&&un(n),m&&m.d(),f&&f.d(),vn(y,e),v&&v.d()}}}(n);return{c(){i=dn("div"),r.c(),this.c=se},m(e,t){cn(e,i,t),r.m(i,null),n[20](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&un(i),r.d(),n[20](null)}}}function lr(n,e,i){let t;pe(n,ge,e=>i(9,t=e));let r,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"!==ye(g),v="",b="";e=window.matchMedia("(min-width: 768px)");Object.keys(Ki).forEach(e=>{Ji(e,Ki[e])});const w=e=>{if(e.data)switch(e.data.type){case"AccountMenuDetails":i(5,f=e.data.accountMenuInfo);break;case"UserSessionID":i(0,s=e.data.session);break;case"ChangeAccountPage":x()}},_=e=>{window.postMessage({type:"ChangeAccountPage",page:e},window.location.href),i(6,o=e.id)},x=()=>{i(6,o=u)};return he(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),n.$$set=e=>{"endpoint"in e&&i(1,a=e.endpoint),"session"in e&&i(0,s=e.session),"playerid"in e&&i(14,l=e.playerid),"lang"in e&&i(15,c=e.lang),"selecteditem"in e&&i(16,u=e.selecteditem),"userroles"in e&&i(17,d=e.userroles),"clientstyling"in e&&i(2,p=e.clientstyling),"clientstylingurl"in e&&i(3,h=e.clientstylingurl),"translationurl"in e&&i(18,m=e.translationurl)},n.$$.update=()=>{if(32768&n.$$.dirty[0]&&c&&(t=c,fe.set(t)),49155&n.$$.dirty[0]&&a&&s&&l&&c&&((t=new URL(`${a}/player/${l}/profile`)).searchParams.append("userRoles",d),e={method:"GET",headers:{"X-SessionID":s}},fetch(t.href,e).then(e=>e.json()).then(e=>{i(7,v=e.username),i(8,b=e.email)},e=>{console.error(e)})),65536&n.$$.dirty[0]&&u&&x(),24&n.$$.dirty[0]&&h&&r){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;20&n.$$.dirty[0]&&p&&r&&((e=document.createElement("style")).innerHTML=p,r.appendChild(e)),262144&n.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ji(e,t[e])})}).catch(e=>{console.log(e)})},[s,a,p,h,r,f,o,v,b,t,y,e,()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},_,l,c,u,d,m,e=>_(e),function(e){me[e?"unshift":"push"](()=>{r=e,i(4,r)})}]}function cr(e,t,n){e=e.slice();return e[14]=t[n],e}function ur(t){let r,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=dr(cr(t,o,e));return{c(){r=dn("div");for(let e=0;e<a.length;e+=1)a[e].c();gn(r,"class","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":"")),gn(r,"part","PlayerAccountNotificationsContainer "+(t[2]&&t[3].matches?"PlayerAccountNotificationsTabletContainer":t[2]?"PlayerAccountNotificationsMobileContainer":""))},m(e,t){cn(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(2&n){let e;for(o=t[1],e=0;e<o.length;e+=1){var i=cr(t,o,e);a[e]?a[e].p(i,n):(a[e]=dr(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&un(r),vn(a,e)}}}function dr(e){let n,i,r,o,a,s,l,c,u,d,p,h=e[14].title+"",m=e[14].description+"";return{c(){n=dn("div"),i=dn("div"),r=dn("img"),s=mn(),l=dn("p"),c=hn(h),u=mn(),d=dn("p"),p=mn(),gn(r,"class","PlayerAccountNotificationIcon"),_(r.src,o=e[14].icon)||gn(r,"src",o),gn(r,"alt",a=e[14].title),gn(l,"class","PlayerAccountNotificationTitle"),gn(i,"class","PlayerAccountNotificationBoxHeader"),gn(d,"class","PlayerAccountNotificationText"),gn(n,"class","PlayerAccountNotificationBox"),M(n,"background",e[14].backgroundColor)},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(i,s),ln(i,l),ln(l,c),ln(n,u),ln(n,d),d.innerHTML=m,ln(n,p)},p(e,t){2&t&&!_(r.src,o=e[14].icon)&&gn(r,"src",o),2&t&&a!==(a=e[14].title)&&gn(r,"alt",a),2&t&&h!==(h=e[14].title+"")&&yn(c,h),2&t&&m!==(m=e[14].description+"")&&(d.innerHTML=m),2&t&&M(n,"background",e[14].backgroundColor)},d(e){e&&un(n)}}}function pr(n){let i;function r(e){if(e[1].length)return ur}let o=r(n),a=o&&o(n);return{c(){i=dn("div"),a&&a.c(),this.c=se},m(e,t){cn(e,i,t),a&&a.m(i,null),n[7](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a&&a.d(1),(a=o&&o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&un(i),a&&a.d(),n[7](null)}}}function hr(t,e,n){let i,{customnotif:r=""}=e,{clientstyling:o=""}=e,{clientstylingurl:a=""}=e,s=window.navigator.userAgent,l="PC"!==ye(s),c=[],u=[];const d=window.matchMedia("(min-width: 768px)"),p=e=>{e.data&&"NotificationsDetails"===e.data.type&&(n(1,c=e.data.notificationsInfo),c.forEach(e=>{u.length&&(e.backgroundColor=u[0],u.shift())}))},h=()=>{r.replace(" ",""),u=r.split(",")};return he(()=>(window.addEventListener("message",p,!1),()=>{window.removeEventListener("message",p)})),t.$$set=e=>{"customnotif"in e&&n(4,r=e.customnotif),"clientstyling"in e&&n(5,o=e.clientstyling),"clientstylingurl"in e&&n(6,a=e.clientstylingurl)},t.$$.update=()=>{if(16&t.$$.dirty&&r&&h(),2&t.$$.dirty&&c&&h(),65&t.$$.dirty&&a&&i){let e=new URL(a),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;33&t.$$.dirty&&o&&i&&((e=document.createElement("style")).innerHTML=o,i.appendChild(e))},[i,c,l,d,r,o,a,function(e){me[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function mr(e,t){a(e,t)}customElements.get("general-logout")||customElements.define("general-logout",class extends t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},rr,ir,n,{endpoint:6,session:7,buttonlocation:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&cn(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerAccountMenuContainer{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #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-white, #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-white, #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-white, #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-pink-500, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #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-pink-500, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-white, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},lr,sr,n,{endpoint:1,session:0,playerid:14,lang:15,selecteditem:16,userroles:17,clientstyling:2,clientstylingurl:3,translationurl:18},null,[-1,-1]),e&&(e.target&&cn(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 t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},hr,pr,n,{customnotif:4,clientstyling:5,clientstylingurl:6},null),e&&(e.target&&cn(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 fr={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 gr(e,t,n){e=e.slice();return e[21]=t[n].value,e[22]=t[n].text,e}function yr(e){let n,i,t=e[22]+"";return{c(){n=dn("option"),i=hn(t),n.__value=e[21],n.value=n.__value},m(e,t){cn(e,n,t),ln(n,i)},p:se,d(e){e&&un(n)}}}function vr(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,e=n[3]("title")+"",P=n[3]("timeoutTextFirst",{values:{operatorname:n[0]}})+"",E=n[3]("timeoutTextSecondary")+"",A=n[3]("save")+"",T=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","TimeoutTitleMobile"),gn(p,"part","TimeoutTitleMobile"),gn(i,"class","MenuReturnButton"),gn(i,"part","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[12]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),S=n[5],M=[];for(let e=0;e<S.length;e+=1)M[e]=yr(gr(n,S,e));return{c(){i=dn("div"),r=dn("form"),T&&T.c(),o=mn(),a=dn("h2"),s=hn(e),l=mn(),c=dn("div"),u=dn("p"),d=hn(P),p=mn(),h=dn("p"),m=hn(E),f=mn(),g=dn("div"),y=dn("select");for(let e=0;e<M.length;e+=1)M[e].c();v=mn(),b=dn("div"),w=dn("button"),_=hn(A),this.c=se,gn(a,"class","TimeoutTitle "+(n[4]?"TimeoutTitleNone":"")),gn(c,"class","TimeoutDescription "+(n[4]?"TimeoutDescriptionMobile":"")),gn(y,"class","TimeoutSelect "+(n[4]?"TimeoutSelectMobile":"")),void 0===n[2]&&_n(()=>n[13].call(y)),gn(g,"class","TimeoutSelectWrapper"),gn(w,"class","TimeoutSave"),gn(b,"class","TimeoutActionButtons "+(n[4]?"TimeoutActionButtonsMobile":"")),gn(r,"class","TimeoutWrapper "+(n[4]?"TimeoutWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),T&&T.m(r,null),ln(r,o),ln(r,a),ln(a,s),ln(r,l),ln(r,c),ln(c,u),ln(u,d),ln(c,p),ln(c,h),ln(h,m),ln(r,f),ln(r,g),ln(g,y);for(let e=0;e<M.length;e+=1)M[e]&&M[e].m(y,null);wn(y,n[2],!0),ln(r,v),ln(r,b),ln(b,w),ln(w,_),n[15](i),x||(C=[fn(y,"change",n[13]),fn(w,"click",n[14])],x=!0)},p(t,[n]){if(t[4]&&T.p(t,n),8&n&&e!==(e=t[3]("title")+"")&&yn(s,e),9&n&&P!==(P=t[3]("timeoutTextFirst",{values:{operatorname:t[0]}})+"")&&yn(d,P),8&n&&E!==(E=t[3]("timeoutTextSecondary")+"")&&yn(m,E),32&n){let e;for(S=t[5],e=0;e<S.length;e+=1){var i=gr(t,S,e);M[e]?M[e].p(i,n):(M[e]=yr(i),M[e].c(),M[e].m(y,null))}for(;e<M.length;e+=1)M[e].d(1);M.length=S.length}36&n&&wn(y,t[2]),8&n&&A!==(A=t[3]("save")+"")&&yn(_,A)},i:se,o:se,d(e){e&&un(i),T&&T.d(),vn(M,e),n[15](null),x=!1,sn(C)}}}function br(t,e,n){let i;pe(t,ge,e=>n(3,i=e));let r,{operator:o="Everymatrix"}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==ye(u),p=(Object.keys(fr).forEach(e=>{mr(e,fr[e])}),[{value:i("cooloff24"),text:i("cooloff24Text")},{value:i("cooloff7"),text:i("cooloff7Text")},{value:i("cooloff30"),text:i("cooloff30Text")},{value:i("cooloff3"),text:i("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&&n(0,o=e.operator),"lang"in e&&n(8,a=e.lang),"clientstyling"in e&&n(9,s=e.clientstyling),"clientstylingurl"in e&&n(10,l=e.clientstylingurl),"translationurl"in e&&n(11,c=e.translationurl)},t.$$.update=()=>{if(256&t.$$.dirty&&a&&(e=a,fe.set(e)),1026&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;514&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mr(e,t[e])})}).catch(e=>{console.log(e)})},[o,r,h,i,d,p,m,f,a,s,l,c,()=>f(),function(){h=ve(this),n(2,h),n(5,p)},e=>m(e),function(e){me[e?"unshift":"push"](()=>{r=e,n(1,r)})}]}customElements.get("player-account-timeout")||customElements.define("player-account-timeout",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".TimeoutWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.TimeoutTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},br,vr,n,{operator:0,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&cn(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()}});_r=wr={path:void 0,exports:{},require:function(e,t){return Dn(null==t&&wr.path)}},wr.exports,_r.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 O(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(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 n=[],i=e.length,r=0;r<i;++r)n.push(t(e[r],r));return n}function W(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return Dt(e,t,n,i,!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 Y(e){if(null==e._isValid){var t=g(e),n=U.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function j(e){var t=c(NaN);return null!=e?W(g(t),e):g(t).userInvalidated=!0,t}var U=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1},G=m.momentProperties=[],V=!1;function q(e,t){var n,i,r,o=G.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(n=0;n<o;n++)s(r=t[i=G[n]])||(e[i]=r);return e}function X(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof X||null!=e&&null!=e._isAMomentObject}function Z(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,n=[],i=arguments.length,r=0;r<i;r++){if(e="","object"==typeof arguments[r]){for(t in e+="\n["+r+"] ",arguments[0])f(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[r];n.push(e)}Z(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var J={};function K(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),J[e]||(Z(t),J[e]=!0)}function u(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,i=W({},e);for(n in t)f(t,n)&&(O(e[n])&&O(t[n])?(i[n]={},W(i[n],e[n]),W(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)f(e,n)&&!f(t,n)&&O(e[n])&&(i[n]=W({},i[n]));return i}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};function o(e,t,n){var i=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}var ne=/(\[[^\[]*\])|(\\)?([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,ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function i(e,t,n,i){var r="string"==typeof i?function(){return this[i]()}:i;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ae(e,t){return e.isValid()?(t=se(t,e.localeData()),re[t]=re[t]||function(i){for(var e,r=i.match(ne),t=0,o=r.length;t<o;t++)oe[r[t]]?r[t]=oe[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=u(r[n])?r[n].call(e,i):r[n];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(ie.lastIndex=0;0<=n&&ie.test(e);)e=e.replace(ie,i),ie.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ce(e){var t,n,i={};for(n in e)f(e,n)&&(t=d(n))&&(i[t]=e[n]);return i}var ue={};function n(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,n){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,n),this):he(this,t)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(n=h(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),$e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var r=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,be=/\d\d\d\d\d\d?/,we=/\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,b=/[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 w(e,n,i){Se[e]=u(n)?n:function(e,t){return e&&i?i:n}}function Te(e,t){return f(Se,e)?Se[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Se={},Me={};function x(e,n){var t,i,r=n;for("string"==typeof e&&(e=[e]),R(n)&&(r=function(e,t){t[n]=h(e)}),i=e.length,t=0;t<i;t++)Me[e[t]]=r}function ke(e,r){x(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}var C,P=0,E=1,A=2,T=3,S=4,M=5,De=6,Le=7,Be=8;function $e(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?de(e)?29:28:31-n%7%2)}C=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),i("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",v),w("MM",v,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("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,n,i){i=n._locale.monthsParse(e,i,n._strict);null!=i?t[E]=i:g(n).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("_"),Oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=b,Re=b;function He(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=h(t);else if(!R(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}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,n=[],i=[],r=[],o=0;o<12;o++)t=c([2e3,o]),n.push(this.monthsShort(t,"")),i.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(n.sort(e),i.sort(e),r.sort(e),o=0;o<12;o++)n[o]=_(n[o]),i[o]=_(i[o]);for(o=0;o<24;o++)r[o]=_(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ye(e){return de(e)?366:365}i("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",Pe),w("YY",v,y),w("YYYY",_e,ge),w("YYYYY",xe,ye),w("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 je=pe("FullYear",!0);function Ue(e,t,n,i,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,o,a),s}function Ge(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 Ve(e,t,n){n=7+t-n;return-(7+Ge(e,0,n).getUTCDay()-t)%7+n-1}function qe(e,t,n,i,r){var o,t=1+7*(t-1)+(7+n-i)%7+Ve(e,i,r),n=t<=0?Ye(o=e-1)+t:t>Ye(e)?(o=e+1,t-Ye(e)):(o=e,t);return{year:o,dayOfYear:n}}function Xe(e,t,n){var i,r,o=Ve(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?i=o+k(r=e.year()-1,t,n):o>k(e.year(),t,n)?(i=o-k(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function k(e,t,n){var i=Ve(e,t,n),t=Ve(e+1,t,n);return(Ye(e)-i+t)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",v),w("ww",v,y),w("W",v),w("WW",v,y),ke(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=h(e)});function Ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}i("d",0,"do","day"),i("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),i("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),i("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",v),w("e",v),w("E",v),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),ke(["dd","ddd","dddd"],function(e,t,n,i){i=n._locale.weekdaysParse(e,i,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),ke(["d","e","E"],function(e,t,n,i){t[i]=h(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=b,tt=b,nt=b;function it(){function e(e,t){return t.length-e.length}for(var t,n,i,r=[],o=[],a=[],s=[],l=0;l<7;l++)i=c([2e3,1]).day(l),t=_(this.weekdaysMin(i,"")),n=_(this.weekdaysShort(i,"")),i=_(this.weekdays(i,"")),r.push(t),o.push(n),a.push(i),s.push(t),s.push(n),s.push(i);r.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("^("+r.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){i(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,rt),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),i("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("hour",13),w("a",at),w("A",at),w("H",v),w("h",v),w("k",v),w("HH",v,y),w("hh",v,y),w("kk",v,y),w("hmm",ve),w("hmmss",be),w("Hmm",ve),w("Hmmss",be),x(["H","HH"],T),x(["k","kk"],function(e,t,n){e=h(e);t[T]=24===e?0:e}),x(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),x(["h","hh"],function(e,t,n){t[T]=h(e),g(n).bigHour=!0}),x("hmm",function(e,t,n){var i=e.length-2;t[T]=h(e.substr(0,i)),t[S]=h(e.substr(i)),g(n).bigHour=!0}),x("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[T]=h(e.substr(0,i)),t[S]=h(e.substr(i,2)),t[M]=h(e.substr(r)),g(n).bigHour=!0}),x("Hmm",function(e,t,n){var i=e.length-2;t[T]=h(e.substr(0,i)),t[S]=h(e.substr(i))}),x("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[T]=h(e.substr(0,i)),t[S]=h(e.substr(i,2)),t[M]=h(e.substr(r))});b=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:Je,weekdaysMin:Qe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},D={},ct={};function ut(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ut(e[o]).split("-")).length,n=(n=ut(e[o+1]))?n.split("-"):null;0<t;){if(i=pt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i+=1)if(e[i]!==t[i])return i;return n}(r,n)>=t-1)break;t--}o++}return st}function pt(t){var e;if(void 0===D[t]&&_r&&_r.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Dn(),ht(e)}catch(e){D[t]=null}return D[t]}function ht(e,t){return e&&((t=s(t)?L(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 D[e],null;var n,i=lt;if(t.abbr=e,null!=D[e])K("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."),i=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])i=D[t.parentLocale]._config;else{if(null==(n=pt(t.parentLocale)))return ct[t.parentLocale]||(ct[t.parentLocale]=[]),ct[t.parentLocale].push({name:e,config:t}),null;i=n._config}return D[e]=new ee(Q(i,t)),ct[e]&&ct[e].forEach(function(e){mt(e.name,e.config)}),ht(e),D[e]}function L(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]>$e(t[P],t[E])?A:t[T]<0||24<t[T]||24===t[T]&&(0!==t[S]||0!==t[M]||0!==t[De])?T:t[S]<0||59<t[S]?S:t[M]<0||59<t[M]?M:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<P||A<t)&&(t=A),g(e)._overflowWeeks&&-1===t&&(t=Le),g(e)._overflowWeekday&&-1===t&&(t=Be),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)?/,bt=[["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]],wt=[["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,n,i,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=bt.length,c=wt.length;if(l){for(g(e).iso=!0,t=0,n=s;t<n;t++)if(bt[t][1].exec(l[1])){r=bt[t][0],i=!1!==bt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,n=c;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!i&&null!=o)return e._isValid=!1;if(l[4]){if(!vt.exec(l[4]))return e._isValid=!1;a="Z"}e._f=r+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function Et(e,t,n,i,r,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function At(e){var t,n,i,r,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]),n=o[1],i=t,r=e,n&&Ke.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(n=o[8],i=o[9],r=o[10],n?Ct[n]:i?0:((n=parseInt(r,10))-(i=n%100))/100*60+i),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Tt(e,t,n){return null!=e?e:null!=t?t:n}function St(e){var t,n,i,r,o,a,s,l,c,u,d,p=[];if(!e._d){for(u=e,d=new Date(m.now()),n=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,i=Tt(d.GG,u._a[P],Xe(B(),1,4).year),r=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=Xe(B(),a,s),i=Tt(d.gg,u._a[P],c.year),r=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),r<1||r>k(i,a,s)?g(u)._overflowWeeks=!0:null!=l?g(u)._overflowWeekday=!0:(c=qe(i,r,o,a,s),u._a[P]=c.year,u._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(d=Tt(e._a[P],n[P]),(e._dayOfYear>Ye(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ge(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]=n[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[S]&&0===e._a[M]&&0===e._a[De]&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ge:Ue).apply(null,p),i=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!==i&&(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,n,i,r=""+e._i,o=r.length,a=0,s=(n=se(e._f,e._locale).match(ne)||[]).length,l=0;l<s;l++)i=n[l],(t=(r.match(Te(i,e))||[])[0])&&(0<(d=r.substr(0,r.indexOf(t))).length&&g(e).unusedInput.push(d),r=r.slice(r.indexOf(t)+t.length),a+=t.length),oe[i]?(t?g(e).empty=!1:g(e).unusedTokens.push(i),d=i,h=e,null!=(p=t)&&f(Me,d)&&Me[d](p,h._a,h,d)):e._strict&&!t&&g(e).unusedTokens.push(i);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),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])),St(e),ft(e)}else At(e);else Pt(e);var c,u,d,p,h}function kt(e){var t,n=e._i,i=e._f;{var r,o;return(e._locale=e._locale||L(e._l),null===n||void 0===i&&""===n)?j({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new X(ft(n)):(H(n)?e._d=n:a(i)?function(e){var t,n,i,r,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<l;r++)o=0,a=!1,t=q({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Mt(t),Y(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<i&&(i=o,n=t):(null==i||o<i||a)&&(i=o,n=t,a)&&(s=!0);W(e,n||t)}(e):i?Mt(e):s(i=(n=e)._i)?n._d=new Date(m.now()):H(i)?n._d=new Date(i.valueOf()):"string"==typeof i?(r=n,null===(o=_t.exec(r._i))?(Pt(r),!1===r._isValid&&(delete r._isValid,At(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:m.createFromInputFallback(r))):r._d=new Date(+o[1])):a(i)?(n._a=z(i.slice(0),function(e){return parseInt(e,10)}),St(n)):O(i)?(r=n)._d||(t=void 0===(o=ce(r._i)).day?o.date:o.day,r._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),St(r)):R(i)?n._d=new Date(i):m.createFromInputFallback(n),Y(e)||(e._d=null),e))}}function Dt(e,t,n,i,r){var o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(O(e)&&F(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=n,o._i=e,o._f=t,o._strict=i,(r=new X(ft(kt(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function B(e,t,n,i){return Dt(e,t,n,i,!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=B.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:j()}),be=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:j()});function Lt(e,t){var n,i;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return B();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function $t(e){var e=ce(e),t=e.year||0,n=e.quarter||0,i=e.month||0,r=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,n,i=!1,r=Bt.length;for(t in e)if(f(e,t)&&(-1===C.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Bt[n]]){if(i)return!1;parseFloat(e[Bt[n]])!==h(e[Bt[n]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+i+3*n+12*t,this._data={},this._locale=L(),this._bubble()}function It(e){return e instanceof $t}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,n){i(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Ot("Z",":"),Ot("ZZ",""),w("Z",Ae),w("ZZ",Ae),x(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Rt(Ae,e)});var Ft=/([\+\-]|\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(Ft)||["-",0,0])[1]+h(e[2]))?0:"+"===e[0]?t:-t}function Ht(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||H(e)?e:B(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),m.updateOffset(t,!1),t):B(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 Yt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function $(e,t){var n,i,r=e;return It(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:R(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=Yt.exec(e))?(n="-"===t[1]?-1:1,r={y:0,d:h(t[A])*n,h:h(t[T])*n,m:h(t[S])*n,s:h(t[M])*n,ms:h(Nt(1e3*t[De]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,r={y:Ut(t[2],n),M:Ut(t[3],n),w:Ut(t[4],n),d:Ut(t[5],n),h:Ut(t[6],n),m:Ut(t[7],n),s:Ut(t[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=B(r.from),n=B(r.to),t=t.isValid()&&n.isValid()?(n=Ht(n,t),t.isBefore(n)?i=Gt(t,n):((i=Gt(n,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),i=new $t(r),It(e)&&f(e,"_locale")&&(i._locale=e._locale),It(e)&&f(e,"_isValid")&&(i._isValid=e._isValid),i}function Ut(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Gt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(i,r){return function(e,t){var n;return null===t||isNaN(+t)||(K(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),qt(this,$(e,t),i),this}}function qt(e,t,n,i){var r=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(i=null==i||i,t&&He(e,he(e,"Month")+t*n),o&&me(e,"Date",he(e,"Date")+o*n),r&&e._d.setTime(e._d.valueOf()+r*n),i)&&m.updateOffset(e,o||t)}$.fn=$t.prototype,$.invalid=function(){return $(NaN)};Ie=Vt(1,"add"),Je=Vt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Zt(e){return l(e)||H(e)||Xt(e)||R(e)||(n=a(t=e),i=!1,n&&(i=0===t.filter(function(e){return!R(e)&&Xt(t)}).length),n&&i)||function(e){var t,n,i=O(e)&&!F(e),r=!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)n=o[t],r=r||f(e,n);return i&&r}(e)||null==e;var t,n,i}function Jt(e,t){var n,i;return e.date()<t.date()?-Jt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(i=e.clone().add(n,"months"))<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(1+n,"months")-i)))||0}function Kt(e){return void 0===e?this._locale._abbr:(null!=(e=L(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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){for(var e=[],t=[],n=[],i=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),n.push(_(r[o].narrow)),i.push(_(r[o].name)),i.push(_(r[o].abbr)),i.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function sn(e,t){i(0,[e,e.length],0,t)}function ln(e,t,n,i,r){var o;return null==e?Xe(this,i,r).year:(t>(o=k(e,i,r))&&(t=o),function(e,t,n,i,r){e=qe(e,t,n,i,r),t=Ge(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,n,i,r))}i("N",0,0,"eraAbbr"),i("NN",0,0,"eraAbbr"),i("NNN",0,0,"eraAbbr"),i("NNNN",0,0,"eraName"),i("NNNNN",0,0,"eraNarrow"),i("y",["y",1],"yo","eraYear"),i("y",["yy",2],0,"eraYear"),i("y",["yyy",3],0,"eraYear"),i("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),x(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){i=n._locale.erasParse(e,i,n._strict);i?g(n).era=i:g(n).invalidEra=e}),w("y",Ce),w("yy",Ce),w("yyy",Ce),w("yyyy",Ce),w("yo",function(e,t){return t._eraYearOrdinalRegex||Ce}),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[P]=n._locale.eraYearOrdinalParse(e,r):t[P]=parseInt(e,10)}),i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",Pe),w("g",Pe),w("GG",v,y),w("gg",v,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",xe,ye),w("ggggg",xe,ye),ke(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=h(e)}),ke(["gg","GG"],function(e,t,n,i){t[i]=m.parseTwoDigitYear(e)}),i("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",r),x("Q",function(e,t){t[E]=3*(h(e)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",v),w("DD",v,y),w("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);i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",fe),x(["DDD","DDDD"],function(e,t,n){n._dayOfYear=h(e)}),i("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",v),w("mm",v,y),x(["m","mm"],S);ge=pe("Minutes",!1);i("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",v),w("ss",v,y),x(["s","ss"],M);var cn,xe=pe("Seconds",!1);for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,r),w("SS",we,y),w("SSS",we,fe),cn="SSSS";cn.length<=9;cn+="S")w(cn,Ce);function un(e,t){t[De]=h(1e3*("0."+e))}for(cn="S";cn.length<=9;cn+="S")x(cn,un);ye=pe("Milliseconds",!1),i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");r=X.prototype;function dn(e){return e}r.add=Ie,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=O(e)&&!F(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<i.length;r+=1)n=n||f(e,i[r]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||B(),n=Ht(e,this).startOf("day"),n=m.calendarFormat(this,n)||"sameElse",t=t&&(u(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,B(e)))},r.clone=function(){return new X(this)},r.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Ht(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Jt(this,i)/12;break;case"month":o=Jt(this,i);break;case"quarter":o=Jt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:p(o)},r.endOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),m.updateOffset(this,!0)}return this},r.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?$({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(B(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?$({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(B(),e)},r.get=function(e){return u(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},r.isBefore=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=d(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},r.isBetween=function(e,t,n,i){return e=l(e)?e:B(e),t=l(t)?t:B(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},r.isSame=function(e,t){var e=l(e)?e:B(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()))},r.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},r.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},r.isValid=function(){return Y(this)},r.lang=Qe,r.locale=Kt,r.localeData=Qt,r.max=be,r.min=ve,r.parsingFlags=function(){return W({},g(this))},r.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)f(e,t)&&n.push({unit:t,priority:ue[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ce(e)),i=n.length,r=0;r<i;r++)this[n[r].unit](e[n[r].unit]);else if(u(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,n;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),m.updateOffset(this,!0)}return this},r.subtract=Je,r.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},r.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.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},r.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},r.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},r.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;n<i;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},r.eraYear=function(){for(var e,t,n=this.localeData().eras(),i=0,r=n.length;i<r;++i)if(e=n[i].since<=n[i].until?1:-1,t=this.clone().startOf("day").valueOf(),n[i].since<=t&&t<=n[i].until||n[i].until<=t&&t<=n[i].since)return(this.year()-m(n[i].since).year())*e+n[i].offset;return this.year()},r.year=je,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},r.quarter=r.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},r.month=ze,r.daysInMonth=function(){return $e(this.year(),this.month())},r.week=r.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},r.isoWeek=r.isoWeeks=function(e){var t=Xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return k(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return k(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return k(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return k(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){var t,n,i;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,i=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},r.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},r.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},r.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")},r.hour=r.hours=b,r.minute=r.minutes=ge,r.second=r.seconds=xe,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:zt(this);if("string"==typeof e){if(null===(e=Rt(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=zt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?qt(this,$(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},r.utc=function(e){return this.utcOffset(0,e)},r.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(zt(this),"m"),this},r.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},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?B(e).utcOffset():0,(this.utcOffset()-e)%60==0)},r.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},r.isLocal=function(){return!!this.isValid()&&!this._isUTC},r.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},r.isUtc=Wt,r.isUTC=Wt,r.zoneAbbr=function(){return this._isUTC?"UTC":""},r.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},r.dates=e("dates accessor is deprecated. Use date instead.",_e),r.months=e("months accessor is deprecated. Use month instead",ze),r.years=e("years accessor is deprecated. Use year instead",je),r.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()}),r.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=kt(t))._a?(e=(t._isUTC?c:B)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<i;a++)(n&&e[a]!==t[a]||!n&&h(e[a])!==h(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function pn(e,t,n,i){var r=L(),i=c().set(i,t);return r[n](i,e)}function hn(e,t,n){if(R(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");for(var i=[],r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function mn(e,t,n,i){t=("boolean"==typeof e||(n=t=e,e=!1),R(t)&&(n=t,t=void 0),t||"");var r,o=L(),a=e?o._week.dow:0,s=[];if(null!=n)return pn(t,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=pn(t,(r+a)%7,i,"day");return s}y.calendar=function(e,t,n){return u(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=dn,y.postformat=dn,y.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return u(r)?r(e,t,n,i):r.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,n;for(n in e)f(e,n)&&(u(t=e[n])?this[n]=t:this["_"+n]=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 n,i=this._eras||L("en")._eras,r=0,o=i.length;r<o;++r)switch("string"==typeof i[r].since&&(n=m(i[r].since).startOf("day"),i[r].since=n.valueOf()),typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":n=m(i[r].until).startOf("day").valueOf(),i[r].until=n.valueOf()}return i},y.erasParse=function(e,t,n){var i,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[i];break;case"NNNN":if(o===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if(0<=[o,a,s].indexOf(e))return l[i]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Oe).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[Oe.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var i,r;if(this._monthsParseExact)return function(e,t,n){var i,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=C.call(this._shortMonthsParse,e))||-1!==(r=C.call(this._longMonthsParse,e))?r:null:-1!==(r=C.call(this._longMonthsParse,e))||-1!==(r=C.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},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=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Xe(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?Ze(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,n){var i,r;if(this._weekdaysParseExact)return function(e,t,n){var i,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=C.call(this._shortWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._minWeekdaysParse,e))?r:null:-1!==(r=C.call(this._minWeekdaysParse,e))||-1!==(r=C.call(this._weekdaysParse,e))||-1!==(r=C.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||it.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")||it.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")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"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.",L);var fn=Math.abs;function gn(e,t,n,i){t=$(t,n);return e._milliseconds+=i*t._milliseconds,e._days+=i*t._days,e._months+=i*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),fe=wn("s"),Ie=wn("m"),be=wn("h"),ve=wn("d"),Je=wn("w"),b=wn("M"),ge=wn("Q"),xe=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),je=_n("minutes"),y=_n("hours"),xn=_n("days"),Cn=_n("months"),Pn=_n("years");var En=Math.round,An={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tn(e,t,n,i){var r=$(e).abs(),o=En(r.as("s")),a=En(r.as("m")),s=En(r.as("h")),l=En(r.as("d")),c=En(r.as("M")),u=En(r.as("w")),r=En(r.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||(a<=1?["m"]:a<n.m&&["mm",a])||(s<=1?["h"]:s<n.h&&["hh",s])||(l<=1?["d"]:l<n.d&&["dd",l]);return(o=(o=null!=n.w?o||(u<=1?["w"]:u<n.w&&["ww",u]):o)||(c<=1?["M"]:c<n.M&&["MM",c])||(r<=1?["y"]:["yy",r]))[2]=t,o[3]=0<+e,o[4]=i,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,o)}var Sn=Math.abs;function Mn(e){return(0<e)-(e<0)||+e}function kn(){var e,t,n,i,r,o,a,s,l,c,u;return this.isValid()?(s=Sn(this._milliseconds)/1e3,l=Sn(this._days),c=Sn(this._months),(u=this.asSeconds())?(e=p(s/60),t=p(e/60),s%=60,e%=60,n=p(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Mn(this._months)!==Mn(u)?"-":"",o=Mn(this._days)!==Mn(u)?"-":"",a=Mn(this._milliseconds)!==Mn(u)?"-":"",(u<0?"-":"")+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+i+"S":"")):"P0D"):this.localeData().invalidDate()}var I=$t.prototype;return I.isValid=function(){return this._isValid},I.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},I.add=function(e,t){return gn(this,e,t,1)},I.subtract=function(e,t){return gn(this,e,t,-1)},I.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},I.asMilliseconds=we,I.asSeconds=fe,I.asMinutes=Ie,I.asHours=be,I.asDays=ve,I.asWeeks=Je,I.asMonths=b,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,n=this._months,i=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(bn(n)+t),n=t=0),i.milliseconds=e%1e3,e=p(e/1e3),i.seconds=e%60,e=p(e/60),i.minutes=e%60,e=p(e/60),i.hours=e%24,t+=p(e/24),n+=e=p(vn(t)),t-=yn(bn(e)),e=p(n/12),n%=12,i.days=t,i.months=n,i.years=e,this},I.clone=function(){return $(this)},I.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},I.milliseconds=ye,I.seconds=_e,I.minutes=je,I.hours=y,I.days=xn,I.weeks=function(){return p(this.days()/7)},I.months=Cn,I.years=Pn,I.humanize=function(e,t){var n,i;return this.isValid()?(n=!1,i=An,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},An,t),null!=t.s)&&null==t.ss&&(i.ss=t.s-1),t=Tn(this,!n,i,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},I.toISOString=kn,I.toString=kn,I.toJSON=kn,I.locale=Kt,I.localeData=Qt,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),I.lang=Qe,i("X",0,0,"unix"),i("x",0,0,"valueOf"),w("x",Pe),w("X",/[+-]?\d+(\.\d{1,3})?/),x("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),x("x",function(e,t,n){n._d=new Date(h(e))}),m.version="2.29.4",N=B,m.fn=r,m.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=c,m.unix=function(e){return B(1e3*e)},m.months=function(e,t){return hn(e,t,"months")},m.isDate=H,m.locale=ht,m.invalid=j,m.duration=$,m.isMoment=l,m.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},m.parseZone=function(){return B.apply(null,arguments).parseZone()},m.localeData=L,m.isDuration=It,m.monthsShort=function(e,t){return hn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var n,i;return null!=t?(i=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(i=null!=(n=pt(e))?n._config:i,t),null==n&&(t.abbr=e),(i=new ee(t)).parentLocale=D[e],D[e]=i),ht(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===ht()&&ht(e)):null!=D[e]&&delete D[e]),D[e]},m.locales=function(){return te(D)},m.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},m.normalizeUnits=d,m.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==An[e]&&(void 0===t?An[e]:(An[e]=t,"s"===e&&(An.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=r,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 wr,_r,W=wr.exports;function xr(e,t){a(e,t)}const Cr={en:{title:"Self-Exclusion",selfExclusionText1:"We recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".',selfExclusionText3:"During self-exclusion you will not be able to access your account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:",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."}};class Pr extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Pr);let Er,Ar=null,Tr=window.HTMLImports&&window.HTMLImports.whenReady||null;function Sr(e){requestAnimationFrame(function(){Tr?Tr(e):(Ar||(Ar=new Promise(e=>{Er=e}),"complete"===document.readyState?Er():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&Er()})),Ar.then(function(){e&&e()}))})}const Mr="__seenByShadyCSS",kr="__shadyCSSCachedStyle";let Dr=null,Lr=null;class Br{constructor(){this.customStyles=[],this.enqueued=!1,Sr(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&Lr&&(this.enqueued=!0,Sr(Lr))}addCustomStyle(e){e[Mr]||(e[Mr]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){return e[kr]||(e.getStyle?e.getStyle():e)}processStyles(){const t=this.customStyles;for(let e=0;e<t.length;e++){var n=t[e];if(!n[kr]){var i=this.getStyleForCustomStyle(n);if(i){const t=i.__appliedElement||i;Dr&&Dr(t),n[kr]=t}}}return t}}Object.defineProperties(Br.prototype,{transformCallback:{get:()=>Dr,set(e){Dr=e}},validateCallback:{get:()=>Lr,set(e){let t=!1;Lr||(t=!0),Lr=e,t&&this.enqueueDocumentValidation()}}});const $r=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ir=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Nr=/@media\s(.*)/;function Or(e,t){for(var n in t)null===n?e.style.removeProperty(n):e.style.setProperty(n,t[n])}function Fr(e,t){e=window.getComputedStyle(e).getPropertyValue(t);return e?e.trim():""}const Rr=!(window.ShadyDOM&&window.ShadyDOM.inUse);let Hr,zr;function Wr(e){Hr=(!e||!e.shimcssproperties)&&(Rr||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(zr=window.ShadyCSS.cssBuild);Ln=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Hr=window.ShadyCSS.nativeCss:window.ShadyCSS?(Wr(window.ShadyCSS),window.ShadyCSS=void 0):Wr(window.WebComponents&&window.WebComponents.flags);const Yr=Hr,jr=new Br;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,n){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,n){},styleSubtree(e,t){jr.processStyles(),Or(e,t)},styleElement(e){jr.processStyles()},styleDocument(e){jr.processStyles(),Or(document.body,e)},getComputedStyleValue:(e,t)=>Fr(e,t),flushCustomStyles(){},nativeCss:Yr,nativeShadow:Rr,cssBuild:zr,disableRuntime:Ln}),window.ShadyCSS.CustomStyleInterface=jr,window.JSCompiler_renameProperty=function(e,t){return e};let Ur,Gr,Vr=/(url\()([^)]*)(\))/g,qr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Xr(e,t){if(e&&qr.test(e))return e;if("//"===e)return e;if(void 0===Ur){Ur=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ur="http://a/c%20d"===e.href}catch(e){}}if(t=t||document.baseURI||window.location.href,Ur)try{return new URL(e,t).href}catch(t){return e}return Gr||((Gr=document.implementation.createHTMLDocument("temp")).base=Gr.createElement("base"),Gr.head.appendChild(Gr.base),Gr.anchor=Gr.createElement("a"),Gr.body.appendChild(Gr.anchor)),Gr.base.href=t,Gr.anchor.href=e,Gr.anchor.href||e}function Zr(e,r){return e.replace(Vr,function(e,t,n,i){return t+"'"+Xr(n.replace(/["']/g,""),r)+"'"+i})}function Jr(e){return e.substring(0,e.lastIndexOf("/")+1)}const Kr=!window.ShadyDOM||!window.ShadyDOM.inUse,Qr=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Kr&&"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 eo=window.Polymer&&window.Polymer.rootPath||Jr(document.baseURI||window.location.href),to=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,no=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,io=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ro=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,oo=window.Polymer&&window.Polymer.legacyOptimizations||!1,ao=window.Polymer&&window.Polymer.legacyWarnings||!1,so=window.Polymer&&window.Polymer.syncInitialRender||!1,lo=window.Polymer&&window.Polymer.legacyUndefined||!1,co=window.Polymer&&window.Polymer.orderedComputed||!1,uo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,po=window.Polymer&&window.Polymer.fastDomIf||!1,ho=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,mo=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,fo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,go={},yo={};function vo(e,t){go[e]=yo[e.toLowerCase()]=t}function bo(e){return go[e]||yo[e.toLowerCase()]}class wo extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){return e?(e=bo(e))&&t?e.querySelector(t):e:null}attributeChangedCallback(e,t,n,i){t!==n&&this.register()}get assetpath(){var e;return this.__assetpath||(e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Xr(this.getAttribute("assetpath")||"",e.baseURI),this.__assetpath=Jr(e)),this.__assetpath}register(e){if(e=e||this.id){if(io&&void 0!==bo(e))throw vo(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);vo(this.id=e,this),this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}}}wo.prototype.modules=go,customElements.define("dom-module",wo);const _o="link[rel=import][type~=css]",xo="include",Co="shady-unscoped";function Po(e){return wo.import(e)}function Eo(e){var e=Zr((e.body||e).textContent,e.baseURI),t=document.createElement("style");return t.textContent=e,t}function Ao(e){var t=e.trim().split(/\s+/),n=[];for(let e=0;e<t.length;e++)n.push(...function(e){var t=Po(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...So(t));var n=t.querySelector("template");n&&e.push(...To(n,t.assetpath)),t._styles=e}return t._styles}(t[e]));return n}function To(e,t){if(!e._styles){var n=[],i=e.content.querySelectorAll("style");for(let e=0;e<i.length;e++){var r=i[e],o=r.getAttribute(xo);o&&n.push(...Ao(o).filter(function(e,t,n){return n.indexOf(e)===t})),t&&(r.textContent=Zr(r.textContent,t)),n.push(r)}e._styles=n}return e._styles}function So(t){const n=[],i=t.querySelectorAll(_o);for(let e=0;e<i.length;e++){var r=i[e];if(r.import){const t=r.import,i=r.hasAttribute(Co);if(i&&!t._unscopedStyle){const n=Eo(t);n.setAttribute(Co,""),t._unscopedStyle=n}else t._style||(t._style=Eo(t));n.push(i?t._unscopedStyle:t._style)}}return n}const Mo="include",ko=window.ShadyCSS.CustomStyleInterface;class Do extends HTMLElement{constructor(){super(),this._style=null,ko.addCustomStyle(this)}getStyle(){if(!this._style){var e=this.querySelector("style");if(!e)return null;var i=(this._style=e).getAttribute(Mo);i&&(e.removeAttribute(Mo),e.textContent=function(){let t=i.trim().split(/\s+/),n="";for(let e=0;e<t.length;e++)n+=function(e){var o=Po(e);if(o&&void 0===o._cssText){let e=function(){let t="",n=So(o);for(let e=0;e<n.length;e++)t+=n[e].textContent;return t}(),r=o.querySelector("template");r&&(e+=function(){let t="";var n=To(r,o.assetpath);for(let e=0;e<n.length;e++){var i=n[e];i.parentNode&&i.parentNode.removeChild(i),t+=i.textContent}return t}()),o._cssText=e||null}return o||console.warn("Could not find style data in module named",e),o&&o._cssText||""}(t[e]);return n}()+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this)}return this._style}}window.customElements.define("custom-style",Do);Bn=document.createElement("template"),Bn.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Bn.content),$n=document.createElement("template"),$n.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild($n.content),In=document.createElement("template"),In.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(In.content),Nn=document.createElement("template"),Nn.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Nn.content),Fn=document.createElement("template"),Fn.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(Fn.content),e=document.createElement("template"),e.innerHTML='<dom-module id="lumo-overlay">\n <template>\n <style>\n :host {\n top: var(--lumo-space-m);\n right: var(--lumo-space-m);\n bottom: var(--lumo-space-m);\n left: var(--lumo-space-m);\n /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */\n /* stylelint-disable-next-line */\n outline: 0px solid transparent;\n }\n\n [part="overlay"] {\n background-color: var(--lumo-base-color);\n background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));\n border-radius: var(--lumo-border-radius-m);\n box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);\n color: var(--lumo-body-text-color);\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size-m);\n font-weight: 400;\n line-height: var(--lumo-line-height-m);\n letter-spacing: 0;\n text-transform: none;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n [part="content"] {\n padding: var(--lumo-space-xs);\n }\n\n [part="backdrop"] {\n background-color: var(--lumo-shade-20pct);\n animation: 0.2s lumo-overlay-backdrop-enter both;\n will-change: opacity;\n }\n\n @keyframes lumo-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n\n :host([closing]) [part="backdrop"] {\n animation: 0.2s lumo-overlay-backdrop-exit both;\n }\n\n @keyframes lumo-overlay-backdrop-exit {\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes lumo-overlay-dummy-animation {\n 0% { opacity: 1; }\n 100% { opacity: 1; }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(e.content),Bn=document.createElement("template");Bn.innerHTML='<dom-module id="lumo-menu-overlay-core">\n <template>\n <style>\n :host([opening]),\n :host([closing]) {\n animation: 0.14s lumo-overlay-dummy-animation;\n }\n\n [part="overlay"] {\n will-change: opacity, transform;\n }\n\n :host([opening]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-enter ease-out both;\n }\n\n @keyframes lumo-menu-overlay-enter {\n 0% {\n opacity: 0;\n transform: translateY(-4px);\n }\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.1s lumo-menu-overlay-exit both;\n }\n\n @keyframes lumo-menu-overlay-exit {\n 100% {\n opacity: 0;\n }\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-menu-overlay">\n <template>\n <style include="lumo-overlay lumo-menu-overlay-core">\n /* Small viewport (bottom sheet) styles */\n /* Use direct media queries instead of the state attributes (`[phone]` and `[fullscreen]`) provided by the elements */\n @media (max-width: 420px), (max-height: 420px) {\n :host {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;\n left: 0 !important;\n align-items: stretch !important;\n justify-content: flex-end !important;\n }\n\n [part="overlay"] {\n max-height: 50vh;\n width: 100vw;\n border-radius: 0;\n box-shadow: var(--lumo-box-shadow-xl);\n }\n\n /* The content part scrolls instead of the overlay part, because of the gradient fade-out */\n [part="content"] {\n padding: 30px var(--lumo-space-m);\n max-height: inherit;\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);\n }\n\n [part="backdrop"] {\n display: block;\n }\n\n /* Animations */\n\n :host([opening]) [part="overlay"] {\n animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(.215, .61, .355, 1) both;\n }\n\n :host([closing]),\n :host([closing]) [part="backdrop"] {\n animation-delay: 0.14s;\n }\n\n :host([closing]) [part="overlay"] {\n animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(.55, .055, .675, .19) both;\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-enter {\n 0% {\n transform: translateY(150%);\n }\n }\n\n @keyframes lumo-mobile-menu-overlay-exit {\n 100% {\n transform: translateY(150%);\n }\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Bn.content);const Lo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});function Bo(e){throw class{},new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function $o(i,...e){Io(i,e);var t=document.createElement("template");let n=e.reduce((e,t,n)=>e+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(!1)return Bo(e);throw new Error("non-template value passed to Polymer's html function: "+e)}(t)+i[n+1],i[0]);return Lo&&(n=Lo.createHTML(n)),t.innerHTML=n,t}const Io=(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")},No=$o`<dom-module id="lumo-date-picker-overlay" theme-for="vaadin-date-picker-overlay">
4
4
  <template>
5
5
  <style include="lumo-menu-overlay">
6
6
  [part="overlay"] {
@@ -322,7 +322,7 @@
322
322
  }
323
323
  </style>
324
324
  </template>
325
- </dom-module>`;document.head.appendChild($n.content);let Oo=0;function Fo(r){let o=r.__mixinApplications,a=(o||(o=new WeakMap,r.__mixinApplications=o),Oo++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let n=o,i=n.get(e);return i||(i=r(e),n.set(e,i),(e=Object.create(i.__mixinSet||t||null))[a]=!0,i.__mixinSet=e),i}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Ro(e){return 0<=e.indexOf(".")}function Ho(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function zo(e,t){return 0===e.indexOf(t+".")}function Wo(e,t){return 0===t.indexOf(e+".")}function Yo(e,t,n){return t+n.slice(e.length)}function jo(t){if(Array.isArray(t)){var n=[];for(let e=0;e<t.length;e++){var i=t[e].toString().split(".");for(let e=0;e<i.length;e++)n.push(i[e])}return n.join(".")}return t}function Uo(e){return(Array.isArray(e)?jo(e):e.toString()).split(".")}function Go(e,t,n){let i=e,r=Uo(t);for(let e=0;e<r.length;e++){if(!i)return;i=i[r[e]]}return n&&(n.path=r.join(".")),i}function Vo(e,t,n){let i=e,r=Uo(t),o=r[r.length-1];if(1<r.length){for(let e=0;e<r.length-1;e++)if(!(i=i[r[e]]))return;i[o]=n}else i[t]=n;return r.join(".")}const qo={},Xo=/-[a-z]/g,Zo=/([A-Z])/g;function Jo(e){return qo[e]||(qo[e]=e.indexOf("-")<0?e:e.replace(Xo,e=>e[1].toUpperCase()))}function Ko(e){return qo[e]||(qo[e]=e.replace(Zo,"-$1").toLowerCase())}let Qo=0,ea=0,ta=[],na=0,ia=!1,ra=document.createTextNode("");new window.MutationObserver(function(){ia=!1;var t=ta.length;for(let e=0;e<t;e++){var n=ta[e];if(n)try{n()}catch(t){setTimeout(()=>{throw t})}}ta.splice(0,t),ea+=t}).observe(ra,{characterData:!0});const oa={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)}},aa={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},sa={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},la={run:e=>(ia||(ia=!0,ra.textContent=na++),ta.push(e),Qo++),cancel(e){var t=e-ea;if(0<=t){if(!ta[t])throw new Error("invalid async handle: "+e);ta[t]=null}}},ca=la,ua=Fo(e=>class extends e{static createProperties(e){var t,n=this.prototype;for(t in e)t in n||n._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,n){var i=this.__data[e],r=this._shouldPropertyChange(e,t,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=i),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ca.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,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,i){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,i)}_attributeToProperty(e,t,n){var i;this.__serializing||(this[i=(i=this.__dataAttributes)&&i[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(i)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=b(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===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}}}),da={};let pa=HTMLElement.prototype;for(;pa;){var ha=Object.getOwnPropertyNames(pa);for(let e=0;e<ha.length;e++)da[ha[e]]=!0;pa=Object.getPrototypeOf(pa)}const ma=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,fa=Fo(e=>{return class extends ua(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Jo(t[e]))}static attributeNameForProperty(e){return Ko(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(ma(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,i,r;n=this,i=e,da[i]||void 0!==(r=n[i])&&(n.__data?n._setPendingProperty(i,r):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[i]=r)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),ga={"dom-if":!0,"dom-repeat":!0};let ya=!1,va=!1;const ba=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);i&&n.startsWith("on-")?e.setAttribute(n,i.createScript(t,n)):e.setAttribute(n,t)}})();const wa=Fo(e=>class extends e{static _parseTemplate(e,t){var n;return e._templateInfo||((n=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let i=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,t,n)||i,e=r,ya||(ya=!0,(o=document.createElement("textarea")).placeholder="a",va=o.placeholder===o.textContent),va&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),r.firstChild&&this._parseTemplateChildNodes(r,t,n),(i=r.hasAttributes&&r.hasAttributes()?this._parseTemplateNodeAttributes(r,t,n)||i:i)||n.noted;var o}static _parseTemplateChildNodes(i,r,o){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,e=0;n;n=t){if("template"==n.localName&&(n=function(e){let t=e.getAttribute("is");if(t&&ga[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const t=n.attributes[0]["name"];ba(e,n,t),n.removeAttribute(t)}}return e}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,i.removeChild(e),e=t;if(r.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(n,r,a)&&(a.infoIndex=r.nodeInfoList.push(a)-1),n.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,n){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=t,!0}static _parseTemplateNodeAttributes(n,i,r){let o=!1,a=Array.from(n.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(n,i,r,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,n,i,r){return"on-"===i.slice(0,3)?(e.removeAttribute(i),n.events=n.events||[],n.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(n.id=r,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,i){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var r,o,a=(i=i||this.constructor._parseTemplate(e)).nodeInfoList,e=i.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!i.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++){var c=l[t]=function e(t,n){var i=n.parentInfo&&e(t,n.parentInfo);if(!i)return t;for(let e=i.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(s,e),u=(r=s.$,o=c,(p=e).id&&(r[p.id]=o),r=c,p=e,o=i,p.templateInfo&&(r._templateInfo=p.templateInfo,r._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,n=p.events;t<n.length&&(e=n[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,n,i){function r(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=i=i||e,a=n,o=o._methodHost||o;return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let _a=0;const xa=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ca="__computeInfo",Pa=/[A-Z]/;function Ea(e,t,n){let i=e[t];if(i){if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),n))for(var r in i){var o=i[r],a=i[r]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else i=e[t]={};return i}function Ta(r,e,o,a,s,l){if(e){let i=!1;var c,u=_a++;for(c in o){var d=e[s?Ho(c):c];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!Aa(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(r,c,o,a,e.info,s,l),i=!0)}return i}}function Aa(e,t){var n;return!t||(n=t.name)==e||t.structured&&zo(n,e)||t.wildcard&&Wo(n,e)}function Sa(e,t,n,i,r){var o="string"==typeof r.method?e[r.method]:r.method,a=r.property;o?o.call(e,e.__data[a],i[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ma(e,t,n,i){n={value:n,queueProperty:!0};i&&(n.path=i),b(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function ka(e,t,n,i,r,o){let a=(o?Ho(t):t)!=t?t:null,s=a?Go(e,a):e.__data[t];a&&void 0===s&&(s=n[t]),Ma(e,r.eventName,s,a)}function Da(e,t,n,i,r){let o=e.__data[t];to&&(o=to(o,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,o)}const La=(e,t,n)=>{let i=0,r=t.length-1,o=-1;for(;i<=r;){var a=i+r>>1,s=n.get(t[a].methodInfo)-n.get(e.methodInfo);if(s<0)i=1+a;else{if(!(0<s)){o=a;break}r=a-1}}o<0&&(o=r+1),t.splice(o,0,e)},Ba=(t,e,n,i,r)=>{var o=e[r?Ho(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===_a||r&&!Aa(t,a.trigger)||(a.info.lastRun=_a,La(a.info,n,i))}};function $a(e,t,n,i,r){t=Ra(e,t,n,0,r);return t!==xa&&(n=r.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1))}function Ia(t,n,e,i,r,o,a){e.bindings=e.bindings||[];var s={kind:i,target:r,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),i=s,Boolean(i.target)&&"attribute"!=i.kind&&"text"!=i.kind&&!i.isCompound&&"{"===i.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||Ko(r)+"-changed",s.listenerNegate=o),n.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=n,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=Ga(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Na,info:g,trigger:e})}}}}function Na(e,t,n,i,r,o,a){var s,a=a[r.index],l=r.binding,c=r.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=n[t],t=Yo(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=r.evaluator._evaluateBinding(e,c,t,n,i,o))!==xa&&(r=e,t=c,i=n=a,e=o=s,(a=c=l).isCompound&&((l=i.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===i.localName||"textarea"===i.localName))&&null==e?"":e,to&&(o=to(o,c.target,c.kind,n)),"attribute"==c.kind?r._valueToNodeAttribute(n,o,c.target):(t=c.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[t]?n[C.READ_ONLY]&&n[C.READ_ONLY][t]||n._setPendingProperty(t,o)&&r._enqueueClient(n):r._setUnmanagedPropertyToNode(n,t,o)))}function Oa(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(i){{var r=c,o=u.target,a=l.source,s=l.negate;let e,t=i.detail,n=t&&t.path;e=n?(a=Yo(o,a,n),t&&t.value):i.currentTarget[o],e=s?!e:e,r[C.READ_ONLY]&&r[C.READ_ONLY][a]||!r._setPendingPropertyOrPath(a,e,!0,Boolean(n))||t&&t.queueProperty||r._invalidateProperties()}})}}function Fa(n,i,r,o,e,t){t=i.static||t&&("object"!=typeof t||t[i.methodName]);var a={methodName:i.methodName,args:i.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<i.args.length&&(e=i.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,r,{fn:o,info:a,trigger:e});return t&&n._addPropertyEffect(i.methodName,r,{fn:o,info:a}),a}function Ra(e,t,n,i,r){var o=e._methodHost||e,a=o[r.methodName];if(a)return(e=e._marshalArgs(r.args,t,n))===xa?xa:a.apply(o,e);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Ha=[],za="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Wa="(?:("+za+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ya=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+za+"\\s*(?:\\(\\s*(?:(?:"+Wa+"(?:,\\s*"+Wa+")*)?)\\)\\s*)?)(?:]]|}})","g");function ja(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Ua(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Ha},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ga(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Ga(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},i=t[0];switch(i="0"<=(i="-"===i?t[1]:i)&&i<="9"?"#":i){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Ho(t),n.structured=Ro(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard)&&(n.name=t.slice(0,-2))),n}function Va(e,t,n){let i=Go(e,n);return i=void 0===i?t[n]:i}function qa(e,t,n,i){i={indexSplices:i};lo&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),lo&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Xa(e,t,n,i,r,o){qa(e,t,n,[{index:i,addedCount:r,removed:o,object:t,type:"splice"}])}const Za=Fo(e=>{const c=wa(fa(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;Ja.length&&((e=Ja[Ja.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,n=this[C.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==C.READ_ONLY);let i=Ea(this,t,!0)[e];(i=i||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){t=Ea(this,t,!0)[e],e=t.indexOf(n);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,n,i){if(i||Ho(Array.isArray(e)?e[0]:e)!==e){if(!i){i=Go(this,e);if(!(e=Vo(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{var r=this;var o=e;var a=t;var s=r.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];Wo(l,o)?(e=Yo(l,c,o),r._setPendingPropertyOrPath(e,a,!0,!0)):Wo(c,o)&&(e=Yo(c,l,o),r._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?b(e):e)[t]=n)}_setPendingProperty(e,t,n){var i=this.__dataHasPaths&&Ro(e),r=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),i?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(i||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!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 n=t[e];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,r,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),n=r,i=o,d=u,p=t[C.COMPUTE];if(p)if(co){_a++;var h,m,f=function(r){let o=r.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=r[C.COMPUTE];let e,{counts:t,ready:n,total:i}=function(e){const t=e[Ca],n={},i=e[C.COMPUTE],r=[];let o=0;for(var a in t){const i=t[a];o+=n[a]=i.args.filter(e=>!e.literal).length+(i.dynamicFn?1:0)}for(var s in i)t[s]||r.push(s);return{counts:n,ready:r,total:o}}(r);for(;e=n.shift();){o.set(e,o.size);const r=a[e];r&&r.forEach(e=>{e=e.info.methodInfo;--i,0==--t[e]&&n.push(e)})}if(0!==i){const o=r;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}r.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in n)Ba(h,p,g,f,d);for(;m=g.shift();)$a(t,"",n,0,m)&&Ba(m.methodInfo,p,g,f,d);Object.assign(i,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;Ta(t,p,e,i,d);)Object.assign(i,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,o,u),this._flushClients(),Ta(this,this[C.REFLECT],r,o,u),Ta(this,this[C.OBSERVE],r,o,u),a){var y=this,v=a,b=r,w=o,_=u,x;let e,t,n=y[C.NOTIFY],i=_a++;for(x in v)v[x]&&(n&&function(i,e,r,o,a,s,l,c){let u=!1,d=e[l?Ho(o):o];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===r||l&&!Aa(o,e.trigger)||(e.info&&(e.info.lastRun=r),e.fn(i,o,a,s,e.info,l,c),u=!0);return u}(y,n,i,x,b,w,_)||_&&(s=y,x=x,l=b,c=void 0,c=Ho(x),c!==x)&&(Ma(s,Ko(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[C.PROPAGATE]&&Ta(this,this[C.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(i,e,r,t){var n=(t,n)=>{Ta(this,i.propertyEffects,t,r,n,i.nodeList);for(let e=i.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,r,n)};i.runEffects?i.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=jo(e),t=jo(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=jo(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};qa(this,Go(this,e,n),n.path,t)}get(e,t){return Go(t||this,e)}set(e,t,n){n?Vo(n,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var n={path:""},e=Go(this,e,n),i=e.length,r=e.push(...t);return t.length&&Xa(this,e,n.path,i,t.length,[]),r}pop(e){var t={path:""},e=Go(this,e,t),n=Boolean(e.length),i=e.pop();return n&&Xa(this,e,t.path,e.length,0,[i]),i}splice(e,t,n,...i){var r={path:""},e=Go(this,e,r);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),n=2===arguments.length?e.splice(t):e.splice(t,n,...i),(i.length||n.length)&&Xa(this,e,r.path,t,i.length,n),n}shift(e){var t={path:""},e=Go(this,e,t),n=Boolean(e.length),i=e.shift();return n&&Xa(this,e,t.path,0,0,[i]),i}unshift(e,...t){var n={path:""},e=Go(this,e,n),i=e.unshift(...t);return t.length&&Xa(this,e,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var i;n=1==arguments.length?(t=Go(this,e,i={path:""}),i.path):Array.isArray(e)?jo(e):e,this._setPendingPropertyOrPath(n,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,n){var i={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,C.OBSERVE,{fn:Sa,info:i,trigger:{name:e}}),n&&this._addPropertyEffect(t,C.OBSERVE,{fn:Sa,info:i,trigger:{name:t}})}_createMethodObserver(e,t){var n=Ua(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Fa(this,n,C.OBSERVE,Ra,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:ka,info:{eventName:Ko(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:Da,info:{attrName:t}})}_createComputedProperty(e,t,n){var i=Ua(t);if(!i)throw new Error("Malformed computed expression '"+t+"'");t=Fa(this,i,C.COMPUTE,$a,e,n);Ea(this,Ca)[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:n,value:i,literal:r}=a[o];if(!r)if(n){const a=Wo(e,s),u=Va(c,l,a?s:e);i={path:a?s:e,value:u,base:a?Go(c,e):u}}else i=t?Va(c,l,e):c[e];if(lo&&!this._overrideLegacyUndefined&&void 0===i&&1<a.length)return xa;u[o]=i}return u}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}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,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),i=this.__preBoundTemplateInfo==n;if(!i)for(var r in n.propertyEffects)this._createPropertyAccessor(r);if(t)if((n=Object.create(n)).wasPreBound=i,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,i=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=i)?i.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(n)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ja.push(this);t=super._stampTemplate(t,e);if(Ja.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var n=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)n.push(e)}t.templateInfo=e;var i=this,{nodeList:r,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=r[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?b(u):u)[f]=d.literal)}Oa(s,i,c)}s.__dataHost=i}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:n,parent:i}=e,r=(t?t.nextSibling=n:i&&(i.firstChild=n),n?n.previousSibling=t:i&&(i.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<r.length;e++){var o=r[e];b(b(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,n){let i=c._parseTemplateNode.call(this,e,t,n);var r;return e.nodeType===Node.TEXT_NODE&&(r=this._parseBindings(e.textContent,t))&&(e.textContent=ja(r)||" ",Ia(this,t,n,"text","textContent",r),i=!0),i}static _parseTemplateNodeAttribute(i,r,o,a,e){var s=this._parseBindings(e,r);if(s){let e=a,t="property",n=(Pa.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),ja(s));return n&&"attribute"==t&&("class"==a&&i.hasAttribute("class")&&(n+=" "+i.getAttribute(a)),i.setAttribute(a,n)),"attribute"==t&&"disable-upgrade$"==e&&i.setAttribute(a,""),"input"===i.localName&&"value"===e&&i.setAttribute(e,""),i.removeAttribute(e),"property"===t&&(a=Jo(a)),Ia(this,r,o,t,a,s,n),!0}return c._parseTemplateNodeAttribute.call(this,i,r,o,a,e)}static _parseTemplateNestedTemplate(e,t,n){let i=c._parseTemplateNestedTemplate.call(this,e,t,n);var r=e.parentNode,o=n.templateInfo,a="dom-if"===r.localName,s="dom-repeat"===r.localName,s=(uo&&(a||s)&&(r.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,i=!1),o.hostProps);if(po&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),uo||(n.parentInfo.noted=!0));else for(var l in s)Ia(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return i}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ya.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),n=l[3].trim(),i=!1,r="",o=-1;"{"==e&&0<(o=n.indexOf("::"))&&(r=n.substring(o+2),n=n.substring(0,o),i=!0);var d=Ua(n),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(n);c.push({source:n,mode:e,negate:t,customEvent:i,signature:d,dependencies:p,event:r}),u=Ya.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,n,i,r,o){let a;return a=t.signature?Ra(e,n,i,0,t.signature):n!=t.source?Go(e,t.source):o&&Ro(n)?Go(e,n):e.__data[n],a=t.negate?!a:a}}}),Ja=[],Ka=Fo(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof i?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(n=t.properties)&&(e=function(e){var t,n={};for(t in e){var i=e[t];n[t]="function"==typeof i?{type:i}:i}return n}(n)),t.__ownProperties=e}return t.__ownProperties}class i extends ua(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=n(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,n(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 i}),Qa=window.ShadyCSS&&window.ShadyCSS.cssBuild,es=Fo(e=>{const i=Ka(Za(e));return class extends i{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){i._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):oo||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,i=t,t=e[t],r=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(i)?console.warn(`Cannot redefine computed property '${i}'.`):n._createComputedProperty(i,t.computed,r)),t.readOnly&&!n._hasReadOnlyEffect(i)?n._createReadOnlyProperty(i,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(i)&&console.warn(`Cannot make readOnly property '${i}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(i)?n._createReflectedProperty(i):!1===t.reflectToAttribute&&n._hasReflectEffect(i)&&console.warn(`Cannot make reflected property '${i}' non-reflected.`),t.notify&&!n._hasNotifyEffect(i)?n._createNotifyingProperty(i):!1===t.notify&&n._hasNotifyEffect(i)&&console.warn(`Cannot make notify property '${i}' non-notify.`),t.observer&&n._createPropertyObserver(i,t.observer,r[t.observer]),n._addPropertyToAttributeMap(i);var n,i,r}static createObservers(t,n){var i=this.prototype;for(let e=0;e<t.length;e++)i._createMethodObserver(t[e],n)}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||io&&!ro||(t=wo.import(e,"template"),!io)||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=Jr(e.url):(e=wo.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=eo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var i=n[t];"value"in i&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=i)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var n=e[t];this._canApplyPropertyDefault(t)&&(n="function"==typeof n.value?n.value.call(this):n.value,this._hasAccessor(t)?this._setPendingProperty(t,n,!0):this[t]=n)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zr(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,r=this,o=t,a=e,s=n?Xr(n):"";if(!Qa){var l=o.content.querySelectorAll("style"),c=Ao(o),u=(e=Po(a))?So(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=r._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let i=0;for(let n=0;n<c.length;n++){let e=c[n],t=l[i];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):i++,e.textContent=r._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),fo&&Qa&&Qr){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),r._styleSheet=new CSSStyleSheet,r._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=b(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])),so&&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=Xr(this.importPath)),Xr(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,i._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!ao||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,e,t,n)}}}),ts=es(HTMLElement);class ns{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,is.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),is.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,n){return e instanceof ns?e._cancelAsync():e=new ns,e.setConfig(t,n),e}}let is=new Set;function rs(e){is.add(e)}let os="string"==typeof document.head.style.touchAction,as="__polymerGestures",ss="__polymerGesturesHandled",ls="__polymerGesturesTouchAction",cs=["mousedown","mousemove","mouseup","click"],us=[0,1,4,2],ds=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ps(e){return-1<cs.indexOf(e)}let hs=!1;function ms(e){return!ps(e)&&"touchend"!==e&&os&&hs&&no?{passive:!0}:void 0}try{var fs=Object.defineProperty({},"passive",{get(){hs=!0}});window.addEventListener("test",null,fs),window.removeEventListener("test",null,fs)}catch(e){}let gs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ys=[],vs={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},bs={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ws(e){var i,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[ss]={skip:!0},"click"===e.type)){let t=!1,n=Ts(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)ys.push(n[e]);else if(i=n[e],vs[i.localName]){var r=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var n=e.getRootNode();if(e.id){var i=n.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<i.length;e++)t.push(i[e])}}catch(e){}}return t}(n[e]);for(let e=0;e<r.length;e++)t=t||-1<ys.indexOf(r[e])}if(n[e]===Cs.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function _s(n){var i=gs?["click"]:cs;for(let e,t=0;t<i.length;t++)e=i[t],n?(ys.length=0,document.addEventListener(e,ws,!0)):document.removeEventListener(e,ws,!0)}function xs(t){var e=t.type;if(ps(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&&!ds&&(e=us[t.which]||0),Boolean(1&e)}}}let Cs={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ps(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function Es(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){Cs.mouse.mouseIgnoreJob||_s(!0),Cs.mouse.target=Ts(e)[0],Cs.mouse.mouseIgnoreJob=ns.debounce(Cs.mouse.mouseIgnoreJob,oa.after(2500),function(){_s(),Cs.mouse.target=null,Cs.mouse.mouseIgnoreJob=null})},!!hs&&{passive:!0});const Ts=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],As={},Ss=[];function Ms(e){var t=Ts(e);return 0<t.length?t[0]:e.target}function ks(n){var i,r=n.type,o=n.currentTarget[as];if(o){var a=o[r];if(a){if(!n[ss]&&(n[ss]={},"touch"===r.slice(0,5))){o=n.changedTouches[0];if("touchstart"===r&&1===n.touches.length&&(Cs.touch.id=o.identifier),Cs.touch.id!==o.identifier)return;if(!(os||"touchstart"!==r&&"touchmove"!==r)){o=n;var s=o.changedTouches[0],e=o.type;if("touchstart"===e)Cs.touch.x=s.clientX,Cs.touch.y=s.clientY,Cs.touch.scrollDecided=!1;else if("touchmove"===e&&!Cs.touch.scrollDecided){Cs.touch.scrollDecided=!0;let e=function(e){let n="auto",i=Ts(e);for(let e,t=0;t<i.length;t++)if((e=i[t])[ls]){n=e[ls];break}return n}(o),t=!1,n=Math.abs(Cs.touch.x-s.clientX),i=Math.abs(Cs.touch.y-s.clientY);o.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<i:"pan-y"===e&&(t=i<n)),t?o.preventDefault():Is("track")}}}if(!(i=n[ss]).skip){for(let e,t=0;t<Ss.length;t++)a[(e=Ss[t]).name]&&!i[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<Ss.length;t++)a[(e=Ss[t]).name]&&!i[e.name]&&(i[e.name]=!0,e[r](n))}}}}function Ds(e,t,n){return As[t]&&(function(i,e,t){let n=As[e],r=n.deps,o=n.name,a=i[as];a||(i[as]=a={});for(let e,t,n=0;n<r.length;n++)e=r[n],gs&&ps(e)&&"click"!==e||((t=a[e])||(a[e]=t={_count:0}),0===t._count&&i.addEventListener(e,ks,ms(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);i.addEventListener(e,t),n.touchAction&&Bs(i,n.touchAction)}(e,t,n),1)}function Ls(t){Ss.push(t);for(let e=0;e<t.emits.length;e++)As[t.emits[e]]=t}function Bs(e,t){os&&e instanceof HTMLElement&&la.run(()=>{e.style.touchAction=t}),e[ls]=t}function $s(e,t,n){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=n,b(e).dispatchEvent(t),t.defaultPrevented&&(e=n.preventer||n.sourceEvent)&&e.preventDefault&&e.preventDefault()}function Is(e){e=function(n){for(let t,e=0;e<Ss.length;e++){t=Ss[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Ns(e,t,n,i){t&&$s(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:i,prevent:Is})}function Os(e,t,n){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-n),5<=t)||5<=e)}function Fs(a,s,l){if(s){let e,t=a.moves[a.moves.length-2],n=a.moves[a.moves.length-1],i=n.x-a.x,r=n.y-a.y,o=0;t&&(e=n.x-t.x,o=n.y-t.y),$s(s,"track",{state:a.state,x:l.clientX,y:l.clientY,dx:i,dy:r,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var n=l.clientX,i=l.clientY;let e=document.elementFromPoint(n,i),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,i)))break;t&&(e=t)}return e}}})}}function Rs(e,t,n){var i,r=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=Ms(n||t);!a||bs[a.localName]&&a.hasAttribute("disabled")||!(isNaN(r)||isNaN(o)||r<=25&&o<=25)&&("click"!==(r=t).type||0!==r.detail&&(o=Ms(r)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),i=r.pageX,r=r.pageY,i>=o.left)&&i<=o.right&&r>=o.top&&r<=o.bottom)||e.prevent||$s(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Ls({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Es(this.info)},mousedown:function(e){if(xs(e)){let t=Ms(e),n=this;Ps(this.info,function(e){xs(e)||(Ns("up",t,e),Es(n.info))},function(e){xs(e)&&Ns("up",t,e),Es(n.info)}),Ns("down",t,e)}},touchstart:function(e){Ns("down",Ms(e),e.changedTouches[0],e)},touchend:function(e){Ns("up",Ms(e),e.changedTouches[0],e)}}),Ls({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Es(this.info)},mousedown:function(e){if(xs(e)){let i=Ms(e),r=this,t=function(e){var t=e.clientX,n=e.clientY;Os(r.info,t,n)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&Is("tap"),r.info.addMove({x:t,y:n}),xs(e)||(r.info.state="end",Es(r.info)),i&&Fs(r.info,i,e),r.info.started=!0)};Ps(this.info,t,function(e){r.info.started&&t(e),Es(r.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=Ms(e),e=e.changedTouches[0],n=e.clientX,i=e.clientY;Os(this.info,n,i)&&("start"===this.info.state&&Is("tap"),this.info.addMove({x:n,y:i}),Fs(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=Ms(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Fs(this.info,t,e))}}),Ls({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){xs(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){xs(e)&&Rs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Rs(this.info,e.changedTouches[0],e)}});const Hs=Fo(e=>class extends e{_addEventListenerToNode(e,t,n){Ds(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,c=t,r=n,As[c]){var i=l;l=c,c=r;var r,o=(r=As[l]).deps,a=r.name,s=i[as];if(s)for(let e,t,n=0;n<o.length;n++)e=o[n],(t=s[e])&&t[a]&&(t[a]=(t[a]||1)-1,t._count=(t._count||1)-1,0===t._count)&&i.removeEventListener(e,ks,ms(e));i.removeEventListener(l,c)}else super._removeEventListenerFromNode(e,t,n);var l,c,r}}),zs=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Ws=e=>class extends zs(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=wo.prototype.modules;let i=!1;const r=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{var e=0===t.indexOf("vaadin-"),i=0===n.indexOf("vaadin-"),r=["lumo-","material-"],o=0<r.filter(e=>0===t.indexOf(e)).length,r=0<r.filter(e=>0===n.indexOf(e)).length;return e!=i?e?-1:1:o!=r?o?-1:1:0}).forEach(t=>{if(t!==r){const r=e[t].getAttribute("theme-for");r&&r.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(i=!0,this._includeStyle(t,n))})}}),!i&&e[r]&&this._includeStyle(r,n)}static _includeStyle(e,t){var n;t&&!t.content.querySelector(`style[include="${e}"]`)&&((n=document.createElement("style")).setAttribute("include",e),t.content.appendChild(n))}};let Ys=!1;window.addEventListener("keydown",()=>{Ys=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ys=!1},{capture:!0});function js(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(is.size),is.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Us=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return Ys}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&Ys?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Gs{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var i=n["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i}return i}static setNormalizedScrollLeft(e,t,n,i){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+i;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-i;break;default:n.scrollLeft=i}else n.scrollLeft=i}}const Vs=[];let qs;new MutationObserver(function(){const t=Zs();Vs.forEach(e=>{Xs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xs=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},Zs=function(){return document.documentElement.getAttribute("dir")},Js=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),qs=qs||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Xs(this,Zs()))}attributeChangedCallback(e,t,n){var i;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===Zs()&&-1===Vs.indexOf(this),i=!n&&t&&-1===Vs.indexOf(this),n=n!==Zs()&&t===Zs(),e||i?(this.__subscribe(),Xs(this,Zs())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Vs.indexOf(this)&&Vs.push(this):-1<Vs.indexOf(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e,t)}},Ks=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Qs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function el(e,t){if("function"==typeof e){var n=Ks.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function tl(){}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)&&(Qs?!(Qs&&0<Object.keys(Qs).map(e=>Qs[e]).filter(e=>e.productionMode).length):!el(function(){return!0}))}catch(e){return!1}}());function nl(){var e=tl,t=void 0;if(window.Vaadin.developmentMode)return el(e,t)}let il;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){nl,nl()};const rl=new Set,ol=e=>class extends Js(e){static finalize(){super.finalize();var e=this["is"];e&&!rl.has(e)&&(window.Vaadin.registrations.push(this),rl.add(e),window.Vaadin.developmentModeCallback)&&(il=ns.debounce(il,sa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),rs(il))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class al extends ol(Us(Ws(Hs(ts)))){static get template(){return $o`
325
+ </dom-module>`;document.head.appendChild($n.content);let Oo=0;function Fo(r){let o=r.__mixinApplications,a=(o||(o=new WeakMap,r.__mixinApplications=o),Oo++);return function(e){var t=e.__mixinSet;if(t&&t[a])return e;let n=o,i=n.get(e);return i||(i=r(e),n.set(e,i),(e=Object.create(i.__mixinSet||t||null))[a]=!0,i.__mixinSet=e),i}}const b=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;function Ro(e){return 0<=e.indexOf(".")}function Ho(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function zo(e,t){return 0===e.indexOf(t+".")}function Wo(e,t){return 0===t.indexOf(e+".")}function Yo(e,t,n){return t+n.slice(e.length)}function jo(t){if(Array.isArray(t)){var n=[];for(let e=0;e<t.length;e++){var i=t[e].toString().split(".");for(let e=0;e<i.length;e++)n.push(i[e])}return n.join(".")}return t}function Uo(e){return(Array.isArray(e)?jo(e):e.toString()).split(".")}function Go(e,t,n){let i=e,r=Uo(t);for(let e=0;e<r.length;e++){if(!i)return;i=i[r[e]]}return n&&(n.path=r.join(".")),i}function Vo(e,t,n){let i=e,r=Uo(t),o=r[r.length-1];if(1<r.length){for(let e=0;e<r.length-1;e++)if(!(i=i[r[e]]))return;i[o]=n}else i[t]=n;return r.join(".")}const qo={},Xo=/-[a-z]/g,Zo=/([A-Z])/g;function Jo(e){return qo[e]||(qo[e]=e.indexOf("-")<0?e:e.replace(Xo,e=>e[1].toUpperCase()))}function Ko(e){return qo[e]||(qo[e]=e.replace(Zo,"-$1").toLowerCase())}let Qo=0,ea=0,ta=[],na=0,ia=!1,ra=document.createTextNode("");new window.MutationObserver(function(){ia=!1;var t=ta.length;for(let e=0;e<t;e++){var n=ta[e];if(n)try{n()}catch(t){setTimeout(()=>{throw t})}}ta.splice(0,t),ea+=t}).observe(ra,{characterData:!0});const oa={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)}},aa={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},sa={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},la={run:e=>(ia||(ia=!0,ra.textContent=na++),ta.push(e),Qo++),cancel(e){var t=e-ea;if(0<=t){if(!ta[t])throw new Error("invalid async handle: "+e);ta[t]=null}}},ca=la,ua=Fo(e=>class extends e{static createProperties(e){var t,n=this.prototype;for(t in e)t in n||n._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,n){var i=this.__data[e],r=this._shouldPropertyChange(e,t,i);return r&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=i),this.__data[e]=t,this.__dataPending[e]=t),r}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ca.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,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n)),this.__dataCounter--}_shouldPropertiesChange(e,t,n){return Boolean(t)}_propertiesChanged(e,t,n){}_shouldPropertyChange(e,t,n){return n!==t&&(n==n||t==t)}attributeChangedCallback(e,t,n,i){t!==n&&this._attributeToProperty(e,n),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n,i)}_attributeToProperty(e,t,n){var i;this.__serializing||(this[i=(i=this.__dataAttributes)&&i[e]||e]=this._deserializeValue(t,n||this.constructor.typeForProperty(i)))}_propertyToAttribute(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,n){t=this._serializeValue(t);"class"!==n&&"name"!==n&&"slot"!==n||(e=b(e)),void 0===t?e.removeAttribute(n):e.setAttribute(n,""===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}}}),da={};let pa=HTMLElement.prototype;for(;pa;){var ha=Object.getOwnPropertyNames(pa);for(let e=0;e<ha.length;e++)da[ha[e]]=!0;pa=Object.getPrototypeOf(pa)}const ma=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1,fa=Fo(e=>{return class extends ua(e){static createPropertiesForAttributes(){var t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Jo(t[e]))}static attributeNameForProperty(e){return Ko(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(ma(e))return e;try{return JSON.stringify(e)}catch(e){return""}}}return super._serializeValue(e)}_deserializeValue(e,t){let n;switch(t){case Object:try{n=JSON.parse(e)}catch(t){n=e}break;case Array:try{n=JSON.parse(e)}catch(t){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:n=(isNaN(e)?String:Number)(e),n=new Date(n);break;default:n=super._deserializeValue(e,t)}return n}_definePropertyAccessor(e,t){var n,i,r;n=this,i=e,da[i]||void 0!==(r=n[i])&&(n.__data?n._setPendingProperty(i,r):(n.__dataProto?n.hasOwnProperty(JSCompiler_renameProperty("__dataProto",n))||(n.__dataProto=Object.create(n.__dataProto)):n.__dataProto={},n.__dataProto[i]=r)),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}}),ga={"dom-if":!0,"dom-repeat":!0};let ya=!1,va=!1;const ba=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,n)=>{t=t.getAttribute(n);i&&n.startsWith("on-")?e.setAttribute(n,i.createScript(t,n)):e.setAttribute(n,t)}})();const wa=Fo(e=>class extends e{static _parseTemplate(e,t){var n;return e._templateInfo||((n=e._templateInfo={nodeInfoList:[]}).nestedTemplate=Boolean(t),n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})),e._templateInfo}static _parseTemplateContent(e,t,n){return this._parseTemplateNode(e.content,t,n)}static _parseTemplateNode(e,t,n){let i=!1,r=e;return"template"!=r.localName||r.hasAttribute("preserve-content")?"slot"===r.localName&&(t.hasInsertionPoint=!0):i=this._parseTemplateNestedTemplate(r,t,n)||i,e=r,ya||(ya=!0,(o=document.createElement("textarea")).placeholder="a",va=o.placeholder===o.textContent),va&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null),r.firstChild&&this._parseTemplateChildNodes(r,t,n),(i=r.hasAttributes&&r.hasAttributes()?this._parseTemplateNodeAttributes(r,t,n)||i:i)||n.noted;var o}static _parseTemplateChildNodes(i,r,o){if("script"!==i.localName&&"style"!==i.localName)for(let t,n=i.firstChild,e=0;n;n=t){if("template"==n.localName&&(n=function(e){let t=e.getAttribute("is");if(t&&ga[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;){const t=n.attributes[0]["name"];ba(e,n,t),n.removeAttribute(t)}}return e}(n)),t=n.nextSibling,n.nodeType===Node.TEXT_NODE){let e=t;for(;e&&e.nodeType===Node.TEXT_NODE;)n.textContent+=e.textContent,t=e.nextSibling,i.removeChild(e),e=t;if(r.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}var a={parentIndex:e,parentInfo:o};this._parseTemplateNode(n,r,a)&&(a.infoIndex=r.nodeInfoList.push(a)-1),n.parentNode&&e++}}static _parseTemplateNestedTemplate(e,t,n){t=this._parseTemplate(e,t);return(t.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=t,!0}static _parseTemplateNodeAttributes(n,i,r){let o=!1,a=Array.from(n.attributes);for(let e,t=a.length-1;e=a[t];t--)o=this._parseTemplateNodeAttribute(n,i,r,e.name,e.value)||o;return o}static _parseTemplateNodeAttribute(e,t,n,i,r){return"on-"===i.slice(0,3)?(e.removeAttribute(i),n.events=n.events||[],n.events.push({name:i.slice(3),value:r}),!0):"id"===i&&(n.id=r,!0)}static _contentForTemplate(e){var t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,i){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var r,o,a=(i=i||this.constructor._parseTemplate(e)).nodeInfoList,e=i.content||e.content,s=document.importNode(e,!0),l=(s.__noInsertionPoint=!i.hasInsertionPoint,s.nodeList=new Array(a.length));s.$={};for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++){var c=l[t]=function e(t,n){var i=n.parentInfo&&e(t,n.parentInfo);if(!i)return t;for(let e=i.firstChild,t=0;e;e=e.nextSibling)if(n.parentIndex===t++)return e}(s,e),u=(r=s.$,o=c,(p=e).id&&(r[p.id]=o),r=c,p=e,o=i,p.templateInfo&&(r._templateInfo=p.templateInfo,r._parentTemplateInfo=o),p=d=u=void 0,this),d=c,p=e;if(p.events&&p.events.length)for(let e,t=0,n=p.events;t<n.length&&(e=n[t]);t++)u._addMethodEventListenerToNode(d,e.name,e.value,u)}return s}_addMethodEventListenerToNode(e,t,n,i){function r(e){o[a]?o[a](e,e.detail):console.warn("listener method `"+a+"` not defined")}var o,a;o=i=i||e,a=n,o=o._methodHost||o;return this._addEventListenerToNode(e,t,r),r}_addEventListenerToNode(e,t,n){e.addEventListener(t,n)}_removeEventListenerFromNode(e,t,n){e.removeEventListener(t,n)}});let _a=0;const xa=[],C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ca="__computeInfo",Pa=/[A-Z]/;function Ea(e,t,n){let i=e[t];if(i){if(!e.hasOwnProperty(t)&&(i=e[t]=Object.create(e[t]),n))for(var r in i){var o=i[r],a=i[r]=Array(o.length);for(let e=0;e<o.length;e++)a[e]=o[e]}}else i=e[t]={};return i}function Aa(r,e,o,a,s,l){if(e){let i=!1;var c,u=_a++;for(c in o){var d=e[s?Ho(c):c];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===u||s&&!Ta(c,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(r,c,o,a,e.info,s,l),i=!0)}return i}}function Ta(e,t){var n;return!t||(n=t.name)==e||t.structured&&zo(n,e)||t.wildcard&&Wo(n,e)}function Sa(e,t,n,i,r){var o="string"==typeof r.method?e[r.method]:r.method,a=r.property;o?o.call(e,e.__data[a],i[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function Ma(e,t,n,i){n={value:n,queueProperty:!0};i&&(n.path=i),b(e).dispatchEvent(new CustomEvent(t,{detail:n}))}function ka(e,t,n,i,r,o){let a=(o?Ho(t):t)!=t?t:null,s=a?Go(e,a):e.__data[t];a&&void 0===s&&(s=n[t]),Ma(e,r.eventName,s,a)}function Da(e,t,n,i,r){let o=e.__data[t];to&&(o=to(o,r.attrName,"attribute",e)),e._propertyToAttribute(t,r.attrName,o)}const La=(e,t,n)=>{let i=0,r=t.length-1,o=-1;for(;i<=r;){var a=i+r>>1,s=n.get(t[a].methodInfo)-n.get(e.methodInfo);if(s<0)i=1+a;else{if(!(0<s)){o=a;break}r=a-1}}o<0&&(o=r+1),t.splice(o,0,e)},Ba=(t,e,n,i,r)=>{var o=e[r?Ho(t):t];if(o)for(let e=0;e<o.length;e++){var a=o[e];a.info.lastRun===_a||r&&!Ta(t,a.trigger)||(a.info.lastRun=_a,La(a.info,n,i))}};function $a(e,t,n,i,r){t=Ra(e,t,n,0,r);return t!==xa&&(n=r.methodInfo,e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,t,!0):(e[n]=t,!1))}function Ia(t,n,e,i,r,o,a){e.bindings=e.bindings||[];var s={kind:i,target:r,parts:o,literal:a,isCompound:1!==o.length},l=(e.bindings.push(s),i=s,Boolean(i.target)&&"attribute"!=i.kind&&"text"!=i.kind&&!i.isCompound&&"{"===i.parts[0].mode&&({event:a,negate:o}=s.parts[0],s.listenerEvent=a||Ko(r)+"-changed",s.listenerNegate=o),n.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=n,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=Ga(e)).wildcard=!0),u._addTemplatePropertyEffect(d,e.rootProperty,{fn:Na,info:g,trigger:e})}}}}function Na(e,t,n,i,r,o,a){var s,a=a[r.index],l=r.binding,c=r.part;o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]?(s=n[t],t=Yo(c.source,l.target,t),a._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(a)):(s=r.evaluator._evaluateBinding(e,c,t,n,i,o))!==xa&&(r=e,t=c,i=n=a,e=o=s,(a=c=l).isCompound&&((l=i.__dataCompoundStorage[a.target])[t.compoundIndex]=e,e=l.join("")),o=e="attribute"!==a.kind&&("textContent"===a.target||"value"===a.target&&("input"===i.localName||"textarea"===i.localName))&&null==e?"":e,to&&(o=to(o,c.target,c.kind,n)),"attribute"==c.kind?r._valueToNodeAttribute(n,o,c.target):(t=c.target,n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[t]?n[C.READ_ONLY]&&n[C.READ_ONLY][t]||n._setPendingProperty(t,o)&&r._enqueueClient(n):r._setUnmanagedPropertyToNode(n,t,o)))}function Oa(e,c,u){if(u.listenerEvent){let l=u.parts[0];e.addEventListener(u.listenerEvent,function(i){{var r=c,o=u.target,a=l.source,s=l.negate;let e,t=i.detail,n=t&&t.path;e=n?(a=Yo(o,a,n),t&&t.value):i.currentTarget[o],e=s?!e:e,r[C.READ_ONLY]&&r[C.READ_ONLY][a]||!r._setPendingPropertyOrPath(a,e,!0,Boolean(n))||t&&t.queueProperty||r._invalidateProperties()}})}}function Fa(n,i,r,o,e,t){t=i.static||t&&("object"!=typeof t||t[i.methodName]);var a={methodName:i.methodName,args:i.args,methodInfo:e,dynamicFn:t};for(let e,t=0;t<i.args.length&&(e=i.args[t]);t++)e.literal||n._addPropertyEffect(e.rootProperty,r,{fn:o,info:a,trigger:e});return t&&n._addPropertyEffect(i.methodName,r,{fn:o,info:a}),a}function Ra(e,t,n,i,r){var o=e._methodHost||e,a=o[r.methodName];if(a)return(e=e._marshalArgs(r.args,t,n))===xa?xa:a.apply(o,e);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Ha=[],za="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Wa="(?:("+za+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ya=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+za+"\\s*(?:\\(\\s*(?:(?:"+Wa+"(?:,\\s*"+Wa+")*)?)\\)\\s*)?)(?:]]|}})","g");function ja(t){let n="";for(let e=0;e<t.length;e++)n+=t[e].literal||"";return n}function Ua(e){var t,e=e.match(/([^\s]+?)\(([\s\S]*)\)/);return e?(t={methodName:e[1],static:!0,args:Ha},e[2].trim()?function(e,t){return t.args=e.map(function(e){e=Ga(e);return e.literal||(t.static=!1),e},this),t}(e[2].replace(/\\,/g,"&comma;").split(","),t):t):null}function Ga(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},i=t[0];switch(i="0"<=(i="-"===i?t[1]:i)&&i<="9"?"#":i){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Ho(t),n.structured=Ro(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard)&&(n.name=t.slice(0,-2))),n}function Va(e,t,n){let i=Go(e,n);return i=void 0===i?t[n]:i}function qa(e,t,n,i){i={indexSplices:i};lo&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(n+".splices",i),e.notifyPath(n+".length",t.length),lo&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function Xa(e,t,n,i,r,o){qa(e,t,n,[{index:i,addedCount:r,removed:o,object:t,type:"splice"}])}const Za=Fo(e=>{const c=wa(fa(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;Ja.length&&((e=Ja[Ja.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,n=this[C.READ_ONLY];for(t in e)n&&n[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=e[t])}_addPropertyEffect(e,t,n){this._createPropertyAccessor(e,t==C.READ_ONLY);let i=Ea(this,t,!0)[e];(i=i||(this[t][e]=[])).push(n)}_removePropertyEffect(e,t,n){t=Ea(this,t,!0)[e],e=t.indexOf(n);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,n,i){if(i||Ho(Array.isArray(e)?e[0]:e)!==e){if(!i){i=Go(this,e);if(!(e=Vo(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n)){{var r=this;var o=e;var a=t;var s=r.__dataLinkedPaths;if(s){let e;for(var l in s){var c=s[l];Wo(l,o)?(e=Yo(l,c,o),r._setPendingPropertyOrPath(e,a,!0,!0)):Wo(c,o)&&(e=Yo(c,l,o),r._setPendingPropertyOrPath(e,a,!0,!0))}}}return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,n){n===e[t]&&"object"!=typeof n||((e="className"===t?b(e):e)[t]=n)}_setPendingProperty(e,t,n){var i=this.__dataHasPaths&&Ro(e),r=i?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,r[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),i?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(i||this[C.NOTIFY]&&this[C.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!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 n=t[e];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(var n in e)!t&&this[C.READ_ONLY]&&this[C.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,r,o){var a,s,l,c,u=this.__dataHasPaths,t=(this.__dataHasPaths=!1,this),n=r,i=o,d=u,p=t[C.COMPUTE];if(p)if(co){_a++;var h,m,f=function(r){let o=r.constructor.__orderedComputedDeps;if(!o){o=new Map;var a=r[C.COMPUTE];let e,{counts:t,ready:n,total:i}=function(e){const t=e[Ca],n={},i=e[C.COMPUTE],r=[];let o=0;for(var a in t){const i=t[a];o+=n[a]=i.args.filter(e=>!e.literal).length+(i.dynamicFn?1:0)}for(var s in i)t[s]||r.push(s);return{counts:n,ready:r,total:o}}(r);for(;e=n.shift();){o.set(e,o.size);const r=a[e];r&&r.forEach(e=>{e=e.info.methodInfo;--i,0==--t[e]&&n.push(e)})}if(0!==i){const o=r;console.warn(`Computed graph for ${o.localName} incomplete; circular?`)}r.constructor.__orderedComputedDeps=o}return o}(t),g=[];for(h in n)Ba(h,p,g,f,d);for(;m=g.shift();)$a(t,"",n,0,m)&&Ba(m.methodInfo,p,g,f,d);Object.assign(i,t.__dataOld),Object.assign(n,t.__dataPending),t.__dataPending=null}else{let e=n;for(;Aa(t,p,e,i,d);)Object.assign(i,t.__dataOld),Object.assign(n,t.__dataPending),e=t.__dataPending,t.__dataPending=null}if(a=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,o,u),this._flushClients(),Aa(this,this[C.REFLECT],r,o,u),Aa(this,this[C.OBSERVE],r,o,u),a){var y=this,v=a,b=r,w=o,_=u,x;let e,t,n=y[C.NOTIFY],i=_a++;for(x in v)v[x]&&(n&&function(i,e,r,o,a,s,l,c){let u=!1,d=e[l?Ho(o):o];if(d)for(let e,t=0,n=d.length;t<n&&(e=d[t]);t++)e.info&&e.info.lastRun===r||l&&!Ta(o,e.trigger)||(e.info&&(e.info.lastRun=r),e.fn(i,o,a,s,e.info,l,c),u=!0);return u}(y,n,i,x,b,w,_)||_&&(s=y,x=x,l=b,c=void 0,c=Ho(x),c!==x)&&(Ma(s,Ko(c)+"-changed",l[x],x),1))&&(e=!0);e&&(t=y.__dataHost)&&t._invalidateProperties&&t._invalidateProperties()}1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,n){this[C.PROPAGATE]&&Aa(this,this[C.PROPAGATE],e,t,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,n)}_runEffectsForTemplate(i,e,r,t){var n=(t,n)=>{Aa(this,i.propertyEffects,t,r,n,i.nodeList);for(let e=i.firstChild;e;e=e.nextSibling)this._runEffectsForTemplate(e,t,r,n)};i.runEffects?i.runEffects(n,e,t):n(e,t)}linkPaths(e,t){e=jo(e),t=jo(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=jo(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){var n={path:""};qa(this,Go(this,e,n),n.path,t)}get(e,t){return Go(t||this,e)}set(e,t,n){n?Vo(n,e,t):this[C.READ_ONLY]&&this[C.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){var n={path:""},e=Go(this,e,n),i=e.length,r=e.push(...t);return t.length&&Xa(this,e,n.path,i,t.length,[]),r}pop(e){var t={path:""},e=Go(this,e,t),n=Boolean(e.length),i=e.pop();return n&&Xa(this,e,t.path,e.length,0,[i]),i}splice(e,t,n,...i){var r={path:""},e=Go(this,e,r);return t=t<0?e.length-Math.floor(-t):t&&Math.floor(t),n=2===arguments.length?e.splice(t):e.splice(t,n,...i),(i.length||n.length)&&Xa(this,e,r.path,t,i.length,n),n}shift(e){var t={path:""},e=Go(this,e,t),n=Boolean(e.length),i=e.shift();return n&&Xa(this,e,t.path,0,0,[i]),i}unshift(e,...t){var n={path:""},e=Go(this,e,n),i=e.unshift(...t);return t.length&&Xa(this,e,n.path,0,t.length,[]),i}notifyPath(e,t){let n;var i;n=1==arguments.length?(t=Go(this,e,i={path:""}),i.path):Array.isArray(e)?jo(e):e,this._setPendingPropertyOrPath(n,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,n){var i={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,C.OBSERVE,{fn:Sa,info:i,trigger:{name:e}}),n&&this._addPropertyEffect(t,C.OBSERVE,{fn:Sa,info:i,trigger:{name:t}})}_createMethodObserver(e,t){var n=Ua(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Fa(this,n,C.OBSERVE,Ra,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,C.NOTIFY,{fn:ka,info:{eventName:Ko(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:Da,info:{attrName:t}})}_createComputedProperty(e,t,n){var i=Ua(t);if(!i)throw new Error("Malformed computed expression '"+t+"'");t=Fa(this,i,C.COMPUTE,$a,e,n);Ea(this,Ca)[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:n,value:i,literal:r}=a[o];if(!r)if(n){const a=Wo(e,s),u=Va(c,l,a?s:e);i={path:a?s:e,value:u,base:a?Go(c,e):u}}else i=t?Va(c,l,e):c[e];if(lo&&!this._overrideLegacyUndefined&&void 0===i&&1<a.length)return xa;u[o]=i}return u}static addPropertyEffect(e,t,n){this.prototype._addPropertyEffect(e,t,n)}static createPropertyObserver(e,t,n){this.prototype._createPropertyObserver(e,t,n)}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,n){this.prototype._createComputedProperty(e,t,n)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let n=this.constructor._parseTemplate(e),i=this.__preBoundTemplateInfo==n;if(!i)for(var r in n.propertyEffects)this._createPropertyAccessor(r);if(t)if((n=Object.create(n)).wasPreBound=i,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,i=t.lastChild;(((n.parent=t).lastChild=n).previousSibling=i)?i.nextSibling=n:t.firstChild=n}else this.__templateInfo=n;else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;e=e.propertyEffects=e.propertyEffects||{};(e[t]=e[t]||[]).push(n)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ja.push(this);t=super._stampTemplate(t,e);if(Ja.pop(),e.nodeList=t.nodeList,!e.wasPreBound){var n=e.childNodes=[];for(let e=t.firstChild;e;e=e.nextSibling)n.push(e)}t.templateInfo=e;var i=this,{nodeList:r,nodeInfoList:o}=e;if(o.length)for(let e=0;e<o.length;e++){var a=o[e],s=r[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?b(u):u)[f]=d.literal)}Oa(s,i,c)}s.__dataHost=i}return this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),t}_removeBoundDom(e){var e=e.templateInfo,{previousSibling:t,nextSibling:n,parent:i}=e,r=(t?t.nextSibling=n:i&&(i.firstChild=n),n?n.previousSibling=t:i&&(i.lastChild=t),e.nextSibling=e.previousSibling=null,e.childNodes);for(let e=0;e<r.length;e++){var o=r[e];b(b(o).parentNode).removeChild(o)}}static _parseTemplateNode(e,t,n){let i=c._parseTemplateNode.call(this,e,t,n);var r;return e.nodeType===Node.TEXT_NODE&&(r=this._parseBindings(e.textContent,t))&&(e.textContent=ja(r)||" ",Ia(this,t,n,"text","textContent",r),i=!0),i}static _parseTemplateNodeAttribute(i,r,o,a,e){var s=this._parseBindings(e,r);if(s){let e=a,t="property",n=(Pa.test(a)?t="attribute":"$"==a[a.length-1]&&(a=a.slice(0,-1),t="attribute"),ja(s));return n&&"attribute"==t&&("class"==a&&i.hasAttribute("class")&&(n+=" "+i.getAttribute(a)),i.setAttribute(a,n)),"attribute"==t&&"disable-upgrade$"==e&&i.setAttribute(a,""),"input"===i.localName&&"value"===e&&i.setAttribute(e,""),i.removeAttribute(e),"property"===t&&(a=Jo(a)),Ia(this,r,o,t,a,s,n),!0}return c._parseTemplateNodeAttribute.call(this,i,r,o,a,e)}static _parseTemplateNestedTemplate(e,t,n){let i=c._parseTemplateNestedTemplate.call(this,e,t,n);var r=e.parentNode,o=n.templateInfo,a="dom-if"===r.localName,s="dom-repeat"===r.localName,s=(uo&&(a||s)&&(r.removeChild(e),(n=n.parentInfo).templateInfo=o,n.noted=!0,i=!1),o.hostProps);if(po&&a)s&&(t.hostProps=Object.assign(t.hostProps||{},s),uo||(n.parentInfo.noted=!0));else for(var l in s)Ia(this,t,n,"property","_host_"+l,[{mode:"{",source:l,dependencies:[l],hostProp:!0}]);return i}static _parseBindings(a,s){let l,c=[],u=0;for(;null!==(l=Ya.exec(a));){l.index>u&&c.push({literal:a.slice(u,l.index)});let e=l[1][0],t=Boolean(l[2]),n=l[3].trim(),i=!1,r="",o=-1;"{"==e&&0<(o=n.indexOf("::"))&&(r=n.substring(o+2),n=n.substring(0,o),i=!0);var d=Ua(n),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(n);c.push({source:n,mode:e,negate:t,customEvent:i,signature:d,dependencies:p,event:r}),u=Ya.lastIndex}var e;return u&&u<a.length&&(e=a.substring(u))&&c.push({literal:e}),c.length?c:null}static _evaluateBinding(e,t,n,i,r,o){let a;return a=t.signature?Ra(e,n,i,0,t.signature):n!=t.source?Go(e,t.source):o&&Ro(n)?Go(e,n):e.__data[n],a=t.negate?!a:a}}}),Ja=[],Ka=Fo(e=>{function t(e){e=Object.getPrototypeOf(e);return e.prototype instanceof i?e:null}function n(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;var n;t.hasOwnProperty(JSCompiler_renameProperty("properties",t))&&(n=t.properties)&&(e=function(e){var t,n={};for(t in e){var i=e[t];n[t]="function"==typeof i?{type:i}:i}return n}(n)),t.__ownProperties=e}return t.__ownProperties}class i extends ua(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=n(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,n(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 i}),Qa=window.ShadyCSS&&window.ShadyCSS.cssBuild,es=Fo(e=>{const i=Ka(Za(e));return class extends i{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){i._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):oo||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(var t in e)n=this.prototype,i=t,t=e[t],r=e,t.computed&&(t.readOnly=!0),t.computed&&(n._hasReadOnlyEffect(i)?console.warn(`Cannot redefine computed property '${i}'.`):n._createComputedProperty(i,t.computed,r)),t.readOnly&&!n._hasReadOnlyEffect(i)?n._createReadOnlyProperty(i,!t.computed):!1===t.readOnly&&n._hasReadOnlyEffect(i)&&console.warn(`Cannot make readOnly property '${i}' non-readOnly.`),t.reflectToAttribute&&!n._hasReflectEffect(i)?n._createReflectedProperty(i):!1===t.reflectToAttribute&&n._hasReflectEffect(i)&&console.warn(`Cannot make reflected property '${i}' non-reflected.`),t.notify&&!n._hasNotifyEffect(i)?n._createNotifyingProperty(i):!1===t.notify&&n._hasNotifyEffect(i)&&console.warn(`Cannot make notify property '${i}' non-notify.`),t.observer&&n._createPropertyObserver(i,t.observer,r[t.observer]),n._addPropertyToAttributeMap(i);var n,i,r}static createObservers(t,n){var i=this.prototype;for(let e=0;e<t.length;e++)i._createMethodObserver(t[e],n)}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||io&&!ro||(t=wo.import(e,"template"),!io)||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=Jr(e.url):(e=wo.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=eo,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t,n=e._properties;for(t in n){var i=n[t];"value"in i&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[t]=i)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var n=e[t];this._canApplyPropertyDefault(t)&&(n="function"==typeof n.value?n.value.call(this):n.value,this._hasAccessor(t)?this._setPendingProperty(t,n,!0):this[t]=n)}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Zr(e,t)}static _finalizeTemplate(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath,r=this,o=t,a=e,s=n?Xr(n):"";if(!Qa){var l=o.content.querySelectorAll("style"),c=To(o),u=(e=Po(a))?So(e):[],d=o.content.firstElementChild;for(let e=0;e<u.length;e++){var p=u[e];p.textContent=r._processStyleText(p.textContent,s),o.content.insertBefore(p,d)}let i=0;for(let n=0;n<c.length;n++){let e=c[n],t=l[i];t!==e?(e=e.cloneNode(!0),t.parentNode.insertBefore(e,t)):i++,e.textContent=r._processStyleText(e.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(o,a),fo&&Qa&&Qr){const a=o.content.querySelectorAll("style");if(a){let t="";Array.from(a).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),r._styleSheet=new CSSStyleSheet,r._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=b(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])),so&&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=Xr(this.importPath)),Xr(e,t)}static _parseTemplateContent(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,i._parseTemplateContent.call(this,e,t,n)}static _addTemplatePropertyEffect(e,t,n){return!ao||t in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`),i._addTemplatePropertyEffect.call(this,e,t,n)}}}),ts=es(HTMLElement);class ns{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,is.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),is.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,n){return e instanceof ns?e._cancelAsync():e=new ns,e.setConfig(t,n),e}}let is=new Set;function rs(e){is.add(e)}let os="string"==typeof document.head.style.touchAction,as="__polymerGestures",ss="__polymerGesturesHandled",ls="__polymerGesturesTouchAction",cs=["mousedown","mousemove","mouseup","click"],us=[0,1,4,2],ds=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function ps(e){return-1<cs.indexOf(e)}let hs=!1;function ms(e){return!ps(e)&&"touchend"!==e&&os&&hs&&no?{passive:!0}:void 0}try{var fs=Object.defineProperty({},"passive",{get(){hs=!0}});window.addEventListener("test",null,fs),window.removeEventListener("test",null,fs)}catch(e){}let gs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const ys=[],vs={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},bs={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ws(e){var i,t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[ss]={skip:!0},"click"===e.type)){let t=!1,n=As(e);for(let e=0;e<n.length;e++){if(n[e].nodeType===Node.ELEMENT_NODE)if("label"===n[e].localName)ys.push(n[e]);else if(i=n[e],vs[i.localName]){var r=function(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{var n=e.getRootNode();if(e.id){var i=n.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<i.length;e++)t.push(i[e])}}catch(e){}}return t}(n[e]);for(let e=0;e<r.length;e++)t=t||-1<ys.indexOf(r[e])}if(n[e]===Cs.mouse.target)return}t||(e.preventDefault(),e.stopPropagation())}}function _s(n){var i=gs?["click"]:cs;for(let e,t=0;t<i.length;t++)e=i[t],n?(ys.length=0,document.addEventListener(e,ws,!0)):document.removeEventListener(e,ws,!0)}function xs(t){var e=t.type;if(ps(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&&!ds&&(e=us[t.which]||0),Boolean(1&e)}}}let Cs={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ps(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function Es(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){Cs.mouse.mouseIgnoreJob||_s(!0),Cs.mouse.target=As(e)[0],Cs.mouse.mouseIgnoreJob=ns.debounce(Cs.mouse.mouseIgnoreJob,oa.after(2500),function(){_s(),Cs.mouse.target=null,Cs.mouse.mouseIgnoreJob=null})},!!hs&&{passive:!0});const As=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Ts={},Ss=[];function Ms(e){var t=As(e);return 0<t.length?t[0]:e.target}function ks(n){var i,r=n.type,o=n.currentTarget[as];if(o){var a=o[r];if(a){if(!n[ss]&&(n[ss]={},"touch"===r.slice(0,5))){o=n.changedTouches[0];if("touchstart"===r&&1===n.touches.length&&(Cs.touch.id=o.identifier),Cs.touch.id!==o.identifier)return;if(!(os||"touchstart"!==r&&"touchmove"!==r)){o=n;var s=o.changedTouches[0],e=o.type;if("touchstart"===e)Cs.touch.x=s.clientX,Cs.touch.y=s.clientY,Cs.touch.scrollDecided=!1;else if("touchmove"===e&&!Cs.touch.scrollDecided){Cs.touch.scrollDecided=!0;let e=function(e){let n="auto",i=As(e);for(let e,t=0;t<i.length;t++)if((e=i[t])[ls]){n=e[ls];break}return n}(o),t=!1,n=Math.abs(Cs.touch.x-s.clientX),i=Math.abs(Cs.touch.y-s.clientY);o.cancelable&&("none"===e?t=!0:"pan-x"===e?t=n<i:"pan-y"===e&&(t=i<n)),t?o.preventDefault():Is("track")}}}if(!(i=n[ss]).skip){for(let e,t=0;t<Ss.length;t++)a[(e=Ss[t]).name]&&!i[e.name]&&e.flow&&-1<e.flow.start.indexOf(n.type)&&e.reset&&e.reset();for(let e,t=0;t<Ss.length;t++)a[(e=Ss[t]).name]&&!i[e.name]&&(i[e.name]=!0,e[r](n))}}}}function Ds(e,t,n){return Ts[t]&&(function(i,e,t){let n=Ts[e],r=n.deps,o=n.name,a=i[as];a||(i[as]=a={});for(let e,t,n=0;n<r.length;n++)e=r[n],gs&&ps(e)&&"click"!==e||((t=a[e])||(a[e]=t={_count:0}),0===t._count&&i.addEventListener(e,ks,ms(e)),t[o]=(t[o]||0)+1,t._count=(t._count||0)+1);i.addEventListener(e,t),n.touchAction&&Bs(i,n.touchAction)}(e,t,n),1)}function Ls(t){Ss.push(t);for(let e=0;e<t.emits.length;e++)Ts[t.emits[e]]=t}function Bs(e,t){os&&e instanceof HTMLElement&&la.run(()=>{e.style.touchAction=t}),e[ls]=t}function $s(e,t,n){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=n,b(e).dispatchEvent(t),t.defaultPrevented&&(e=n.preventer||n.sourceEvent)&&e.preventDefault&&e.preventDefault()}function Is(e){e=function(n){for(let t,e=0;e<Ss.length;e++){t=Ss[e];for(let e=0;e<t.emits.length;e++)if(t.emits[e]===n)return t}return null}(e);e.info&&(e.info.prevent=!0)}function Ns(e,t,n,i){t&&$s(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:i,prevent:Is})}function Os(e,t,n){return!e.prevent&&(e.started||(t=Math.abs(e.x-t),e=Math.abs(e.y-n),5<=t)||5<=e)}function Fs(a,s,l){if(s){let e,t=a.moves[a.moves.length-2],n=a.moves[a.moves.length-1],i=n.x-a.x,r=n.y-a.y,o=0;t&&(e=n.x-t.x,o=n.y-t.y),$s(s,"track",{state:a.state,x:l.clientX,y:l.clientY,dx:i,dy:r,ddx:e,ddy:o,sourceEvent:l,hover:function(){{var n=l.clientX,i=l.clientY;let e=document.elementFromPoint(n,i),t=e;for(;t&&t.shadowRoot&&!window.ShadyDOM;){if(t===(t=t.shadowRoot.elementFromPoint(n,i)))break;t&&(e=t)}return e}}})}}function Rs(e,t,n){var i,r=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),a=Ms(n||t);!a||bs[a.localName]&&a.hasAttribute("disabled")||!(isNaN(r)||isNaN(o)||r<=25&&o<=25)&&("click"!==(r=t).type||0!==r.detail&&(o=Ms(r)).nodeType&&o.nodeType===Node.ELEMENT_NODE&&(o=o.getBoundingClientRect(),i=r.pageX,r=r.pageY,i>=o.left)&&i<=o.right&&r>=o.top&&r<=o.bottom)||e.prevent||$s(a,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:n})}Ls({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Es(this.info)},mousedown:function(e){if(xs(e)){let t=Ms(e),n=this;Ps(this.info,function(e){xs(e)||(Ns("up",t,e),Es(n.info))},function(e){xs(e)&&Ns("up",t,e),Es(n.info)}),Ns("down",t,e)}},touchstart:function(e){Ns("down",Ms(e),e.changedTouches[0],e)},touchend:function(e){Ns("up",Ms(e),e.changedTouches[0],e)}}),Ls({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:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Es(this.info)},mousedown:function(e){if(xs(e)){let i=Ms(e),r=this,t=function(e){var t=e.clientX,n=e.clientY;Os(r.info,t,n)&&(r.info.state=r.info.started?"mouseup"===e.type?"end":"track":"start","start"===r.info.state&&Is("tap"),r.info.addMove({x:t,y:n}),xs(e)||(r.info.state="end",Es(r.info)),i&&Fs(r.info,i,e),r.info.started=!0)};Ps(this.info,t,function(e){r.info.started&&t(e),Es(r.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(e){var t=Ms(e),e=e.changedTouches[0],n=e.clientX,i=e.clientY;Os(this.info,n,i)&&("start"===this.info.state&&Is("tap"),this.info.addMove({x:n,y:i}),Fs(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=Ms(e),e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Fs(this.info,t,e))}}),Ls({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){xs(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){xs(e)&&Rs(this.info,e)},touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(e){Rs(this.info,e.changedTouches[0],e)}});const Hs=Fo(e=>class extends e{_addEventListenerToNode(e,t,n){Ds(e,t,n)||super._addEventListenerToNode(e,t,n)}_removeEventListenerFromNode(e,t,n){if(l=e,c=t,r=n,Ts[c]){var i=l;l=c,c=r;var r,o=(r=Ts[l]).deps,a=r.name,s=i[as];if(s)for(let e,t,n=0;n<o.length;n++)e=o[n],(t=s[e])&&t[a]&&(t[a]=(t[a]||1)-1,t._count=(t._count||1)-1,0===t._count)&&i.removeEventListener(e,ks,ms(e));i.removeEventListener(l,c)}else super._removeEventListenerFromNode(e,t,n);var l,c,r}}),zs=e=>class extends e{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),"theme"===e&&this._setTheme(n)}},Ws=e=>class extends zs(e){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(n){const e=wo.prototype.modules;let i=!1;const r=this.is+"-default-theme";Object.keys(e).sort((t,n)=>{var e=0===t.indexOf("vaadin-"),i=0===n.indexOf("vaadin-"),r=["lumo-","material-"],o=0<r.filter(e=>0===t.indexOf(e)).length,r=0<r.filter(e=>0===n.indexOf(e)).length;return e!=i?e?-1:1:o!=r?o?-1:1:0}).forEach(t=>{if(t!==r){const r=e[t].getAttribute("theme-for");r&&r.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(i=!0,this._includeStyle(t,n))})}}),!i&&e[r]&&this._includeStyle(r,n)}static _includeStyle(e,t){var n;t&&!t.content.querySelector(`style[include="${e}"]`)&&((n=document.createElement("style")).setAttribute("include",e),t.content.appendChild(n))}};let Ys=!1;window.addEventListener("keydown",()=>{Ys=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Ys=!1},{capture:!0});function js(){for(var e,t;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=void 0,t=Boolean(is.size),is.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e||t;);}const Us=e=>class extends class extends e{static get properties(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}{static get properties(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}get _keyboardActive(){return Ys}ready(){this.addEventListener("focusin",e=>{e.composedPath()[0]===this?this.contains(e.relatedTarget)||this._focus():-1===e.composedPath().indexOf(this.focusElement)||this.disabled||this._setFocused(!0)}),this.addEventListener("focusout",e=>this._setFocused(!1)),super.ready();var e=e=>{e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",e),this.shadowRoot.addEventListener("focusout",e),this.addEventListener("keydown",e=>{if(!e.defaultPrevented&&9===e.keyCode)if(e.shiftKey)this._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(this),this._setFocused(!1),setTimeout(()=>this._isShiftTabbing=!1,0);else{const e=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(e&&63<=parseFloat(e[1])&&parseFloat(e[1])<66&&this.parentNode&&this.nextSibling){const e=document.createElement("input");e.style.position="absolute",e.style.opacity="0",e.tabIndex=this.tabIndex,this.parentNode.insertBefore(e,this.nextSibling),e.focus(),e.addEventListener("focusout",()=>this.parentNode.removeChild(e))}}}),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>{this._focus(),this._setFocused(!0),this.setAttribute("focus-ring","")})}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&Ys?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}get focusElement(){return window.console.warn(`Please implement the 'focusElement' property in <${this.localName}>`),this}_focus(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}focus(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}blur(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}_disabledChanged(e){(this.focusElement.disabled=e)?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}_tabindexChanged(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}click(){this.disabled||super.click()}};class Gs{static detectScrollType(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);let t="reverse";return 0<e.scrollLeft?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}static getNormalizedScrollLeft(e,t,n){var i=n["scrollLeft"];if("rtl"===t&&e)switch(e){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i}return i}static setNormalizedScrollLeft(e,t,n,i){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+i;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-i;break;default:n.scrollLeft=i}else n.scrollLeft=i}}const Vs=[];let qs;new MutationObserver(function(){const t=Zs();Vs.forEach(e=>{Xs(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Xs=function(e,t){t?e.setAttribute("dir",t):e.removeAttribute("dir")},Zs=function(){return document.documentElement.getAttribute("dir")},Js=e=>class extends e{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),qs=qs||Gs.detectScrollType()}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Xs(this,Zs()))}attributeChangedCallback(e,t,n){var i;super.attributeChangedCallback(e,t,n),"dir"===e&&(e=n===Zs()&&-1===Vs.indexOf(this),i=!n&&t&&-1===Vs.indexOf(this),n=n!==Zs()&&t===Zs(),e||i?(this.__subscribe(),Xs(this,Zs())):n&&this.__subscribe(!1))}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(e=!0){e?-1===Vs.indexOf(this)&&Vs.push(this):-1<Vs.indexOf(this)&&Vs.splice(Vs.indexOf(this),1)}__getNormalizedScrollLeft(e){return Gs.getNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e)}__setNormalizedScrollLeft(e,t){return Gs.setNormalizedScrollLeft(qs,this.getAttribute("dir")||"ltr",e,t)}},Ks=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Qs=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function el(e,t){if("function"==typeof e){var n=Ks.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};function tl(){}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)&&(Qs?!(Qs&&0<Object.keys(Qs).map(e=>Qs[e]).filter(e=>e.productionMode).length):!el(function(){return!0}))}catch(e){return!1}}());function nl(){var e=tl,t=void 0;if(window.Vaadin.developmentMode)return el(e,t)}let il;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){nl,nl()};const rl=new Set,ol=e=>class extends Js(e){static finalize(){super.finalize();var e=this["is"];e&&!rl.has(e)&&(window.Vaadin.registrations.push(this),rl.add(e),window.Vaadin.developmentModeCallback)&&(il=ns.debounce(il,sa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),rs(il))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};class al extends ol(Us(Ws(Hs(ts)))){static get template(){return $o`
326
326
  <style>
327
327
  :host {
328
328
  display: inline-block;
@@ -1275,7 +1275,7 @@
1275
1275
  }
1276
1276
  </style>
1277
1277
  </template>
1278
- </dom-module>`;document.head.appendChild(In.content);class dl{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function pl(e){return function i(n,r){let o=r.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=o.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=r.substring(e,n.start-1))).replace(gl.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),n.parsedSelector=n.selector=o.trim());n.atRule=0===t.indexOf(bl),n.atRule?0===t.indexOf(vl)?n.type=hl.MEDIA_RULE:t.match(gl.keyframesRule)&&(n.type=hl.KEYFRAMES_RULE,n.keyframesName=n.selector.split(gl.multipleSpaces).pop()):0===t.indexOf(yl)?n.type=hl.MIXIN_RULE:n.type=hl.STYLE_RULE}let a=n.rules;if(a)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)i(e,r);return n}(function(n){var i,r,o=new dl;o.start=0,o.end=n.length;let a=o;for(let e=0,t=n.length;e<t;e++)n[e]===ml?(a.rules||(a.rules=[]),r=(i=a).rules[i.rules.length-1]||null,(a=new dl).start=e+1,a.parent=i,a.previous=r,i.rules.push(a)):n[e]===fl&&(a.end=e+1,a=a.parent||o);return o}(e=e.replace(gl.comments,"").replace(gl.port,"")),e)}const hl={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},ml="{",fl="}",gl={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},yl="--",vl="@media",bl="@",wl=new Set;function _l(e,t){return e?("string"==typeof e&&(e=pl(e)),t&&Cl(e,t),function i(e,r,t=""){let o="";if(e.cssText||e.rules){var a=e.rules;if(!a||(n=a[0],Boolean(n)&&Boolean(n.selector)&&0===n.selector.indexOf(yl)))o=(o=(o=r?e.cssText:e.cssText.replace(gl.customProp,"").replace(gl.mixinProp,"").replace(gl.mixinApply,"").replace(gl.varApply,"")).trim())&&" "+o+"\n";else for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)o=i(e,r,o)}var n;return o&&(e.selector&&(t+=e.selector+" "+ml+"\n"),t+=o,e.selector)&&(t+=fl+"\n\n"),t}(e,Yr)):""}function xl(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=pl(e.textContent)),e.__cssRules||null}function Cl(n,i,r,o){if(n){let e=!1,t=n.type;o&&t===hl.MEDIA_RULE&&(a=n.selector.match(Nr))&&!window.matchMedia(a[1]).matches&&(e=!0),t===hl.STYLE_RULE?i(n):r&&t===hl.KEYFRAMES_RULE?r(n):t===hl.MIXIN_RULE&&(e=!0);var a,s=n.rules;if(s&&!e)for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)Cl(e,i,r,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Pl="css-build";function El(e){return""!==(e=e,void 0!==zr?zr:(void 0===e.__cssBuild&&((t=e.getAttribute(Pl))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Pl)return e[1]}return""}(e))&&(n=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(n),e.__cssBuild=t)),e.__cssBuild||""));var t,n}const Tl=/;\s*/m,Al=/^\s*(initial)|(inherit)\s*$/,Sl=/\s*!important/;class Ml{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let kl=null;class Dl{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ml}detectMixin(e){return e=Ir.test(e)||$r.test(e),Ir.lastIndex=0,$r.lastIndex=0,e}gatherStyles(e){var t,n=function(){var t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var i=n[e];if(i.hasAttribute("shady-unscoped")){if(!Rr){{r=void 0;o=void 0;var r=i;var o=r.textContent;if(!wl.has(o)){wl.add(o);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=o,document.head.appendChild(r)}}i.parentNode.removeChild(i)}}else t.push(i.textContent),i.parentNode.removeChild(i)}return t.join("").trim()}();return n?((t=document.createElement("style")).textContent=n,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=xl(e);return this.transformRules(n,t),e.textContent=_l(n),n}transformCustomStyle(e){var t=xl(e);return Cl(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=_l(t),t}transformRules(e,t){this._currentElement=t,Cl(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,r){return e=e.replace($r,(e,t,n,i)=>this._produceCssProperties(e,t,n,i,r)),this._consumeCssProperties(e,r)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let i=!1;return Cl(e,e=>{(i=i||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(e,t){for(;r=Ir.exec(e);){var n=r[0],i=r[1],r=r.index,o=r+n.indexOf("@apply"),n=r+n.length,o=e.slice(0,o),n=e.slice(n),a=t?this._fallbacksFromPreviousRules(t):{},i=(Object.assign(a,this._cssTextToMap(o)),this._atApplyToCssProperties(i,a));e=""+o+i+n,Ir.lastIndex=r+i.length}return e}_atApplyToCssProperties(i,r){i=i.replace(Tl,"");let o=[],a=this._map.get(i);if(a||(this._map.set(i,{}),a=this._map.get(i)),a){let e,t,n;this._currentElement&&(a.dependants[this._currentElement]=!0);var s=a.properties;for(e in s)n=r&&r[e],t=[e,": var(",i,"_-_",e],n&&t.push(",",n.replace(Sl,"")),t.push(")"),Sl.test(s[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var n=Al.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,i=!1){let r,o,a=e.split(";"),s={};for(let e,t,n=0;n<a.length;n++)(e=a[n])&&1<(t=e.split(":")).length&&(r=t[0].trim(),o=t.slice(1).join(":"),i&&(o=this._replaceInitialOrInherit(r,o)),s[r]=o);return s}_invalidateMixinEntry(e){if(kl)for(var t in e.dependants)t!==this._currentElement&&kl(t)}_produceCssProperties(e,t,n,i,r){if(n&&function e(t,n){var i,r,o,a=t.indexOf("var(");return-1===a?n(t,"","",""):(o=function(n){let i=0;for(let e=a+3,t=n.length;e<t;e++)if("("===n[e])i++;else if(")"===n[e]&&0==--i)return e;return-1}(t),i=t.substring(a+4,o),r=t.substring(0,a),t=e(t.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",t):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),t))}(n,(e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)}),!i)return e;let o=this._consumeCssProperties(""+i,r),a=e.slice(0,e.indexOf("--")),s=this._cssTextToMap(o,!0),l=s,c=this._map.get(t),u=c&&c.properties;u?l=Object.assign(Object.create(u),s):this._map.set(t,l);let d,p,h=[],m=!1;for(d in l)p=s[d],void 0===p&&(p="initial"),!u||d in u||(m=!0),h.push(`${t}_-_${d}: `+p);return m&&this._invalidateMixinEntry(c),c&&(c.properties=l),""+(a=n?e+";"+a:a)+h.join("; ")+";"}}Dl.prototype._separator="_-_",Object.defineProperty(Dl.prototype,"invalidCallback",{get:()=>kl,set(e){kl=e}});const Ll={},Bl="_applyShimCurrentVersion",$l="_applyShimNextVersion",Il="_applyShimValidatingVersion",Nl=Promise.resolve();function Ol(e){var e=Ll[e];e&&((e=e)[Bl]=e[Bl]||0,e[Il]=e[Il]||0,e[$l]=(e[$l]||0)+1)}function Fl(e){return e[Bl]===e[$l]}const Rl=new Dl;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const c=new class{constructor(){this.customStyleInterface=null,Rl.invalidCallback=Ol}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Rl.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),El(e)||(Ll[t]=e,t=Rl.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Rl.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Or(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var i=e.children||e.childNodes;for(let e=0;e<i.length;e++)this.styleSubtree(i[e])}}styleElement(e){this.ensure();var t,n,i=function(e){let t=e.localName,n="",i="";return t?n=-1<t.indexOf("-")?t:(i=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,i=e.extends),{is:n,typeExtension:i}}(e)["is"],r=Ll[i];r&&El(r)||!r||Fl(r)||(!Fl(n=r)&&n[Il]===n[$l]||(this.prepareTemplate(r,i),(t=r)[Il]=t[$l],t._validating)||(t._validating=!0,Nl.then(function(){t[Bl]=t[$l],t._validating=!1})),(n=e.shadowRoot)&&(i=n.querySelector("style"))&&(i.__cssRules=r._styleAst,i.textContent=_l(r._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};Nn=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){c.flushCustomStyles(),c.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){c.flushCustomStyles(),c.styleSubtree(e,t)},styleElement(e){c.flushCustomStyles(),c.styleElement(e)},styleDocument(e){c.flushCustomStyles(),c.styleDocument(e)},getComputedStyleValue:(e,t)=>Fr(e,t),flushCustomStyles(){c.flushCustomStyles()},nativeCss:Yr,nativeShadow:Rr,cssBuild:zr,disableRuntime:Ln},Nn&&(window.ShadyCSS.CustomStyleInterface=Nn)}window.ShadyCSS.ApplyShim=Rl;const Hl=/:host\(:dir\((ltr|rtl)\)\)/g,zl=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Wl=/:dir\((?:ltr|rtl)\)/,Yl=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),jl=[];let Ul=null,Gl="";function Vl(){Gl=document.documentElement.getAttribute("dir")}function ql(e){e.__autoDirOptOut||e.setAttribute("dir",Gl)}function Xl(){Vl(),Gl=document.documentElement.getAttribute("dir");for(let e=0;e<jl.length;e++)ql(jl[e])}const Zl=Fo(e=>{Yl||Ul||(Vl(),(Ul=new MutationObserver(Xl)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=fa(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Yl&&Wl.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(Hl,':host([dir="$1"])')).replace(zl,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Ul&&Ul.takeRecords().length&&Xl(),jl.push(this),ql(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=jl.indexOf(this))&&jl.splice(e,1)}}return t.__activateDir=!1,t});let Jl=!1,Kl=[],Ql=[];function ec(){Jl=!0,requestAnimationFrame(function(){Jl=!1;for(var e=Kl;e.length;)tc(e.shift());setTimeout(function(){var n=Ql;for(let e=0,t=n.length;e<t;e++)tc(n.shift())})})}function tc(e){var t=e[0],n=e[1],i=e[2];try{n.apply(t,i)}catch(e){setTimeout(()=>{throw e})}}function nc(e,t,n){Jl||ec(),Ql.push([e,t,n])}function ic(){document.body.removeAttribute("unresolved")}function rc(e,t,n){return{index:e,removed:t,addedCount:n}}"interactive"===document.readyState||"complete"===document.readyState?ic():window.addEventListener("DOMContentLoaded",ic);const oc=0,ac=1,sc=2,lc=3;function cc(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,n=0,i=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,n,i){for(let e=0;e<i;e++)if(t[e]!==n[e])return e;return i}(c,p,i)),d==c.length&&m==p.length&&(n=function(e,t,n){let i=e.length,r=t.length,o=0;for(;o<n&&e[--i]===t[--r];)o++;return o}(c,p,i-e)),h+=e,m-=n,(d-=n)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=rc(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[rc(u,[],d-u)];var f=function(e){let t=e.length-1,n=e[0].length-1,i=e[t][n],r=[];for(;0<t||0<n;){var o,a,s,l;0==t?(r.push(sc),n--):0==n?(r.push(lc),t--):(o=e[t-1][n-1],(l=(a=e[t-1][n])<(s=e[t][n-1])?a<o?a:o:s<o?s:o)==o?(o==i?r.push(oc):(r.push(ac),i=o),t--,n--):i=l==a?(r.push(lc),t--,a):(r.push(sc),n--,s))}return r.reverse(),r}(function(n,i,r,o){var a,s,l=m-o+1,c=d-i+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(c),u[e][0]=e;for(let e=0;e<c;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<c;e++)n[i+e-1]===r[o+t-1]?u[t][e]=u[t-1][e-1]:(a=u[t-1][e]+1,s=u[t][e-1]+1,u[t][e]=a<s?a:s);return u}(c,u,p,h));t=void 0;let r=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case oc:t&&(r.push(t),t=void 0),o++,a++;break;case ac:(t=t||rc(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case sc:(t=t||rc(o,[],0)).addedCount++,o++;break;case lc:(t=t||rc(o,[],0)).removed.push(p[a]),a++}return t&&r.push(t),r}}function uc(e){return"slot"===e.localName}let dc=class{static getFlattenedNodes(e){var t=b(e);return uc(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>uc(e)?b(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){uc(this._target)?this._listenSlots([this._target]):b(this._target).children&&(this._listenSlots(b(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){uc(this._target)?this._unlistenSlots([this._target]):b(this._target).children&&(this._unlistenSlots(b(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,la.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var i={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),r=cc(n,this._effectiveNodes);for(let n,e=0;e<r.length&&(n=r[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)i.removedNodes.push(e);for(let t,e=0;e<r.length&&(t=r[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)i.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(i.addedNodes.length||i.removedNodes.length)&&(e=!0,this.callback.call(this._target,i)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];uc(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];uc(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};function pc(e,t){return mc.call(e,t)}const hc=Element.prototype,mc=hc.matches||hc.matchesSelector||hc.mozMatchesSelector||hc.msMatchesSelector||hc.oMatchesSelector||hc.webkitMatchesSelector;class s{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new dc(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return b(n).importNode(e,t)}getEffectiveChildNodes(){return dc.getFlattenedNodes(this.node)}queryDistributedElements(i){var r=this.getEffectiveChildNodes(),o=[];for(let e,t=0,n=r.length;t<n&&(e=r[t]);t++)e.nodeType===Node.ELEMENT_NODE&&pc(e,i)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function fc(n,i){for(let t=0;t<i.length;t++){let e=i[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class gc{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s;let yc=s;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class c extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(s.prototype).forEach(e=>{"activeElement"!=e&&(c.prototype[e]=s.prototype[e])}),fc(c.prototype,["classList"]),yc=c,Object.defineProperties(gc.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&xc(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var i=n[e];if(xc(i).getOwnerRoot()===t)return i}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var vc=s.prototype;var bc=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<bc.length;t++){let e=bc[t];vc[e]=function(){return this.node[e].apply(this.node,arguments)}}}fc(s.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var wc=s.prototype;var _c=["textContent","innerHTML","className"];for(let e=0;e<_c.length;e++){let t=_c[e];Object.defineProperty(wc,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const xc=function(e){if((e=e||document)instanceof yc)return e;if(e instanceof gc)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?gc:yc)(e),e.__domApi=t),t},Cc=window.ShadyDOM,Pc=window.ShadyCSS;function Ec(e,t){return b(e).getRootNode()===t}const Tc="disable-upgrade",Ac=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Sc=Fo(e=>{e=es(e);let t=Ac(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Tc)}_initializeProperties(){this.hasAttribute(Tc)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,i){e==Tc?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,n,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Mc="disable-upgrade";let kc=window.ShadyCSS;const Dc=Fo(e=>{const t=Hs(es(e)),n=Qa?t:Zl(t),i=Ac(n),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Mc)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;mo&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;mo&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return mo&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):i.call(this).concat(Mc)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,i){t!==n&&(e==Mc?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,n,i),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){var e;oo&&this.hasAttribute(Mc)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),mo&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var i=n[e];this.__attributeReaction(i.name,null,i.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,i){if(!n||!i)return n||i;var r=Object.getOwnPropertyNames(i);for(let e,t=0;t<r.length&&(e=r[t]);t++){var o=Object.getOwnPropertyDescriptor(i,e);o&&Object.defineProperty(n,e,o)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed}),e.detail=t,t=n.node||this;return b(t).dispatchEvent(e),e}listen(e,t,n){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),r=i.get(e);r||(r={},i.set(e,r));var o=t+n;r[o]||(r[o]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;var i=this.__boundListeners&&this.__boundListeners.get(e),n=t+n,r=i&&i[n];r&&(this._removeEventListenerFromNode(e,t,r),i[n]=null)}setScrollDirection(e,t){Bs(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=xc(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return xc(this).getEffectiveChildNodes()}queryDistributedElements(e){return xc(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var n=this.getEffectiveChildNodes(),i=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&i.push(e.textContent);return i.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?xc(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,n=!1]=[e,t];if(Cc&&Pc&&Cc.handlesDynamicScoping){const r=Pc.ScopingShim;if(r){const o=r.scopeForNode(e),a=b(e).getRootNode(),s=e=>{if(Ec(e,a)){var t=Array.from(Cc.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var n,i=t[e];Ec(i,a)&&(n=r.currentScopeForNode(i))!==o&&(""!==n&&r.unscopeNode(i,n),r.scopeNode(i,o))}}};if(s(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var i=n.addedNodes[e];i.nodeType===Node.ELEMENT_NODE&&s(i)}}});return n.observe(e,{childList:!0,subtree:!0}),n}}}return null}getComputedStyleValue(e){return kc.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=ns.debounce(this._debouncers[e],0<n?oa.after(n):la,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?oa.run(e.bind(this),t):~la.run(e.bind(this))}cancelAsync(e){e<0?la.cancel(~e):oa.cancel(e)}create(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var i in t)n[i]=t[i];return n}elementMatches(e,t){return pc(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(b(n).setAttribute(e,""),!0):(b(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,i){this.transform("translate3d("+e+","+t+","+n+")",i=i||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=Go(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Lc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Bc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},$c=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Bc);function Ic(e,t,n,i){var r,o=t,a=e,s=i,l=o._noAccessors,c=Object.getOwnPropertyNames(o);for(let e=0;e<c.length;e++){var u,d=c[e];d in s||(l?a[d]=o[d]:(u=Object.getOwnPropertyDescriptor(o,d))&&(u.configurable=!0,Object.defineProperty(a,d,u)))}for(r in Lc)t[r]&&(n[r]=n[r]||[],n[r].push(t[r]))}function Nc(e,t){for(const r in t){var n=e[r],i=t[r];e[r]=!("value"in i)&&n&&"value"in n?Object.assign({value:n.value},i):i}}const Oc=Dc(HTMLElement);function Fc(r,e,t){let o;const a={};class i extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Nc(t,o[e].properties);return Nc(t,r.properties),t}static get observers(){let n=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(n=n.concat(e.observers));return n=r.observers?n.concat(r.observers):n}created(){super.created();var t=a.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=i.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),oo&&s(e);var n=Object.getPrototypeOf(this);let t=a.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=a.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=a.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var i in n)this._addMethodEventListenerToNode(this,i,n[i])}}_ensureAttributes(){var t=a.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,i=t[e];for(n in i)this._ensureAttribute(n,i[n])}super._ensureAttributes()}ready(){super.ready();var t=a.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=a.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=a.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,i){super.attributeChanged();var r=a.attributeChanged;if(r)for(let e=0;e<r.length;e++)r[e].call(this,t,n,i)}}var n;t&&(Array.isArray(t)||(t=[t]),n=e.prototype.behaviors,o=function t(n,i,r){i=i||[];for(let e=n.length-1;0<=e;e--){var o=n[e];o?Array.isArray(o)?t(o,i):i.indexOf(o)<0&&(!r||r.indexOf(o)<0)&&i.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return i}(t,null,n),i.prototype.behaviors=n?n.concat(t):o);const s=e=>{if(o){var t=e,n=o,i=a;for(let e=0;e<n.length;e++)Ic(t,n[e],i,$c)}Ic(e,r,a,Bc)};return oo||s(i.prototype),i.generatedFrom=r,i}function Rc(e){var t="function"==typeof e?e:Rc.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function Hc(e,t,n,i,r){let o;r=(i=r&&(o="object"==typeof n&&null!==n)?e.__dataTemp[t]:i)!==n&&(i==i||n==n);return o&&r&&(e.__dataTemp[t]=n),r}Rc.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Oc):Oc;return(t=Fc(e,t,e.behaviors)).is=t.prototype.is=e.is,t};Fn=Fo(e=>class extends e{_shouldPropertyChange(e,t,n){return Hc(this,e,t,n,!0)}}),e=Fo(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Hc(this,e,t,n,this.mutableData)}});Fn._mutablePropertyChange=Hc;let zc=null;function Wc(){return zc}Wc.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Wc,writable:!0}});const Yc=Za(Wc),jc=Fn(Yc);function Uc(t,n){for(let e=0;e<n.length;e++){var i=n[e];if(Boolean(t)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),b(b(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const t=i.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(i,t)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}class Gc extends Za(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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,n){var i;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,n(e)}):(i=this.__dataHost.__dataHost)&&i._addEventListenerToNode(e,t,n)}_showHideChildren(e){Uc(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}Gc.prototype.__dataHost,Gc.prototype.__templatizeOptions,Gc.prototype._methodHost,Gc.prototype.__templatizeOwner,Gc.prototype.__hostProps;const Vc=Fn(Gc);function qc(e){e=e.__dataHost;return e&&e._methodHost||e}function Xc(e,t,n){let i=n.mutableData?Vc:Gc;var r,o=class extends(i=Jc.mixin?Jc.mixin(i):i){},a=(o.prototype.__templatizeOptions=n,o.prototype._bindTemplate(e),o),s=t,l=n,c=s.hostProps||{};for(r in l.instanceProps){delete c[r];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(r,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(i){return function(e,t,n){i.call(e.__templatizeOwner,e,t,n[t])}}((r,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,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}});return o}function Zc(t,n,i,r){var o=i.forwardHostProp;if(o&&n.hasHostProps){var a,s="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(s){class r extends(i.mutableData?jc:Yc){}e=n.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}e=n.templatizeTemplateClass=r}for(a in n.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(i){return function(e,t,n){i.call(e.__templatizeOwner,t.substring(6),n[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(ao&&r){var l=i;const d=r.constructor._properties,p=n["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)i=e,zc=t,Object.setPrototypeOf(t,i.prototype),new i,zc=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const i=n.hostProps;for(var u in i)if(u="_host_"+u,u in t){const i=t[u];delete t[u],t.__data[u]=i}}}}function Jc(e,t,n){if(io&&!qc(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let i=((e.__templatizeOwner=t)?t.constructor:Gc)._parseTemplate(e),r=i.templatizeInstanceClass;r||(r=Xc(e,i,n),i.templatizeInstanceClass=r);var o=qc(e),n=(Zc(e,i,n,o),class extends r{});return n.prototype._methodHost=o,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=i.hostProps,n}let Kc=!1;function Qc(){var e;return oo&&!Kr&&(Kc||(Kc=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}Bn=Hs(e(Za(HTMLElement))),customElements.define("dom-bind",class extends Bn{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),io)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,i){this.mutableData=!0}connectedCallback(){Qc()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),$n=e(ts);class eu extends $n{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:!ho,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(),Qc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=b(b(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__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=Jc(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(n,i){var r=this.__instances;for(let e,t=0;t<r.length&&(e=r[t]);t++)e.forwardHostProp(n,i)},notifyInstanceProp:function(e,t,n){var i,r;((i=this.as)===(r=t)||zo(i,r)||Wo(i,r))&&(i=e[this.itemsIndexAs],t==this.as&&(this.items[i]=n),r=Yo(this.as,JSCompiler_renameProperty("items",this)+"."+i,t),this.notifyPath(r,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,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 n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[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=ns.debounce(this.__renderDebouncer,0<t?oa.after(t):la,e.bind(this)),rs(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),js()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ho&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(i){let t=new Array(i.length);for(let e=0;e<i.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(i[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(i[e],i[t])),t}__calculateLimit(t){let n=t;var i=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-i,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-i,0),this.__chunkCount),n=Math.min(i+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__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,n){var i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){var o=this.__instances[r],a=n[r],s=e[a];i[a]=r,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,r),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,r,a)}for(let e=this.__instances.length-1;e>=r;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],n=b(t.root);for(let e=0;e<t.children.length;e++){var i=t.children[e];n.appendChild(i)}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,n){var i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=n,new this.__ctor(i)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return b(b(this).parentNode).insertBefore(e.root,n),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),n=e.indexOf("."),i=n<0?e:e.substring(0,n);if(i==parseInt(i,10))return e=n<0?"":e.substring(n+1),this.__handleObservedPaths(e),n=this.__itemsIdxToInstIdx[i],(i=this.__instances[n])&&(n=this.as+(e?"."+e:""),i._setPendingPropertyOrPath(n,t,!1,!0),i._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,n=this.template,i=e;i;)if(t=i.__dataHost?i:i.__templatizeInstance){if(t.__dataHost==n)return t;i=t.__dataHost}else i=b(i).parentNode;return null}}customElements.define(eu.is,eu);class tu extends ts{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=ns.debounce(this.__renderDebouncer,la,()=>this.__render()),rs(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Qc()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=b(this).parentNode;if(this.__hasInstance()){var i=this.__getInstanceNodes();if(i&&i.length&&b(this).previousSibling!==i[i.length-1])for(let e,t=0;t<i.length&&(e=i[t]);t++)b(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){js()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),ho&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}In=po?class extends tu{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(io&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,n);else if(this.__instance)if(i=i||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=Ho(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Uc(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends tu{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Jc(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Ho(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var n=this.__instance.children;if(n&&n.length){var i=b(n[0]).parentNode;if(i){i=b(i);for(let e,t=0;t<n.length&&(e=n[t]);t++)i.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(In.is,In);class nu extends Fo(e=>{return class extends es(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var n,i,r=t.path;r==JSCompiler_renameProperty("items",this)?(i=t.base||[],n=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),n&&(n=cc(i,n),this.__applySplices(n)),this.__lastItems=i,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(n=r.slice((JSCompiler_renameProperty("items",this)+".").length),i=parseInt(n,10),n.indexOf(".")<0&&n==i&&this.__deselectChangedIdx(i))}__applySplices(t){let i=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];i.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?i.set(t,e+n.addedCount-n.removed.length):i.set(t,-1))});for(let e=0;e<n.addedCount;e++){var r=n.index+e;i.has(this.items[r])&&i.set(this.items[r],r)}}this.__updateLinks();let n=0;i.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,i.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let i=this.__selectedIndexForItemIndex(e);if(0<=i){let n=0;this.__selectedMap.forEach((e,t)=>{i==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(ts){static get is(){return"array-selector"}static get template(){return null}}customElements.define(nu.is,nu),Dc(HTMLElement).prototype,Rc({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const iu=Element.prototype,ru=iu.matches||iu.matchesSelector||iu.mozMatchesSelector||iu.msMatchesSelector||iu.oMatchesSelector||iu.webkitMatchesSelector;class ou{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return ru.call(e,"input, select, textarea, button, object")?ru.call(e,":not([disabled])"):ru.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&ru.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var n=this._normalizedTabIndex(e);let i,r=0<n;if(0<=n&&t.push(e),i="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<i.length;e++)r=this._collectTabbableNodes(i[e],t)||r;return r}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,n=e.length;return n<2?e:(n=Math.ceil(n/2),t=this._sortByTabIndex(e.slice(0,n)),e=this._sortByTabIndex(e.slice(n)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var n=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let au=0;const su={};class lu extends Ws(Js(ts)){static get template(){return $o`
1278
+ </dom-module>`;document.head.appendChild(In.content);class dl{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function pl(e){return function i(n,r){let o=r.substring(n.start,n.end-1);if(n.parsedCssText=n.cssText=o.trim(),n.parent){let e=n.previous?n.previous.end:n.parent.start,t=(o=(o=(o=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e})}(o=r.substring(e,n.start-1))).replace(gl.multipleSpaces," ")).substring(o.lastIndexOf(";")+1),n.parsedSelector=n.selector=o.trim());n.atRule=0===t.indexOf(bl),n.atRule?0===t.indexOf(vl)?n.type=hl.MEDIA_RULE:t.match(gl.keyframesRule)&&(n.type=hl.KEYFRAMES_RULE,n.keyframesName=n.selector.split(gl.multipleSpaces).pop()):0===t.indexOf(yl)?n.type=hl.MIXIN_RULE:n.type=hl.STYLE_RULE}let a=n.rules;if(a)for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)i(e,r);return n}(function(n){var i,r,o=new dl;o.start=0,o.end=n.length;let a=o;for(let e=0,t=n.length;e<t;e++)n[e]===ml?(a.rules||(a.rules=[]),r=(i=a).rules[i.rules.length-1]||null,(a=new dl).start=e+1,a.parent=i,a.previous=r,i.rules.push(a)):n[e]===fl&&(a.end=e+1,a=a.parent||o);return o}(e=e.replace(gl.comments,"").replace(gl.port,"")),e)}const hl={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},ml="{",fl="}",gl={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},yl="--",vl="@media",bl="@",wl=new Set;function _l(e,t){return e?("string"==typeof e&&(e=pl(e)),t&&Cl(e,t),function i(e,r,t=""){let o="";if(e.cssText||e.rules){var a=e.rules;if(!a||(n=a[0],Boolean(n)&&Boolean(n.selector)&&0===n.selector.indexOf(yl)))o=(o=(o=r?e.cssText:e.cssText.replace(gl.customProp,"").replace(gl.mixinProp,"").replace(gl.mixinApply,"").replace(gl.varApply,"")).trim())&&" "+o+"\n";else for(let e,t=0,n=a.length;t<n&&(e=a[t]);t++)o=i(e,r,o)}var n;return o&&(e.selector&&(t+=e.selector+" "+ml+"\n"),t+=o,e.selector)&&(t+=fl+"\n\n"),t}(e,Yr)):""}function xl(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=pl(e.textContent)),e.__cssRules||null}function Cl(n,i,r,o){if(n){let e=!1,t=n.type;o&&t===hl.MEDIA_RULE&&(a=n.selector.match(Nr))&&!window.matchMedia(a[1]).matches&&(e=!0),t===hl.STYLE_RULE?i(n):r&&t===hl.KEYFRAMES_RULE?r(n):t===hl.MIXIN_RULE&&(e=!0);var a,s=n.rules;if(s&&!e)for(let e,t=0,n=s.length;t<n&&(e=s[t]);t++)Cl(e,i,r,o)}}window.ShadyDOM&&window.ShadyDOM.wrap;const Pl="css-build";function El(e){return""!==(e=e,void 0!==zr?zr:(void 0===e.__cssBuild&&((t=e.getAttribute(Pl))?e.__cssBuild=t:(""!==(t=function(e){var t=("template"===e.localName?e.content:e).firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===Pl)return e[1]}return""}(e))&&(n=("template"===e.localName?e.content:e).firstChild).parentNode.removeChild(n),e.__cssBuild=t)),e.__cssBuild||""));var t,n}const Al=/;\s*/m,Tl=/^\s*(initial)|(inherit)\s*$/,Sl=/\s*!important/;class Ml{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let kl=null;class Dl{constructor(){this._currentElement=null,this._measureElement=null,this._map=new Ml}detectMixin(e){return e=Ir.test(e)||$r.test(e),Ir.lastIndex=0,$r.lastIndex=0,e}gatherStyles(e){var t,n=function(){var t=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){var i=n[e];if(i.hasAttribute("shady-unscoped")){if(!Rr){{r=void 0;o=void 0;var r=i;var o=r.textContent;if(!wl.has(o)){wl.add(o);const r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=o,document.head.appendChild(r)}}i.parentNode.removeChild(i)}}else t.push(i.textContent),i.parentNode.removeChild(i)}return t.join("").trim()}();return n?((t=document.createElement("style")).textContent=n,e.content.insertBefore(t,e.content.firstChild),t):null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));e=e._gatheredStyle;return e?this.transformStyle(e,t):null}transformStyle(e,t=""){var n=xl(e);return this.transformRules(n,t),e.textContent=_l(n),n}transformCustomStyle(e){var t=xl(e);return Cl(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=_l(t),t}transformRules(e,t){this._currentElement=t,Cl(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,r){return e=e.replace($r,(e,t,n,i)=>this._produceCssProperties(e,t,n,i,r)),this._consumeCssProperties(e,r)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(t){let e=t;for(;e.parent;)e=e.parent;const n={};let i=!1;return Cl(e,e=>{(i=i||e===t)||e.selector===t.selector&&Object.assign(n,this._cssTextToMap(e.parsedCssText))}),n}_consumeCssProperties(e,t){for(;r=Ir.exec(e);){var n=r[0],i=r[1],r=r.index,o=r+n.indexOf("@apply"),n=r+n.length,o=e.slice(0,o),n=e.slice(n),a=t?this._fallbacksFromPreviousRules(t):{},i=(Object.assign(a,this._cssTextToMap(o)),this._atApplyToCssProperties(i,a));e=""+o+i+n,Ir.lastIndex=r+i.length}return e}_atApplyToCssProperties(i,r){i=i.replace(Al,"");let o=[],a=this._map.get(i);if(a||(this._map.set(i,{}),a=this._map.get(i)),a){let e,t,n;this._currentElement&&(a.dependants[this._currentElement]=!0);var s=a.properties;for(e in s)n=r&&r[e],t=[e,": var(",i,"_-_",e],n&&t.push(",",n.replace(Sl,"")),t.push(")"),Sl.test(s[e])&&t.push(" !important"),o.push(t.join(""))}return o.join("; ")}_replaceInitialOrInherit(e,t){var n=Tl.exec(t);return t=n?n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit":t}_cssTextToMap(e,i=!1){let r,o,a=e.split(";"),s={};for(let e,t,n=0;n<a.length;n++)(e=a[n])&&1<(t=e.split(":")).length&&(r=t[0].trim(),o=t.slice(1).join(":"),i&&(o=this._replaceInitialOrInherit(r,o)),s[r]=o);return s}_invalidateMixinEntry(e){if(kl)for(var t in e.dependants)t!==this._currentElement&&kl(t)}_produceCssProperties(e,t,n,i,r){if(n&&function e(t,n){var i,r,o,a=t.indexOf("var(");return-1===a?n(t,"","",""):(o=function(n){let i=0;for(let e=a+3,t=n.length;e<t;e++)if("("===n[e])i++;else if(")"===n[e]&&0==--i)return e;return-1}(t),i=t.substring(a+4,o),r=t.substring(0,a),t=e(t.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",t):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),t))}(n,(e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)}),!i)return e;let o=this._consumeCssProperties(""+i,r),a=e.slice(0,e.indexOf("--")),s=this._cssTextToMap(o,!0),l=s,c=this._map.get(t),u=c&&c.properties;u?l=Object.assign(Object.create(u),s):this._map.set(t,l);let d,p,h=[],m=!1;for(d in l)p=s[d],void 0===p&&(p="initial"),!u||d in u||(m=!0),h.push(`${t}_-_${d}: `+p);return m&&this._invalidateMixinEntry(c),c&&(c.properties=l),""+(a=n?e+";"+a:a)+h.join("; ")+";"}}Dl.prototype._separator="_-_",Object.defineProperty(Dl.prototype,"invalidCallback",{get:()=>kl,set(e){kl=e}});const Ll={},Bl="_applyShimCurrentVersion",$l="_applyShimNextVersion",Il="_applyShimValidatingVersion",Nl=Promise.resolve();function Ol(e){var e=Ll[e];e&&((e=e)[Bl]=e[Bl]||0,e[Il]=e[Il]||0,e[$l]=(e[$l]||0)+1)}function Fl(e){return e[Bl]===e[$l]}const Rl=new Dl;if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const c=new class{constructor(){this.customStyleInterface=null,Rl.invalidCallback=Ol}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Rl.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){this.ensure(),El(e)||(Ll[t]=e,t=Rl.transformTemplate(e,t),e._styleAst=t)}flushCustomStyles(){if(this.ensure(),this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let e=0;e<t.length;e++){var n=t[e],n=this.customStyleInterface.getStyleForCustomStyle(n);n&&Rl.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}}styleSubtree(e,t){if(this.ensure(),t&&Or(e,t),e.shadowRoot){this.styleElement(e);var n=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<n.length;e++)this.styleSubtree(n[e])}else{var i=e.children||e.childNodes;for(let e=0;e<i.length;e++)this.styleSubtree(i[e])}}styleElement(e){this.ensure();var t,n,i=function(e){let t=e.localName,n="",i="";return t?n=-1<t.indexOf("-")?t:(i=t,e.getAttribute&&e.getAttribute("is")||""):(n=e.is,i=e.extends),{is:n,typeExtension:i}}(e)["is"],r=Ll[i];r&&El(r)||!r||Fl(r)||(!Fl(n=r)&&n[Il]===n[$l]||(this.prepareTemplate(r,i),(t=r)[Il]=t[$l],t._validating)||(t._validating=!0,Nl.then(function(){t[Bl]=t[$l],t._validating=!1})),(n=e.shadowRoot)&&(i=n.querySelector("style"))&&(i.__cssRules=r._styleAst,i.textContent=_l(r._styleAst)))}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}};Nn=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,t,n){c.flushCustomStyles(),c.prepareTemplate(e,t)},prepareTemplateStyles(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom(e,t){},styleSubtree(e,t){c.flushCustomStyles(),c.styleSubtree(e,t)},styleElement(e){c.flushCustomStyles(),c.styleElement(e)},styleDocument(e){c.flushCustomStyles(),c.styleDocument(e)},getComputedStyleValue:(e,t)=>Fr(e,t),flushCustomStyles(){c.flushCustomStyles()},nativeCss:Yr,nativeShadow:Rr,cssBuild:zr,disableRuntime:Ln},Nn&&(window.ShadyCSS.CustomStyleInterface=Nn)}window.ShadyCSS.ApplyShim=Rl;const Hl=/:host\(:dir\((ltr|rtl)\)\)/g,zl=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Wl=/:dir\((?:ltr|rtl)\)/,Yl=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),jl=[];let Ul=null,Gl="";function Vl(){Gl=document.documentElement.getAttribute("dir")}function ql(e){e.__autoDirOptOut||e.setAttribute("dir",Gl)}function Xl(){Vl(),Gl=document.documentElement.getAttribute("dir");for(let e=0;e<jl.length;e++)ql(jl[e])}const Zl=Fo(e=>{Yl||Ul||(Vl(),(Ul=new MutationObserver(Xl)).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const n=fa(e);class t extends n{static _processStyleText(e,t){return e=n._processStyleText.call(this,e,t),!Yl&&Wl.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=(t=t.replace(Hl,':host([dir="$1"])')).replace(zl,':host([dir="$2"]) $1')}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){n.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Ul&&Ul.takeRecords().length&&Xl(),jl.push(this),ql(this))}disconnectedCallback(){var e;n.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir&&-1<(e=jl.indexOf(this))&&jl.splice(e,1)}}return t.__activateDir=!1,t});let Jl=!1,Kl=[],Ql=[];function ec(){Jl=!0,requestAnimationFrame(function(){Jl=!1;for(var e=Kl;e.length;)tc(e.shift());setTimeout(function(){var n=Ql;for(let e=0,t=n.length;e<t;e++)tc(n.shift())})})}function tc(e){var t=e[0],n=e[1],i=e[2];try{n.apply(t,i)}catch(e){setTimeout(()=>{throw e})}}function nc(e,t,n){Jl||ec(),Ql.push([e,t,n])}function ic(){document.body.removeAttribute("unresolved")}function rc(e,t,n){return{index:e,removed:t,addedCount:n}}"interactive"===document.readyState||"complete"===document.readyState?ic():window.addEventListener("DOMContentLoaded",ic);const oc=0,ac=1,sc=2,lc=3;function cc(s,l){{var c=s,u=0,d=s.length,p=l,h=0,m=l.length;let t,e=0,n=0,i=Math.min(d-u,m-h);if(0==u&&0==h&&(e=function(t,n,i){for(let e=0;e<i;e++)if(t[e]!==n[e])return e;return i}(c,p,i)),d==c.length&&m==p.length&&(n=function(e,t,n){let i=e.length,r=t.length,o=0;for(;o<n&&e[--i]===t[--r];)o++;return o}(c,p,i-e)),h+=e,m-=n,(d-=n)-(u+=e)==0&&m-h==0)return[];if(u==d){for(t=rc(u,[],0);h<m;)t.removed.push(p[h++]);return[t]}if(h==m)return[rc(u,[],d-u)];var f=function(e){let t=e.length-1,n=e[0].length-1,i=e[t][n],r=[];for(;0<t||0<n;){var o,a,s,l;0==t?(r.push(sc),n--):0==n?(r.push(lc),t--):(o=e[t-1][n-1],(l=(a=e[t-1][n])<(s=e[t][n-1])?a<o?a:o:s<o?s:o)==o?(o==i?r.push(oc):(r.push(ac),i=o),t--,n--):i=l==a?(r.push(lc),t--,a):(r.push(sc),n--,s))}return r.reverse(),r}(function(n,i,r,o){var a,s,l=m-o+1,c=d-i+1,u=new Array(l);for(let e=0;e<l;e++)u[e]=new Array(c),u[e][0]=e;for(let e=0;e<c;e++)u[0][e]=e;for(let t=1;t<l;t++)for(let e=1;e<c;e++)n[i+e-1]===r[o+t-1]?u[t][e]=u[t-1][e-1]:(a=u[t-1][e]+1,s=u[t][e-1]+1,u[t][e]=a<s?a:s);return u}(c,u,p,h));t=void 0;let r=[],o=u,a=h;for(let e=0;e<f.length;e++)switch(f[e]){case oc:t&&(r.push(t),t=void 0),o++,a++;break;case ac:(t=t||rc(o,[],0)).addedCount++,o++,t.removed.push(p[a]),a++;break;case sc:(t=t||rc(o,[],0)).addedCount++,o++;break;case lc:(t=t||rc(o,[],0)).removed.push(p[a]),a++}return t&&r.push(t),r}}function uc(e){return"slot"===e.localName}let dc=class{static getFlattenedNodes(e){var t=b(e);return uc(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map(e=>uc(e)?b(e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){uc(this._target)?this._listenSlots([this._target]):b(this._target).children&&(this._listenSlots(b(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){uc(this._target)?this._unlistenSlots([this._target]):b(this._target).children&&(this._unlistenSlots(b(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,la.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(t){if(t)for(let e=0;e<t.length;e++){var n=t[e];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;var i={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),r=cc(n,this._effectiveNodes);for(let n,e=0;e<r.length&&(n=r[e]);e++)for(let e,t=0;t<n.removed.length&&(e=n.removed[t]);t++)i.removedNodes.push(e);for(let t,e=0;e<r.length&&(t=r[e]);e++)for(let e=t.index;e<t.index+t.addedCount;e++)i.addedNodes.push(n[e]);this._effectiveNodes=n;let e=!1;return(i.addedNodes.length||i.removedNodes.length)&&(e=!0,this.callback.call(this._target,i)),e}_listenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];uc(n)&&n.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(t){for(let e=0;e<t.length;e++){var n=t[e];uc(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}};function pc(e,t){return mc.call(e,t)}const hc=Element.prototype,mc=hc.matches||hc.matchesSelector||hc.mozMatchesSelector||hc.msMatchesSelector||hc.oMatchesSelector||hc.webkitMatchesSelector;class s{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new dc(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(b(this.node).contains(e))return!0;let t=e,n=e.ownerDocument;for(;t&&t!==n&&t!==this.node;)t=b(t).parentNode||b(t).host;return t===this.node}getOwnerRoot(){return b(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?b(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=b(this.node).assignedSlot;for(;t;)e.push(t),t=b(t).assignedSlot;return e}importNode(e,t){var n=this.node instanceof Document?this.node:this.node.ownerDocument;return b(n).importNode(e,t)}getEffectiveChildNodes(){return dc.getFlattenedNodes(this.node)}queryDistributedElements(i){var r=this.getEffectiveChildNodes(),o=[];for(let e,t=0,n=r.length;t<n&&(e=r[t]);t++)e.nodeType===Node.ELEMENT_NODE&&pc(e,i)&&o.push(e);return o}get activeElement(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function fc(n,i){for(let t=0;t<i.length;t++){let e=i[t];Object.defineProperty(n,e,{get:function(){return this.node[e]},configurable:!0})}}class gc{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s;let yc=s;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class c extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(s.prototype).forEach(e=>{"activeElement"!=e&&(c.prototype[e]=s.prototype[e])}),fc(c.prototype,["classList"]),yc=c,Object.defineProperties(gc.prototype,{localTarget:{get(){var e=this.event.currentTarget,t=e&&xc(e).getOwnerRoot(),n=this.path;for(let e=0;e<n.length;e++){var i=n[e];if(xc(i).getOwnerRoot()===t)return i}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else{{var vc=s.prototype;var bc=["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"];for(let t=0;t<bc.length;t++){let e=bc[t];vc[e]=function(){return this.node[e].apply(this.node,arguments)}}}fc(s.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]);{var wc=s.prototype;var _c=["textContent","innerHTML","className"];for(let e=0;e<_c.length;e++){let t=_c[e];Object.defineProperty(wc,t,{get:function(){return this.node[t]},set:function(e){this.node[t]=e},configurable:!0})}}}const xc=function(e){if((e=e||document)instanceof yc)return e;if(e instanceof gc)return e;let t=e.__domApi;return t||(t=new(e instanceof Event?gc:yc)(e),e.__domApi=t),t},Cc=window.ShadyDOM,Pc=window.ShadyCSS;function Ec(e,t){return b(e).getRootNode()===t}const Ac="disable-upgrade",Tc=e=>{for(;e;){var t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},Sc=Fo(e=>{e=es(e);let t=Tc(e);return class extends e{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return t.call(this).concat(Ac)}_initializeProperties(){this.hasAttribute(Ac)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,n,i){e==Ac?this.__isUpgradeDisabled&&null==n&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&super.connectedCallback():super.attributeChangedCallback(e,t,n,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}}),Mc="disable-upgrade";let kc=window.ShadyCSS;const Dc=Fo(e=>{const t=Hs(es(e)),n=Qa?t:Zl(t),i=Tc(n),r={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class o extends n{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,n){(this.__dataAttributes&&this.__dataAttributes[e]||e===Mc)&&this.attributeChangedCallback(e,t,n,null)}setAttribute(e,t){var n;mo&&!this._legacyForceObservedAttributes?(n=this.getAttribute(e),super.setAttribute(e,t),this.__attributeReaction(e,n,String(t))):super.setAttribute(e,t)}removeAttribute(e){var t;mo&&!this._legacyForceObservedAttributes?(t=this.getAttribute(e),super.removeAttribute(e),this.__attributeReaction(e,t,null)):super.removeAttribute(e)}static get observedAttributes(){return mo&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],this.prototype),this.__observedAttributes):i.call(this).concat(Mc)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,n,i){t!==n&&(e==Mc?this.__isUpgradeDisabled&&null==n&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,b(this).isConnected)&&this.connectedCallback():(super.attributeChangedCallback(e,t,n,i),this.attributeChanged(e,t,n)))}attributeChanged(e,t,n){}_initializeProperties(){var e;oo&&this.hasAttribute(Mc)?this.__isUpgradeDisabled=!0:((e=Object.getPrototypeOf(this)).hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),(this.root=this).created(),mo&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners())}_takeAttributes(){var n=this.attributes;for(let e=0,t=n.length;e<t;e++){var i=n[e];this.__attributeReaction(i.name,null,i.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,n){this._propertyToAttribute(e,t,n)}serializeValueToAttribute(e,t,n){this._valueToNodeAttribute(n||this,e,t)}extend(n,i){if(!n||!i)return n||i;var r=Object.getOwnPropertyNames(i);for(let e,t=0;t<r.length&&(e=r[t]);t++){var o=Object.getOwnPropertyDescriptor(i,e);o&&Object.defineProperty(n,e,o)}return n}mixin(e,t){for(var n in t)e[n]=t[n];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)}fire(e,t,n){n=n||{},t=null==t?{}:t;e=new Event(e,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed}),e.detail=t,t=n.node||this;return b(t).dispatchEvent(e),e}listen(e,t,n){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),r=i.get(e);r||(r={},i.set(e,r));var o=t+n;r[o]||(r[o]=this._addMethodEventListenerToNode(e,t,n,this))}unlisten(e,t,n){e=e||this;var i=this.__boundListeners&&this.__boundListeners.get(e),n=t+n,r=i&&i[n];r&&(this._removeEventListenerFromNode(e,t,r),i[n]=null)}setScrollDirection(e,t){Bs(t||this,r[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){var e=b(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){var e=xc(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return xc(this).getEffectiveChildNodes()}queryDistributedElements(e){return xc(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}getEffectiveTextContent(){var n=this.getEffectiveChildNodes(),i=[];for(let e,t=0;e=n[t];t++)e.nodeType!==Node.COMMENT_NODE&&i.push(e.textContent);return i.join("")}queryEffectiveChildren(e){e=this.queryDistributedElements(e);return e&&e[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){e=this.root.querySelector(e||"slot");return e?xc(e).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})}isLightDescendant(e){return this!==e&&b(this).contains(e)&&b(this).getRootNode()===b(e).getRootNode()}isLocalDescendant(e){return this.root===b(e).getRootNode()}scopeSubtree(e,t=!1){var[e,n=!1]=[e,t];if(Cc&&Pc&&Cc.handlesDynamicScoping){const r=Pc.ScopingShim;if(r){const o=r.scopeForNode(e),a=b(e).getRootNode(),s=e=>{if(Ec(e,a)){var t=Array.from(Cc.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){var n,i=t[e];Ec(i,a)&&(n=r.currentScopeForNode(i))!==o&&(""!==n&&r.unscopeNode(i,n),r.scopeNode(i,o))}}};if(s(e),n){const n=new MutationObserver(t=>{for(let e=0;e<t.length;e++){var n=t[e];for(let e=0;e<n.addedNodes.length;e++){var i=n.addedNodes[e];i.nodeType===Node.ELEMENT_NODE&&s(i)}}});return n.observe(e,{childList:!0,subtree:!0}),n}}}return null}getComputedStyleValue(e){return kc.getComputedStyleValue(this,e)}debounce(e,t,n){return this._debouncers=this._debouncers||{},this._debouncers[e]=ns.debounce(this._debouncers[e],0<n?oa.after(n):la,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];e&&e.cancel()}async(e,t){return 0<t?oa.run(e.bind(this),t):~la.run(e.bind(this))}cancelAsync(e){e<0?la.cancel(~e):oa.cancel(e)}create(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var i in t)n[i]=t[i];return n}elementMatches(e,t){return pc(t||this,e)}toggleAttribute(e,t){let n=3===arguments.length?arguments[2]:this;return(t=1==arguments.length?!n.hasAttribute(e):t)?(b(n).setAttribute(e,""),!0):(b(n).removeAttribute(e),!1)}toggleClass(e,t,n){n=n||this,(t=1==arguments.length?!n.classList.contains(e):t)?n.classList.add(e):n.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,n,i){this.transform("translate3d("+e+","+t+","+n+")",i=i||this)}arrayDelete(e,t){let n;if(Array.isArray(e)){if(0<=(n=e.indexOf(t)))return e.splice(n,1)}else if(0<=(n=Go(this,e).indexOf(t)))return this.splice(e,n,1);return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return o.prototype.is="",o}),Lc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Bc={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},$c=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Bc);function Ic(e,t,n,i){var r,o=t,a=e,s=i,l=o._noAccessors,c=Object.getOwnPropertyNames(o);for(let e=0;e<c.length;e++){var u,d=c[e];d in s||(l?a[d]=o[d]:(u=Object.getOwnPropertyDescriptor(o,d))&&(u.configurable=!0,Object.defineProperty(a,d,u)))}for(r in Lc)t[r]&&(n[r]=n[r]||[],n[r].push(t[r]))}function Nc(e,t){for(const r in t){var n=e[r],i=t[r];e[r]=!("value"in i)&&n&&"value"in n?Object.assign({value:n.value},i):i}}const Oc=Dc(HTMLElement);function Fc(r,e,t){let o;const a={};class i extends e{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties),this._prepareTemplate()}else e._finalizeClass.call(this)}static get properties(){var t={};if(o)for(let e=0;e<o.length;e++)Nc(t,o[e].properties);return Nc(t,r.properties),t}static get observers(){let n=[];if(o)for(let e,t=0;t<o.length;t++)(e=o[t]).observers&&(n=n.concat(e.observers));return n=r.observers?n.concat(r.observers):n}created(){super.created();var t=a.created;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}_registered(){var e=i.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),oo&&s(e);var n=Object.getPrototypeOf(this);let t=a.beforeRegister;if(t)for(let e=0;e<t.length;e++)t[e].call(n);if(t=a.registered)for(let e=0;e<t.length;e++)t[e].call(n)}}_applyListeners(){super._applyListeners();var t=a.listeners;if(t)for(let e=0;e<t.length;e++){var n=t[e];if(n)for(var i in n)this._addMethodEventListenerToNode(this,i,n[i])}}_ensureAttributes(){var t=a.hostAttributes;if(t)for(let e=t.length-1;0<=e;e--){var n,i=t[e];for(n in i)this._ensureAttribute(n,i[n])}super._ensureAttributes()}ready(){super.ready();var t=a.ready;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attached(){super.attached();var t=a.attached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}detached(){super.detached();var t=a.detached;if(t)for(let e=0;e<t.length;e++)t[e].call(this)}attributeChanged(t,n,i){super.attributeChanged();var r=a.attributeChanged;if(r)for(let e=0;e<r.length;e++)r[e].call(this,t,n,i)}}var n;t&&(Array.isArray(t)||(t=[t]),n=e.prototype.behaviors,o=function t(n,i,r){i=i||[];for(let e=n.length-1;0<=e;e--){var o=n[e];o?Array.isArray(o)?t(o,i):i.indexOf(o)<0&&(!r||r.indexOf(o)<0)&&i.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return i}(t,null,n),i.prototype.behaviors=n?n.concat(t):o);const s=e=>{if(o){var t=e,n=o,i=a;for(let e=0;e<n.length;e++)Ic(t,n[e],i,$c)}Ic(e,r,a,Bc)};return oo||s(i.prototype),i.generatedFrom=r,i}function Rc(e){var t="function"==typeof e?e:Rc.Class(e);return e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t}function Hc(e,t,n,i,r){let o;r=(i=r&&(o="object"==typeof n&&null!==n)?e.__dataTemp[t]:i)!==n&&(i==i||n==n);return o&&r&&(e.__dataTemp[t]=n),r}Rc.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");t=t?t(Oc):Oc;return(t=Fc(e,t,e.behaviors)).is=t.prototype.is=e.is,t};Fn=Fo(e=>class extends e{_shouldPropertyChange(e,t,n){return Hc(this,e,t,n,!0)}}),e=Fo(e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,n){return Hc(this,e,t,n,this.mutableData)}});Fn._mutablePropertyChange=Hc;let zc=null;function Wc(){return zc}Wc.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Wc,writable:!0}});const Yc=Za(Wc),jc=Fn(Yc);function Uc(t,n){for(let e=0;e<n.length;e++){var i=n[e];if(Boolean(t)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)t?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(t)i.__polymerReplaced__=document.createComment("hidden-slot"),b(b(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const t=i.__polymerReplaced__;t&&b(b(t).parentNode).replaceChild(i,t)}else i.style&&(t?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=t,i._showHideChildren&&i._showHideChildren(t)}}class Gc extends Za(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 n=this.__templatizeOptions;(e&&n.instanceProps||!n.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,n){var i;this._methodHost&&this.__templatizeOptions.parentModel?this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,n(e)}):(i=this.__dataHost.__dataHost)&&i._addEventListenerToNode(e,t,n)}_showHideChildren(e){Uc(e,this.children)}_setUnmanagedPropertyToNode(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:super._setUnmanagedPropertyToNode(e,t,n)}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}}Gc.prototype.__dataHost,Gc.prototype.__templatizeOptions,Gc.prototype._methodHost,Gc.prototype.__templatizeOwner,Gc.prototype.__hostProps;const Vc=Fn(Gc);function qc(e){e=e.__dataHost;return e&&e._methodHost||e}function Xc(e,t,n){let i=n.mutableData?Vc:Gc;var r,o=class extends(i=Jc.mixin?Jc.mixin(i):i){},a=(o.prototype.__templatizeOptions=n,o.prototype._bindTemplate(e),o),s=t,l=n,c=s.hostProps||{};for(r in l.instanceProps){delete c[r];var u=l.notifyInstanceProp;u&&a.prototype._addPropertyEffect(r,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(i){return function(e,t,n){i.call(e.__templatizeOwner,e,t,n[t])}}((r,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,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}});return o}function Zc(t,n,i,r){var o=i.forwardHostProp;if(o&&n.hasHostProps){var a,s="template"==t.localName;let e=n.templatizeTemplateClass;if(!e){if(s){class r extends(i.mutableData?jc:Yc){}e=n.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}e=n.templatizeTemplateClass=r}for(a in n.hostProps)e.prototype._addPropertyEffect("_host_"+a,e.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:function(i){return function(e,t,n){i.call(e.__templatizeOwner,t.substring(6),n[t])}}((a,o))}),e.prototype._createNotifyingProperty("_host_"+a);if(ao&&r){var l=i;const d=r.constructor._properties,p=n["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)i=e,zc=t,Object.setPrototypeOf(t,i.prototype),new i,zc=null,t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,e.prototype);const i=n.hostProps;for(var u in i)if(u="_host_"+u,u in t){const i=t[u];delete t[u],t.__data[u]=i}}}}function Jc(e,t,n){if(io&&!qc(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");let i=((e.__templatizeOwner=t)?t.constructor:Gc)._parseTemplate(e),r=i.templatizeInstanceClass;r||(r=Xc(e,i,n),i.templatizeInstanceClass=r);var o=qc(e),n=(Zc(e,i,n,o),class extends r{});return n.prototype._methodHost=o,n.prototype.__dataHost=e,n.prototype.__templatizeOwner=t,n.prototype.__hostProps=i.hostProps,n}let Kc=!1;function Qc(){var e;return oo&&!Kr&&(Kc||(Kc=!0,(e=document.createElement("style")).textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)),1)}Bn=Hs(e(Za(HTMLElement))),customElements.define("dom-bind",class extends Bn{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),io)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,n,i){this.mutableData=!0}connectedCallback(){Qc()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){b(b(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let t;if(!this.__children){if(!(t=t||this.querySelector("template"))){let e=new MutationObserver(()=>{if(!(t=this.querySelector("template")))throw new Error("dom-bind requires a <template> child");e.disconnect(),this.render()});return void e.observe(this,{childList:!0})}this.root=this._stampTemplate(t),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}),$n=e(ts);class eu extends $n{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:!ho,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(),Qc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;var t=b(b(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__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=Jc(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(n,i){var r=this.__instances;for(let e,t=0;t<r.length&&(e=r[t]);t++)e.forwardHostProp(n,i)},notifyInstanceProp:function(e,t,n){var i,r;((i=this.as)===(r=t)||zo(i,r)||Wo(i,r))&&(i=e[this.itemsIndexAs],t==this.as&&(this.items[i]=n),r=Yo(this.as,JSCompiler_renameProperty("items",this)+"."+i,t),this.notifyPath(r,n))}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(n){if("string"!=typeof n)return n;{let e=n,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 n=this.__observePaths;for(let e=0;e<n.length;e++)0===t.indexOf(n[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=ns.debounce(this.__renderDebouncer,0<t?oa.after(t):la,e.bind(this)),rs(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),js()}__render(){var e,t,n;this.__ensureTemplatized()&&(e=this.items||[],t=this.__sortAndFilterItems(e),n=this.__calculateLimit(t.length),this.__updateInstances(e,n,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),ho&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})))}__sortAndFilterItems(i){let t=new Array(i.length);for(let e=0;e<i.length;e++)t[e]=e;return this.__filterFn&&(t=t.filter((e,t,n)=>this.__filterFn(i[e],t,n))),this.__sortFn&&t.sort((e,t)=>this.__sortFn(i[e],i[t])),t}__calculateLimit(t){let n=t;var i=this.__instances.length;if(this.initialCount){let e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(n=Math.min(t,this.initialCount),e=Math.max(n-i,0),this.__chunkCount=e||1):(e=Math.min(Math.max(t-i,0),this.__chunkCount),n=Math.min(i+e,t)),this.__shouldMeasureChunk=e===this.__chunkCount,this.__shouldContinueChunking=n<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,n}__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,n){var i=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){var o=this.__instances[r],a=n[r],s=e[a];i[a]=r,o?(o._setPendingProperty(this.as,s),o._setPendingProperty(this.indexAs,r),o._setPendingProperty(this.itemsIndexAs,a),o._flushProperties()):this.__insertInstance(s,r,a)}for(let e=this.__instances.length-1;e>=r;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){var t=this.__instances[e],n=b(t.root);for(let e=0;e<t.children.length;e++){var i=t.children[e];n.appendChild(i)}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,n){var i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=n,new this.__ctor(i)}__insertInstance(e,t,n){e=this.__stampInstance(e,t,n),n=this.__instances[t+1],n=n?n.children[0]:this;return b(b(this).parentNode).insertBefore(e.root,n),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),n=e.indexOf("."),i=n<0?e:e.substring(0,n);if(i==parseInt(i,10))return e=n<0?"":e.substring(n+1),this.__handleObservedPaths(e),n=this.__itemsIdxToInstIdx[i],(i=this.__instances[n])&&(n=this.as+(e?"."+e:""),i._setPendingPropertyOrPath(n,t,!1,!0),i._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,n=this.template,i=e;i;)if(t=i.__dataHost?i:i.__templatizeInstance){if(t.__dataHost==n)return t;i=t.__dataHost}else i=b(i).parentNode;return null}}customElements.define(eu.is,eu);class tu extends ts{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=ns.debounce(this.__renderDebouncer,la,()=>this.__render()),rs(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();var e=b(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||b(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Qc()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){var e=this._templateInfo?this:b(this).querySelector("template");if(!e){let e=new MutationObserver(()=>{if(!b(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=e}return!0}__ensureInstance(){var n=b(this).parentNode;if(this.__hasInstance()){var i=this.__getInstanceNodes();if(i&&i.length&&b(this).previousSibling!==i[i.length-1])for(let e,t=0;t<i.length&&(e=i[t]);t++)b(n).insertBefore(e,this)}else{if(!n)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(n)}return!0}render(){js()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),ho&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}In=po?class extends tu{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){var t=this.__dataHost||this;if(io&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var n=t._bindTemplate(this.__template,!0);n.runEffects=(e,t,n)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,n);else if(this.__instance)if(i=i||(this.__syncInfo={runEffects:e,changedProps:{}}),n)for(const e in t){const t=Ho(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,n),b(e).insertBefore(this.__instance,this)}__syncHostProperties(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&Uc(this.__instance.__hidden=e,this.__instance.templateInfo.childNodes),e||this.__syncHostProperties()}}:class extends tu{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Jc(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Ho(e)]=!0))}})),this.__instance=new this.__ctor,b(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){var n=this.__instance.children;if(n&&n.length){var i=b(n[0]).parentNode;if(i){i=b(i);for(let e,t=0;t<n.length&&(e=n[t]);t++)i.removeChild(e)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){var e=this.__invalidProps;if(e){for(var t in this.__invalidProps=null,e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(In.is,In);class nu extends Fo(e=>{return class extends es(e){static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){var n,i,r=t.path;r==JSCompiler_renameProperty("items",this)?(i=t.base||[],n=this.__lastItems,e!==this.__lastMulti&&this.clearSelection(),n&&(n=cc(i,n),this.__applySplices(n)),this.__lastItems=i,this.__lastMulti=e):t.path==JSCompiler_renameProperty("items",this)+".splices"?this.__applySplices(t.value.indexSplices):(n=r.slice((JSCompiler_renameProperty("items",this)+".").length),i=parseInt(n,10),n.indexOf(".")<0&&n==i&&this.__deselectChangedIdx(i))}__applySplices(t){let i=this.__selectedMap;for(let e=0;e<t.length;e++){let n=t[e];i.forEach((e,t)=>{e<n.index||(e>=n.index+n.removed.length?i.set(t,e+n.addedCount-n.removed.length):i.set(t,-1))});for(let e=0;e<n.addedCount;e++){var r=n.index+e;i.has(this.items[r])&&i.set(this.items[r],r)}}this.__updateLinks();let n=0;i.forEach((e,t)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),n,1):this.selected=this.selectedItem=null,i.delete(t)):n++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let t=0;this.__selectedMap.forEach(e=>{0<=e&&this.linkPaths(JSCompiler_renameProperty("items",this)+"."+e,JSCompiler_renameProperty("selected",this)+"."+t++)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),JSCompiler_renameProperty("items",this)+"."+e),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),JSCompiler_renameProperty("items",this)+"."+e)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let i=this.__selectedIndexForItemIndex(e);if(0<=i){let n=0;this.__selectedMap.forEach((e,t)=>{i==n++&&this.deselect(t)})}}__selectedIndexForItemIndex(e){e=this.__dataLinkedPaths[JSCompiler_renameProperty("items",this)+"."+e];if(e)return parseInt(e.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(t){var n=this.__selectedMap.get(t);if(0<=n){let e;this.__selectedMap.delete(t),this.multi&&(e=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),e,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}})(ts){static get is(){return"array-selector"}static get template(){return null}}customElements.define(nu.is,nu),Dc(HTMLElement).prototype,Rc({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}});const iu=Element.prototype,ru=iu.matches||iu.matchesSelector||iu.mozMatchesSelector||iu.msMatchesSelector||iu.oMatchesSelector||iu.webkitMatchesSelector;class ou{static getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}static isFocusable(e){return ru.call(e,"input, select, textarea, button, object")?ru.call(e,":not([disabled])"):ru.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}static isTabbable(e){return this.isFocusable(e)&&ru.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}static _normalizedTabIndex(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1}static _collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var n=this._normalizedTabIndex(e);let i,r=0<n;if(0<=n&&t.push(e),i="slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children)for(let e=0;e<i.length;e++)r=this._collectTabbableNodes(i[e],t)||r;return r}static _isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&"hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display}static _sortByTabIndex(e){var t,n=e.length;return n<2?e:(n=Math.ceil(n/2),t=this._sortByTabIndex(e.slice(0,n)),e=this._sortByTabIndex(e.slice(n)),this._mergeSortByTabIndex(t,e))}static _mergeSortByTabIndex(e,t){for(var n=[];0<e.length&&0<t.length;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}static _hasLowerTabOrder(e,t){e=Math.max(e.tabIndex,0),t=Math.max(t.tabIndex,0);return 0===e||0===t?e<t:t<e}}let au=0;const su={};class lu extends Ws(Js(ts)){static get template(){return $o`
1279
1279
  <style>
1280
1280
  :host {
1281
1281
  z-index: 200;
@@ -1652,7 +1652,7 @@
1652
1652
  </div>
1653
1653
 
1654
1654
  <iron-media-query query="(min-width: 375px)" query-matches="{{_desktopMode}}"></iron-media-query>
1655
- `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Ds(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Bs(this.$.scrollers,"pan-y"),_u.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];xu._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(xu._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,n,i;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,n=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,i=this.$.monthScroller.position+n-1<e,t?this._scrollToPosition(e,!0):i&&this._scrollToPosition(e-n+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+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=ns.debounce(this._debouncer,oa.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(xu._extractDateParts(e)):n}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=e,this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_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){var n,i,r,o;void 0===this._targetPosition?t?(this._targetPosition=e,n=t?300:0,i=0,r=this.$.monthScroller.position,o=e=>{var t,e=e-(i=i||e);e<n?(e=e,t=this._targetPosition-r,t=(e/=n/2)<1?t/2*e*e+r:-t/2*(--e*(e-2)-1)+r,this.$.monthScroller.position=t,window.requestAnimationFrame(o)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(o)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_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)")}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],n=0;n<t.length;n++){var i=t[n];if(wu(e,i))return i}}_onKeydown(e){var t,n=this._currentlyFocusedDate(),i=0<=e.composedPath().indexOf(this.$.todayButton),r=0<=e.composedPath().indexOf(this.$.cancelButton),o=!i&&!r,a=this._eventKey(e);if("tab"===a){e.stopPropagation();const n=this.hasAttribute("fullscreen"),a=e.shiftKey;n?e.preventDefault():a&&o||!a&&r?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):a&&i?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(a)switch(e.preventDefault(),e.stopPropagation(),a){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":o&&this._moveFocusByDays(1);break;case"left":o&&this._moveFocusByDays(-1);break;case"enter":o||r?this._close():i&&this._onTodayTap();break;case"space":r?this._close():i?this._onTodayTap():(t=this.focusedDate,xu._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(n,"minDate");break;case"end":this._moveFocusInsideMonth(n,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(xu._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate()+e),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this._currentlyFocusedDate(),n=new Date(0,0),i=(n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e),n.getMonth());n.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),n.getMonth()!==i&&n.setDate(0),this._dateAllowed(n,this.minDate,this.maxDate)?this.focusedDate=n:this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var n=new Date(0,0);n.setFullYear(e.getFullYear()),"minDate"===t?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(e,this.minDate,this.maxDate)?this._focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,n){return(!t||t<=e)&&(!n||e<=n)}_isTodayAllowed(e,t){var n=new Date,i=new Date(0,0);return i.setFullYear(n.getFullYear()),i.setMonth(n.getMonth()),i.setDate(n.getDate()),this._dateAllowed(i,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Eu.is,Eu);var Tu=new Set;const Au={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Tu.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():Kr||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=xc(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(Tu.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?Tu.delete(this):Tu.add(this)}};class Su extends ol(Us(Ws(zs((Nn=Hs(ts),class extends(Fn=[Au],Nn=Nn,Fc({},Dc(Nn),Fn)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",clear:"Clear",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let n,i=t.getMonth(),r=t.getFullYear();if(3===e.length?(r=parseInt(e[2]),e[2].length<3&&0<=r&&(r+=r<50?2e3:1900),i=parseInt(e[0])-1,n=parseInt(e[1])):2===e.length?(i=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:i,year:r}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Ds(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.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}_isNoInput(e,t,n){return!this._inputElement||e||t||!n.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let n="",i="0000",r=e.getFullYear();return r<0?(r=-r,n="-",i="000000"):1e4<=e.getFullYear()&&(n="+",i="000000"),[n+t(r,i),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var n;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(xu._extractDateParts(e)),(n=this._formatISO(e))!==this.value&&(this.validate(t),this.value=n),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(xu._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,n){t?(t=this._parseDate(t))?xu._dateEquals(this[e],t)||(this[e]=t):this.value=n:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,n;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(n=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=n-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(n=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=n-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||xu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=xu._getClosestDate(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_preventWebkitOverflowScrollingTouch(e){for(var t,n=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",n.push({element:e,oldInlineValue:t})),e=e.parentElement;return n}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(xu._extractDateParts(this._selectedDate)),n=!this._selectedDate||xu._dateAllowed(this._selectedDate,this._minDate,this._maxDate),i=!0;return this._inputElement&&(this._inputElement.checkValidity?i=this._inputElement.checkValidity(e):this._inputElement.validate&&(i=this._inputElement.validate(e))),t&&n&&i}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],n=0;n<t.length;n++){var i=t[n];if(wu(e,i))return i}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,n){e&&(t||n)&&(this.invalid=!xu._dateAllowed(e,t,n))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,xu._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,n){t&&!n&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return $o`
1655
+ `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{selectedDate:{type:Date,notify:!0},focusedDate:{type:Date,notify:!0,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,_focused:Boolean,label:String}}ready(){super.ready(),this.setAttribute("tabindex",0),this.addEventListener("keydown",this._onKeydown.bind(this)),Ds(this,"tap",this._stopPropagation),this.addEventListener("focus",this._onOverlayFocus.bind(this)),this.addEventListener("blur",this._onOverlayBlur.bind(this))}connectedCallback(){super.connectedCallback(),this._closeYearScroller(),this._toggleAnimateClass(!0),Bs(this.$.scrollers,"pan-y"),_u.requestAvailability()}announceFocusedDate(){var e=this._currentlyFocusedDate(),t=[];xu._dateEquals(e,new Date)&&t.push(this.i18n.today),t=t.concat([this.i18n.weekdays[e.getDay()],e.getDate(),this.i18n.monthNames[e.getMonth()],e.getFullYear()]),this.showWeekNumbers&&1===this.i18n.firstDayOfWeek&&(t.push(this.i18n.week),t.push(xu._getISOWeekNumber(e))),this.dispatchEvent(new CustomEvent("iron-announce",{bubbles:!0,composed:!0,detail:{text:t.join(" ")}}))}focusCancel(){this.$.cancelButton.focus()}scrollToDate(e,t){this._scrollToPosition(this._differenceInMonths(e,this._originDate),t)}_focusedDateChanged(e){this.revealDate(e)}_isCurrentYear(e){return 0===e}_isSelectedYear(e,t){if(t)return t.getFullYear()===this._originDate.getFullYear()+e}revealDate(e){var t,n,i;e&&(e=this._differenceInMonths(e,this._originDate),t=this.$.monthScroller.position>e,n=this.$.monthScroller.clientHeight/this.$.monthScroller.itemHeight,i=this.$.monthScroller.position+n-1<e,t?this._scrollToPosition(e,!0):i&&this._scrollToPosition(e-n+1,!0))}_onOverlayFocus(){this._focused=!0}_onOverlayBlur(){this._focused=!1}_initialPositionChanged(e){this.scrollToDate(e)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position),this.$.yearScroller.position=(this.$.monthScroller.position+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=ns.debounce(this._debouncer,oa.after(300),()=>this._ignoreTaps=!1)}_formatDisplayed(e,t,n){return e?t(xu._extractDateParts(e)):n}_onTodayTap(){var e=new Date;Math.abs(this.$.monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this.selectedDate=e,this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_showClear(e){return!!e}_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){var n,i,r,o;void 0===this._targetPosition?t?(this._targetPosition=e,n=t?300:0,i=0,r=this.$.monthScroller.position,o=e=>{var t,e=e-(i=i||e);e<n?(e=e,t=this._targetPosition-r,t=(e/=n/2)<1?t/2*e*e+r:-t/2*(--e*(e-2)-1)+r,this.$.monthScroller.position=t,window.requestAnimationFrame(o)):(this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:r}})),this.$.monthScroller.position=this._targetPosition,this._targetPosition=void 0),setTimeout(this._repositionYearScroller.bind(this),1)},window.requestAnimationFrame(o)):(this.$.monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller()):this._targetPosition=e}_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)")}_yearAfterXYears(e){var t=new Date(this._originDate);return t.setFullYear(parseInt(e)+this._originDate.getFullYear()),t.getFullYear()}_yearAfterXMonths(e){return this._dateAfterXMonths(e).getFullYear()}_dateAfterXMonths(e){var t=new Date(this._originDate);return t.setDate(1),t.setMonth(parseInt(e)+this._originDate.getMonth()),t}_differenceInMonths(e,t){return 12*(e.getFullYear()-t.getFullYear())-t.getMonth()+e.getMonth()}_differenceInYears(e,t){return this._differenceInMonths(e,t)/12}_clear(){this.selectedDate=""}_close(){var e=this.getRootNode().host,e=e?e.getRootNode().host:null;e&&(e.opened=!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","right","left","enter","space","home","end","pageup","pagedown","tab","esc"],n=0;n<t.length;n++){var i=t[n];if(wu(e,i))return i}}_onKeydown(e){var t,n=this._currentlyFocusedDate(),i=0<=e.composedPath().indexOf(this.$.todayButton),r=0<=e.composedPath().indexOf(this.$.cancelButton),o=!i&&!r,a=this._eventKey(e);if("tab"===a){e.stopPropagation();const n=this.hasAttribute("fullscreen"),a=e.shiftKey;n?e.preventDefault():a&&o||!a&&r?(e.preventDefault(),this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))):a&&i?(this._focused=!0,setTimeout(()=>this.revealDate(this.focusedDate),1)):this._focused=!1}else if(a)switch(e.preventDefault(),e.stopPropagation(),a){case"down":this._moveFocusByDays(7),this.focus();break;case"up":this._moveFocusByDays(-7),this.focus();break;case"right":o&&this._moveFocusByDays(1);break;case"left":o&&this._moveFocusByDays(-1);break;case"enter":o||r?this._close():i&&this._onTodayTap();break;case"space":r?this._close():i?this._onTodayTap():(t=this.focusedDate,xu._dateEquals(t,this.selectedDate)?(this.selectedDate="",this.focusedDate=t):this.selectedDate=t);break;case"home":this._moveFocusInsideMonth(n,"minDate");break;case"end":this._moveFocusInsideMonth(n,"maxDate");break;case"pagedown":this._moveFocusByMonths(e.shiftKey?12:1);break;case"pageup":this._moveFocusByMonths(e.shiftKey?-12:-1);break;case"esc":this._cancel()}}_currentlyFocusedDate(){return this.focusedDate||this.selectedDate||this.initialPosition||new Date}_focusDate(e){this.focusedDate=e,this._focusedMonthDate=e.getDate()}_focusClosestDate(e){this._focusDate(xu._getClosestDate(e,[this.minDate,this.maxDate]))}_moveFocusByDays(e){var t=this._currentlyFocusedDate(),n=new Date(0,0);n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate()+e),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusByMonths(e){var t=this._currentlyFocusedDate(),n=new Date(0,0),i=(n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()+e),n.getMonth());n.setDate(this._focusedMonthDate||(this._focusedMonthDate=t.getDate())),n.getMonth()!==i&&n.setDate(0),this._dateAllowed(n,this.minDate,this.maxDate)?this.focusedDate=n:this._dateAllowed(t,this.minDate,this.maxDate)?0<e?this._focusDate(this.maxDate):this._focusDate(this.minDate):this._focusClosestDate(t)}_moveFocusInsideMonth(e,t){var n=new Date(0,0);n.setFullYear(e.getFullYear()),"minDate"===t?(n.setMonth(e.getMonth()),n.setDate(1)):(n.setMonth(e.getMonth()+1),n.setDate(0)),this._dateAllowed(n,this.minDate,this.maxDate)?this._focusDate(n):this._dateAllowed(e,this.minDate,this.maxDate)?this._focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t,n){return(!t||t<=e)&&(!n||e<=n)}_isTodayAllowed(e,t){var n=new Date,i=new Date(0,0);return i.setFullYear(n.getFullYear()),i.setMonth(n.getMonth()),i.setDate(n.getDate()),this._dateAllowed(i,e,t)}_stopPropagation(e){e.stopPropagation()}}customElements.define(Eu.is,Eu);var Au=new Set;const Tu={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Au.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),(this._parentResizable=e)&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);-1<t&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():Kr||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=xc(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){var t;this.isAttached&&("loading"===document.readyState?(t=this._requestResizeNotifications.bind(this),document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})):(this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(Au.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())))},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?Au.delete(this):Au.add(this)}};class Su extends ol(Us(Ws(zs((Nn=Hs(ts),class extends(Fn=[Tu],Nn=Nn,Fc({},Dc(Nn),Fn)){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},required:{type:Boolean,value:!1},name:{type:String},initialPosition:String,label:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},showWeekNumbers:{type:Boolean},_fullscreen:{value:!1,observer:"_fullscreenChanged"},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,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,week:"Week",calendar:"Calendar",clear:"Clear",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let n,i=t.getMonth(),r=t.getFullYear();if(3===e.length?(r=parseInt(e[2]),e[2].length<3&&0<=r&&(r+=r<50?2e3:1900),i=parseInt(e[0])-1,n=parseInt(e[1])):2===e.length?(i=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:i,year:r}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(_fullscreen, _ios, i18n, i18n.*)"},_ios:{type:Boolean,value:navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/)},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_ignoreAnnounce:{value:!0},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_updateHasValue(value)","_validateInput(_selectedDate, _minDate, _maxDate)","_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)","_announceFocusedDate(_focusedDate, opened, _ignoreAnnounce)"]}ready(){super.ready(),this._boundOnScroll=this._onScroll.bind(this),this._boundFocus=this._focus.bind(this),this._boundUpdateAlignmentAndPosition=this._updateAlignmentAndPosition.bind(this),Ds(this,"tap",e=>{var t=e.composedPath().indexOf(this._inputElement);0===e.composedPath().slice(0,t).filter(e=>e.getAttribute&&"clear-button"===e.getAttribute("part")).length&&this.open()}),this.addEventListener("touchend",this._preventDefault.bind(this)),this.addEventListener("keydown",this._onKeydown.bind(this)),this.addEventListener("input",this._onUserInput.bind(this)),this.addEventListener("focus",e=>this._noInput&&e.target.blur())}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this.$.overlay.addEventListener("vaadin-overlay-escape-press",this._boundFocus),this._overlayContent.addEventListener("focus",()=>this.focusElement._setFocused(!0)),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this._overlayInitialized&&this.$.overlay.removeEventListener("vaadin-overlay-escape-press",this._boundFocus),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}close(){this._overlayInitialized&&this.$.overlay.close()}get _inputElement(){return this._input()}get _nativeInput(){if(this._inputElement)return this._inputElement.focusElement||this._inputElement.inputElement||(window.unwrap?window.unwrap(this._inputElement):this._inputElement)}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.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}_isNoInput(e,t,n){return!this._inputElement||e||t||!n.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let n="",i="0000",r=e.getFullYear();return r<0?(r=-r,n="-",i="000000"):1e4<=e.getFullYear()&&(n="+",i="000000"),[n+t(r,i),t(e.getMonth()+1),t(e.getDate())].join("-")}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),e&&this._updateAlignmentAndPosition()}_selectedDateChanged(e,t){var n;void 0!==e&&void 0!==t&&(this.__userInputOccurred&&(this.__dispatchChange=!0),t=e&&t(xu._extractDateParts(e)),(n=this._formatISO(e))!==this.value&&(this.validate(t),this.value=n),this.__userInputOccurred=!1,this.__dispatchChange=!1,this._focusedDate=e,this._inputValue=e?t:"")}_focusedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__userInputOccurred=!0,this._ignoreFocusedDateChange||this._noInput||(this._inputValue=e?t(xu._extractDateParts(e)):""))}_updateHasValue(e){e?this.setAttribute("has-value",""):this.removeAttribute("has-value")}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,n){t?(t=this._parseDate(t))?xu._dateEquals(this[e],t)||(this[e]=t):this.value=n:this[e]=""}_valueChanged(e,t){this.__dispatchChange&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._handleDateChange("_selectedDate",e,t)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_updateAlignmentAndPosition(){var e,t,n;this._overlayInitialized&&(this._fullscreen||(t=(e=this._inputElement.getBoundingClientRect()).top>window.innerHeight/2,e.left+this.clientWidth/2>window.innerWidth/2?(n=Math.min(window.innerWidth,document.documentElement.clientWidth),this.$.overlay.setAttribute("right-aligned",""),this.$.overlay.style.removeProperty("left"),this.$.overlay.style.right=n-e.right+"px"):(this.$.overlay.removeAttribute("right-aligned"),this.$.overlay.style.removeProperty("right"),this.$.overlay.style.left=e.left+"px"),t?(n=Math.min(window.innerHeight,document.documentElement.clientHeight),this.$.overlay.setAttribute("bottom-aligned",""),this.$.overlay.style.removeProperty("top"),this.$.overlay.style.bottom=n-e.top+"px"):(this.$.overlay.removeAttribute("bottom-aligned"),this.$.overlay.style.removeProperty("bottom"),this.$.overlay.style.top=e.bottom+"px")),this.$.overlay.setAttribute("dir",getComputedStyle(this._inputElement).getPropertyValue("direction")),this._overlayContent._repositionYearScroller())}_fullscreenChanged(){this._overlayInitialized&&this.$.overlay.opened&&this._updateAlignmentAndPosition()}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring")||this.focusElement&&this.focusElement.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||xu._dateAllowed(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=xu._getClosestDate(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this.addEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focus(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&this.focusElement.blur(),this.updateStyles(),this._ignoreAnnounce=!1}_preventWebkitOverflowScrollingTouch(e){for(var t,n=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",n.push({element:e,oldInlineValue:t})),e=e.parentElement;return n}_onOverlayClosed(){var e,t;this._ignoreAnnounce=!0,window.removeEventListener("scroll",this._boundOnScroll,!0),this.removeEventListener("iron-resize",this._boundUpdateAlignmentAndPosition),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.updateStyles(),this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",t=(t=this.i18n.parseDate(e))&&this._parseDate(`${t.year}-${t.month+1}-`+t.day),this._isValidDate(t)?this._selectedDate=t:(this._selectedDate=null,this._inputValue=e)):this._focusedDate&&(this._selectedDate=this._focusedDate),this._ignoreFocusedDateChange=!1,this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.validate()}validate(e){return this.invalid=!1,e=void 0!==e?e:this._inputValue,!(this.invalid=!this.checkValidity(e))}checkValidity(e){var t=!e||this._selectedDate&&e===this.i18n.formatDate(xu._extractDateParts(this._selectedDate)),n=!this._selectedDate||xu._dateAllowed(this._selectedDate,this._minDate,this._maxDate),i=!0;return this._inputElement&&(this._inputElement.checkValidity?i=this._inputElement.checkValidity(e):this._inputElement.validate&&(i=this._inputElement.validate(e))),t&&n&&i}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._updateAlignmentAndPosition()}_focus(){this._noInput?this._overlayInitialized&&this._overlayContent.focus():this._inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_preventDefault(e){e.preventDefault()}_eventKey(e){for(var t=["down","up","enter","esc","tab"],n=0;n<t.length;n++){var i=t[n];if(wu(e,i))return i}}_isValidDate(e){return e&&!isNaN(e.getTime())}_onKeydown(e){switch(this._noInput&&-1===[9].indexOf(e.keyCode)&&e.preventDefault(),this._eventKey(e)){case"down":case"up":e.preventDefault(),this.opened?(this._overlayContent.focus(),this._overlayContent._onKeydown(e)):(this._focusOverlayOnOpen=!0,this.open());break;case"enter":{const e=this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(e.year+"-"+(e.month+1)+"-"+e.day);this._overlayInitialized&&this._overlayContent.focusedDate&&this._isValidDate(t)&&(this._selectedDate=this._overlayContent.focusedDate),this.close();break}case"esc":this._focusedDate=this._selectedDate,this._close();break;case"tab":this.opened&&(e.preventDefault(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():(this._overlayContent.focus(),this._overlayContent.revealDate(this._focusedDate)))}}_validateInput(e,t,n){e&&(t||n)&&(this.invalid=!xu._dateAllowed(e,t,n))}_onUserInput(e){!this.opened&&this._inputElement.value&&this.open(),this._userInputValueChanged()}_userInputValueChanged(e){if(this.opened&&this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(this._inputValue),t=e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day);this._isValidDate(t)&&(this._ignoreFocusedDateChange=!0,xu._dateEquals(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}_announceFocusedDate(e,t,n){t&&!n&&this._overlayContent.announceFocusedDate()}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}))))){static get template(){return $o`
1656
1656
  <style>
1657
1657
  :host {
1658
1658
  display: inline-block;
@@ -1687,5 +1687,5 @@
1687
1687
 
1688
1688
  <iron-media-query query="[[_fullscreenMediaQuery]]" query-matches="{{_fullscreen}}">
1689
1689
  </iron-media-query>
1690
- `}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),nc(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Mu(e){let n,i,r,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){n=sn("p"),i=sn("strong"),r=cn(o),pn(n,"class","SelfExclusionDescriptionText")},m(e,t){on(e,n,t),rn(n,i),rn(i,r)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&hn(r,o)},d(e){e&&an(n)}}}function ku(e){let n,i,r,o=e[8]("permanentSelfExclusion")+"";return{c(){n=sn("p"),i=sn("strong"),r=cn(o),pn(n,"class","SelfExclusionDescriptionText")},m(e,t){on(e,n,t),rn(n,i),rn(i,r)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&hn(r,o)},d(e){e&&an(n)}}}function Du(n){let i,r,F,o,a,R,s,l,c,H,u,d,z,p,h,W,Y,j,m,U,G,f,V,g,q,y,v,X,Z,b,J,w,_,K,Q,x,ee,C,te,P,ne,E,T,ie,re,oe,A=n[8]("title")+"",S=n[8]("selfExclusionText1",{values:{operatorname:n[0]}})+"",M=n[8]("selfExclusionText2")+"",k=n[8]("selfExclusionText3")+"",D=n[8]("selfExclusionText4")+"",L=n[8]("duration")+"",B=n[8]("forever")+"",$=n[8]("save")+"",I=n[9]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[8]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","PlayerSelfExclusionTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function ae(e){return e[4]?ku:Mu}let N=ae(n),O=N(n);return{c(){i=sn("div"),r=sn("form"),I&&I.c(),F=un(),o=sn("h2"),a=cn(A),R=un(),s=sn("div"),l=sn("p"),c=cn(S),H=un(),u=sn("p"),d=cn(M),z=un(),p=sn("p"),h=cn(k),W=un(),Y=cn(n[1]),j=un(),m=sn("p"),U=cn(D),G=un(),f=sn("a"),V=cn(n[1]),q=un(),y=sn("div"),v=sn("label"),X=cn(L),Z=un(),b=sn("vaadin-date-picker"),J=un(),w=sn("div"),_=sn("label"),K=cn(B),Q=un(),x=sn("input"),ee=un(),C=sn("span"),te=un(),P=sn("div"),O.c(),ne=un(),E=sn("div"),T=sn("button"),ie=cn($),this.c=se,pn(o,"class","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),pn(l,"class","SelfExclusionDescriptionText"),pn(u,"class","SelfExclusionDescriptionText"),pn(p,"class","SelfExclusionDescriptionText"),pn(f,"href",g="mailto:"+n[1]),pn(m,"class","SelfExclusionDescriptionText"),pn(s,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),pn(v,"for","SelfExclusionDate"),le(b,"min",n[6]),le(b,"max",n[7]),le(b,"value",n[6]),pn(y,"class","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),pn(x,"type","Checkbox"),pn(C,"class","Checkmark"),pn(C,"part","Checkmark"),pn(_,"class","SelfExclusionRadio"),pn(w,"class","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),pn(P,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),pn(T,"class","SelfExclusionSave"),pn(E,"class","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),pn(r,"class","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),I&&I.m(r,null),rn(r,F),rn(r,o),rn(o,a),rn(r,R),rn(r,s),rn(s,l),rn(l,c),rn(s,H),rn(s,u),rn(u,d),rn(s,z),rn(s,p),rn(p,h),rn(p,W),rn(p,Y),rn(s,j),rn(s,m),rn(m,U),rn(m,G),rn(m,f),rn(f,V),rn(r,q),rn(r,y),rn(y,v),rn(v,X),rn(y,Z),rn(y,b),n[18](b),rn(r,J),rn(r,w),rn(w,_),rn(_,K),rn(_,Q),rn(_,x),rn(_,ee),rn(_,C),rn(r,te),rn(r,P),O.m(P,null),rn(r,ne),rn(r,E),rn(E,T),rn(T,ie),n[21](i),re||(oe=[dn(x,"click",n[19]),dn(T,"click",n[20])],re=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&A!==(A=e[8]("title")+"")&&hn(a,A),257&t[0]&&S!==(S=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&hn(c,S),256&t[0]&&M!==(M=e[8]("selfExclusionText2")+"")&&hn(d,M),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&hn(h,k),2&t[0]&&hn(Y,e[1]),256&t[0]&&D!==(D=e[8]("selfExclusionText4")+"")&&hn(U,D),2&t[0]&&hn(V,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&pn(f,"href",g),256&t[0]&&L!==(L=e[8]("duration")+"")&&hn(X,L),64&t[0]&&le(b,"min",e[6]),128&t[0]&&le(b,"max",e[7]),64&t[0]&&le(b,"value",e[6]),256&t[0]&&B!==(B=e[8]("forever")+"")&&hn(K,B),N===(N=ae(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(P,null))),256&t[0]&&$!==($=e[8]("save")+"")&&hn(ie,$)},i:se,o:se,d(e){e&&an(i),I&&I.d(),n[18](null),O.d(),n[21](null),re=!1,nn(oe)}}}function Lu(t,e,n){let i;ue(t,me,e=>n(8,i=e));let r,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"!==fe(m),g=!1,y="",v="",b=new Date;Object.keys(Cr).forEach(e=>{xr(e,Cr[e])}),a=W(b.setDate(b.getDate())).add(6,"M").format("YYYY-MM-DD"),s=W(b.setDate(b.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const w=()=>{n(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(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)};de(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&n(13,l=e.lang),"operator"in e&&n(0,c=e.operator),"supportemail"in e&&n(1,u=e.supportemail),"clientstyling"in e&&n(14,d=e.clientstyling),"clientstylingurl"in e&&n(15,p=e.clientstylingurl),"translationurl"in e&&n(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,he.set(e)),32772&t.$$.dirty[0]&&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;16388&t.$$.dirty[0]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{xr(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,r,o,g,v,a,s,i,f,w,x,C,l,d,p,h,()=>C(),function(e){pe[e?"unshift":"push"](()=>{o=e,n(3,o)})},()=>w(),e=>x(e),function(e){pe[e?"unshift":"push"](()=>{r=e,n(2,r)})}]}function Bu(e,t){a(e,t)}customElements.define(Su.is,Su),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends t{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-pink-500, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Lu,Du,n,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&on(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 $u={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 Iu(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[2]("modal")+"",v=n[2]("accountClosureCancel")+"",b=n[2]("accountClosureConfirm")+"";return{c(){i=sn("div"),r=sn("div"),o=sn("div"),a=sn("p"),s=cn(y),l=un(),c=sn("div"),u=sn("button"),d=cn(v),p=un(),h=sn("button"),m=cn(b),pn(a,"class","ModalText"),pn(u,"class","ModalCancel"),pn(h,"class","ModalConfirm"),pn(c,"class","ModalButtons"),pn(o,"class","ModalBody"),pn(r,"class","ModalContent"),pn(i,"class","ModalWrapper "+(n[3]?"ModalWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(o,l),rn(o,c),rn(c,u),rn(u,d),rn(c,p),rn(c,h),rn(h,m),f||(g=[dn(u,"click",n[13]),dn(h,"click",n[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&hn(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&hn(d,v),4&t&&b!==(b=e[2]("accountClosureConfirm")+"")&&hn(m,b)},d(e){e&&an(i),f=!1,nn(g)}}}function Nu(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=n[2]("title")+"",w=n[2]("accountClosureDescription")+"",_=n[2]("closeAccount")+"",x=n[3]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[2]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","AccountClosureTitleMobile"),pn(p,"part","AccountClosureTitleMobile"),pn(i,"class","MenuReturnButton"),pn(i,"part","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),C=n[1]&&Iu(n);return{c(){i=sn("div"),r=sn("div"),x&&x.c(),o=un(),a=sn("h2"),s=cn(b),l=un(),c=sn("div"),u=sn("p"),d=cn(w),p=un(),h=sn("div"),m=sn("button"),f=cn(_),g=un(),C&&C.c(),this.c=se,pn(a,"class","AccountClosureTitle "+(n[3]?"AccountClosureTitleNone":"")),pn(c,"class","AccountClosureDescription "+(n[3]?"AccountClosureDescriptionMobile":"")),pn(m,"class","AccountClosureSave "+(n[3]?"AccountClosureSaveMobile":"")),pn(h,"class","AccountClosureActionButtons "+(n[3]?"AccountClosureActionButtonsMobile":"")),pn(r,"class","AccountClosureWrapper "+(n[3]?"AccountClosureWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),x&&x.m(r,null),rn(r,o),rn(r,a),rn(a,s),rn(r,l),rn(r,c),rn(c,u),rn(u,d),rn(r,p),rn(r,h),rn(h,m),rn(m,f),rn(i,g),C&&C.m(i,null),n[15](i),y||(v=dn(m,"click",n[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&b!==(b=e[2]("title")+"")&&hn(s,b),4&t&&w!==(w=e[2]("accountClosureDescription")+"")&&hn(d,w),4&t&&_!==(_=e[2]("closeAccount")+"")&&hn(f,_),e[1]?C?C.p(e,t):((C=Iu(e)).c(),C.m(i,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&an(i),x&&x.d(),C&&C.d(),n[15](null),y=!1,v()}}}function Ou(t,e,n){let i;ue(t,me,e=>n(2,i=e));let r,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==fe(c),d=!1;Object.keys($u).forEach(e=>{Bu(e,$u[e])});const p=e=>{n(1,d=e)},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&&n(7,o=e.lang),"clientstyling"in e&&n(8,a=e.clientstyling),"clientstylingurl"in e&&n(9,s=e.clientstylingurl),"translationurl"in e&&n(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,he.set(e)),257&t.$$.dirty&&a&&r&&((e=document.createElement("style")).innerHTML=a,r.appendChild(e)),513&t.$$.dirty&&s&&r){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Bu(e,t[e])})}).catch(e=>{console.log(e)})},[r,d,i,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){pe[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function Fu(e,t){a(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Ou,Nu,n,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&on(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 Ru={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 Hu(e,t){a(e,t)}const zu={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 Wu(e,t){a(e,t)}const Yu={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 ju(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[4]("name")+"";function v(e){return e[0]?Gu:Uu}let b=v(n),w=b(n);return{c(){i=sn("section"),r=sn("div"),o=sn("div"),(a=sn("div")).textContent="i",s=un(),l=sn("div"),c=cn(y),u=un(),(d=sn("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=un(),h=sn("div"),w.c(),pn(a,"class","InfoCardPopupIcon"),pn(l,"class","InfoCardPopupTitle"),pn(d,"class","InfoCardPopupCloseButton"),pn(o,"class","InfoCardPopupHeader"),pn(h,"class","InfoCardPopupContentArea"),pn(r,"class",m="InfoCardPopupWrapper "+(n[5]?"InfoCardPopupMobileWrapper":"")+" "+(n[0]?"InfoCardPopupLimitChanged":"")),pn(i,"class",n[5]?"InfoCardPopupMobileModal":"")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(o,s),rn(o,l),rn(l,c),rn(o,u),rn(o,d),rn(r,p),rn(r,h),w.m(h,null),n[12](i),f||(g=dn(d,"click",G(n[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&hn(c,y),b===(b=v(e))&&w?w.p(e,t):(w.d(1),(w=b(e))&&(w.c(),w.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&pn(r,"class",m)},d(e){e&&an(i),w.d(),n[12](null),f=!1,g()}}}function Uu(e){let n,i,r=e[4]("defaultText")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InfoCardPopupContent")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Gu(e){let n,i,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InfoCardPopupContent")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&hn(i,r)},d(e){e&&an(n)}}}function Vu(e){let n,i=e[3]&&ju(e);return{c(){i&&i.c(),n=I(),this.c=se},m(e,t){i&&i.m(e,t),on(e,n,t)},p(e,[t]){e[3]?i?i.p(e,t):((i=ju(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:se,o:se,d(e){i&&i.d(e),e&&an(n)}}}function qu(t,e,n){let i,{showpopup:r=""}=(ue(t,me,e=>n(4,i=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(Yu).forEach(e=>{Wu(e,Yu[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==fe(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&n(3,p=!1)};return de(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&n(7,r=e.showpopup),"iteminfoamount"in e&&n(0,o=e.iteminfoamount),"lang"in e&&n(8,a=e.lang),"playercurrency"in e&&n(1,s=e.playercurrency),"clientstyling"in e&&n(9,l=e.clientstyling),"clientstylingurl"in e&&n(10,c=e.clientstylingurl),"translationurl"in e&&n(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,he.set(e),o<0&&n(0,o="0"),n(3,p=r)),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=>{Wu(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,i,m,()=>{n(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,c,u,function(e){pe[e?"unshift":"push"](()=>{d=e,n(2,d)})}]}function Xu(e,t){a(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends t{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-orange-500, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},qu,Vu,n,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&on(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 Zu={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 Ju(e,{delay:t=0,duration:n=400,easing:i=w}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:e=>"opacity: "+e*r}}function Ku(n){let i,r,t,o;return{c(){i=sn("div"),(r=sn("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',pn(r,"class","ModalWindow"),pn(r,"id","Modal")},m(e,t){on(e,i,t),rn(i,r),n[6](r),n[7](i),o=!0},p(e,t){n=e},i(e){o||(yn(()=>{o&&(t=t||ne(r,Ju,{transitionDuration:n[1]},!0)).run(1)}),o=!0)},o(e){(t=t||ne(r,Ju,{transitionDuration:n[1]},!1)).run(0),o=!1},d(e){e&&an(i),n[6](null),e&&t&&t.end(),n[7](null)}}}function Qu(e){let n,i,r=e[0]&&Ku(e);return{c(){r&&r.c(),n=I(),this.c=se},m(e,t){r&&r.m(e,t),on(e,n,t),i=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&Q(r,1)):((r=Ku(e)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(J(),ee(r,1,1,()=>{r=null}),K())},i(e){i||(Q(r),i=!0)},o(e){ee(r),i=!1},d(e){r&&r.d(e),e&&an(n)}}}function ed(t,e,n){let i,r,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&n(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(n(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return de(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&n(0,o=e.show),"duration"in e&&n(1,a=e.duration),"clientstyling"in e&&n(4,s=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&i){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&i&&((e=document.createElement("style")).innerHTML=s,i.appendChild(e))},[o,a,i,void 0,s,l,function(e){pe[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(e){pe[e?"unshift":"push"](()=>{i=e,n(2,i)})}]}function td(e,t){a(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},ed,Qu,n,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&on(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 nd={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 id(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[2]("cancel")+"",v=n[2]("confirm")+"",b=!n[3]&&function(n){let i,r,o;return{c(){(i=sn("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>',pn(i,"class","ModalCloseBtn"),pn(i,"role","button")},m(e,t){on(e,i,t),r||(o=dn(i,"click",n[4]),r=!0)},p:se,d(e){e&&an(i),r=!1,o()}}}(n);return{c(){i=sn("div"),b&&b.c(),r=un(),o=sn("div"),a=sn("div"),s=cn(n[0]),l=un(),c=sn("div"),u=sn("button"),d=cn(y),p=un(),h=sn("button"),m=cn(v),this.c=se,pn(a,"class","GamingLimitsConfirmationContent"),pn(u,"class","GamingLimitsCancelButton"),pn(h,"class","GamingLimitsConfirmButton"),pn(c,"class","GamingLimitsConfirmationControlArea"),pn(o,"class","GamingLimitsConfirmationContainer "+(n[3]?"GamingLimitsConfirmationContainerMobile":"")),pn(i,"class","GamingLimitsConfirmationWrapper "+(n[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){on(e,i,t),b&&b.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(a,s),rn(o,l),rn(o,c),rn(c,u),rn(u,d),rn(c,p),rn(c,h),rn(h,m),n[12](i),f||(g=[dn(u,"click",n[6]),dn(h,"click",n[5])],f=!0)},p(e,[t]){e[3]||b.p(e,t),1&t&&hn(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&hn(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&hn(m,v)},i:se,o:se,d(e){e&&an(i),b&&b.d(),n[12](null),f=!1,nn(g)}}}function rd(t,e,n){let i,{modaltext:r="Are you sure that you want to perform this action?"}=(ue(t,me,e=>n(2,i=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(nd).forEach(e=>{td(e,nd[e])}),window.navigator.userAgent),p="PC"!==fe(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 de(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&n(0,r=e.modaltext),"modalsource"in e&&n(7,o=e.modalsource),"lang"in e&&n(8,a=e.lang),"clientstyling"in e&&n(9,s=e.clientstyling),"clientstylingurl"in e&&n(10,l=e.clientstylingurl),"translationurl"in e&&n(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,he.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=>{td(e,t[e])})}).catch(e=>{console.log(e)})},[r,u,i,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){pe[e?"unshift":"push"](()=>{u=e,n(1,u)})}]}function od(e,t,n){e=e.slice();return e[56]=t[n],e[57]=t,e[58]=n,e}function ad(e,t,n){e=e.slice();return e[59]=t[n],e}function sd(e,t,n){e=e.slice();return e[56]=t[n],e[58]=n,e}function ld(e){let n,i,r,o=e[18]("success")+"";return{c(){n=sn("div"),i=sn("p"),r=cn(o),pn(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){on(e,n,t),rn(n,i),rn(i,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&hn(r,o)},d(e){e&&an(n)}}}function cd(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=dd(sd(t,o,e));return{c(){r=sn("div");for(let e=0;e<a.length;e+=1)a[e].c();pn(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){on(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(409600&n[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var i=sd(t,o,e);a[e]?a[e].p(i,n):(a[e]=dd(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&an(r),mn(a,e)}}}function ud(e){let n,i,r,o,a=e[18]("remove")+"",s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){n=sn("p"),i=cn(a),r=un(),o=cn(s)},m(e,t){on(e,n,t),rn(n,i),rn(n,r),rn(n,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&hn(i,a),16384&t[0]&&s!==(s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&hn(o,s)},d(e){e&&an(n)}}}function dd(e){let n,i=e[56].period==e[17][e[58]].period&&ud(e);return{c(){i&&i.c(),n=I()},m(e,t){i&&i.m(e,t),on(e,n,t)},p(e,t){e[56].period==e[17][e[58]].period?i?i.p(e,t):((i=ud(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(e){i&&i.d(e),e&&an(n)}}}function pd(t){let n,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=xd(od(t,o,e));return{c(){n=sn("div"),r=sn("div");for(let e=0;e<a.length;e+=1)a[e].c();pn(r,"class","AccountEditLimitsContainer"),pn(n,"class","AccountEditContent")},m(e,t){on(e,n,t),rn(n,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(18836560&n[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var i=od(t,o,e);a[e]?a[e].p(i,n):(a[e]=xd(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&an(n),mn(a,e)}}}function hd(n){let i,r,o,a,s,l,c,u,d,p,h=n[18]("noLimit")+"",m=n[20].get(n[6])[n[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=fd(ad(n,m,e));function g(){n[29].call(i,n[58])}let y="Custom"===n[17][n[58]].amount&&gd(n),v=!0===n[56].isModified&&_d(n);return{c(){i=sn("select"),r=sn("option"),o=cn(h);for(let e=0;e<f.length;e+=1)f[e].c();s=un(),l=sn("div"),y&&y.c(),c=un(),v&&v.c(),u=I(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,pn(i,"class","AccountEditField "+(n[19]?"TimeoutSelectMobile":"")),i.disabled=a=!0===n[56].isModified,void 0===n[17][n[58]].amount&&yn(g),pn(l,"class","AccountEditLimitsInputContainer")},m(e,t){on(e,i,t),rn(i,r),rn(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(i,null);gn(i,n[17][n[58]].amount,!0),on(e,s,t),on(e,l,t),y&&y.m(l,null),on(e,c,t),v&&v.m(e,t),on(e,u,t),d||(p=[dn(i,"change",g),dn(i,"change",function(){ge(n[24](n[17][n[58]],n[58],!1,n[16]))&&n[24](n[17][n[58]],n[58],!1,n[16]).apply(this,arguments)})],d=!0)},p(e,t){if(n=e,262144&t[0]&&h!==(h=n[18]("noLimit")+"")&&hn(o,h),1048656&t[0]){let e;for(m=n[20].get(n[6])[n[58]].values,e=0;e<m.length;e+=1){const o=ad(n,m,e);f[e]?f[e].p(o,t):(f[e]=fd(o),f[e].c(),f[e].m(i,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===n[56].isModified)&&(i.disabled=a),1179712&t[0]&&gn(i,n[17][n[58]].amount),"Custom"===n[17][n[58]].amount?y?y.p(n,t):((y=gd(n)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===n[56].isModified?v?v.p(n,t):((v=_d(n)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&an(i),mn(f,e),e&&an(s),e&&an(l),y&&y.d(),e&&an(c),v&&v.d(e),e&&an(u),d=!1,nn(p)}}}function md(e){let n,i=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){n=cn(i)},m(e,t){on(e,n,t)},p(e,t){80&t[0]&&i!==(i=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&hn(n,i)},d(e){e&&an(n)}}}function fd(e){let n,i,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&md(e);return{c(){n=sn("option"),i=cn(s),r=un(),l&&l.c(),o=un(),n.__value=a=e[59],n.value=n.__value},m(e,t){on(e,n,t),rn(n,i),rn(n,r),l&&l.m(n,null),rn(n,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&hn(i,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=md(e)).c(),l.m(n,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(n.__value=a,n.value=n.__value)},d(e){e&&an(n),l&&l.d()}}}function gd(e){let n;function i(e){return"Time Limit"!==e[6]?vd:yd}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function yd(n){let i,r,o,a,s,l;function c(){n[31].call(i,n[58])}let u=1==n[13][n[58]]&&bd(n);return{c(){i=sn("input"),o=un(),a=sn("p"),u&&u.c(),pn(i,"type","number"),pn(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=r=!0===n[56].isModified,pn(a,"class","AccountEditWarningText")},m(e,t){on(e,i,t),fn(i,n[17][n[58]].value),on(e,o,t),on(e,a,t),u&&u.m(a,null),s||(l=[dn(i,"keyup",function(){ge(n[24](n[17][n[58]],n[58],!0,n[16]))&&n[24](n[17][n[58]],n[58],!0,n[16]).apply(this,arguments)}),dn(i,"input",c)],s=!0)},p(e,t){n=e,16384&t[0]&&r!==(r=!0===n[56].isModified)&&(i.disabled=r),1179712&t[0]&&j(i.value)!==n[17][n[58]].value&&fn(i,n[17][n[58]].value),1==n[13][n[58]]?u?u.p(n,t):((u=bd(n)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&an(i),e&&an(o),e&&an(a),u&&u.d(),s=!1,nn(l)}}}function vd(n){let i,r,o,a,s,l;function c(){n[30].call(i,n[58])}let u=1==n[13][n[58]]&&wd(n);return{c(){i=sn("input"),o=un(),a=sn("p"),u&&u.c(),pn(i,"type","number"),pn(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=r=!0===n[56].isModified,pn(a,"class","AccountEditWarningText")},m(e,t){on(e,i,t),fn(i,n[17][n[58]].value),on(e,o,t),on(e,a,t),u&&u.m(a,null),s||(l=[dn(i,"keyup",function(){ge(n[24](n[17][n[58]],n[58],!1,n[16]))&&n[24](n[17][n[58]],n[58],!1,n[16]).apply(this,arguments)}),dn(i,"input",c)],s=!0)},p(e,t){n=e,16384&t[0]&&r!==(r=!0===n[56].isModified)&&(i.disabled=r),1179712&t[0]&&j(i.value)!==n[17][n[58]].value&&fn(i,n[17][n[58]].value),1==n[13][n[58]]?u?u.p(n,t):((u=wd(n)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&an(i),e&&an(o),e&&an(a),u&&u.d(),s=!1,nn(l)}}}function bd(e){let n,i,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&hn(i,r)},d(e){e&&an(n)}}}function wd(e){let n,i,r=e[18]("invalidInputMessageLimit")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&hn(i,r)},d(e){e&&an(n)}}}function _d(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=e[18]("expirationDate")+"",w=(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(){n=sn("p"),i=cn(b),r=un(),o=sn("span"),a=cn(w),s=un(),l=sn("div"),c=sn("p"),(u=sn("span")).textContent="i",d=sn("span"),p=cn(_),h=un(),m=cn(x),f=un(),g=cn(C),y=cn(". "),v=cn(P),pn(n,"class","AccountEditLimitsExpiryDate"),pn(u,"class","AccountEditLimitChangePeriodIcon"),pn(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){on(e,n,t),rn(n,i),rn(n,r),rn(n,o),rn(o,a),on(e,s,t),on(e,l,t),rn(l,c),rn(c,u),rn(c,d),rn(d,p),rn(d,h),rn(d,m),rn(d,f),rn(d,g),rn(d,y),rn(d,v)},p(e,t){262144&t[0]&&b!==(b=e[18]("expirationDate")+"")&&hn(i,b),16384&t[0]&&w!==(w=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&hn(a,w),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&hn(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&hn(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&hn(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&hn(v,P)},d(e){e&&an(n),e&&an(s),e&&an(l)}}}function xd(e){let n,i,r,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&&hd(e);return{c(){n=sn("div"),i=sn("p"),r=cn(s),o=un(),l&&l.c(),a=un(),pn(i,"class","AccountEditLimitsTitle"),pn(n,"class","AccountEditLimitsBox")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(n,o),l&&l.m(n,null),rn(n,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&hn(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=hd(e)).c(),l.m(n,a)):l&&(l.d(1),l=null)},d(e){e&&an(n),l&&l.d()}}}function Cd(n){let i,F,r,o,a,s,R,l,c,u,H,d,p,z,h,m,f,W,g,y,Y,v,j,b,w,_,x,C,P,E,T,A,S,M,k,U,D=n[18]("back")+"",L=(n[1]?n[9]:"")+"",B=n[18]("save")+"",$=n[19]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[18]("back")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","MyAccountCategoryTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),I=n[2]&&ld(n),N=n[3]&&cd(n),O=n[8]&&pd(n);return{c(){i=sn("div"),$&&$.c(),F=un(),r=sn("div"),o=ln("svg"),a=ln("defs"),s=ln("style"),R=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),H=un(),d=sn("h2"),p=cn(D),z=un(),h=sn("div"),m=sn("h6"),f=cn(L),W=un(),g=sn("div"),(y=sn("span")).textContent="i",Y=un(),v=sn("player-account-gaming-limits-popup"),j=un(),I&&I.c(),b=un(),N&&N.c(),w=un(),O&&O.c(),_=un(),x=sn("div"),C=sn("button"),P=cn(B),A=un(),S=sn("player-account-modal"),M=sn("player-account-gaming-limits-confirmation-modal"),this.c=se,pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(o,"xmlns","http://www.w3.org/2000/svg"),pn(o,"width","20"),pn(o,"height","20"),pn(o,"viewBox","0 0 15 15"),pn(d,"class","MyAccountCategoryTitle "+(n[19]?"MyAccountCategoryTitleNone":"")),pn(r,"class","MenuReturnButton "+(n[19]?"MyAccountCategoryTitleNone":"")),pn(y,"class","AccountEditLimitsIcon"),le(v,"showpopup",n[7]),le(v,"lang",n[0]),pn(g,"class","AccountEditLimitsIconWrapper"),pn(h,"class","AccountEditLimitsHeader"),pn(C,"class",E="AccountEditLimitsSaveButton "+(n[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=T=!n[15],pn(x,"class","AccountEditLimitsControlArea"),pn(i,"class","AccountEditLimitsWrapper "+(n[19]?"AccountEditLimitsMobileWrapper":"")),le(M,"modaltext",n[12]),le(M,"modalsource","groupEdit"),le(M,"lang",n[0])},m(e,t){on(e,i,t),$&&$.m(i,null),rn(i,F),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(s,R),rn(o,l),rn(l,c),rn(c,u),rn(r,H),rn(r,d),rn(d,p),rn(i,z),rn(i,h),rn(h,m),rn(m,f),rn(h,W),rn(h,g),rn(g,y),rn(g,Y),rn(g,v),rn(i,j),I&&I.m(i,null),rn(i,b),N&&N.m(i,null),rn(i,w),O&&O.m(i,null),rn(i,_),rn(i,x),rn(x,C),rn(C,P),n[33](i),on(e,A,t),on(e,S,t),rn(S,M),k||(U=[dn(r,"click",n[22]),dn(y,"click",G(n[21])),dn(C,"click",n[32])],k=!0)},p(e,t){e[19]&&$.p(e,t),262144&t[0]&&D!==(D=e[18]("back")+"")&&hn(p,D),514&t[0]&&L!==(L=(e[1]?e[9]:"")+"")&&hn(f,L),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=ld(e)).c(),I.m(i,b)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=cd(e)).c(),N.m(i,w)):N&&(N.d(1),N=null),e[8]?O?O.p(e,t):((O=pd(e)).c(),O.m(i,_)):O&&(O.d(1),O=null),262144&t[0]&&B!==(B=e[18]("save")+"")&&hn(P,B),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&pn(C,"class",E),32768&t[0]&&T!==(T=!e[15])&&(C.disabled=T),4096&t[0]&&le(M,"modaltext",e[12]),1&t[0]&&le(M,"lang",e[0])},i:se,o:se,d(e){e&&an(i),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),n[33](null),e&&an(A),e&&an(S),k=!1,nn(U)}}}function Pd(t,e,o){let n,{limitsdata:i=[]}=(ue(t,me,e=>o(18,n=e)),e),{showsuccessnotification:r=!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(Zu).forEach(e=>{Xu(e,Zu[e])}),!1),g=!1,y="",v=!1,b=0,w=0,_="",N=window.navigator.userAgent,O="PC"!==fe(N),x=new Array(3).fill(0),C={},P=[],E=[],T=!1,A=[];const S={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}],k=[{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"]}],D=[{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"]}],F=[{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 L=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),B=new Map([["Deposit Limit",k],["Time Limit",R],["Wagering Limit",D],["Loss Limit",F]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},$=(n,e)=>{let i=JSON.parse(JSON.stringify(e));M.forEach(t=>{i.forEach(e=>{t.period==n.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=()=>{A.forEach(e=>{var t=e;E.forEach(e=>{t.period===e.period&&("Time Limit"===h&&(o(10,b=60),"Daily"===t.period?o(11,w=1440):"Weekly"==t.period?o(11,w=10080):o(11,w=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(i=>{E.forEach(e=>{var t,n;i.period===e.period&&(e=e,t=i,n=M,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?n.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):n.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):n.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,_=n("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;he.set(e),W(),o(16,A=JSON.parse(JSON.stringify(i))),o(14,C=JSON.parse(JSON.stringify(i))),E="Wagering Limit"===h?D:"Loss Limit"===h?F:"Deposit Limit"===h?k:"Time Limit"===h?R:[],z()},Y=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=n(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?{[L.get(h)]:[...P]}:{[L.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:L.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 de(()=>(window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)})),t.$$set=e=>{"limitsdata"in e&&o(1,i=e.limitsdata),"showsuccessnotification"in e&&o(2,r=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]&&r&&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=>{Xu(e,t[e])})}).catch(e=>{console.log(e)})},[l,i,r,a,s,m,h,f,g,y,b,w,_,x,C,T,A,M,n,O,B,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,n,i)=>{var r;"Custom"===e.amount?"Time Limit"==h?(o(10,b=60),"Daily"===e.period?o(11,w=1440):"Weekly"==e.period?o(11,w=10080):o(11,w=43200),e.value&&S.time.test(e.value)&&e.value>b&&e.value<=w?(o(13,x[t]=0,x),r=i[t],e.period==r.period&&e.value==r.amount?(o(15,T=!1),$(e,i)):o(15,T=!0)):(o(13,x[t]=1,x),o(15,T=!1))):e.value&&S.amount.test(e.value)?(o(13,x[t]=0,x),e.period==i[t].period&&e.value==i[t].amount?(o(15,T=!!T),$(e,i)):o(15,T=!0),"true"!=c&&M.forEach(e=>{0==e.value&&o(15,T=!1)})):(o(13,x[t]=1,x),o(15,T=!1)):(e.period==i[t].period?($(e,i),o(15,T=e.value!=i[t].amount)):o(15,T=!0),M.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!S.amount.test(e.value.toString()))&&o(15,T=!1)}))},c,u,d,p,function(e){M[e].amount=ye(this),o(17,M),o(20,B),o(6,h)},function(e){M[e].value=j(this.value),o(17,M),o(20,B),o(6,h)},function(e){M[e].value=j(this.value),o(17,M),o(20,B),o(6,h)},()=>H(),function(e){pe[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Ed(e,t,n){e=e.slice();return e[41]=t[n],e[43]=n,e}function Td(e,t,n){e=e.slice();return e[41]=t[n],e[43]=n,e}function Ad(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,T=(n[0]?n[15](n[1].charAt(0).toLowerCase()+n[1].substring(1).replace(/\s/g,"")):"")+"",A=n[15]("edit")+"";function S(e){return"Time Limit"===e[1]?kd:Md}let M=S(n),k=M(n),D=!n[9]&&!n[0].isModified&&n[14]&&Ud(n),L=n[11]&&Gd(n);return{c(){i=sn("div"),r=sn("div"),o=sn("div"),a=sn("h5"),s=cn(T),l=un(),c=sn("div"),(u=sn("span")).textContent="i",d=un(),p=sn("player-account-gaming-limits-popup"),m=un(),f=sn("div"),g=sn("div"),y=sn("div"),k.c(),v=un(),b=sn("div"),w=sn("button"),_=cn(A),x=un(),D&&D.c(),C=un(),L&&L.c(),pn(u,"class","InfoCardIcon"),le(p,"showpopup",h=n[8][0]),le(p,"lang",n[3]),le(p,"clientstyling",n[4]),le(p,"clientstylingurl",n[5]),pn(c,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":"")),pn(o,"class","InfoCardHeader "+(n[16]?"InfoCardMobileHeader":"")),pn(y,"class","InfoCardTableRow"),pn(g,"class","InfoCardTableWrapper"),pn(w,"class","InfoCardEditButton"),pn(b,"class","InfoCardControlArea"),pn(f,"class","InfoCard"),pn(r,"class","InfoCardWrapper"),pn(i,"class","InfoCardSection")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(o,l),rn(o,c),rn(c,u),rn(c,d),rn(c,p),rn(r,m),rn(r,f),rn(f,g),rn(g,y),k.m(y,null),rn(f,v),rn(f,b),rn(b,w),rn(w,_),rn(b,x),D&&D.m(b,null),rn(i,C),L&&L.m(i,null),P||(E=[dn(u,"click",G(n[23])),dn(w,"click",n[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,"")):"")+"")&&hn(s,T),256&t[0]&&h!==(h=e[8][0])&&le(p,"showpopup",h),8&t[0]&&le(p,"lang",e[3]),16&t[0]&&le(p,"clientstyling",e[4]),32&t[0]&&le(p,"clientstylingurl",e[5]),M===(M=S(e))&&k?k.p(e,t):(k.d(1),(k=M(e))&&(k.c(),k.m(y,null))),32768&t[0]&&A!==(A=e[15]("edit")+"")&&hn(_,A),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=Ud(e)).c(),D.m(b,null)),e[11]?L?L.p(e,t):((L=Gd(e)).c(),L.m(i,null)):L&&(L.d(1),L=null)},d(e){e&&an(i),k.d(),D&&D.d(),L&&L.d(),P=!1,nn(E)}}}function Sd(e){let n;return{c(){pn(n=sn("div"),"class","ModalLoader")},m(e,t){on(e,n,t)},p:se,d(e){e&&an(n)}}}function Md(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Nd(Ed(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);on(t,r,n)},p(t,n){if(3375423&n[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var i=Ed(t,o,e);a[e]?a[e].p(i,n):(a[e]=Nd(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){mn(a,e),e&&an(r)}}}function kd(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=jd(Td(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);on(t,r,n)},p(t,n){if(3375419&n[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var i=Td(t,o,e);a[e]?a[e].p(i,n):(a[e]=jd(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){mn(a,e),e&&an(r)}}}function Dd(e){let n,i,r=(e[41]?e[41].currency:"")+"";return{c(){n=sn("span"),i=cn(r),pn(n,"class","InfoCardCurrency")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Ld(e){let n,i,r=e[15]("notAvailable")+"";return{c(){n=sn("div"),i=cn(r),pn(n,"class","InfoCardRowValue")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Bd(e){let n,i,r=(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(){n=sn("div"),i=cn(r),pn(n,"class","InfoCardRowValue")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){1&t[0]&&r!==(r=(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")+"")&&hn(i,r)},d(e){e&&an(n)}}}function $d(n){let i,r,o,a,s,l,c,u;function d(){return n[25](n[43])}return{c(){i=sn("div"),(r=sn("span")).textContent="i",o=un(),a=sn("player-account-gaming-limits-popup"),pn(r,"class","InfoCardIcon"),le(a,"showpopup",s=n[8][n[43]+1]),le(a,"iteminfoamount",l=n[41].updateAmount),le(a,"playercurrency",n[2]),le(a,"lang",n[3]),le(a,"clientstyling",n[4]),le(a,"clientstylingurl",n[5]),pn(i,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":""))},m(e,t){on(e,i,t),rn(i,r),rn(i,o),rn(i,a),c||(u=dn(r,"click",G(d)),c=!0)},p(e,t){n=e,256&t[0]&&s!==(s=n[8][n[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=n[41].updateAmount)&&le(a,"iteminfoamount",l),4&t[0]&&le(a,"playercurrency",n[2]),8&t[0]&&le(a,"lang",n[3]),16&t[0]&&le(a,"clientstyling",n[4]),32&t[0]&&le(a,"clientstylingurl",n[5])},d(e){e&&an(i),c=!1,u()}}}function Id(n){let i,r,o;return{c(){(i=sn("div")).innerHTML="<span></span>",pn(i,"class","InfoCardRemoveIcon")},m(e,t){on(e,i,t),r||(o=dn(i,"click",function(){ge(n[20](n[41],n[1]))&&n[20](n[41],n[1]).apply(this,arguments)}),r=!0)},p(e,t){n=e},d(e){e&&an(i),r=!1,o()}}}function Nd(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",w=(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=_&&Dd(e);function P(e){return e[41].expiryDate?Bd:Ld}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)?Id:"No limit"!=e[41].amount&&e[41].isModified?$d:void 0}let S=A(e,[-1,-1]),M=S&&S(e);return{c(){n=sn("div"),i=sn("div"),r=sn("div"),o=sn("div"),a=cn(b),s=un(),l=sn("div"),c=cn(w),u=un(),C&&C.c(),d=un(),p=sn("div"),h=sn("div"),m=cn(x),f=un(),T.c(),g=un(),M&&M.c(),v=un(),pn(o,"class","InfoCardRowTitle"),pn(l,"class","InfoCardRowValue"),pn(r,"class","InfoCardRow InfoMainRow"),pn(h,"class","InfoCardRowTitle"),pn(p,"class","InfoCardRow"),pn(i,"class","InfoCardRowContainer"),pn(n,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(r,o),rn(o,a),rn(r,s),rn(r,l),rn(l,c),rn(l,u),C&&C.m(l,null),rn(i,d),rn(i,p),rn(p,h),rn(h,m),rn(p,f),T.m(p,null),rn(n,g),M&&M.m(n,null),rn(n,v)},p(e,t){32769&t[0]&&b!==(b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&hn(a,b),32769&t[0]&&w!==(w=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&hn(c,w),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=Dd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&hn(m,x),E===(E=P(e))&&T?T.p(e,t):(T.d(1),(T=E(e))&&(T.c(),T.m(p,null))),S===(S=A(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=S&&S(e))&&(M.c(),M.m(n,v)))},d(e){e&&an(n),C&&C.d(),T.d(),M&&M.d()}}}function Od(e){let n,i,r=e[15]("noLimit")+"";return{c(){n=sn("span"),i=cn(r),pn(n,"class","InfoCardCurrency")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Fd(e){let n,i,r,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&&Rd(e);return{c(){n=cn(o),i=un(),s&&s.c(),r=I()},m(e,t){on(e,n,t),on(e,i,t),s&&s.m(e,t),on(e,r,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&hn(n,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Rd(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&an(n),e&&an(i),s&&s.d(e),e&&an(r)}}}function Rd(e){let n,i,r=e[15]("minutes")+"";return{c(){n=sn("span"),i=cn(r),pn(n,"class","InfoCardCurrency")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Hd(e){let n,i,r=e[15]("notAvailable")+"";return{c(){n=sn("div"),i=cn(r),pn(n,"class","InfoCardRowValue")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&hn(i,r)},d(e){e&&an(n)}}}function zd(e){let n,i,r=(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(){n=sn("div"),i=cn(r),pn(n,"class","InfoCardRowValue")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){1&t[0]&&r!==(r=(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")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Wd(n){let i,r,o,a,s,l,c,u,d;function p(){return n[24](n[43])}return{c(){i=sn("div"),(r=sn("span")).textContent="i",o=un(),a=sn("player-account-gaming-limits-popup"),pn(r,"class","InfoCardIcon"),le(a,"showpopup",s=n[8][n[43]+1]),le(a,"iteminfoamount",l=n[41].updateMinutes),le(a,"playercurrency",c=n[15]("minutes")),le(a,"lang",n[3]),le(a,"clientstyling",n[4]),le(a,"clientstylingurl",n[5]),pn(i,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":""))},m(e,t){on(e,i,t),rn(i,r),rn(i,o),rn(i,a),u||(d=dn(r,"click",G(p)),u=!0)},p(e,t){n=e,256&t[0]&&s!==(s=n[8][n[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=n[41].updateMinutes)&&le(a,"iteminfoamount",l),32768&t[0]&&c!==(c=n[15]("minutes"))&&le(a,"playercurrency",c),8&t[0]&&le(a,"lang",n[3]),16&t[0]&&le(a,"clientstyling",n[4]),32&t[0]&&le(a,"clientstylingurl",n[5])},d(e){e&&an(i),u=!1,d()}}}function Yd(n){let i,r,o;return{c(){(i=sn("div")).innerHTML="<span></span>",pn(i,"class","InfoCardRemoveIcon")},m(e,t){on(e,i,t),r||(o=dn(i,"click",function(){ge(n[20](n[41],n[1]))&&n[20](n[41],n[1]).apply(this,arguments)}),r=!0)},p(e,t){n=e},d(e){e&&an(i),r=!1,o()}}}function jd(e){let n,i,r,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 b(e){return 0!==e[41].amount?Fd:Od}let w=b(e),_=w(e);function x(e){return e[41].expiryDate?zd:Hd}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)?Yd:"No limit"!=e[41].amount&&e[41].isModified?Wd:void 0}let T=E(e,[-1,-1]),A=T&&T(e);return{c(){n=sn("div"),i=sn("div"),r=sn("div"),o=sn("div"),a=cn(y),s=un(),l=sn("div"),_.c(),c=un(),u=sn("div"),d=sn("div"),p=cn(v),h=un(),P.c(),m=un(),A&&A.c(),g=un(),pn(o,"class","InfoCardRowTitle"),pn(l,"class","InfoCardRowValue"),pn(r,"class","InfoCardRow InfoMainRow"),pn(d,"class","InfoCardRowTitle"),pn(u,"class","InfoCardRow"),pn(i,"class","InfoCardRowContainer"),pn(n,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(r,o),rn(o,a),rn(r,s),rn(r,l),_.m(l,null),rn(i,c),rn(i,u),rn(u,d),rn(d,p),rn(u,h),P.m(u,null),rn(n,m),A&&A.m(n,null),rn(n,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&hn(a,y),w===(w=b(e))&&_?_.p(e,t):(_.d(1),(_=w(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&hn(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(n,g)))},d(e){e&&an(n),_.d(),P.d(),A&&A.d()}}}function Ud(n){let i,r,o,a,s=n[15]("removeLimits")+"";return{c(){i=sn("button"),r=cn(s),pn(i,"class","InfoCardRemoveButton")},m(e,t){on(e,i,t),rn(i,r),o||(a=dn(i,"click",n[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&hn(r,s)},d(e){e&&an(i),o=!1,a()}}}function Gd(e){let n,i,r;return{c(){n=sn("player-account-modal"),le(i=sn("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),le(i,"modalsource","infoCard"),le(i,"lang",e[3]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5]),le(n,"clientstyling",e[4]),le(n,"clientstylingurl",e[5])},m(e,t){on(e,n,t),rn(n,i)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&le(i,"modaltext",r),8&t[0]&&le(i,"lang",e[3]),16&t[0]&&le(i,"clientstyling",e[4]),32&t[0]&&le(i,"clientstylingurl",e[5]),16&t[0]&&le(n,"clientstyling",e[4]),32&t[0]&&le(n,"clientstylingurl",e[5])},d(e){e&&an(n)}}}function Vd(n){let i;function r(e){return e[7]?Sd:Ad}let o=r(n),a=o(n);return{c(){i=sn("div"),a.c(),this.c=se},m(e,t){on(e,i,t),a.m(i,null),n[28](i)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&an(i),a.d(),n[28](null)}}}function qd(i,e,r){let o,{limitsdata:a=[]}=(ue(i,me,e=>r(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(zu).forEach(e=>{Hu(e,zu[e])});let p,h=!0,n=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,b="PC"!==fe(v),w="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},E=e=>{r(11,y=!0),r(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(()=>{r(8,n[e]=!0,n)},50)},A=(e,t,n,i)=>{e.splice(t,0,"time"===i?{period:n,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:n,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},S=(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":r(8,n=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return de(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),i.$$set=e=>{"limitsdata"in e&&r(0,a=e.limitsdata),"limitname"in e&&r(1,s=e.limitname),"playercurrency"in e&&r(2,t=e.playercurrency),"lang"in e&&r(3,l=e.lang),"clientstyling"in e&&r(4,c=e.clientstyling),"clientstylingurl"in e&&r(5,u=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},i.$$.update=()=>{if(11&i.$$.dirty[0]&&a&&s&&l){var e=l;he.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,w=o("removeLimitsText",{values:{limit:e}})),r(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(14,x=!1)});{var n=a;const t=m;m.forEach((t,e)=>{n.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),n.forEach(e=>{e.period===t&&"No limit"!==e.amount&&r(9,f=!1)}),r(7,h=!1)}),m.forEach(e=>{"Time Limit"===n.name?A(n,t.indexOf(e),e,"time"):A(n,t.indexOf(e),e,"currency")})}a.sort(S)}if(80&i.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&i.$$.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&i.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hu(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,n,f,g,y,w,_,x,o,b,C,P,E,(e,t)=>{r(11,y=!0),r(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){pe[e?"unshift":"push"](()=>{p=e,r(6,p)})}]}function Xd(e){let n;return{c(){le(n=sn("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),le(n,"limitname",e[14]),le(n,"showsuccessnotification",e[7]),le(n,"showdeletenotification",e[6]),le(n,"playercurrency",e[5]),le(n,"lang",e[0]),le(n,"separatelimits",e[8]),le(n,"clientstyling",e[9]),le(n,"clientstylingurl",e[10])},m(e,t){on(e,n,t)},p(e,t){8192&t&&le(n,"limitsdata",e[13]),16384&t&&le(n,"limitname",e[14]),128&t&&le(n,"showsuccessnotification",e[7]),64&t&&le(n,"showdeletenotification",e[6]),32&t&&le(n,"playercurrency",e[5]),1&t&&le(n,"lang",e[0]),256&t&&le(n,"separatelimits",e[8]),512&t&&le(n,"clientstyling",e[9]),1024&t&&le(n,"clientstylingurl",e[10])},d(e){e&&an(n)}}}function Zd(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[16]("gamingLimitsText")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","PlayerGamingLimitsTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(e);return{c(){n=sn("div"),g&&g.c(),i=un(),r=sn("h2"),o=cn(f),a=un(),s=sn("div"),l=sn("player-account-gaming-limits-info-card"),c=un(),u=sn("player-account-gaming-limits-info-card"),d=un(),p=sn("player-account-gaming-limits-info-card"),h=un(),m=sn("player-account-gaming-limits-info-card"),pn(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",Qd),le(l,"playercurrency",e[5]),le(l,"lang",e[0]),le(l,"clientstyling",e[9]),le(l,"clientstylingurl",e[10]),le(u,"limitsdata",e[2]),le(u,"limitname",ep),le(u,"playercurrency",e[5]),le(u,"lang",e[0]),le(u,"clientstyling",e[9]),le(u,"clientstylingurl",e[10]),le(p,"limitsdata",e[3]),le(p,"limitname",tp),le(p,"playercurrency",e[5]),le(p,"lang",e[0]),le(p,"clientstyling",e[9]),le(p,"clientstylingurl",e[10]),le(m,"limitsdata",e[4]),le(m,"limitname",np),le(m,"playercurrency",e[5]),le(m,"lang",e[0]),le(m,"clientstyling",e[9]),le(m,"clientstylingurl",e[10]),pn(s,"class","PlayerAccountGamingLimitsContainer"),pn(n,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){on(e,n,t),g&&g.m(n,null),rn(n,i),rn(n,r),rn(r,o),rn(n,a),rn(n,s),rn(s,l),rn(s,c),rn(s,u),rn(s,d),rn(s,p),rn(s,h),rn(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&hn(o,f),2&t&&le(l,"limitsdata",e[1]),32&t&&le(l,"playercurrency",e[5]),1&t&&le(l,"lang",e[0]),512&t&&le(l,"clientstyling",e[9]),1024&t&&le(l,"clientstylingurl",e[10]),4&t&&le(u,"limitsdata",e[2]),32&t&&le(u,"playercurrency",e[5]),1&t&&le(u,"lang",e[0]),512&t&&le(u,"clientstyling",e[9]),1024&t&&le(u,"clientstylingurl",e[10]),8&t&&le(p,"limitsdata",e[3]),32&t&&le(p,"playercurrency",e[5]),1&t&&le(p,"lang",e[0]),512&t&&le(p,"clientstyling",e[9]),1024&t&&le(p,"clientstylingurl",e[10]),16&t&&le(m,"limitsdata",e[4]),32&t&&le(m,"playercurrency",e[5]),1&t&&le(m,"lang",e[0]),512&t&&le(m,"clientstyling",e[9]),1024&t&&le(m,"clientstylingurl",e[10])},d(e){e&&an(n),g&&g.d()}}}function Jd(e){let n;return{c(){pn(n=sn("div"),"class","ModalLoader")},m(e,t){on(e,n,t)},p:se,d(e){e&&an(n)}}}function Kd(n){let i;function r(e){return e[12]?Jd:e[15]?Zd:Xd}let o=r(n),a=o(n);return{c(){i=sn("div"),a.c(),this.c=se},m(e,t){on(e,i,t),a.m(i,null),n[22](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&an(i),a.d(),n[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends t{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-orange-500, #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-pink-500, #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-pink-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},rd,id,n,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&on(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".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;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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-dunkel, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Pd,Cd,n,{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&&on(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 t{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-pink-500, #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-orange-500, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},qd,Vd,n,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&on(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 Qd="Deposit Limit",ep="Wagering Limit",tp="Loss Limit",np="Time Limit";function ip(t,e,n){let i,r=(ue(t,me,e=>n(16,i=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(Ru).forEach(e=>{Fu(e,Ru[e])});let y,v=!0,b=window.navigator.userAgent,w="PC"!==fe(b),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:w},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":n(0,u=e.data.limits.lang),n(1,r=e.data.limits.depositlimit),n(2,o=e.data.limits.wageringlimit),n(3,a=e.data.limits.losslimit),n(4,s=e.data.limits.timelimit),n(12,v=!1);break;case"EditPlayerAccountGamingLimits":n(13,y=e.data.edit),n(14,_=e.data.name),n(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":n(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;n(5,d=t.currency)}};return de(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&n(1,r=e.depositlimit),"wageringlimit"in e&&n(2,o=e.wageringlimit),"losslimit"in e&&n(3,a=e.losslimit),"timelimit"in e&&n(4,s=e.timelimit),"showdeletenotification"in e&&n(6,l=e.showdeletenotification),"showsuccessnotification"in e&&n(7,c=e.showsuccessnotification),"lang"in e&&n(0,u=e.lang),"playercurrency"in e&&n(5,d=e.playercurrency),"separatelimits"in e&&n(8,p=e.separatelimits),"clientstyling"in e&&n(9,h=e.clientstyling),"clientstylingurl"in e&&n(10,m=e.clientstylingurl),"translationurl"in e&&n(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,he.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=>{Fu(e,t[e])})}).catch(e=>{console.log(e)})},[u,r,o,a,s,d,l,c,p,h,m,g,v,y,_,x,i,w,C,P,f,()=>P(),function(e){pe[e?"unshift":"push"](()=>{g=e,n(11,g)})}]}function rp(e,t){a(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.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))}.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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},ip,Kd,n,{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&&on(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 op={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 ap(e,t){a(e,t)}const sp={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 lp(e){let n,i,r,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){n=sn("div"),i=sn("p"),r=cn(u),o=un(),a=sn("p"),s=cn(e[3]),l=un(),c=cn(e[6]),pn(i,"class","BonusCardRowTitle"),pn(a,"class","BonusCardRowText"),pn(n,"class","BonusCardRow")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(n,o),rn(n,a),rn(a,s),rn(a,l),rn(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&hn(r,u),8&t&&hn(s,e[3]),64&t&&hn(c,e[6])},d(e){e&&an(n)}}}function cp(e){let n,i,r,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){n=sn("div"),i=sn("p"),r=cn(u),o=un(),a=sn("p"),s=cn(e[4]),l=un(),c=cn(e[6]),pn(i,"class","BonusCardRowTitle"),pn(a,"class","BonusCardRowText"),pn(n,"class","BonusCardRow")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(n,o),rn(n,a),rn(a,s),rn(a,l),rn(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&hn(r,u),16&t&&hn(s,e[4]),64&t&&hn(c,e[6])},d(e){e&&an(n)}}}function up(e){let n,i,r,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){n=sn("div"),i=sn("p"),r=cn(u),o=un(),a=sn("p"),s=cn(e[5]),l=un(),c=cn(e[6]),pn(i,"class","BonusCardRowTitle"),pn(a,"class","BonusCardRowText"),pn(n,"class","BonusCardRow")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(n,o),rn(n,a),rn(a,s),rn(a,l),rn(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&hn(r,u),32&t&&hn(s,e[5]),64&t&&hn(c,e[6])},d(e){e&&an(n)}}}function dp(n){let i,r,o,a,s=n[9]("forfeitBonus")+"";return{c(){i=sn("button"),r=cn(s),pn(i,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){on(e,i,t),rn(i,r),o||(a=dn(i,"click",n[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&hn(r,s)},d(e){e&&an(i),o=!1,a()}}}function pp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,F,x,C,P,R,E,T,H,A,S,z,M=n[9]("date")+"",k=W(n[0]).format("DD/MM/YYYY h:mm A")+"",D=n[9](""+n[1])+"",L=n[9]("bonusName")+"",B=n[9]("bonusType")+"",$=n[3]&&lp(n),I=n[4]&&cp(n),N=n[5]&&up(n),O="active"===n[1]&&dp(n);return{c(){i=sn("div"),r=sn("div"),o=sn("div"),a=sn("p"),s=cn(M),l=un(),c=sn("span"),u=cn(k),d=un(),p=sn("p"),h=cn(D),f=un(),g=sn("div"),y=sn("p"),v=cn(L),b=un(),w=sn("p"),_=cn(n[2]),F=un(),x=sn("div"),C=sn("p"),P=cn(B),R=un(),E=sn("p"),T=cn(n[8]),H=un(),$&&$.c(),A=un(),I&&I.c(),S=un(),N&&N.c(),z=un(),O&&O.c(),this.c=se,pn(a,"class","BonusCardRowTitle"),pn(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),pn(o,"class","BonusCardRow"),pn(y,"class","BonusCardRowTitle"),pn(w,"class","BonusCardRowText"),pn(g,"class","BonusCardRow"),pn(C,"class","BonusCardRowTitle"),pn(E,"class","BonusCardRowText TextCapitalize"),pn(x,"class","BonusCardRow"),pn(r,"class","BonusCardInfo"),pn(i,"class","BonusCard")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(a,l),rn(a,c),rn(c,u),rn(o,d),rn(o,p),rn(p,h),rn(r,f),rn(r,g),rn(g,y),rn(y,v),rn(g,b),rn(g,w),rn(w,_),rn(r,F),rn(r,x),rn(x,C),rn(C,P),rn(x,R),rn(x,E),rn(E,T),rn(r,H),$&&$.m(r,null),rn(r,A),I&&I.m(r,null),rn(r,S),N&&N.m(r,null),rn(i,z),O&&O.m(i,null),n[18](i)},p(e,[t]){512&t&&M!==(M=e[9]("date")+"")&&hn(s,M),1&t&&k!==(k=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&hn(u,k),514&t&&D!==(D=e[9](""+e[1])+"")&&hn(h,D),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&pn(p,"class",m),512&t&&L!==(L=e[9]("bonusName")+"")&&hn(v,L),4&t&&hn(_,e[2]),512&t&&B!==(B=e[9]("bonusType")+"")&&hn(P,B),256&t&&hn(T,e[8]),e[3]?$?$.p(e,t):(($=lp(e)).c(),$.m(r,A)):$&&($.d(1),$=null),e[4]?I?I.p(e,t):((I=cp(e)).c(),I.m(r,S)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=up(e)).c(),N.m(r,null)):N&&(N.d(1),N=null),"active"===e[1]?O?O.p(e,t):((O=dp(e)).c(),O.m(i,null)):O&&(O.d(1),O=null)},i:se,o:se,d(e){e&&an(i),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),n[18](null)}}}function hp(t,e,n){let i;ue(t,me,e=>n(9,i=e));let r,{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,b="PC"!==fe(v),w="";Object.keys(sp).forEach(e=>{ap(e,sp[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,o=e.bonuswalletid),"bonusdate"in e&&n(0,a=e.bonusdate),"bonusstatus"in e&&n(1,s=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,c=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,p=e.bonusremainingamount),"bonuscurrency"in e&&n(6,h=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,g=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,he.set(e)),8192&t.$$.dirty&&c&&(n(8,w=c),"freeRound"===w?n(8,w="Free Spins"):"freeBet"===w&&n(8,w="Free Bet")),65664&t.$$.dirty&&g&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&r&&((e=document.createElement("style")).innerHTML=f,r.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ap(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,r,w,i,b,()=>{window.postMessage({type:"DisableScroll"},window.location.href),window.postMessage({type:"DeleteActiveBonus",bonuswalletid:o},window.location.href)},o,c,m,f,g,y,function(e){pe[e?"unshift":"push"](()=>{r=e,n(7,r)})}]}function mp(e,t,n){e=e.slice();return e[43]=t[n],e[45]=n,e}function fp(e,t,n){e=e.slice();return e[46]=t[n],e}function gp(e){let n,i,r=e[14]("invalidBonusCode")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidBonusCodeMessage")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("invalidBonusCode")+"")&&hn(i,r)},d(e){e&&an(n)}}}function yp(t){let r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=_p(fp(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);on(t,r,n)},p(t,n){if(4103&n[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var i=fp(t,o,e);a[e]?a[e].p(i,n):(a[e]=_p(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){mn(a,e),e&&an(r)}}}function vp(e){let n,i,r=e[14]("noActiveBonuses")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noActiveBonuses")+"")&&hn(i,r)},d(e){e&&an(n)}}}function bp(e){let n,i,r,o,a,s,l,c,u,d;return{c(){le(n=sn("player-bonus-card"),"bonuswalletid",i=e[46].walletId),le(n,"bonusdate",r=e[46].granted),le(n,"bonusstatus",o=e[46].status),le(n,"bonusname",a=e[46].name),le(n,"bonustype",s=e[46].type),le(n,"bonusamount",l=e[46].grantedAmount),le(n,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),le(n,"bonusremainingamount",u=e[46].currentAmount),le(n,"bonuscurrency",d=e[46].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){on(e,n,t)},p(e,t){4096&t[0]&&i!==(i=e[46].walletId)&&le(n,"bonuswalletid",i),4096&t[0]&&r!==(r=e[46].granted)&&le(n,"bonusdate",r),4096&t[0]&&o!==(o=e[46].status)&&le(n,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(n,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(n,"bonustype",s),4096&t[0]&&l!==(l=e[46].grantedAmount)&&le(n,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&le(n,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&le(n,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&le(n,"bonuscurrency",d),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&an(n)}}}function wp(e){let n,i,r,o,a,s,l;return{c(){le(n=sn("player-bonus-card"),"bonuswalletid",i=e[46].walletId),le(n,"bonusdate",r=e[46].granted),le(n,"bonusstatus",o=e[46].status),le(n,"bonusname",a=e[46].name),le(n,"bonustype",s=e[46].type),le(n,"bonuscurrency",l=e[46].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){on(e,n,t)},p(e,t){4096&t[0]&&i!==(i=e[46].walletId)&&le(n,"bonuswalletid",i),4096&t[0]&&r!==(r=e[46].granted)&&le(n,"bonusdate",r),4096&t[0]&&o!==(o=e[46].status)&&le(n,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(n,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(n,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&le(n,"bonuscurrency",l),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&an(n)}}}function _p(e){let n;function i(e){return"freeRound"===e[46].type?wp:bp}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function xp(n){let i,r,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(n[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Cp(mp(n,_,e));return{c(){i=sn("div"),r=sn("span"),o=cn("|<"),s=un(),l=sn("span"),c=cn("<"),u=un();for(let e=0;e<x.length;e+=1)x[e].c();d=un(),p=sn("span"),h=cn(">"),f=un(),g=sn("span"),y=cn(">|"),pn(r,"class",a="BonusesFirst "+(0===n[11]?"Inactive":"")),pn(l,"class",e="BonusesPrev "+(0===n[11]?"Inactive":"")),pn(p,"class",m="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),pn(g,"class",v="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),pn(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(i,s),rn(i,l),rn(l,c),rn(i,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(i,null);rn(i,d),rn(i,p),rn(p,h),rn(i,f),rn(i,g),rn(g,y),b||(w=[dn(r,"click",n[29]),dn(l,"click",n[30]),dn(p,"click",n[32]),dn(g,"click",n[33])],b=!0)},p(t,n){if(2048&n[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&pn(r,"class",a),2048&n[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&pn(l,"class",e),265216&n[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=mp(t,_,e);x[e]?x[e].p(a,n):(x[e]=Cp(a),x[e].c(),x[e].m(i,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&n[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&pn(p,"class",m),3072&n[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&pn(g,"class",v)},d(e){e&&an(i),mn(x,e),b=!1,nn(w)}}}function Cp(n){let i,r,o,a,s,e=n[45]+1+"";function l(){return n[31](n[45])}return{c(){i=sn("span"),r=cn(e),pn(i,"class",o="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))},m(e,t){on(e,i,t),rn(i,r),a||(s=dn(i,"click",l),a=!0)},p(e,t){n=e,2048&t[0]&&o!==(o="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&pn(i,"class",o)},d(e){e&&an(i),a=!1,s()}}}function Pp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[14]("forfeitBonus")+"",v=n[14]("forfeitBonusCancel")+"",b=n[14]("forfeitBonusConfirm")+"";return{c(){i=sn("div"),r=sn("div"),o=sn("div"),a=sn("p"),s=cn(y),l=un(),c=sn("div"),u=sn("button"),d=cn(v),p=un(),h=sn("button"),m=cn(b),pn(a,"class","ModalText"),pn(u,"class","ModalCancel"),pn(h,"class","ModalConfirm"),pn(c,"class","ModalButtons"),pn(o,"class","ModalBody"),pn(r,"class","ModalContent"),pn(i,"class","ModalWrapper "+(n[15]?"ModalWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(o,l),rn(o,c),rn(c,u),rn(u,d),rn(c,p),rn(c,h),rn(h,m),f||(g=[dn(u,"click",n[20]),dn(h,"click",n[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&hn(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&hn(d,v),16384&t[0]&&b!==(b=e[14]("forfeitBonusConfirm")+"")&&hn(m,b)},d(e){e&&an(i),f=!1,nn(g)}}}function Ep(n){let i,r=function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E=n[14]("title")+"",T=n[14]("bonusCode")+"",A=n[14]("getBonus")+"",S=n[15]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","ActiveBonusesTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),M=n[5]&&gp(n);function k(e){return 0===e[12].length?vp:yp}let D=k(n),L=D(n),B=0!==n[12].length&&xp(n),$=n[13]&&Pp(n);return{c(){i=sn("div"),S&&S.c(),r=un(),o=sn("h2"),a=cn(E),s=un(),l=sn("div"),c=sn("label"),u=cn(T),d=un(),p=sn("div"),h=sn("input"),m=un(),f=sn("button"),g=cn(A),y=un(),M&&M.c(),v=un(),b=sn("div"),L.c(),w=un(),B&&B.c(),_=un(),$&&$.c(),x=I(),pn(o,"class","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),pn(c,"for","BonusCode"),pn(h,"class","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),pn(h,"type","text"),pn(h,"id","BonusCode"),pn(f,"class","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),f.disabled=n[4],pn(p,"class","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),pn(l,"class","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),pn(b,"class","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),pn(i,"class","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":"")),pn(i,"part","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){on(e,i,t),S&&S.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),rn(i,l),rn(l,c),rn(c,u),rn(l,d),rn(l,p),rn(p,h),fn(h,n[6]),rn(p,m),rn(p,f),rn(f,g),rn(l,y),M&&M.m(l,null),rn(i,v),rn(i,b),L.m(b,null),rn(i,w),B&&B.m(i,null),on(e,_,t),$&&$.m(e,t),on(e,x,t),C||(P=[dn(h,"input",n[28]),dn(h,"keyup",n[17]),dn(f,"click",n[19])],C=!0)},p(e,t){e[15]&&S.p(e,t),16384&t[0]&&E!==(E=e[14]("title")+"")&&hn(a,E),16384&t[0]&&T!==(T=e[14]("bonusCode")+"")&&hn(u,T),64&t[0]&&h.value!==e[6]&&fn(h,e[6]),16384&t[0]&&A!==(A=e[14]("getBonus")+"")&&hn(g,A),16&t[0]&&(f.disabled=e[4]),e[5]?M?M.p(e,t):((M=gp(e)).c(),M.m(l,null)):M&&(M.d(1),M=null),D===(D=k(e))&&L?L.p(e,t):(L.d(1),(L=D(e))&&(L.c(),L.m(b,null))),0!==e[12].length?B?B.p(e,t):((B=xp(e)).c(),B.m(i,null)):B&&(B.d(1),B=null),e[13]?$?$.p(e,t):(($=Pp(e)).c(),$.m(x.parentNode,x)):$&&($.d(1),$=null)},d(e){e&&an(i),S&&S.d(),M&&M.d(),L.d(),B&&B.d(),e&&an(_),$&&$.d(e),e&&an(x),C=!1,nn(P)}}}(n);return{c(){i=sn("div"),r.c(),this.c=se},m(e,t){on(e,i,t),r.m(i,null),n[34](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&an(i),r.d(),n[34](null)}}}function Tp(t,e,i){let n;ue(t,me,e=>i(14,n=e));let r,{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"!==fe(h),f,g=!1,y="",v=0,b=0,w=0,_=0,x=0,C=[],P="",E=!1;Object.keys(op).forEach(e=>{rp(e,op[e])});const T=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,i(13,E=!0))},A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=t=>{var e={method:"GET",headers:{"X-SessionId":a}},n=new URL(`${o}/player/${s}/bonusWallet`);n.searchParams.append("filter","status=active"),n.searchParams.append("pagination",`offset=${t},limit=6`),fetch(n,e).then(e=>e.json()).then(e=>{i(10,_=Math.ceil(e.total/6)),0<=t-6&&i(7,v=t-6),t+6<e.total&&i(8,b=t+6),i(9,w=6*(_-1)),i(11,x=t/6),i(12,C=e.items)},e=>{console.error(e)})},M=()=>{window.postMessage({type:"EnableScroll"},window.location.href),i(13,E=!1)};return de(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)})),t.$$set=e=>{"endpoint"in e&&i(22,o=e.endpoint),"session"in e&&i(23,a=e.session),"playerid"in e&&i(24,s=e.playerid),"lang"in e&&i(0,l=e.lang),"playercurrency"in e&&i(25,c=e.playercurrency),"clientstyling"in e&&i(1,u=e.clientstyling),"clientstylingurl"in e&&i(2,d=e.clientstylingurl),"translationurl"in e&&i(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,he.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&S(0),12&t.$$.dirty[0]&&d&&r){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{rp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,r,!0,g,y,v,b,w,_,x,C,E,n,m,A,()=>{i(4,f=!y)},S,()=>{var e=new URL(`${o}/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?(i(5,g=!1),S(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(i(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("errorMessage")}},window.location.href))})},M,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(S(0),M())})},o,a,s,c,p,()=>A(),function(){y=this.value,i(6,y)},()=>S(0),()=>S(v),e=>S(6*e),()=>S(b),()=>S(w),function(e){pe[e?"unshift":"push"](()=>{r=e,i(3,r)})}]}function Ap(e,t){a(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends t{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-dunkel, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C))}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},hp,pp,n,{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&&on(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #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-pink-500, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Tp,Ep,n,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&on(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 Sp={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:",securityQuestion:"Document Type (DNI, Foreign ID Card, Passport):",securityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",firstName:"First Name:",securityAnswer:"Document Number:",securityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",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 Mp(){"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 n,i=window.cstmNativeBridge.EVENTS[e];if(i){if("function"==typeof t)return n=window.cstmNativeBridge.eventListeners[i],window.cstmNativeBridge.eventListeners[i]=function(){delete window.cstmNativeBridge.eventListeners[i],n&&n.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,n=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof n?(t=Array.prototype.slice.call(arguments,1),n.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var kp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Dp=function(e,...t){try{return Mp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Lp=function(e,t){try{return Mp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Bp(e,t,n){e=e.slice();return e[106]=t[n],e}function $p(n){let r,F,R,H,z,W,Y,j,U,i,G,V,q,X,o,Z,a,J,K,Q,ee,s,te,l,e,ne,ie,re,c,oe,ae,se,u,le,ce,ue,de,d,pe,he,me,p,fe,ge,ye,ve,be,we,_e,xe,h,Ce,Pe,Ee,Te,Ae,m,Se,Me,ke,De,Le,f,Be,$e,Ie,Ne,Oe,g,Fe,Re,He,ze,We,y,Ye,je,Ue,Ge,Ve,v,qe,Xe,Ze,Je,Ke,b,Qe,et,tt,nt,w,it,rt,_,ot,at,st,x,lt,ct,ut,dt,pt,C,ht,mt,ft,P,gt,yt,vt,bt,E,wt,_t,xt,T,Ct,Pt,Et,Tt,At,St,Mt,kt,Dt,Lt,Bt,$t,It,Nt,Ot=n[37]("title")+"",Ft=n[37]("personalDetails")+"",Rt=n[37]("userName")+"",Ht=n[37]("userPhone")+"",zt=n[37]("securityQuestion")+"",Wt=n[37]("securityAnswer")+"",Yt=n[37]("userEmail")+"",jt=n[37]("dateOfBirth")+"",Ut=n[37]("firstName")+"",Gt=n[37]("lastName")+"",Vt=n[37]("userTitle")+"",qt=n[37]("currency")+"",Xt=n[37]("locationDetails")+"",Zt=n[37]("userCountry")+"",Jt=n[37]("userCity")+"",Kt=n[37]("userAddress")+"",Qt=n[37]("userPostalCode")+"",en=n[37]("userProfileSaveChanges")+"",A=n[38]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[37]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","MyAccountCategoryTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[59]),m=!0)},p(e,t){64&t[1]&&g!==(g=e[37]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),tn=n[16],S=[];for(let e=0;e<tn.length;e+=1)S[e]=Fp(Bp(n,tn,e));let M=n[25]&&Rp(n),k=n[23]&&Hp(n),D=n[24]&&zp(n),L=n[20]&&Wp(n),B=n[22]&&Yp(n),$=n[21]&&jp(n),I=(n[17]||n[18])&&Up(n),N=n[27]&&qp(n),O=n[26]&&Xp(n);return{c(){r=sn("form"),A&&A.c(),F=un(),R=sn("h2"),H=cn(Ot),z=un(),W=sn("div"),Y=sn("h3"),j=cn(Ft),U=un(),i=sn("section"),G=sn("div"),V=sn("label"),q=cn(Rt),X=un(),o=sn("input"),Z=un(),a=sn("div"),J=sn("label"),K=cn(Ht),Q=un(),ee=sn("div"),s=sn("select");for(let e=0;e<S.length;e+=1)S[e].c();te=un(),l=sn("input"),ne=un(),M&&M.c(),re=un(),c=sn("div"),oe=sn("label"),ae=cn(zt),se=un(),u=sn("input"),ce=un(),k&&k.c(),de=un(),d=sn("div"),pe=sn("label"),he=cn(Wt),me=un(),p=sn("input"),ge=un(),D&&D.c(),ve=un(),be=sn("div"),we=sn("label"),_e=cn(Yt),xe=un(),h=sn("input"),Ce=un(),Pe=sn("div"),Ee=sn("label"),Te=cn(jt),Ae=un(),m=sn("input"),Se=un(),Me=sn("div"),ke=sn("label"),De=cn(Ut),Le=un(),f=sn("input"),Be=un(),$e=sn("div"),Ie=sn("label"),Ne=cn(Gt),Oe=un(),g=sn("input"),Fe=un(),Re=sn("div"),He=sn("label"),ze=cn(Vt),We=un(),y=sn("input"),Ye=un(),je=sn("div"),Ue=sn("label"),Ge=cn(qt),Ve=un(),v=sn("input"),qe=un(),Xe=sn("div"),Ze=sn("h3"),Je=cn(Xt),Ke=un(),b=sn("section"),Qe=sn("div"),et=sn("label"),tt=cn(Zt),nt=un(),w=sn("input"),rt=un(),_=sn("div"),ot=sn("label"),at=cn(Jt),st=un(),x=sn("input"),ut=un(),L&&L.c(),pt=un(),C=sn("div"),ht=sn("label"),mt=cn(Kt),ft=un(),P=sn("input"),yt=un(),B&&B.c(),bt=un(),E=sn("div"),wt=sn("label"),_t=cn(Qt),xt=un(),T=sn("input"),Et=un(),$&&$.c(),At=un(),I&&I.c(),St=un(),N&&N.c(),Mt=un(),kt=sn("section"),Dt=sn("button"),Lt=cn(en),$t=un(),O&&O.c(),pn(R,"class","MyAccountCategoryTitle "+(n[38]?"MyAccountCategoryTitleNone":"")),pn(W,"class","PlayerNotificationsHeader"),pn(o,"type","text"),pn(o,"class","FieldDisabled"),o.value=n[36],o.readOnly=!0,pn(G,"class","PlayerInfoBox"),void 0===n[12]&&yn(()=>n[60].call(s)),pn(l,"type","text"),pn(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),pn(l,"placeholder",e=n[3]?n[31].number:""),pn(ee,"class","PlayerPhoneNumber"),pn(a,"class",ie="PlayerInfoBox "+(n[25]?"InvalidField":"")),pn(u,"type","text"),pn(u,"placeholder",le=n[3]?n[44]:""),pn(c,"class",ue="PlayerInfoBox "+(n[23]?"InvalidField":"")),pn(p,"type","text"),pn(p,"placeholder",fe=n[3]?n[43]:""),pn(d,"class",ye="PlayerInfoBox "+(n[24]?"InvalidField":"")),pn(h,"type","email"),pn(h,"class","FieldDisabled"),h.value=n[32],h.readOnly=!0,pn(be,"class","PlayerInfoBox"),pn(m,"type","text"),pn(m,"class","FieldDisabled"),m.value=n[29],m.readOnly=!0,pn(Pe,"class","PlayerInfoBox"),pn(f,"type","text"),pn(f,"class","FieldDisabled"),f.value=n[33],f.readOnly=!0,pn(Me,"class","PlayerInfoBox"),pn(g,"type","text"),pn(g,"class","FieldDisabled"),g.value=n[35],g.readOnly=!0,pn($e,"class","PlayerInfoBox"),pn(y,"type","text"),pn(y,"class","FieldDisabled"),y.value=n[34],y.readOnly=!0,pn(Re,"class","PlayerInfoBox"),pn(v,"type","text"),pn(v,"class","FieldDisabled"),v.value=n[30],v.readOnly=!0,pn(je,"class","PlayerInfoBox"),pn(i,"class","PlayerDetailsContent"),pn(Xe,"class","PlayerLocationHeader"),pn(w,"type","text"),pn(w,"class","PlayerCountry FieldDisabled"),pn(w,"placeholder",n[0]),w.value=it=n[15].Name,w.readOnly=!0,pn(Qe,"class","PlayerInfoBox"),pn(x,"type","text"),pn(x,"placeholder",lt=n[3]?n[41]:""),x.value=ct=n[3]?"":n[28].city,pn(_,"class",dt="PlayerInfoBox "+(n[20]?"InvalidField":"")),pn(P,"placeholder",n[40]),pn(P,"type","text"),P.value=gt=n[3]?"":n[28].address,pn(C,"class",vt="PlayerInfoBox "+(n[22]?"InvalidField":"")),pn(T,"type","text"),pn(T,"placeholder",Ct=n[3]?n[42]:""),T.value=Pt=n[3]?"":n[28].postalCode,pn(E,"class",Tt="PlayerInfoBox "+(n[21]?"InvalidField":"")),pn(b,"class","PlayerLocationContent"),pn(Dt,"class",Bt="PlayerDetailsSaveButton "+(n[14]&&n[19]?"":"PlayerButtonDisabled")),pn(kt,"class","PlayerDetailsButtonsArea "+(n[38]?"PlayerDetailsButtonsAreaMobile":"")),pn(r,"class","PlayerInfoWrapper "+(n[38]?"PlayerInfoWrapperMobile":"")+" "+(n[39].matches&&n[38]?"PlayerInfoWrapperTablet":""))},m(e,t){on(e,r,t),A&&A.m(r,null),rn(r,F),rn(r,R),rn(R,H),rn(r,z),rn(r,W),rn(W,Y),rn(Y,j),rn(r,U),rn(r,i),rn(i,G),rn(G,V),rn(V,q),rn(G,X),rn(G,o),rn(i,Z),rn(i,a),rn(a,J),rn(J,K),rn(a,Q),rn(a,ee),rn(ee,s);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(s,null);gn(s,n[12],!0),rn(ee,te),rn(ee,l),fn(l,n[13]),rn(a,ne),M&&M.m(a,null),rn(i,re),rn(i,c),rn(c,oe),rn(oe,ae),rn(c,se),rn(c,u),fn(u,n[10]),rn(c,ce),k&&k.m(c,null),rn(i,de),rn(i,d),rn(d,pe),rn(pe,he),rn(d,me),rn(d,p),fn(p,n[11]),rn(d,ge),D&&D.m(d,null),rn(i,ve),rn(i,be),rn(be,we),rn(we,_e),rn(be,xe),rn(be,h),rn(i,Ce),rn(i,Pe),rn(Pe,Ee),rn(Ee,Te),rn(Pe,Ae),rn(Pe,m),rn(i,Se),rn(i,Me),rn(Me,ke),rn(ke,De),rn(Me,Le),rn(Me,f),rn(i,Be),rn(i,$e),rn($e,Ie),rn(Ie,Ne),rn($e,Oe),rn($e,g),rn(i,Fe),rn(i,Re),rn(Re,He),rn(He,ze),rn(Re,We),rn(Re,y),rn(i,Ye),rn(i,je),rn(je,Ue),rn(Ue,Ge),rn(je,Ve),rn(je,v),rn(r,qe),rn(r,Xe),rn(Xe,Ze),rn(Ze,Je),rn(r,Ke),rn(r,b),rn(b,Qe),rn(Qe,et),rn(et,tt),rn(Qe,nt),rn(Qe,w),rn(b,rt),rn(b,_),rn(_,ot),rn(ot,at),rn(_,st),rn(_,x),n[68](x),rn(_,ut),L&&L.m(_,null),rn(b,pt),rn(b,C),rn(C,ht),rn(ht,mt),rn(C,ft),rn(C,P),n[70](P),rn(C,yt),B&&B.m(C,null),rn(b,bt),rn(b,E),rn(E,wt),rn(wt,_t),rn(E,xt),rn(E,T),n[72](T),rn(E,Et),$&&$.m(E,null),rn(r,At),I&&I.m(r,null),rn(r,St),N&&N.m(r,null),rn(r,Mt),rn(r,kt),rn(kt,Dt),rn(Dt,Lt),rn(r,$t),O&&O.m(r,null),It||(Nt=[dn(s,"change",n[60]),dn(s,"change",n[61]),dn(l,"input",n[62]),dn(l,"keyup",n[45]),dn(l,"keyup",n[63]),dn(u,"input",n[64]),dn(u,"keyup",n[65]),dn(u,"blur",n[46]),dn(p,"input",n[66]),dn(p,"keyup",n[67]),dn(p,"blur",n[47]),dn(x,"blur",n[48]),dn(x,"keyup",n[69]),dn(P,"blur",n[50]),dn(P,"keyup",n[71]),dn(T,"blur",n[49]),dn(T,"keyup",n[73]),dn(Dt,"click",n[77])],It=!0)},p(t,n){if(t[38]&&A.p(t,n),64&n[1]&&Ot!==(Ot=t[37]("title")+"")&&hn(H,Ot),64&n[1]&&Ft!==(Ft=t[37]("personalDetails")+"")&&hn(j,Ft),64&n[1]&&Rt!==(Rt=t[37]("userName")+"")&&hn(q,Rt),32&n[1]&&o.value!==t[36]&&(o.value=t[36]),64&n[1]&&Ht!==(Ht=t[37]("userPhone")+"")&&hn(K,Ht),268500992&n[0]){let e;for(tn=t[16],e=0;e<tn.length;e+=1){var i=Bp(t,tn,e);S[e]?S[e].p(i,n):(S[e]=Fp(i),S[e].c(),S[e].m(s,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=tn.length}69632&n[0]&&gn(s,t[12]),8&n[0]|1&n[1]&&e!==(e=t[3]?t[31].number:"")&&pn(l,"placeholder",e),8192&n[0]&&l.value!==t[13]&&fn(l,t[13]),t[25]?M?M.p(t,n):((M=Rp(t)).c(),M.m(a,null)):M&&(M.d(1),M=null),33554432&n[0]&&ie!==(ie="PlayerInfoBox "+(t[25]?"InvalidField":""))&&pn(a,"class",ie),64&n[1]&&zt!==(zt=t[37]("securityQuestion")+"")&&hn(ae,zt),8&n[0]&&le!==(le=t[3]?t[44]:"")&&pn(u,"placeholder",le),1024&n[0]&&u.value!==t[10]&&fn(u,t[10]),t[23]?k?k.p(t,n):((k=Hp(t)).c(),k.m(c,null)):k&&(k.d(1),k=null),8388608&n[0]&&ue!==(ue="PlayerInfoBox "+(t[23]?"InvalidField":""))&&pn(c,"class",ue),64&n[1]&&Wt!==(Wt=t[37]("securityAnswer")+"")&&hn(he,Wt),8&n[0]&&fe!==(fe=t[3]?t[43]:"")&&pn(p,"placeholder",fe),2048&n[0]&&p.value!==t[11]&&fn(p,t[11]),t[24]?D?D.p(t,n):((D=zp(t)).c(),D.m(d,null)):D&&(D.d(1),D=null),16777216&n[0]&&ye!==(ye="PlayerInfoBox "+(t[24]?"InvalidField":""))&&pn(d,"class",ye),64&n[1]&&Yt!==(Yt=t[37]("userEmail")+"")&&hn(_e,Yt),2&n[1]&&h.value!==t[32]&&(h.value=t[32]),64&n[1]&&jt!==(jt=t[37]("dateOfBirth")+"")&&hn(Te,jt),536870912&n[0]&&m.value!==t[29]&&(m.value=t[29]),64&n[1]&&Ut!==(Ut=t[37]("firstName")+"")&&hn(De,Ut),4&n[1]&&f.value!==t[33]&&(f.value=t[33]),64&n[1]&&Gt!==(Gt=t[37]("lastName")+"")&&hn(Ne,Gt),16&n[1]&&g.value!==t[35]&&(g.value=t[35]),64&n[1]&&Vt!==(Vt=t[37]("userTitle")+"")&&hn(ze,Vt),8&n[1]&&y.value!==t[34]&&(y.value=t[34]),64&n[1]&&qt!==(qt=t[37]("currency")+"")&&hn(Ge,qt),1073741824&n[0]&&v.value!==t[30]&&(v.value=t[30]),64&n[1]&&Xt!==(Xt=t[37]("locationDetails")+"")&&hn(Je,Xt),64&n[1]&&Zt!==(Zt=t[37]("userCountry")+"")&&hn(tt,Zt),1&n[0]&&pn(w,"placeholder",t[0]),32768&n[0]&&it!==(it=t[15].Name)&&w.value!==it&&(w.value=it),64&n[1]&&Jt!==(Jt=t[37]("userCity")+"")&&hn(at,Jt),8&n[0]&&lt!==(lt=t[3]?t[41]:"")&&pn(x,"placeholder",lt),268435464&n[0]&&ct!==(ct=t[3]?"":t[28].city)&&x.value!==ct&&(x.value=ct),t[20]?L?L.p(t,n):((L=Wp(t)).c(),L.m(_,null)):L&&(L.d(1),L=null),1048576&n[0]&&dt!==(dt="PlayerInfoBox "+(t[20]?"InvalidField":""))&&pn(_,"class",dt),64&n[1]&&Kt!==(Kt=t[37]("userAddress")+"")&&hn(mt,Kt),268435464&n[0]&&gt!==(gt=t[3]?"":t[28].address)&&P.value!==gt&&(P.value=gt),t[22]?B?B.p(t,n):((B=Yp(t)).c(),B.m(C,null)):B&&(B.d(1),B=null),4194304&n[0]&&vt!==(vt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&pn(C,"class",vt),64&n[1]&&Qt!==(Qt=t[37]("userPostalCode")+"")&&hn(_t,Qt),8&n[0]&&Ct!==(Ct=t[3]?t[42]:"")&&pn(T,"placeholder",Ct),268435464&n[0]&&Pt!==(Pt=t[3]?"":t[28].postalCode)&&T.value!==Pt&&(T.value=Pt),t[21]?$?$.p(t,n):(($=jp(t)).c(),$.m(E,null)):$&&($.d(1),$=null),2097152&n[0]&&Tt!==(Tt="PlayerInfoBox "+(t[21]?"InvalidField":""))&&pn(E,"class",Tt),t[17]||t[18]?I?I.p(t,n):((I=Up(t)).c(),I.m(r,St)):I&&(I.d(1),I=null),t[27]?N?N.p(t,n):((N=qp(t)).c(),N.m(r,Mt)):N&&(N.d(1),N=null),64&n[1]&&en!==(en=t[37]("userProfileSaveChanges")+"")&&hn(Lt,en),540672&n[0]&&Bt!==(Bt="PlayerDetailsSaveButton "+(t[14]&&t[19]?"":"PlayerButtonDisabled"))&&pn(Dt,"class",Bt),t[26]?O?O.p(t,n):((O=Xp(t)).c(),O.m(r,null)):O&&(O.d(1),O=null)},d(e){e&&an(r),A&&A.d(),mn(S,e),M&&M.d(),k&&k.d(),D&&D.d(),n[68](null),L&&L.d(),n[70](null),B&&B.d(),n[72](null),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),It=!1,nn(Nt)}}}function Ip(e){let n;return{c(){pn(n=sn("div"),"class","ModalLoader")},m(e,t){on(e,n,t)},p:se,d(e){e&&an(n)}}}function Np(e){let n,i,r,o=e[106].Prefix+"";return{c(){n=sn("option"),i=cn(o),n.__value=r=e[106].Prefix,n.value=n.__value},m(e,t){on(e,n,t),rn(n,i)},p(e,t){65536&t[0]&&o!==(o=e[106].Prefix+"")&&hn(i,o),65536&t[0]&&r!==(r=e[106].Prefix)&&(n.__value=r,n.value=n.__value)},d(e){e&&an(n)}}}function Op(e){let n,i,r,o=e[106].Prefix+"";return{c(){n=sn("option"),i=cn(o),n.selected=!0,n.__value=r=e[106].Prefix,n.value=n.__value},m(e,t){on(e,n,t),rn(n,i)},p(e,t){65536&t[0]&&o!==(o=e[106].Prefix+"")&&hn(i,o),65536&t[0]&&r!==(r=e[106].Prefix)&&(n.__value=r,n.value=n.__value)},d(e){e&&an(n)}}}function Fp(e){let n;function i(e){return e[106].Prefix===e[28].mobiePrefix?Op:Np}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function Rp(e){let n,i,r=e[37]("userPhoneError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("userPhoneError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Hp(e){let n,i,r=e[37]("securityQuestionError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("securityQuestionError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function zp(e){let n,i,r=e[37]("securityAnswerError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("securityAnswerError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Wp(e){let n,i,r=e[37]("userCityError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("userCityError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Yp(e){let n,i,r=e[37]("userAddressError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("userAddressError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function jp(e){let n,i,r=e[37]("userPostalCodeError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){64&t[1]&&r!==(r=e[37]("userPostalCodeError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Up(e){let n,i,r,o,a,s,l=e[37]("userNotifications")+"",c=e[18]&&Gp(e),u=e[17]&&Vp(e);return{c(){n=sn("div"),i=sn("h3"),r=cn(l),o=un(),a=sn("section"),c&&c.c(),s=un(),u&&u.c(),pn(n,"class","PlayerNotificationsHeader"),pn(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){on(e,n,t),rn(n,i),rn(i,r),on(e,o,t),on(e,a,t),c&&c.m(a,null),rn(a,s),u&&u.m(a,null)},p(e,t){64&t[1]&&l!==(l=e[37]("userNotifications")+"")&&hn(r,l),e[18]?c?c.p(e,t):((c=Gp(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[17]?u?u.p(e,t):((u=Vp(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&an(n),e&&an(o),e&&an(a),c&&c.d(),u&&u.d()}}}function Gp(n){let i,r,o,a,s,l,c,u,d,p,h=n[37]("userSMSNotification")+"";return{c(){i=sn("div"),r=sn("label"),o=sn("input"),a=un(),s=sn("span"),l=un(),c=sn("span"),u=cn(h),pn(o,"type","checkbox"),pn(o,"id","SMSNotification"),pn(o,"name","Enable SMS notifications"),pn(s,"class","Checkmark"),pn(r,"for","SMSNotification"),pn(i,"class","PlayerNotificationBox")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),o.checked=n[7],rn(r,a),rn(r,s),rn(r,l),rn(r,c),rn(c,u),d||(p=[dn(o,"change",n[74]),dn(o,"change",n[53])],d=!0)},p(e,t){128&t[0]&&(o.checked=e[7]),64&t[1]&&h!==(h=e[37]("userSMSNotification")+"")&&hn(u,h)},d(e){e&&an(i),d=!1,nn(p)}}}function Vp(n){let i,r,o,a,s,l,c,u,d,p,h=n[37]("userEmailNotification")+"";return{c(){i=sn("div"),r=sn("label"),o=sn("input"),a=un(),s=sn("span"),l=un(),c=sn("span"),u=cn(h),pn(o,"type","checkbox"),pn(o,"id","EmailNotification"),pn(o,"name","Enable Emails"),pn(s,"class","Checkmark"),pn(r,"for","EmailNotification"),pn(i,"class","PlayerNotificationBox")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),o.checked=n[8],rn(r,a),rn(r,s),rn(r,l),rn(r,c),rn(c,u),d||(p=[dn(o,"change",n[75]),dn(o,"change",n[53])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),64&t[1]&&h!==(h=e[37]("userEmailNotification")+"")&&hn(u,h)},d(e){e&&an(i),d=!1,nn(p)}}}function qp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v=n[37]("userAppSettings")+"",b=n[37]("userBiometrics")+"";return{c(){i=sn("div"),r=sn("h3"),o=cn(v),a=un(),s=sn("section"),l=sn("div"),c=sn("label"),u=sn("input"),d=un(),p=sn("span"),h=un(),m=sn("span"),f=cn(b),pn(i,"class","PlayerNotificationsHeader"),pn(u,"type","checkbox"),pn(u,"id","BiometricsEnabled"),pn(u,"name","Biometric Enabled"),pn(p,"class","Checkmark"),pn(c,"for","Biometrics"),pn(l,"class","PlayerNotificationBox"),pn(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),on(e,a,t),on(e,s,t),rn(s,l),rn(l,c),rn(c,u),u.checked=n[9],rn(c,d),rn(c,p),rn(c,h),rn(c,m),rn(m,f),g||(y=[dn(u,"change",n[76]),dn(u,"change",n[53])],g=!0)},p(e,t){64&t[1]&&v!==(v=e[37]("userAppSettings")+"")&&hn(o,v),512&t[0]&&(u.checked=e[9]),64&t[1]&&b!==(b=e[37]("userBiometrics")+"")&&hn(f,b)},d(e){e&&an(i),e&&an(a),e&&an(s),g=!1,nn(y)}}}function Xp(e){let n,i,r,o=e[37]("userProfileConfirmationMessage")+"";return{c(){n=sn("section"),i=sn("p"),r=cn(o),pn(i,"class","PlayerDetailsConfirmSaveText"),pn(n,"class","PlayerDetailsConfirmSave")},m(e,t){on(e,n,t),rn(n,i),rn(i,r)},p(e,t){64&t[1]&&o!==(o=e[37]("userProfileConfirmationMessage")+"")&&hn(r,o)},d(e){e&&an(n)}}}function Zp(n){let i;function r(e){return e[2]?Ip:$p}let o=r(n),a=o(n);return{c(){i=sn("div"),a.c(),this.c=se},m(e,t){on(e,i,t),a.m(i,null),n[78](i)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&an(i),a.d(),n[78](null)}}}function Jp(t,e,n){let N;ue(t,me,e=>n(37,N=e));let i,r,o,a,s,{endpoint:l=""}=e,{lang:c="en"}=e,{countrycode:u="IR"}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:h=""}=e,O=!0,F=window.navigator.userAgent,R="PC"!==fe(F),H=!0,m=!1,f=!1,g=!1,y="",v="",b="",w="",_=!1,z={Name:"I.e Ireland"},x=[],W=[],C=[],P=!1,E=!1,T={items:[]},A=!1,S="",M="",Y="",j=!1,U=!1,G=!1,k=!1;Object.keys(Sp).forEach(e=>{Ap(e,Sp[e])});e=window.matchMedia("(min-width: 768px)");let V={address1:"",address2:"",city:"",acceptNewsEmail:!1,acceptSMSOffers:!1,country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},D={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},L={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:q,birth:X,city:Z,currency:J,mobile:B,email:K,firstname:Q,userTitles:ee,language:te,lastname:ne,postalCode:ie,securityAnswer:re,securityQuestion:oe,username:ae}=L;const se=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":n(3,H=!1),L=e.data.profileDetails,n(36,ae=L.username),n(31,B=L.mobile),n(32,K=L.email),n(33,Q=L.firstname),n(35,ne=L.lastname),te=L.language,n(29,X=(null==(t=L.birth)?void 0:t.day)+"/"+(null==(t=L.birth)?void 0:t.month)+"/"+(null==(t=L.birth)?void 0:t.year)),n(30,J=L.currency),n(34,ee=L.title),n(10,y=L.securityQuestion),n(11,v=L.securityAnswer),n(12,b=null==(t=L.mobile)?void 0:t.prefix),n(13,w=null==(t=L.mobile)?void 0:t.number),n(28,D.address=L.address1,D),n(28,D.city=L.city,D),n(28,D.mobilePrefix=null==B?void 0:B.prefix,D),n(28,D.mobileNumber=null==B?void 0:B.number,D),n(28,D.postalCode=L.postalCode,D),n(28,D.securityAnswer=L.securityAnswer,D),n(28,D.securityQuestion=L.securityQuestion,D);break;case"ProfileConsentData":C=e.data.consent.items,Array.isArray(C)&&C.forEach(e=>{"emailmarketing"==e.tagCode?(n(17,P=!0),n(8,f="Accepted"==e.status),n(28,D.acceptNewsEmail=f,D)):"sms"==e.tagCode&&(n(18,E=!0),n(7,m="Accepted"==e.status),n(28,D.acceptSMSOffers=m,D))});break;case"ConfirmProfileInfoSave":k&&(Lp("BIOMETRICS_ENABLED",e=>{e!==g&&n(9,g=e)}),Dp(g?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),n(14,_=!1),n(26,G=!0),setTimeout(()=>{n(26,G=!1)},3e3)}},$=()=>{n(19,A=!(j||U||S||Y||M||s))},le=e=>{e.preventDefault(),1==_&&1==A&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:V},window.location.href),window.postMessage({type:"UpdatePlayerConsent",consentArray:T},window.location.href))},ce=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:R},window.location.href)},I=()=>{var e,t;V={acceptNewsEmail:f,acceptSMSOffers:m,address:o.value,city:a.value,mobileNumber:w,mobilePrefix:b,postalCode:r.value,securityAnswer:v,securityQuestion:y},e=V,t=D,JSON.stringify(e)===JSON.stringify(t)?n(14,_=!1):n(14,_=!0),T={items:[]},E&&T.items.push({tagCode:"sms",status:m?"Accepted":"Denied"}),P&&T.items.push({tagCode:"emailmarketing",status:f?"Accepted":"Denied"}),$()};return de(()=>(window.addEventListener("message",se,!1),n(27,k=!!kp(F)),k&&(Lp("BIOMETRICS_ENABLED",e=>{n(9,g=!!e)}),Dp("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",se)})),t.$$set=e=>{"endpoint"in e&&n(54,l=e.endpoint),"lang"in e&&n(55,c=e.lang),"countrycode"in e&&n(0,u=e.countrycode),"clientstyling"in e&&n(56,d=e.clientstyling),"clientstylingurl"in e&&n(57,p=e.clientstylingurl),"translationurl"in e&&n(58,h=e.translationurl)},t.$$.update=()=>{if(16777216&t.$$.dirty[1]&&c&&(e=c,he.set(e)),1&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&l&&u&&fetch(l+"/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/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)),n(15,z=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),n(2,O=!1)})}),8388608&t.$$.dirty[1]&&l&&fetch(l+"/player/phonecodes").then(e=>e.json()).then(e=>{n(16,x=e.phoneCodes)}),2&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&p&&i){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;2&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&d&&i&&((e=document.createElement("style")).innerHTML=d,i.appendChild(e)),134217728&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ap(e,t[e])})}).catch(e=>{console.log(e)})},[u,i,O,H,r,o,a,m,f,g,y,v,b,w,_,z,x,P,E,A,S,M,Y,j,U,s,G,k,D,X,J,B,K,Q,ee,ne,ae,N,R,e,q,Z,ie,re,oe,()=>{n(25,s=!(w&&5<=w.length&&w.length<=12)),$()},()=>{n(23,j=!(y&&y.length<=120)),$()},()=>{n(24,U=!(v&&v.length<=120)),$()},()=>{n(20,S=!(a.value&&a.value.length<=50)),$()},()=>{n(21,M=!(r.value&&r.value.length<=20)),$()},()=>{n(22,Y=!(o.value&&o.value.length<=100)),$()},le,ce,I,l,c,d,p,h,()=>ce(),function(){b=ye(this),n(12,b),n(16,x)},()=>I(),function(){w=this.value,n(13,w)},()=>I(),function(){y=this.value,n(10,y)},()=>I(),function(){v=this.value,n(11,v)},()=>I(),function(e){pe[e?"unshift":"push"](()=>{a=e,n(6,a)})},()=>I(),function(e){pe[e?"unshift":"push"](()=>{o=e,n(5,o)})},()=>I(),function(e){pe[e?"unshift":"push"](()=>{r=e,n(4,r)})},()=>I(),function(){m=this.checked,n(7,m)},function(){f=this.checked,n(8,f)},function(){g=this.checked,n(9,g)},e=>le(e),function(e){pe[e?"unshift":"push"](()=>{i=e,n(1,i)})}]}function Kp(e,t){a(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends t{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-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Jp,Zp,n,{endpoint:54,lang:55,countrycode:0,clientstyling:56,clientstylingurl:57,translationurl:58},null,[-1,-1,-1,-1]),e&&(e.target&&on(e.target,this,e.anchor),e.props)&&(this.$set(e.props),p())}static get observedAttributes(){return["endpoint","lang","countrycode","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[54]}set endpoint(e){this.$$set({endpoint:e}),p()}get lang(){return this.$$.ctx[55]}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[56]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[57]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[58]}set translationurl(e){this.$$set({translationurl:e}),p()}});const Qp={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 eh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C=n[19]("changePasswordText")+"",P=n[19]("passwordReset")+"",E=n[19]("passwordResetConfirmation")+"",T=n[19]("backButtonText")+"",A=n[20]&&function(n){let i,r,o,a,s,l,c,u,d,p=n[19]("returnToMenu")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("g"),a=ln("path"),s=un(),l=sn("span"),c=cn(p),pn(a,"id","Chevron_Right"),pn(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"),pn(r,"version","1.1"),pn(r,"id","Capa_1"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),pn(r,"x","0px"),pn(r,"y","0px"),pn(r,"viewBox","0 0 240.823 240.823"),M(r,"enable-background","new 0 0 240.823 240.823"),pn(r,"xml:space","preserve"),pn(r,"width","18px"),pn(r,"fill","var(--emfe-w-color-gray-300, #58586B)"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(i,l),rn(l,c),u||(d=dn(i,"click",n[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&hn(c,p)},d(e){e&&an(i),u=!1,d()}}}(n);return{c(){A&&A.c(),i=un(),r=sn("div"),o=sn("h3"),a=cn(C),s=un(),l=sn("div"),c=sn("div"),(u=sn("div")).innerHTML='<div class="Checkmark"></div>',d=un(),p=sn("div"),h=sn("h3"),m=cn(P),f=un(),g=sn("p"),y=cn(E),v=un(),b=sn("div"),w=cn(T),pn(r,"class","PlayerChangePasswordHeader"),pn(u,"class","IconContainer"),pn(p,"class","TextContainer"),pn(c,"class","SuccessWrapper"),pn(b,"class","PlayerChangePasswordBackButton"),pn(l,"class","ChangedPasswordSuccessfully")},m(e,t){A&&A.m(e,t),on(e,i,t),on(e,r,t),rn(r,o),rn(o,a),on(e,s,t),on(e,l,t),rn(l,c),rn(c,u),rn(c,d),rn(c,p),rn(p,h),rn(h,m),rn(p,f),rn(p,g),rn(g,y),rn(l,v),rn(l,b),rn(b,w),_||(x=dn(b,"click",n[46]),_=!0)},p(e,t){e[20]&&A.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&hn(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&hn(m,P),524288&t[0]&&E!==(E=e[19]("passwordResetConfirmation")+"")&&hn(y,E),524288&t[0]&&T!==(T=e[19]("backButtonText")+"")&&hn(w,T)},d(e){A&&A.d(e),e&&an(i),e&&an(r),e&&an(s),e&&an(l),_=!1,x()}}}function th(n){let F,i,R,H,r,o,a,z,W,s,Y,j,l,U,c,u,G,V,d,q,X,p,Z,h,m,J,K,f,Q,ee,g,te,y,v,b,ne,w,_,ie,re,x=n[19]("title")+"",C=n[19]("currentPassword")+"",P=n[19]("newPassword")+"",E=n[19]("confirmPassword")+"",T=n[19]("submitChangePassword")+"",A=n[20]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[19]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","ChangePasswordTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function oe(e){return e[10]?ih:nh}let S=oe(n),M=S(n),k=n[4]&&rh(n);function ae(e){return e[11]?lh:sh}let D=ae(n),L=D(n);function se(e){return e[13]?uh:e[5]?ch:void 0}let B=se(n),$=B&&B(n);function le(e){return e[12]?mh:hh}let ce=le(n),I=ce(n),N=n[6]&&fh(n),O=n[18]&&gh(n);return{c(){A&&A.c(),F=un(),i=sn("h2"),R=cn(x),H=un(),r=sn("section"),o=sn("div"),a=sn("label"),z=cn(C),W=un(),s=sn("input"),Y=un(),M.c(),j=un(),k&&k.c(),U=un(),c=sn("div"),u=sn("label"),G=cn(P),V=un(),d=sn("input"),q=un(),L.c(),X=un(),$&&$.c(),Z=un(),h=sn("div"),m=sn("label"),J=cn(E),K=un(),f=sn("input"),Q=un(),I.c(),ee=un(),N&&N.c(),te=un(),O&&O.c(),y=un(),v=sn("section"),b=sn("button"),ne=cn(T),pn(i,"class","ChangePasswordTitle "+(n[20]?"ChangePasswordTitleNone":"")),pn(a,"for","CurrentPassword"),pn(s,"id","CurrentPassword"),pn(s,"type","password"),pn(o,"class",l="PlayerChangePasswordBox "+(n[4]?"InvalidField":"")),pn(u,"for","NewPassword"),pn(d,"id","NewPassword"),pn(d,"autocomplete","new-password"),pn(d,"type","password"),pn(c,"class",p="PlayerChangePasswordBox "+(n[5]?"InvalidField":"")),pn(m,"for","ConfirmPassword"),pn(f,"id","ConfirmPassword"),pn(f,"type","password"),pn(h,"class",g="PlayerChangePasswordBox "+(n[6]?"InvalidField":"")),pn(r,"class","PlayerChangePasswordContent"),pn(b,"class",w="PlayerChangePasswordSaveButton "+(n[3]?"":"ButtonInactive")),b.disabled=_=!n[3],pn(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){A&&A.m(e,t),on(e,F,t),on(e,i,t),rn(i,R),on(e,H,t),on(e,r,t),rn(r,o),rn(o,a),rn(a,z),rn(o,W),rn(o,s),fn(s,n[14]),n[33](s),rn(o,Y),M.m(o,null),rn(o,j),k&&k.m(o,null),rn(r,U),rn(r,c),rn(c,u),rn(u,G),rn(c,V),rn(c,d),fn(d,n[15]),n[37](d),rn(c,q),L.m(c,null),rn(c,X),$&&$.m(c,null),rn(r,Z),rn(r,h),rn(h,m),rn(m,J),rn(h,K),rn(h,f),fn(f,n[16]),n[41](f),rn(h,Q),I.m(h,null),rn(h,ee),N&&N.m(h,null),on(e,te,t),O&&O.m(e,t),on(e,y,t),on(e,v,t),rn(v,b),rn(b,ne),ie||(re=[dn(s,"input",n[32]),dn(s,"blur",function(){ge(n[23](n[4],n[14],n[7]))&&n[23](n[4],n[14],n[7]).apply(this,arguments)}),dn(d,"input",n[36]),dn(d,"blur",function(){ge(n[23](n[5],n[15],n[8]))&&n[23](n[5],n[15],n[8]).apply(this,arguments)}),dn(f,"input",n[40]),dn(f,"blur",function(){ge(n[23](n[6],n[16],n[9]))&&n[23](n[6],n[16],n[9]).apply(this,arguments)}),dn(b,"click",n[44])],ie=!0)},p(e,t){(n=e)[20]&&A.p(n,t),524288&t[0]&&x!==(x=n[19]("title")+"")&&hn(R,x),524288&t[0]&&C!==(C=n[19]("currentPassword")+"")&&hn(z,C),16384&t[0]&&s.value!==n[14]&&fn(s,n[14]),S===(S=oe(n))&&M?M.p(n,t):(M.d(1),(M=S(n))&&(M.c(),M.m(o,j))),n[4]?k?k.p(n,t):((k=rh(n)).c(),k.m(o,null)):k&&(k.d(1),k=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(n[4]?"InvalidField":""))&&pn(o,"class",l),524288&t[0]&&P!==(P=n[19]("newPassword")+"")&&hn(G,P),32768&t[0]&&d.value!==n[15]&&fn(d,n[15]),D===(D=ae(n))&&L?L.p(n,t):(L.d(1),(L=D(n))&&(L.c(),L.m(c,X))),B===(B=se(n))&&$?$.p(n,t):($&&$.d(1),($=B&&B(n))&&($.c(),$.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(n[5]?"InvalidField":""))&&pn(c,"class",p),524288&t[0]&&E!==(E=n[19]("confirmPassword")+"")&&hn(J,E),65536&t[0]&&f.value!==n[16]&&fn(f,n[16]),ce===(ce=le(n))&&I?I.p(n,t):(I.d(1),(I=ce(n))&&(I.c(),I.m(h,ee))),n[6]?N?N.p(n,t):((N=fh(n)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(n[6]?"InvalidField":""))&&pn(h,"class",g),n[18]?O?O.p(n,t):((O=gh(n)).c(),O.m(y.parentNode,y)):O&&(O.d(1),O=null),524288&t[0]&&T!==(T=n[19]("submitChangePassword")+"")&&hn(ne,T),8&t[0]&&w!==(w="PlayerChangePasswordSaveButton "+(n[3]?"":"ButtonInactive"))&&pn(b,"class",w),8&t[0]&&_!==(_=!n[3])&&(b.disabled=_)},d(e){A&&A.d(e),e&&an(F),e&&an(i),e&&an(H),e&&an(r),n[33](null),M.d(),k&&k.d(),n[37](null),L.d(),$&&$.d(),n[41](null),I.d(),N&&N.d(),e&&an(te),O&&O.d(e),e&&an(y),e&&an(v),ie=!1,nn(re)}}}function nh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("path"),c=ln("circle"),pn(l,"class","a"),pn(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"),pn(l,"transform","translate(0)"),pn(c,"class","a"),pn(c,"cx","2.779"),pn(c,"cy","2.779"),pn(c,"r","2.779"),pn(c,"transform","translate(20.827 30.303)"),pn(s,"transform","translate(-14.185 -27.832)"),pn(i,"class",u="TogglePasswordVisibility "+(n[4]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.843"),pn(i,"height","10.5"),pn(i,"viewBox","0 0 18.843 10.5")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),d||(p=dn(i,"click",n[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",u)},d(e){e&&an(i),d=!1,p()}}}function ih(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("circle"),c=ln("g"),u=ln("path"),d=ln("path"),p=ln("g"),h=ln("path"),m=ln("path"),f=ln("rect"),pn(l,"class","a"),pn(l,"cx","0.05"),pn(l,"cy","0.05"),pn(l,"r","0.05"),pn(l,"transform","translate(121.017 31.148)"),pn(u,"class","a"),pn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),pn(u,"transform","translate(-142.164 -39.123)"),pn(d,"class","a"),pn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),pn(d,"transform","translate(-136.413 -42.068)"),pn(c,"transform","translate(117.499 27.37)"),pn(h,"class","a"),pn(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"),pn(h,"transform","translate(-110.856 -33.157)"),pn(m,"class","a"),pn(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"),pn(m,"transform","translate(-130.743 -29.617)"),pn(p,"transform","translate(110.856 24.899)"),pn(f,"class","a"),pn(f,"width","0.972"),pn(f,"height","15.861"),pn(f,"rx","0.486"),pn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),pn(s,"transform","translate(-110.856 -23.242)"),pn(i,"class",g="TogglePasswordVisibility "+(n[4]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.844"),pn(i,"height","12.887"),pn(i,"viewBox","0 0 18.844 12.887")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),rn(c,u),rn(c,d),rn(s,p),rn(p,h),rn(p,m),rn(s,f),y||(v=dn(i,"click",n[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",g)},d(e){e&&an(i),y=!1,v()}}}function rh(e){let n;function i(e){return"true"==e[0]?ah:oh}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function oh(e){let n,i,r=e[19]("invalidCurrentPassword")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidCurrentPassword")+"")&&hn(i,r)},d(e){e&&an(n)}}}function ah(e){let n,i,r=e[19]("simplePasswordError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function sh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("path"),c=ln("circle"),pn(l,"class","a"),pn(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"),pn(l,"transform","translate(0)"),pn(c,"class","a"),pn(c,"cx","2.779"),pn(c,"cy","2.779"),pn(c,"r","2.779"),pn(c,"transform","translate(20.827 30.303)"),pn(s,"transform","translate(-14.185 -27.832)"),pn(i,"class",u="TogglePasswordVisibility "+(n[5]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.843"),pn(i,"height","10.5"),pn(i,"viewBox","0 0 18.843 10.5")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),d||(p=dn(i,"click",n[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",u)},d(e){e&&an(i),d=!1,p()}}}function lh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("circle"),c=ln("g"),u=ln("path"),d=ln("path"),p=ln("g"),h=ln("path"),m=ln("path"),f=ln("rect"),pn(l,"class","a"),pn(l,"cx","0.05"),pn(l,"cy","0.05"),pn(l,"r","0.05"),pn(l,"transform","translate(121.017 31.148)"),pn(u,"class","a"),pn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),pn(u,"transform","translate(-142.164 -39.123)"),pn(d,"class","a"),pn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),pn(d,"transform","translate(-136.413 -42.068)"),pn(c,"transform","translate(117.499 27.37)"),pn(h,"class","a"),pn(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"),pn(h,"transform","translate(-110.856 -33.157)"),pn(m,"class","a"),pn(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"),pn(m,"transform","translate(-130.743 -29.617)"),pn(p,"transform","translate(110.856 24.899)"),pn(f,"class","a"),pn(f,"width","0.972"),pn(f,"height","15.861"),pn(f,"rx","0.486"),pn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),pn(s,"transform","translate(-110.856 -23.242)"),pn(i,"class",g="TogglePasswordVisibility "+(n[5]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.844"),pn(i,"height","12.887"),pn(i,"viewBox","0 0 18.844 12.887")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),rn(c,u),rn(c,d),rn(s,p),rn(p,h),rn(p,m),rn(s,f),y||(v=dn(i,"click",n[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",g)},d(e){e&&an(i),y=!1,v()}}}function ch(e){let n;function i(e){return"true"==e[0]?ph:dh}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function uh(e){let n,i,r=e[19]("invalidNewPassword")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInputNew")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPassword")+"")&&hn(i,r)},d(e){e&&an(n)}}}function dh(e){let n,i,r=e[19]("invalidNewPasswordSecondary")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPasswordSecondary")+"")&&hn(i,r)},d(e){e&&an(n)}}}function ph(e){let n,i,r=e[19]("simplePasswordError")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&hn(i,r)},d(e){e&&an(n)}}}function hh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("path"),c=ln("circle"),pn(l,"class","a"),pn(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"),pn(l,"transform","translate(0)"),pn(c,"class","a"),pn(c,"cx","2.779"),pn(c,"cy","2.779"),pn(c,"r","2.779"),pn(c,"transform","translate(20.827 30.303)"),pn(s,"transform","translate(-14.185 -27.832)"),pn(i,"class",u="TogglePasswordVisibility "+(n[6]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.843"),pn(i,"height","10.5"),pn(i,"viewBox","0 0 18.843 10.5")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),d||(p=dn(i,"click",n[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",u)},d(e){e&&an(i),d=!1,p()}}}function mh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=ln("svg"),r=ln("defs"),o=ln("style"),a=cn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=ln("g"),l=ln("circle"),c=ln("g"),u=ln("path"),d=ln("path"),p=ln("g"),h=ln("path"),m=ln("path"),f=ln("rect"),pn(l,"class","a"),pn(l,"cx","0.05"),pn(l,"cy","0.05"),pn(l,"r","0.05"),pn(l,"transform","translate(121.017 31.148)"),pn(u,"class","a"),pn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),pn(u,"transform","translate(-142.164 -39.123)"),pn(d,"class","a"),pn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),pn(d,"transform","translate(-136.413 -42.068)"),pn(c,"transform","translate(117.499 27.37)"),pn(h,"class","a"),pn(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"),pn(h,"transform","translate(-110.856 -33.157)"),pn(m,"class","a"),pn(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"),pn(m,"transform","translate(-130.743 -29.617)"),pn(p,"transform","translate(110.856 24.899)"),pn(f,"class","a"),pn(f,"width","0.972"),pn(f,"height","15.861"),pn(f,"rx","0.486"),pn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),pn(s,"transform","translate(-110.856 -23.242)"),pn(i,"class",g="TogglePasswordVisibility "+(n[6]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),pn(i,"xmlns","http://www.w3.org/2000/svg"),pn(i,"width","18.844"),pn(i,"height","12.887"),pn(i,"viewBox","0 0 18.844 12.887")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(i,s),rn(s,l),rn(s,c),rn(c,u),rn(c,d),rn(s,p),rn(p,h),rn(p,m),rn(s,f),y||(v=dn(i,"click",n[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&pn(i,"class",g)},d(e){e&&an(i),y=!1,v()}}}function fh(e){let n,i,r=e[19]("confirmPasswordInvalid")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","InvalidInput")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("confirmPasswordInvalid")+"")&&hn(i,r)},d(e){e&&an(n)}}}function gh(e){let n,i,r;return{c(){n=sn("div"),i=sn("p"),r=cn(e[17]),pn(i,"class","PasswordChangedError")},m(e,t){on(e,n,t),rn(n,i),rn(i,r)},p(e,t){131072&t[0]&&hn(r,e[17])},d(e){e&&an(n)}}}function yh(n){let i,r=function(e){let n;function i(e){return e[2]?eh:th}let r=i(e),o=r(e);return{c(){n=sn("form"),o.c(),pn(n,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){on(e,n,t),o.m(n,null)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n,null)))},d(e){e&&an(n),o.d()}}}(n);return{c(){i=sn("div"),r.c(),this.c=se},m(e,t){on(e,i,t),r.m(i,null),n[47](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&an(i),r.d(),n[47](null)}}}function vh(t,e,i){let n;ue(t,me,e=>i(19,n=e));let r,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==fe(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,b=!1,w=!1,_=!1,x=!1,C=!1,P="",E="",T="",A=!1,S="",M=!1;Object.keys(Qp).forEach(e=>{Kp(e,Qp[e])});const k=e=>{switch(e){case"userCurrentPassword":i(10,w=!w),i(7,m.type=w?"text":"password",m);break;case"userNewPassword":i(11,_=!_),i(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":i(12,x=!x),i(9,g.type=x?"text":"password",g)}},D=e=>!!h.password.test(e),L=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:E},window.location.href)},B=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},$=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":i(2,A=!0);break;case"ShowPasswordChangedError":i(18,M=e.data.showErrorPasswordChanged),i(17,S=e.data.errorPasswordChanged)}};return de(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&i(27,o=e.lang),"simplepasswordvalidation"in e&&i(0,a=e.simplepasswordvalidation),"clientstyling"in e&&i(28,s=e.clientstyling),"clientstylingurl"in e&&i(29,l=e.clientstylingurl),"translationurl"in e&&i(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,he.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&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;268435458&t.$$.dirty[0]&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kp(e,t[e])})}).catch(e=>{console.log(e)})},[a,r,A,p,y,v,b,m,f,g,w,_,x,C,P,E,T,S,M,n,d,N,k,(e,t,n)=>{"CurrentPassword"===n.id?i(4,y=!D(t)):"NewPassword"===n.id&&(i(5,v=!D(t)),P&&i(13,C=P===E),!T)||i(6,b=E!==T||!D(t)),i(3,p=!(y||v||b||C||!P||!E||!T))},L,B,$,o,s,l,c,()=>B(),function(){P=this.value,i(14,P)},function(e){pe[e?"unshift":"push"](()=>{m=e,i(7,m)})},()=>k("userCurrentPassword"),()=>k("userCurrentPassword"),function(){E=this.value,i(15,E)},function(e){pe[e?"unshift":"push"](()=>{f=e,i(8,f)})},()=>k("userNewPassword"),()=>k("userNewPassword"),function(){T=this.value,i(16,T)},function(e){pe[e?"unshift":"push"](()=>{g=e,i(9,g)})},()=>k("userConfirmPassword"),()=>k("userConfirmPassword"),e=>L(e),()=>B(),()=>$(),function(e){pe[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}function bh(e,t){a(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},vh,yh,n,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&on(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 wh={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 _h(e,t,n){e=e.slice();return e[35]=t[n].value,e[36]=t[n].text,e[38]=n,e}function xh(e){let n;return{c(){(n=sn("div")).textContent=""+e[6],pn(n,"class","successMessageMobile")},m(e,t){on(e,n,t)},p:se,d(e){e&&an(n)}}}function Ch(e){let n,i;return{c(){n=sn("div"),i=cn(e[6]),pn(n,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){on(e,n,t),rn(n,i)},p:se,d(e){e&&an(n)}}}function Ph(n){let i,r,o,a,s,l,c,e=n[4]("setFrequency")+"",u=n[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=Th(_h(n,u,e));return{c(){i=sn("form");for(let e=0;e<d.length;e+=1)d[e].c();r=un(),o=sn("div"),a=sn("button"),s=cn(e),pn(a,"class","PlayerRealityCheckButton"),pn(o,"class","BottomButtonsArea "+(n[5]?"BottomButtonsAreaMobile":"")),pn(i,"class","customRadio")},m(e,t){on(e,i,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(i,null);rn(i,r),rn(i,o),rn(o,a),rn(a,s),l||(c=dn(a,"click",n[22]),l=!0)},p(t,n){if(130&n[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,n):(d[e]=Th(s),d[e].c(),d[e].m(i,r))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&n[0]&&e!==(e=t[4]("setFrequency")+"")&&hn(s,e)},d(e){e&&an(i),mn(d,e),l=!1,c()}}}function Eh(e){let n,i,r=e[4]("realityCheckLoading")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16&t[0]&&r!==(r=e[4]("realityCheckLoading")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Th(n){let i,r,o,a,s,t,l,c,e=n[36]+"";return t=function(t){let n;return{p(...e){(n=e).forEach(e=>t.push(e))},r(){n.forEach(e=>t.splice(t.indexOf(e),1))}}}(n[21][0]),{c(){i=sn("div"),r=sn("input"),o=un(),a=sn("label"),s=cn(e),pn(r,"type","radio"),pn(r,"id",n[35]),r.__value=n[35],r.value=r.__value,pn(a,"for",n[35]),t.p(r)},m(e,t){on(e,i,t),rn(i,r),r.checked=r.__value===n[1],rn(i,o),rn(i,a),rn(a,s),l||(c=dn(r,"change",n[20]),l=!0)},p(e,t){2&t[0]&&(r.checked=r.__value===e[1])},d(e){e&&an(i),t.r(),l=!1,c()}}}function Ah(n){let i,r,o,a,s,l,c,u,d,p,h=n[4]("title")+"",m=n[4]("realityCheckText")+"",f=n[5]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[4]("title")+"",v=n[3]&&xh(n);return{c(){v&&v.c(),i=un(),r=sn("div"),o=ln("svg"),a=ln("defs"),s=ln("style"),l=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),c=ln("g"),u=ln("g"),d=ln("path"),p=un(),h=sn("h2"),m=cn(y),pn(d,"class","aaa"),pn(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(d,"transform","translate(15 15) rotate(180)"),pn(u,"transform","translate(20 158)"),pn(c,"transform","translate(-20 -158)"),pn(o,"xmlns","http://www.w3.org/2000/svg"),pn(o,"width","15"),pn(o,"height","15"),pn(o,"viewBox","0 0 15 15"),pn(h,"class","RealityCheckTitleMobile"),pn(h,"part","RealityCheckTitleMobile"),pn(r,"class","MenuReturnButton"),pn(r,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),on(e,i,t),on(e,r,t),rn(r,o),rn(o,a),rn(a,s),rn(s,l),rn(o,c),rn(c,u),rn(u,d),rn(r,p),rn(r,h),rn(h,m),f||(g=dn(r,"click",n[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=xh(e)).c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&hn(m,y)},d(e){v&&v.d(e),e&&an(i),e&&an(r),f=!1,g()}}}(n),g=n[3]&&Ch(n);function y(e){return e[2]?Eh:Ph}let v=y(n),b=v(n);return{c(){i=sn("div"),f&&f.c(),r=un(),g&&g.c(),o=un(),a=sn("h2"),s=cn(h),l=un(),c=sn("div"),u=sn("p"),d=cn(m),p=un(),b.c(),this.c=se,pn(a,"class","RealityCheckTitle "+(n[5]?"RealityCheckTitleNone":"")),pn(c,"class","RealityCheckDescription "+(n[5]?"RealityCheckDescriptionMobile":"")),pn(i,"class","PlayerRealityCheckWrapper "+(n[5]?"PlayerRealityCheckWrapperMobile":"")),pn(i,"part","PlayerRealityCheckWrapper "+(n[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){on(e,i,t),f&&f.m(i,null),rn(i,r),g&&g.m(i,null),rn(i,o),rn(i,a),rn(a,s),rn(i,l),rn(i,c),rn(c,u),rn(u,d),rn(c,p),b.m(c,null),n[23](i)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Ch(e)).c(),g.m(i,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&hn(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&hn(d,m),v===(v=y(e))&&b?b.p(e,t):(b.d(1),(b=v(e))&&(b.c(),b.m(c,null)))},i:se,o:se,d(e){e&&an(i),f&&f.d(),g&&g.d(),b.d(),n[23](null)}}}function Sh(n,e,i){let r;ue(n,me,e=>i(4,r=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"!==fe(t),f="",g=!0,y=(Object.keys(wh).forEach(e=>{bh(e,wh[e])}),!1),v=r("successMessage"),b=[],w=[];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&&(i(3,y=!0),setTimeout(()=>{i(3,y=!1)},2e3))};return de(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),n.$$set=e=>{"realitycheck"in e&&i(10,a=e.realitycheck),"endpoint"in e&&i(11,s=e.endpoint),"playerid"in e&&i(12,l=e.playerid),"session"in e&&i(13,c=e.session),"lang"in e&&i(14,u=e.lang),"clientstyling"in e&&i(15,d=e.clientstyling),"clientstylingurl"in e&&i(16,p=e.clientstylingurl),"translationurl"in e&&i(17,h=e.translationurl)},n.$$.update=()=>{if(16384&n.$$.dirty[0]&&u&&(t=u,he.set(t)),14336&n.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{i(18,b=e.AvailableRealityCheckValues),b.forEach(e=>{0==e?w.push({value:e.toString(),text:r("never")}):e<60?w.push({value:e.toString(),text:e+" "+r("minutes")}):60==e?w.push({value:e.toString(),text:r("oneHour")}):60<e&&w.push({value:e.toString(),text:e/60+" "+r("hours")})}),i(2,g=!1)},e=>{console.error(e)})),263168&n.$$.dirty[0]&&b&&a&&i(1,f=a),65537&n.$$.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&n.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&n.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{bh(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,r,m,v,w,_,x,a,s,l,c,u,d,p,h,b,()=>x(),function(){f=this.__value,i(1,f)},[[]],e=>_(e),function(e){pe[e?"unshift":"push"](()=>{o=e,i(0,o)})}]}function Mh(e,t){a(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends t{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-pink-500, #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-dunkel, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Sh,Ah,n,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&on(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 kh={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 Dh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Lh(e,t,n){e=e.slice();return e[45]=t[n],e}function Bh(t){let r,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Oh(Lh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);on(t,r,n)},p(t,n){if(8199&n[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var i=Lh(t,o,e);a[e]?a[e].p(i,n):(a[e]=Oh(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){mn(a,e),e&&an(r)}}}function $h(e){let n,i,r=e[14]("noBonusHistory")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noBonusHistory")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Ih(e){let n,i,r,o,a,s,l,c,u,d;return{c(){le(n=sn("player-bonus-card"),"bonuswalletid",i=e[45].walletId),le(n,"bonusdate",r=e[45].granted),le(n,"bonusstatus",o=e[45].status),le(n,"bonusname",a=e[45].name),le(n,"bonustype",s=e[45].type),le(n,"bonusamount",l=e[45].grantedAmount),le(n,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),le(n,"bonusremainingamount",u=e[45].currentAmount),le(n,"bonuscurrency",d=e[45].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){on(e,n,t)},p(e,t){8192&t[0]&&i!==(i=e[45].walletId)&&le(n,"bonuswalletid",i),8192&t[0]&&r!==(r=e[45].granted)&&le(n,"bonusdate",r),8192&t[0]&&o!==(o=e[45].status)&&le(n,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(n,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(n,"bonustype",s),8192&t[0]&&l!==(l=e[45].grantedAmount)&&le(n,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&le(n,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&le(n,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&le(n,"bonuscurrency",d),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&an(n)}}}function Nh(e){let n,i,r,o,a,s,l;return{c(){le(n=sn("player-bonus-card"),"bonuswalletid",i=e[45].walletId),le(n,"bonusdate",r=e[45].granted),le(n,"bonusstatus",o=e[45].status),le(n,"bonusname",a=e[45].name),le(n,"bonustype",s=e[45].type),le(n,"bonuscurrency",l=e[45].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){on(e,n,t)},p(e,t){8192&t[0]&&i!==(i=e[45].walletId)&&le(n,"bonuswalletid",i),8192&t[0]&&r!==(r=e[45].granted)&&le(n,"bonusdate",r),8192&t[0]&&o!==(o=e[45].status)&&le(n,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(n,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(n,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&le(n,"bonuscurrency",l),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&an(n)}}}function Oh(e){let n;function i(e){return"freeRound"===e[45].type?Nh:Ih}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&an(n)}}}function Fh(n){let i,r,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(n[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Rh(Dh(n,_,e));return{c(){i=sn("div"),r=sn("span"),o=cn("|<"),s=un(),l=sn("span"),c=cn("<"),u=un();for(let e=0;e<x.length;e+=1)x[e].c();d=un(),p=sn("span"),h=cn(">"),f=un(),g=sn("span"),y=cn(">|"),pn(r,"class",a="BonusesFirst "+(0===n[12]?"Inactive":"")),pn(l,"class",e="BonusesPrev "+(0===n[12]?"Inactive":"")),pn(p,"class",m="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),pn(g,"class",v="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),pn(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(i,s),rn(i,l),rn(l,c),rn(i,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(i,null);rn(i,d),rn(i,p),rn(p,h),rn(i,f),rn(i,g),rn(g,y),b||(w=[dn(r,"click",n[26]),dn(l,"click",n[27]),dn(p,"click",n[29]),dn(g,"click",n[30])],b=!0)},p(t,n){if(4096&n[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&pn(r,"class",a),4096&n[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&pn(l,"class",e),137216&n[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=Dh(t,_,e);x[e]?x[e].p(a,n):(x[e]=Rh(a),x[e].c(),x[e].m(i,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&n[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&pn(p,"class",m),6144&n[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&pn(g,"class",v)},d(e){e&&an(i),mn(x,e),b=!1,nn(w)}}}function Rh(n){let i,r,o,a,s,e=n[44]+1+"";function l(){return n[28](n[44])}return{c(){i=sn("span"),r=cn(e),pn(i,"class",o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){on(e,i,t),rn(i,r),a||(s=dn(i,"click",l),a=!0)},p(e,t){n=e,4096&t[0]&&o!==(o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&pn(i,"class",o)},d(e){e&&an(i),a=!1,s()}}}function Hh(n){let i,r=function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,T,A,S,M=n[14]("title")+"",k=n[14]("dateFrom")+"",D=n[14]("dateTo")+"",L=n[14]("dateFilter")+"",B=n[15]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","BonusesTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function $(e){return 0===e[13].length?$h:Bh}let I=$(n),N=I(n),O=0!==n[13].length&&Fh(n);return{c(){i=sn("div"),B&&B.c(),r=un(),o=sn("h2"),a=cn(M),s=un(),l=sn("div"),c=sn("div"),u=sn("div"),d=sn("label"),p=cn(k),h=un(),m=sn("vaadin-date-picker"),f=un(),g=sn("div"),y=sn("label"),v=cn(D),b=un(),w=sn("vaadin-date-picker"),_=un(),x=sn("button"),C=cn(L),P=un(),E=sn("div"),N.c(),T=un(),O&&O.c(),pn(o,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),pn(o,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),pn(d,"for","BonusCalendarStartDate"),le(m,"max",n[6]),le(m,"value",n[7]),le(m,"placeholder","From"),le(m,"class","VaadinDatePicker"),pn(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),pn(y,"for","BonusesCalendarEndDate"),le(w,"max",n[6]),le(w,"value",n[6]),le(w,"placeholder","To"),le(w,"class","VaadinDatePicker"),pn(g,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),pn(c,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),pn(x,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),pn(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),pn(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),pn(i,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){on(e,i,t),B&&B.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),rn(i,l),rn(l,c),rn(c,u),rn(u,d),rn(d,p),rn(u,h),rn(u,m),n[23](m),rn(c,f),rn(c,g),rn(g,y),rn(y,v),rn(g,b),rn(g,w),n[24](w),rn(l,_),rn(l,x),rn(x,C),rn(i,P),rn(i,E),N.m(E,null),rn(i,T),O&&O.m(i,null),A||(S=dn(x,"click",n[25]),A=!0)},p(e,t){e[15]&&B.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&hn(a,M),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&hn(p,k),64&t[0]&&le(m,"max",e[6]),128&t[0]&&le(m,"value",e[7]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&hn(v,D),64&t[0]&&le(w,"max",e[6]),64&t[0]&&le(w,"value",e[6]),16384&t[0]&&L!==(L=e[14]("dateFilter")+"")&&hn(C,L),I===(I=$(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(E,null))),0!==e[13].length?O?O.p(e,t):((O=Fh(e)).c(),O.m(i,null)):O&&(O.d(1),O=null)},d(e){e&&an(i),B&&B.d(),n[23](null),n[24](null),N.d(),O&&O.d(),A=!1,S()}}}(n);return{c(){i=sn("div"),r.c(),this.c=se},m(e,t){on(e,i,t),r.m(i,null),n[31](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&an(i),r.d(),n[31](null)}}}function zh(t,e,i){let n;ue(t,me,e=>i(14,n=e));let r,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"!==fe(g),v=(s=W(new Date).format("YYYY-MM-DD"),l=W(new Date).subtract(3,"months").format("YYYY-MM-DD")),b=s,w=0,_=0,x=0,C=0,P=0,E=[];Object.keys(kh).forEach(e=>{Mh(e,kh[e])});const T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},A=t=>{var e=new URL(`${c}/player/${d}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(b).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{i(11,C=Math.ceil(e.total/6)),0<=t-6&&i(8,w=t-6),t+6<e.total&&i(9,_=t+6),i(10,x=6*(C-1)),i(12,P=t/6),i(13,E=e.items)},e=>{console.error(e)})},S=e=>{v=e.target.value},M=e=>{b=e.target.value};de(()=>()=>{o.removeEventListener("change",S),a.removeEventListener("change",M)});return t.$$set=e=>{"endpoint"in e&&i(18,c=e.endpoint),"session"in e&&i(19,u=e.session),"playerid"in e&&i(20,d=e.playerid),"lang"in e&&i(0,p=e.lang),"clientstyling"in e&&i(1,h=e.clientstyling),"clientstylingurl"in e&&i(2,m=e.clientstylingurl),"translationurl"in e&&i(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,he.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",S,!1),a.addEventListener("change",M,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&A(0),12&t.$$.dirty[0]&&m&&r){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&r&&((e=document.createElement("style")).innerHTML=h,r.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,r,o,a,s,l,w,_,x,C,P,E,n,y,T,A,c,u,d,f,()=>T(),function(e){pe[e?"unshift":"push"](()=>{o=e,i(4,o)})},function(e){pe[e?"unshift":"push"](()=>{a=e,i(5,a)})},()=>A(0),()=>A(0),()=>A(w),e=>A(6*e),()=>A(_),()=>A(x),function(e){pe[e?"unshift":"push"](()=>{r=e,i(3,r)})}]}function Wh(e,t){a(e,t)}customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-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))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},zh,Hh,n,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&on(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 Yh={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 jh(e){let n,i,r;return{c(){n=sn("div"),_((i=sn("iframe")).src,r=e[2])||pn(i,"src",r),pn(i,"title","Deposit Iframe"),pn(n,"class","DepositIframeWrapper")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&pn(i,"src",r)},d(e){e&&an(n)}}}function Uh(e){let n,i,r=e[3]("loading")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Gh(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","DepositTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function u(e){return e[1]?Uh:jh}let d=u(n),p=d(n);return{c(){i=sn("div"),c&&c.c(),r=un(),o=sn("h2"),a=cn(l),s=un(),p.c(),this.c=se,pn(o,"class","DepositTitle "+(n[4]?"DepositTitleNone":"")),pn(i,"class","DepositWrapper "+(n[4]?"DepositWrapperMobile":""))},m(e,t){on(e,i,t),c&&c.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),p.m(i,null),n[16](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&hn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&an(i),c&&c.d(),p.d(),n[16](null)}}}function Vh(i,e,r){let t;ue(i,me,e=>r(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,n=window.navigator.userAgent,f="PC"!==fe(n),g=!0,y=0,v="";Object.keys(Yh).forEach(e=>{Wh(e,Yh[e])});const b=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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:"GoToDeposit"},window.location.href)}};return de(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},i.$$.update=()=>{if(1024&i.$$.dirty&&c&&(n=c,he.set(n)),8193&i.$$.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&i.$$.dirty&&d&&o&&((n=document.createElement("style")).innerHTML=d,o.appendChild(n)),16384&i.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wh(e,t[e])})}).catch(e=>{console.log(e)}),1984&i.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);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=>{r(1,g=!1),r(2,v=e.CashierUrl)},e=>{console.error(e)})}var n},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){pe[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function qh(e,t){a(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset}.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))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Vh,Gh,n,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&on(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 Xh={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 Zh(e){let n,i,r;return{c(){n=sn("div"),_((i=sn("iframe")).src,r=e[2])||pn(i,"src",r),pn(i,"title","Withdrawal Iframe"),pn(n,"class","WithdrawalIframeWrapper")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&pn(i,"src",r)},d(e){e&&an(n)}}}function Jh(e){let n,i,r=e[3]("loading")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&hn(i,r)},d(e){e&&an(n)}}}function Kh(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","WithdrawalTitleMobile"),pn(i,"class","MenuReturnButton"),pn(i,"part","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function u(e){return e[1]?Jh:Zh}let d=u(n),p=d(n);return{c(){i=sn("div"),c&&c.c(),r=un(),o=sn("h2"),a=cn(l),s=un(),p.c(),this.c=se,pn(o,"class","WithdrawalTitle "+(n[4]?"WithdrawalTitleNone":"")),pn(i,"class","WithdrawalWrapper "+(n[4]?"WithdrawalWrapperMobile":""))},m(e,t){on(e,i,t),c&&c.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),p.m(i,null),n[16](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&hn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&an(i),c&&c.d(),p.d(),n[16](null)}}}function Qh(i,e,r){let t;ue(i,me,e=>r(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,n=window.navigator.userAgent,f="PC"!==fe(n),g=!0,y=0,v="";Object.keys(Xh).forEach(e=>{qh(e,Xh[e])});const b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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:"ChangeAccountPage",page:{path:"/deposit",id:469}},window.location.href)}};return de(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},i.$$.update=()=>{if(1024&i.$$.dirty&&c&&(n=c,he.set(n)),8193&i.$$.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&i.$$.dirty&&d&&o&&((n=document.createElement("style")).innerHTML=d,o.appendChild(n)),16384&i.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qh(e,t[e])})}).catch(e=>{console.log(e)}),1984&i.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/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=>{r(1,g=!1),r(2,v=e.CashierUrl)},e=>{console.error(e)})}var n},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){pe[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function em(e,t){a(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Qh,Kh,n,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&on(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 tm={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 nm(e){let n,i,r;return{c(){n=sn("div"),_((i=sn("iframe")).src,r=e[2])||pn(i,"src",r),pn(i,"title","Pending Withdrawals Iframe"),pn(n,"class","PendingWithdrawalsIframeWrapper")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&pn(i,"src",r)},d(e){e&&an(n)}}}function im(e){let n,i,r=e[3]("loading")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&hn(i,r)},d(e){e&&an(n)}}}function rm(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","PendingWithdrawalsTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function u(e){return e[1]?im:nm}let d=u(n),p=d(n);return{c(){i=sn("div"),c&&c.c(),r=un(),o=sn("h2"),a=cn(l),s=un(),p.c(),this.c=se,pn(o,"class","PendingWithdrawalsTitle "+(n[4]?"PendingWithdrawalsTitleNone":"")),pn(i,"class","PendingWithdrawalsWrapper "+(n[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){on(e,i,t),c&&c.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),p.m(i,null),n[14](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&hn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&an(i),c&&c.d(),p.d(),n[14](null)}}}function om(n,e,i){let t;ue(n,me,e=>i(3,t=e));let r,{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"!==fe(p),m=!0,f="";Object.keys(tm).forEach(e=>{em(e,tm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return n.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"playerid"in e&&i(8,s=e.playerid),"lang"in e&&i(9,l=e.lang),"clientstyling"in e&&i(10,c=e.clientstyling),"clientstylingurl"in e&&i(11,u=e.clientstylingurl),"translationurl"in e&&i(12,d=e.translationurl)},n.$$.update=()=>{if(512&n.$$.dirty&&l&&(t=l,he.set(t)),960&n.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/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=>{i(1,m=!1),i(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&n.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&n.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&n.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{em(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){pe[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function am(e,t){a(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},om,rm,n,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&on(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 sm={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 lm(e){let n,i,r;return{c(){n=sn("div"),_((i=sn("iframe")).src,r=e[2])||pn(i,"src",r),pn(i,"title","Transaction History Iframe"),pn(n,"class","TransactionHistoryIframeWrapper")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&pn(i,"src",r)},d(e){e&&an(n)}}}function cm(e){let n,i,r=e[3]("loading")+"";return{c(){n=sn("p"),i=cn(r)},m(e,t){on(e,n,t),rn(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&hn(i,r)},d(e){e&&an(n)}}}function um(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","TransactionHistoryTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n);function u(e){return e[1]?cm:lm}let d=u(n),p=d(n);return{c(){i=sn("div"),c&&c.c(),r=un(),o=sn("h2"),a=cn(l),s=un(),p.c(),this.c=se,pn(o,"class","TransactionHistoryTitle "+(n[4]?"TransactionHistoryTitleNone":"")),pn(i,"class","TransactionHistoryWrapper "+(n[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){on(e,i,t),c&&c.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),p.m(i,null),n[14](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&hn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&an(i),c&&c.d(),p.d(),n[14](null)}}}function dm(n,e,i){let t;ue(n,me,e=>i(3,t=e));let r,{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"!==fe(p),m=!0,f="";Object.keys(sm).forEach(e=>{am(e,sm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return n.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"playerid"in e&&i(8,s=e.playerid),"lang"in e&&i(9,l=e.lang),"clientstyling"in e&&i(10,c=e.clientstyling),"clientstylingurl"in e&&i(11,u=e.clientstylingurl),"translationurl"in e&&i(12,d=e.translationurl)},n.$$.update=()=>{if(512&n.$$.dirty&&l&&(t=l,he.set(t)),960&n.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/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=>{i(1,m=!1),i(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&n.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&n.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&n.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{am(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){pe[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function pm(e,t){a(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},dm,um,n,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&on(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 hm={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 mm(e,t,n){e=e.slice();return e[55]=t[n],e}function fm(e,t,n){e=e.slice();return e[58]=t[n],e}function gm(n){let i,r,o,a,s,l,c,e=n[14]("numberOfResults")+"",u=n[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=ym(fm(n,u,e));return{c(){i=sn("div"),r=sn("span"),o=cn(e),a=un(),s=sn("select");for(let e=0;e<d.length;e+=1)d[e].c();pn(s,"class","PlayerGamingHistoryItemCount"),void 0===n[7]&&yn(()=>n[33].call(s)),pn(i,"class","PlayerGamingItemCountContainer")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(i,a),rn(i,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);gn(s,n[7],!0),l||(c=[dn(s,"change",n[33]),dn(s,"change",n[34])],l=!0)},p(t,n){if(16384&n[0]&&e!==(e=t[14]("numberOfResults")+"")&&hn(o,e),32768&n[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=fm(t,u,e);d[e]?d[e].p(o,n):(d[e]=ym(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&n[0]&&gn(s,t[7])},d(e){e&&an(i),mn(d,e),l=!1,nn(c)}}}function ym(e){let n,i,t=e[58]+"";return{c(){n=sn("option"),i=cn(t),n.__value=e[58],n.value=n.__value},m(e,t){on(e,n,t),rn(n,i)},p:se,d(e){e&&an(n)}}}function vm(e){let n,i,r=e[14]("noRecord")+"";return{c(){n=sn("p"),i=cn(r),pn(n,"class","PlayerGamingHistoryEmpty")},m(e,t){on(e,n,t),rn(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noRecord")+"")&&hn(i,r)},d(e){e&&an(n)}}}function bm(e){let n,i,r;return{c(){n=sn("p"),i=cn("Invalid data: "),r=cn(e[8]),pn(n,"class","PlayerGamingHistoryEmpty")},m(e,t){on(e,n,t),rn(n,i),rn(n,r)},p(e,t){256&t[0]&&hn(r,e[8])},d(e){e&&an(n)}}}function wm(n){let i,r,o,a,s,l,O,c,u,F,d,p,R,H,z,W,Y,j,U,h,G,m,f,g,y,e,V,v,q,b,w,X,_,x,Z,J,C,P,E,T,A,K,Q,S=n[14]("transactionId")+"",M=n[14]("date")+"",k=n[14]("gameName")+"",D=n[14]("stake")+"",L=n[14]("return")+"",B=n[14]("previous")+"",$=n[14]("next")+"",I=n[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=xm(mm(n,I,e));return{c(){i=sn("div"),r=sn("table"),o=sn("thead"),a=sn("tr"),s=sn("th"),l=cn(S),O=un(),c=sn("th"),u=cn(M),F=un(),d=sn("th"),p=cn(k),R=un(),H=sn("th"),z=cn(D),W=un(),Y=sn("th"),j=cn(L),U=un(),h=sn("tbody");for(let e=0;e<N.length;e+=1)N[e].c();G=un(),m=sn("div"),f=sn("button"),g=ln("svg"),y=ln("path"),V=un(),v=sn("span"),q=cn(B),X=un(),_=sn("button"),x=sn("span"),Z=cn($),J=un(),C=ln("svg"),P=ln("path"),pn(i,"class","PlayerGamingHistoryContainer"),pn(y,"fill",e=n[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),pn(y,"class","a"),pn(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"),pn(y,"transform","translate(19.246 -6.188) rotate(90)"),pn(g,"xmlns","http://www.w3.org/2000/svg"),pn(g,"width","8"),pn(g,"height","13.992"),pn(g,"viewBox","0 0 8 13.992"),pn(v,"class","PlayerPaginationControlsText"),pn(f,"class",b="PlayerPaginationControls "+(n[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=w=!n[5],pn(x,"class","PlayerPaginationControlsText"),pn(P,"fill",E=n[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),pn(P,"class","a"),pn(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"),pn(P,"transform","translate(-11.246 20.179) rotate(-90)"),pn(C,"xmlns","http://www.w3.org/2000/svg"),pn(C,"width","8"),pn(C,"height","13.992"),pn(C,"viewBox","0 0 8 13.992"),pn(_,"class",T="PlayerPaginationControls "+(n[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=A=!n[4],pn(m,"class","PlayerPaginationControlsArea")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(s,l),rn(a,O),rn(a,c),rn(c,u),rn(a,F),rn(a,d),rn(d,p),rn(a,R),rn(a,H),rn(H,z),rn(a,W),rn(a,Y),rn(Y,j),rn(r,U),rn(r,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);on(e,G,t),on(e,m,t),rn(m,f),rn(f,g),rn(g,y),rn(f,V),rn(f,v),rn(v,q),rn(m,X),rn(m,_),rn(_,x),rn(x,Z),rn(_,J),rn(_,C),rn(C,P),K||(Q=[dn(f,"click",n[35]),dn(_,"click",n[36])],K=!0)},p(t,n){if(16384&n[0]&&S!==(S=t[14]("transactionId")+"")&&hn(l,S),16384&n[0]&&M!==(M=t[14]("date")+"")&&hn(u,M),16384&n[0]&&k!==(k=t[14]("gameName")+"")&&hn(p,k),16384&n[0]&&D!==(D=t[14]("stake")+"")&&hn(z,D),16384&n[0]&&L!==(L=t[14]("return")+"")&&hn(j,L),1073152&n[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var i=mm(t,I,e);N[e]?N[e].p(i,n):(N[e]=xm(i),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&n[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&pn(y,"fill",e),16384&n[0]&&B!==(B=t[14]("previous")+"")&&hn(q,B),32&n[0]&&b!==(b="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&pn(f,"class",b),32&n[0]&&w!==(w=!t[5])&&(f.disabled=w),16384&n[0]&&$!==($=t[14]("next")+"")&&hn(Z,$),16&n[0]&&E!==(E=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&pn(P,"fill",E),16&n[0]&&T!==(T="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&pn(_,"class",T),16&n[0]&&A!==(A=!t[4])&&(_.disabled=A)},d(e){e&&an(i),mn(N,e),e&&an(G),e&&an(m),K=!1,nn(Q)}}}function _m(e){let n;return{c(){pn(n=sn("div"),"class","DataLoader")},m(e,t){on(e,n,t)},p:se,d(e){e&&an(n)}}}function xm(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,T,A,S,M=e[55].roundId+"",k=e[20](e[55])+"",D=e[55].gameModel.name+"",L=e[55].stakeAmount+"",B=e[55].returnAmount+"";return{c(){n=sn("tr"),i=sn("td"),r=sn("span"),o=cn(M),l=un(),c=sn("td"),u=sn("span"),d=cn(k),h=un(),m=sn("td"),f=sn("span"),g=cn(D),v=un(),b=sn("td"),w=sn("span"),_=cn(L),C=un(),P=sn("td"),E=sn("span"),T=cn(B),S=un(),pn(i,"data-label",a=e[14]("transactionId")),pn(i,"title",s=e[55].roundId),pn(c,"data-label",p=e[14]("date")),pn(m,"data-label",y=e[14]("gameName")),pn(b,"data-label",x=e[14]("stake")),pn(P,"data-label",A=e[14]("return"))},m(e,t){on(e,n,t),rn(n,i),rn(i,r),rn(r,o),rn(n,l),rn(n,c),rn(c,u),rn(u,d),rn(n,h),rn(n,m),rn(m,f),rn(f,g),rn(n,v),rn(n,b),rn(b,w),rn(w,_),rn(n,C),rn(n,P),rn(P,E),rn(E,T),rn(n,S)},p(e,t){8192&t[0]&&M!==(M=e[55].roundId+"")&&hn(o,M),16384&t[0]&&a!==(a=e[14]("transactionId"))&&pn(i,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&pn(i,"title",s),8192&t[0]&&k!==(k=e[20](e[55])+"")&&hn(d,k),16384&t[0]&&p!==(p=e[14]("date"))&&pn(c,"data-label",p),8192&t[0]&&D!==(D=e[55].gameModel.name+"")&&hn(g,D),16384&t[0]&&y!==(y=e[14]("gameName"))&&pn(m,"data-label",y),8192&t[0]&&L!==(L=e[55].stakeAmount+"")&&hn(_,L),16384&t[0]&&x!==(x=e[14]("stake"))&&pn(b,"data-label",x),8192&t[0]&&B!==(B=e[55].returnAmount+"")&&hn(T,B),16384&t[0]&&A!==(A=e[14]("return"))&&pn(P,"data-label",A)},d(e){e&&an(n)}}}function Cm(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,T,A,S,M,k=n[14]("title")+"",D=n[14]("dateFrom")+"",L=n[14]("dateTo")+"",B=n[14]("dateFilter")+"",$=n[16]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","PlayerGamingHistoryTitleMobile"),pn(p,"part","PlayerGamingHistoryTitleMobile"),pn(i,"class","MenuReturnButton"),pn(i,"part","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),I=!n[12].matches&&gm(n);function F(e){return e[9]?_m:0<e[13].length?wm:0<e[8].length?bm:vm}let N=F(n),O=N(n);return{c(){i=sn("div"),r=sn("div"),$&&$.c(),o=un(),a=sn("h2"),s=cn(k),l=un(),c=sn("div"),u=sn("div"),d=sn("div"),p=sn("div"),h=sn("span"),m=cn(D),f=un(),g=sn("vaadin-date-picker"),y=un(),v=sn("div"),b=sn("span"),w=cn(L),_=un(),x=sn("vaadin-date-picker"),C=un(),P=sn("button"),E=cn(B),T=un(),I&&I.c(),A=un(),O.c(),this.c=se,pn(a,"class","PlayerGamingHistoryTitle "+(n[16]?"PlayerGamingHistoryTitleNone":"")),le(g,"max",n[10]),le(g,"placeholder","From"),le(g,"value",n[11]),le(g,"class","VaadinDatePicker"),pn(p,"class","PlayerGamingDateWrapper"),le(x,"max",n[10]),le(x,"placeholder","To"),le(x,"value",n[10]),le(x,"class","VaadinDatePicker"),pn(v,"class","PlayerGamingDateWrapper"),pn(d,"class","PlayerGamingDateContainer"),pn(P,"class","PlayerGamingHistoryFilterButton"),pn(u,"class","PlayerGamingHistoryFilterWrapper"),pn(c,"class","PlayerGamingHistoryTopSection"),pn(r,"class","PlayerGamingHistoryWrapper "+(n[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(n[17].matches&&n[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){on(e,i,t),rn(i,r),$&&$.m(r,null),rn(r,o),rn(r,a),rn(a,s),rn(r,l),rn(r,c),rn(c,u),rn(u,d),rn(d,p),rn(p,h),rn(h,m),rn(p,f),rn(p,g),n[30](g),rn(d,y),rn(d,v),rn(v,b),rn(b,w),rn(v,_),rn(v,x),n[31](x),rn(u,C),rn(u,P),rn(P,E),rn(u,T),I&&I.m(u,null),rn(r,A),O.m(r,null),n[37](r),n[38](i),S||(M=dn(P,"click",n[32]),S=!0)},p(e,t){e[16]&&$.p(e,t),16384&t[0]&&k!==(k=e[14]("title")+"")&&hn(s,k),16384&t[0]&&D!==(D=e[14]("dateFrom")+"")&&hn(m,D),1024&t[0]&&le(g,"max",e[10]),2048&t[0]&&le(g,"value",e[11]),16384&t[0]&&L!==(L=e[14]("dateTo")+"")&&hn(w,L),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&B!==(B=e[14]("dateFilter")+"")&&hn(E,B),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=gm(e)).c(),I.m(u,null)),N===(N=F(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(r,null)))},i:se,o:se,d(e){e&&an(i),$&&$.d(),n[30](null),n[31](null),I&&I.d(),O.d(),n[37](null),n[38](null),S=!1,M()}}}function Pm(t,e,r){let n;ue(t,me,e=>r(14,n=e));let i,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="",b="",w="",_=W().format("YYYY-MM-DD"),x=W().format("YYYY-MM-DD"),C=["5","10","25","50"],P="5",E="",T=!1,A=window.navigator.userAgent,S="PC"!==fe(A),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(hm).forEach(e=>{pm(e,hm[e])}),window.matchMedia("(min-width: 768px)")),M=window.matchMedia("(max-width: 1280px)"),k=[];const D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:S},window.location.href)},O=()=>{r(12,M=window.matchMedia("(max-width: 1280px)"))},F=(e,t,n)=>{var e=new URL(e),i=(r(13,k=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),n&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),r(9,T=!0),fetch(e.href,i).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(13,k=(e=>{let i=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",n=i.get(e.roundId);n?n[t]=e.totalAmount:((n=Object.assign({},e))[t]=e.totalAmount,i.set(e.roundId,n))}),Array.from(i.values())})(k)),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,T=!1)},e=>{r(9,T=!1),console.error(e)})},L=(e,t,n)=>{var i;"gm16"===y?F(e,t,n):(t=t,n=n,e=new URL(e),r(13,k=[]),r(8,E=""),i={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),n&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),r(9,T=!0),fetch(e.href,i).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,T=!1)},e=>{r(9,T=!1),console.error(e)}))},B=e=>{e.data&&e.data.type},$=e=>{_=e.target.value},I=e=>{x=e.target.value};return de(()=>(window.addEventListener("message",B,!1),window.addEventListener("resize",O,!1),()=>{o.removeEventListener("change",$),a.removeEventListener("change",I),window.removeEventListener("message",B),window.removeEventListener("resize",B)})),t.$$set=e=>{"endpoint"in e&&r(21,u=e.endpoint),"playerid"in e&&r(22,d=e.playerid),"session"in e&&r(23,p=e.session),"lang"in e&&r(24,h=e.lang),"clientstyling"in e&&r(25,m=e.clientstyling),"clientstylingurl"in e&&r(26,f=e.clientstylingurl),"translationurl"in e&&r(27,g=e.translationurl),"gmversion"in e&&r(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",$,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,he.set(e),r(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),L(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,b,w,void 0,P,E,T,l,c,M,k,n,C,S,N,D,L,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>D(),function(e){pe[e?"unshift":"push"](()=>{o=e,r(0,o)})},function(e){pe[e?"unshift":"push"](()=>{a=e,r(1,a)})},()=>L(v,!1,!0),function(){P=ye(this),r(7,P),r(15,C)},()=>L(v,!1,!0),()=>L(w,!0,!1),()=>L(b,!0,!1),function(e){pe[e?"unshift":"push"](()=>{i=e,r(6,i)})},function(e){pe[e?"unshift":"push"](()=>{s=e,r(2,s)})}]}function Em(e,t){a(e,t)}customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.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))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Pm,Cm,n,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&on(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 Tm={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 Am(n){let i,r,o,a,s,l,c,t,u,d,p;return{c(){i=sn("div"),r=sn("div"),o=sn("div"),(a=sn("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=un(),l=sn("slot"),pn(a,"class","ModalCloseBtn"),pn(a,"role","button"),pn(o,"class","LoginModalContainer"),pn(o,"part","LoginModalContainer"),pn(r,"class",c="LoginModalWindow "+(n[4]?"LoginModalMobileWindow":""))},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(o,s),rn(o,l),n[8](r),n[9](i),u=!0,d||(p=dn(a,"click",n[5]),d=!0)},p(e,t){n=e,(!u||16&t&&c!==(c="LoginModalWindow "+(n[4]?"LoginModalMobileWindow":"")))&&pn(r,"class",c)},i(e){u||(yn(()=>{u&&(t=t||ne(r,Ju,{transitionDuration:n[1]},!0)).run(1)}),u=!0)},o(e){(t=t||ne(r,Ju,{transitionDuration:n[1]},!1)).run(0),u=!1},d(e){e&&an(i),n[8](null),e&&t&&t.end(),n[9](null),d=!1,p()}}}function Sm(e){let n,i,r="true"==e[0]&&Am(e);return{c(){r&&r.c(),n=I(),this.c=se},m(e,t){r&&r.m(e,t),on(e,n,t),i=!0},p(e,[t]){"true"==e[0]?r?(r.p(e,t),1&t&&Q(r,1)):((r=Am(e)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(J(),ee(r,1,1,()=>{r=null}),K())},i(e){i||(Q(r),i=!0)},o(e){ee(r),i=!1},d(e){r&&r.d(e),e&&an(n)}}}function Mm(t,e,n){let i,r,{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),n(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),n(0,o="false"))};return de(()=>{return window.addEventListener("message",d,!1),n(4,c=!!((e=u).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))),()=>{window.removeEventListener("message",d)};var e}),t.$$set=e=>{"show"in e&&n(0,o=e.show),"duration"in e&&n(1,a=e.duration),"clientstyling"in e&&n(6,s=e.clientstyling),"clientstylingurl"in e&&n(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),132&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),setTimeout(()=>{},500)})}var e},[o,a,r,void 0,c,()=>{n(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){pe[e?"unshift":"push"](()=>{i=e,n(3,i)})},function(e){pe[e?"unshift":"push"](()=>{r=e,n(2,r)})}]}function km(e){let n,i;return{c(){n=sn("general-player-login-register-modal"),le(i=sn("om-betting-history-details"),"item-layout","V2"),le(i,"cashoutserver","V2"),le(i,"matchscorelayout","V2"),le(i,"matchscorescope","BHDetailed"),le(i,"tournament-route",":sportId/:tournamentId"),le(i,"match-route",":sportId/:tournamentId/:matchId"),le(i,"betid",e[1]),le(n,"show",e[5]),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3])},m(e,t){on(e,n,t),rn(n,i)},p(e,t){2&t&&le(i,"betid",e[1]),32&t&&le(n,"show",e[5]),4&t&&le(n,"clientstyling",e[2]),8&t&&le(n,"clientstylingurl",e[3])},d(e){e&&an(n)}}}function Dm(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_=n[6]("bettingHistory.title")+"",x=n[6]("bettingHistory.openBets")+"",C=n[6]("bettingHistory.settledBets")+"",P=n[7]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[6]("title")+"";return{c(){i=sn("div"),r=ln("svg"),o=ln("defs"),a=ln("style"),s=cn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=ln("g"),c=ln("g"),u=ln("path"),d=un(),p=sn("h2"),h=cn(g),pn(u,"class","aaa"),pn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),pn(u,"transform","translate(15 15) rotate(180)"),pn(c,"transform","translate(20 158)"),pn(l,"transform","translate(-20 -158)"),pn(r,"xmlns","http://www.w3.org/2000/svg"),pn(r,"width","15"),pn(r,"height","15"),pn(r,"viewBox","0 0 15 15"),pn(p,"class","BettingHistoryTitleMobile"),pn(i,"class","MenuReturnButton")},m(e,t){on(e,i,t),rn(i,r),rn(r,o),rn(o,a),rn(a,s),rn(r,l),rn(l,c),rn(c,u),rn(i,d),rn(i,p),rn(p,h),m||(f=dn(i,"click",n[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&hn(h,g)},d(e){e&&an(i),m=!1,f()}}}(n),E="true"===n[5]&&n[1]&&km(n);return{c(){i=sn("div"),P&&P.c(),r=un(),o=sn("h2"),a=cn(_),s=un(),l=sn("div"),c=sn("button"),u=cn(x),d=un(),p=sn("button"),h=cn(C),m=un(),f=sn("om-betting-history-list"),g=un(),E&&E.c(),y=un(),v=sn("div"),this.c=se,pn(o,"class","BettingHistoryTitle "+(n[7]?"BettingHistoryTitleNone":"")),pn(o,"part","`BettingHistoryTitleMobile"),pn(c,"class","BettingHistoryButton "+(n[7]?"BettingHistoryButtonMobile":"")),k(c,"BettingHistoryButtonSelected","openBets"===n[0]),pn(p,"class","BettingHistoryButton"),k(p,"BettingHistoryButtonSelected","settledBets"===n[0]),k(p,"mobile",n[7]),pn(l,"class","BettingHistoryTabs"),le(f,"bet-status",n[0]),le(f,"item-layout","V2"),le(f,"match-score-layout","v2"),le(f,"match-score-scope","BHDetailed"),le(f,"date-format","dd.mm.yyyy"),le(f,"time-format","HH:MM"),le(f,"tournament-route",":sportId/:tournamentId"),le(f,"match-route",":betId"),pn(v,"class","OM-MatchScore OM-MatchScore__List"),pn(i,"class","BettingHistoryWrapper"),k(i,"BettingHistoryWrapperMobile",n[7])},m(e,t){on(e,i,t),P&&P.m(i,null),rn(i,r),rn(i,o),rn(o,a),rn(i,s),rn(i,l),rn(l,c),rn(c,u),rn(l,d),rn(l,p),rn(p,h),rn(i,m),rn(i,f),rn(i,g),E&&E.m(i,null),rn(i,y),rn(i,v),n[16](i),b||(w=[dn(c,"click",n[14]),dn(p,"click",n[15]),dn(f,"routeChange",n[10])],b=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&hn(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&hn(u,x),1&t&&k(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&hn(h,C),1&t&&k(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?E?E.p(e,t):((E=km(e)).c(),E.m(i,y)):E&&(E.d(1),E=null)},i:se,o:se,d(e){e&&an(i),P&&P.d(),E&&E.d(),n[16](null),b=!1,nn(w)}}}function Lm(t,e,n){let i;ue(t,me,e=>n(6,i=e));let r,{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"!==fe(p);Object.entries(Tm).forEach(([e,t])=>{Em(e,t)});const m=e=>{n(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&n(5,d="false")};return de(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&n(0,o=e.betstatus),"lang"in e&&n(11,a=e.lang),"selectedBetId"in e&&n(1,s=e.selectedBetId),"clientstyling"in e&&n(2,l=e.clientstyling),"clientstylingurl"in e&&n(3,c=e.clientstylingurl),"translationurl"in e&&n(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,he.set(e)),20&t.$$.dirty&&l&&r&&((e=document.createElement("style")).innerHTML=l,r.appendChild(e)),24&t.$$.dirty&&c&&r){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Em(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,r,d,i,h,m,f,e=>{e=e.detail.params.betId;n(1,s=e),n(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){pe[e?"unshift":"push"](()=>{r=e,n(4,r)})}]}function Bm(e){let n,i,r,o,a,s,l;function c(e){return e[15]&&e[14]===e[21][0]?Xm:e[15]&&e[14]===e[21][1]?qm:e[15]&&e[14]===e[21][2]?Vm:e[15]&&e[14]===e[21][3]?Gm:e[15]&&e[14]===e[21][4]?Um:e[15]&&e[14]==e[21][5]?jm:e[15]&&e[14]===e[21][6]?Ym:e[15]&&e[14]===e[21][7]?Wm:e[15]&&e[14]===e[21][8]?zm:e[15]&&e[14]===e[21][9]?Hm:e[15]&&e[14]===e[21][10]?Rm:e[15]&&e[14]===e[21][11]?Fm:e[15]&&e[14]===e[21][12]?Om:e[15]&&e[14]===e[21][13]?Nm:e[15]&&e[14]===e[21][14]?Im:void 0}let u=c(e),d=u&&u(e);return{c(){n=sn("nav"),i=sn("player-account-menu"),r=un(),o=sn("main"),d&&d.c(),a=un(),s=sn("aside"),l=sn("player-account-notifications"),le(i,"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"selecteditem",e[19]),le(i,"userroles",e[9]),le(i,"clientstyling",e[11]),le(i,"clientstylingurl",e[12]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[11]),le(l,"clientstylingurl",e[12])},m(e,t){on(e,n,t),rn(n,i),on(e,r,t),on(e,o,t),d&&d.m(o,null),on(e,a,t),on(e,s,t),rn(s,l)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),524288&t[0]&&le(i,"selecteditem",e[19]),512&t[0]&&le(i,"userroles",e[9]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12]),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]&&le(l,"customnotif",e[0]),2048&t[0]&&le(l,"clientstyling",e[11]),4096&t[0]&&le(l,"clientstylingurl",e[12])},d(e){e&&an(n),e&&an(r),e&&an(o),d&&d.d(),e&&an(a),e&&an(s)}}}function $m(e){let n;function i(e){return e[15]?e[15]&&e[14]===e[21][0]?df:e[15]&&e[14]===e[21][1]?uf:e[15]&&e[14]===e[21][2]?cf:e[15]&&e[14]===e[21][3]?lf:e[15]&&e[14]===e[21][4]?sf:e[15]&&e[14]===e[21][5]?af:e[15]&&e[14]===e[21][6]?of:e[15]&&e[14]===e[21][7]?rf:e[15]&&e[14]===e[21][8]?nf:e[15]&&e[14]===e[21][9]?tf:e[15]&&e[14]===e[21][10]?ef:e[15]&&e[14]===e[21][11]?Qm:e[15]&&e[14]===e[21][12]?Km:e[15]&&e[14]===e[21][13]?Jm:e[15]&&e[14]===e[21][14]?Zm:void 0:pf}let r=i(e),o=r&&r(e);return{c(){o&&o.c(),n=I()},m(e,t){o&&o.m(e,t),on(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=r&&r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&an(n)}}}function Im(e){let n;return{c(){le(n=sn("player-account-betting-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Nm(e){let n;return{c(){le(n=sn("player-transaction-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Om(e){let n;return{c(){le(n=sn("player-pending-withdrawals"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Fm(e){let n;return{c(){le(n=sn("player-withdrawal"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[17])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),131072&t[0]&&le(n,"playercurrency",e[17])},d(e){e&&an(n)}}}function Rm(e){let n;return{c(){le(n=sn("player-deposit"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[17])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),131072&t[0]&&le(n,"playercurrency",e[17])},d(e){e&&an(n)}}}function Hm(e){let n;return{c(){le(n=sn("player-gaming-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function zm(e){let n;return{c(){le(n=sn("player-bonus-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Wm(e){let n;return{c(){le(n=sn("player-active-bonuses"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"playercurrency",e[17]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),131072&t[0]&&le(n,"playercurrency",e[17]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Ym(e){let n;return{c(){le(n=sn("player-account-self-exclusion"),"lang",e[4]),le(n,"operator",e[5]),le(n,"supportemail",e[6]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),64&t[0]&&le(n,"supportemail",e[6]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function jm(n){let i,r,o;return{c(){le(i=sn("player-account-gaming-limits"),"playercurrency",n[17]),le(i,"separatelimits",n[7]),le(i,"clientstyling",n[11]),le(i,"clientstylingurl",n[12])},m(e,t){on(e,i,t),r||(o=x(n[22].call(null,i)),r=!0)},p(e,t){131072&t[0]&&le(i,"playercurrency",e[17]),128&t[0]&&le(i,"separatelimits",e[7]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12])},d(e){e&&an(i),r=!1,o()}}}function Um(e){let n;return{c(){le(n=sn("player-account-closure"),"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Gm(e){let n;return{c(){le(n=sn("player-account-timeout"),"lang",e[4]),le(n,"operator",e[5]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Vm(e){let n;return{c(){le(n=sn("player-reality-check"),"realitycheck",e[18]),le(n,"endpoint",e[3]),le(n,"playerid",e[1]),le(n,"session",e[2]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){262144&t[0]&&le(n,"realitycheck",e[18]),8&t[0]&&le(n,"endpoint",e[3]),2&t[0]&&le(n,"playerid",e[1]),4&t[0]&&le(n,"session",e[2]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function qm(e){let n;return{c(){le(n=sn("player-change-password"),"simplepasswordvalidation",e[10]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){1024&t[0]&&le(n,"simplepasswordvalidation",e[10]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Xm(e){let n;return{c(){le(n=sn("player-profile-info"),"endpoint",e[3]),le(n,"lang",e[4]),le(n,"countrycode",e[16]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),16&t[0]&&le(n,"lang",e[4]),65536&t[0]&&le(n,"countrycode",e[16]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Zm(e){let n;return{c(){le(n=sn("player-account-betting-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Jm(e){let n;return{c(){le(n=sn("player-transaction-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Km(e){let n;return{c(){le(n=sn("player-pending-withdrawals"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function Qm(e){let n;return{c(){le(n=sn("player-withdrawal"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[17])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),131072&t[0]&&le(n,"playercurrency",e[17])},d(e){e&&an(n)}}}function ef(e){let n;return{c(){le(n=sn("player-deposit"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[17])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),131072&t[0]&&le(n,"playercurrency",e[17])},d(e){e&&an(n)}}}function tf(e){let n;return{c(){le(n=sn("player-gaming-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function nf(e){let n;return{c(){le(n=sn("player-bonus-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function rf(e){let n;return{c(){le(n=sn("player-active-bonuses"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"playercurrency",e[17]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),131072&t[0]&&le(n,"playercurrency",e[17]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function of(e){let n;return{c(){le(n=sn("player-account-self-exclusion"),"lang",e[4]),le(n,"operator",e[5]),le(n,"supportemail",e[6]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),64&t[0]&&le(n,"supportemail",e[6]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function af(n){let i,r,o;return{c(){le(i=sn("player-account-gaming-limits"),"playercurrency",n[17]),le(i,"separatelimits",n[7]),le(i,"clientstyling",n[11]),le(i,"clientstylingurl",n[12])},m(e,t){on(e,i,t),r||(o=x(n[22].call(null,i)),r=!0)},p(e,t){131072&t[0]&&le(i,"playercurrency",e[17]),128&t[0]&&le(i,"separatelimits",e[7]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12])},d(e){e&&an(i),r=!1,o()}}}function sf(e){let n;return{c(){le(n=sn("player-account-closure"),"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function lf(e){let n;return{c(){le(n=sn("player-account-timeout"),"lang",e[4]),le(n,"operator",e[5]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function cf(e){let n;return{c(){le(n=sn("player-reality-check"),"realitycheck",e[18]),le(n,"endpoint",e[3]),le(n,"playerid",e[1]),le(n,"session",e[2]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){262144&t[0]&&le(n,"realitycheck",e[18]),8&t[0]&&le(n,"endpoint",e[3]),2&t[0]&&le(n,"playerid",e[1]),4&t[0]&&le(n,"session",e[2]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function uf(e){let n;return{c(){le(n=sn("player-change-password"),"simplepasswordvalidation",e[10]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){1024&t[0]&&le(n,"simplepasswordvalidation",e[10]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function df(e){let n;return{c(){le(n=sn("player-profile-info"),"endpoint",e[3]),le(n,"lang",e[4]),le(n,"countrycode",e[16]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){on(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),16&t[0]&&le(n,"lang",e[4]),65536&t[0]&&le(n,"countrycode",e[16]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function pf(e){let n,i,r,o;return{c(){n=sn("nav"),i=sn("player-account-menu"),r=un(),o=sn("player-account-notifications"),le(i,"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"userroles",e[9]),le(i,"clientstyling",e[11]),le(i,"clientstylingurl",e[12]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[11]),le(o,"clientstylingurl",e[12]),pn(n,"class","PlayerAccountMobile")},m(e,t){on(e,n,t),rn(n,i),rn(n,r),rn(n,o)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),512&t[0]&&le(i,"userroles",e[9]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12]),1&t[0]&&le(o,"customnotif",e[0]),2048&t[0]&&le(o,"clientstyling",e[11]),4096&t[0]&&le(o,"clientstylingurl",e[12])},d(e){e&&an(n)}}}function hf(n){let i,r=function(e){let n,t=e[20]?$m:Bm,i=t(e);return{c(){n=sn("section"),i.c(),pn(n,"class","PlayerAccountPage "+(e[20]?"PlayerAccountMobilePage":""))},m(e,t){on(e,n,t),i.m(n,null)},p(e,t){i.p(e,t)},d(e){e&&an(n),i.d()}}}(n);return{c(){i=sn("div"),r.c(),this.c=se},m(e,t){on(e,i,t),r.m(i,null),n[34](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&an(i),r.d(),n[34](null)}}}function mf(t,e,o){let a;ue(t,me,e=>o(46,a=e));let n,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:i=""}=e,{limitspath:r=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:O=""}=e,{realm:F=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:H="true"}=e,{hasdefaultamount:z="false"}=e,{userroles:m=""}=e,{simplepasswordvalidation:W="false"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e;var Y,j;({withLocale:Y,translations:j}={withLocale:"en",translations:{}}),he.subscribe(e=>{null==e&&(Mi.set(j),he.set(Y))});let v,b,w,_,U,x,G=window.navigator.userAgent,V="PC"!==fe(G),q=[],X=[],C="",P="",E="",Z="",T=null,A="",S={},M=!1,k=!1,J="",D="",K=!1,L=!1;Object.keys(Zi).forEach(e=>{Xi(e,Zi[e])});const Q=n=>{let t;if(n.data)switch(n.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(15,L=!0),o(14,E=n.data.page.path),o(19,x=n.data.page.id),"/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(15,L=!0),o(14,E=n.data.pagePath),"/profile-info"==E&&(B(),$());var i=new URL(`${s}/${p}/profile-menu?env=`+l);i.searchParams.append("device",A),ee(i).then(e=>{e=e.filter(e=>e.label==n.data.pageName);0<e.length&&o(19,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":n.data.isMobile&&(o(15,L=!1),ie());break;case"UpdatePlayerInfo":i=n.data.provisionalArray,i={mobile:{prefix:i.mobilePrefix,number:i.mobileNumber},address1:i.address,city:i.city,postalCode:i.postalCode,securityQuestion:i.securityQuestion,securityAnswer:i.securityAnswer},i=(t=new URL(`${d}/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)});fetch(t.href,i).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}/player/${C}/consent`);i={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n.data.consentArray)};fetch(t.href,i).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let n=new URL(`${d}/player/${C}/password`),i={currentPassword:e,newPassword:t},r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},o=await fetch(n.href,r);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();D=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),K=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:K,errorPasswordChanged:D},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:D}},window.location.href)}})(n.data.userCurrentPassword,n.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);i={coolOff:{period:n.data.timeoutSelected}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))).searchParams.append("playerId",C);i={selfExclusion:{period:n.data.selfExclusionPeriod,expiryDate:n.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))).searchParams.append("playerId",C);i={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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=n.data.session,C=n.data.userid,ne();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));i=n.data.payload,i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))))});break;case"PlayerAccountGamingLimitDelete":var i=n.data.limit||{},r=Array.isArray(i)?i.map(e=>e.period):i.period;let e="";switch(n.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}i={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(i)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(r)?r.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",r),fetch(t.href,i).then(e=>{200==e.status&&(k=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)));break;case"SubmittedRealityCheck":{r=n.data.realityCheckUpdatedValue;let e=new URL(`${d}/player/${C}/realitycheck`),t=(r&&(J=r),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(J,10)}});fetch(e.href,t).then(e=>{200==e.status&&(te(new URL(`${d}/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 ee(e){return e.searchParams.append("device",A),(await fetch(e.href)).json()}const B=()=>{var e=new URL(`${d}/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(16,Z=e.country),o(17,T=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},$=()=>{var e=new URL(`${d}/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)})},te=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(18,U=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===M?setTimeout(()=>{M=!1},3e3):!0===k&&setTimeout(()=>{k=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{S=e,0!==Object.keys(S).length?(o(30,v=null!=(e=S.depositLimits)?e:[]),o(31,b=null!=(e=S.wageringLimits)?e:[]),o(32,w=null!=(e=S.lossLimits)?e:[]),S.hasOwnProperty("cumulativeSessionLimits")?(o(33,_=S.timeLimit),o(33,_=S.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(33,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:T,depositlimit:v,wageringlimit:b,losslimit:w,timelimit:_,showsuccessnotification:M,showdeletenotification:k,lang:p}},window.location.href)):(o(30,v=[]),o(31,b=[]),o(32,w=[]),o(33,_=[])),re()},e=>{console.error(e)})},ne=()=>{var e;ee(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{q=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:q},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",A),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(X=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:X},window.location.href))},e=>{console.error(e)}),B(),$(),te(new URL(`${d}/player/${c}/realitycheck`))},ie=()=>{var e;(e=fe(G))&&(A="PC"===e?"dk":"mtWeb"),C=c,P=u,V||o(15,L=!0),ne()};return de(()=>(window.addEventListener("message",Q,!1),()=>{window.removeEventListener("message",Q)})),t.$$set=e=>{"cmsendpoint"in e&&o(23,s=e.cmsendpoint),"env"in e&&o(24,l=e.env),"customnotifications"in e&&o(0,i=e.customnotifications),"limitspath"in e&&o(25,r=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,h=e.operator),"supportemail"in e&&o(6,N=e.supportemail),"operatorid"in e&&o(26,O=e.operatorid),"realm"in e&&o(27,F=e.realm),"webapiendpoint"in e&&o(28,R=e.webapiendpoint),"separatelimits"in e&&o(7,H=e.separatelimits),"hasdefaultamount"in e&&o(8,z=e.hasdefaultamount),"userroles"in e&&o(9,m=e.userroles),"simplepasswordvalidation"in e&&o(10,W=e.simplepasswordvalidation),"clientstyling"in e&&o(11,f=e.clientstyling),"clientstylingurl"in e&&o(12,g=e.clientstylingurl),"translationurl"in e&&o(29,y=e.translationurl)},t.$$.update=()=>{if(49168&t.$$.dirty[0]&&p&&L&&E&&(e=p,he.set(e)),25166367&t.$$.dirty[0]&&s&&d&&i&&c&&u&&p&&l&&m&&ie(),t.$$.dirty[0],t.$$.dirty[1],10240&t.$$.dirty[0]&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),12288&t.$$.dirty[0]&&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;536870912&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xi(e,t[e])})}).catch(e=>{console.log(e)})},[i,c,u,d,p,h,N,H,z,m,W,f,g,n,E,L,Z,T,void 0,x,V,["/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"],e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,r,O,F,R,y,v,b,w,_,function(e){pe[e?"unshift":"push"](()=>{n=e,o(13,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends t{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-orange-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Mm,Sm,n,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&on(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 t{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-pink-500, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:none}.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))}.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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Lm,Dm,n,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&on(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()}});class ff extends t{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-dunkel, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},mf,hf,n,{cmsendpoint:23,env:24,customnotifications:0,limitspath:25,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:26,realm:27,webapiendpoint:28,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,clientstyling:11,clientstylingurl:12,translationurl:29},null,[-1,-1,-1]),e&&(e.target&&on(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","clientstyling","clientstylingurl","translationurl"]}get cmsendpoint(){return this.$$.ctx[23]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[24]}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[25]}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[26]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[27]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[28]}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 clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[29]}set translationurl(e){this.$$set({translationurl:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",ff),ff});
1690
+ `}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),nc(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Mu(e){let n,i,r,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){n=dn("p"),i=dn("strong"),r=hn(o),gn(n,"class","SelfExclusionDescriptionText")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&yn(r,o)},d(e){e&&un(n)}}}function ku(e){let n,i,r,o=e[8]("permanentSelfExclusion")+"";return{c(){n=dn("p"),i=dn("strong"),r=hn(o),gn(n,"class","SelfExclusionDescriptionText")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&yn(r,o)},d(e){e&&un(n)}}}function Du(n){let i,r,F,o,a,R,s,l,c,H,u,d,z,p,h,W,Y,j,m,U,G,f,V,g,q,y,v,X,Z,b,J,w,_,K,Q,x,ee,C,te,P,ne,E,A,ie,re,oe,T=n[8]("title")+"",S=n[8]("selfExclusionText1",{values:{operatorname:n[0]}})+"",M=n[8]("selfExclusionText2")+"",k=n[8]("selfExclusionText3")+"",D=n[8]("selfExclusionText4")+"",L=n[8]("duration")+"",B=n[8]("forever")+"",$=n[8]("save")+"",I=n[9]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[8]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","PlayerSelfExclusionTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[17]),m=!0)},p(e,t){256&t[0]&&g!==(g=e[8]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function ae(e){return e[4]?ku:Mu}let N=ae(n),O=N(n);return{c(){i=dn("div"),r=dn("form"),I&&I.c(),F=mn(),o=dn("h2"),a=hn(T),R=mn(),s=dn("div"),l=dn("p"),c=hn(S),H=mn(),u=dn("p"),d=hn(M),z=mn(),p=dn("p"),h=hn(k),W=mn(),Y=hn(n[1]),j=mn(),m=dn("p"),U=hn(D),G=mn(),f=dn("a"),V=hn(n[1]),q=mn(),y=dn("div"),v=dn("label"),X=hn(L),Z=mn(),b=dn("vaadin-date-picker"),J=mn(),w=dn("div"),_=dn("label"),K=hn(B),Q=mn(),x=dn("input"),ee=mn(),C=dn("span"),te=mn(),P=dn("div"),O.c(),ne=mn(),E=dn("div"),A=dn("button"),ie=hn($),this.c=se,gn(o,"class","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),gn(l,"class","SelfExclusionDescriptionText"),gn(u,"class","SelfExclusionDescriptionText"),gn(p,"class","SelfExclusionDescriptionText"),gn(f,"href",g="mailto:"+n[1]),gn(m,"class","SelfExclusionDescriptionText"),gn(s,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),gn(v,"for","SelfExclusionDate"),le(b,"min",n[6]),le(b,"max",n[7]),le(b,"value",n[6]),gn(y,"class","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),gn(x,"type","Checkbox"),gn(C,"class","Checkmark"),gn(C,"part","Checkmark"),gn(_,"class","SelfExclusionRadio"),gn(w,"class","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),gn(P,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),gn(A,"class","SelfExclusionSave"),gn(E,"class","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),gn(r,"class","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),I&&I.m(r,null),ln(r,F),ln(r,o),ln(o,a),ln(r,R),ln(r,s),ln(s,l),ln(l,c),ln(s,H),ln(s,u),ln(u,d),ln(s,z),ln(s,p),ln(p,h),ln(p,W),ln(p,Y),ln(s,j),ln(s,m),ln(m,U),ln(m,G),ln(m,f),ln(f,V),ln(r,q),ln(r,y),ln(y,v),ln(v,X),ln(y,Z),ln(y,b),n[18](b),ln(r,J),ln(r,w),ln(w,_),ln(_,K),ln(_,Q),ln(_,x),ln(_,ee),ln(_,C),ln(r,te),ln(r,P),O.m(P,null),ln(r,ne),ln(r,E),ln(E,A),ln(A,ie),n[21](i),re||(oe=[fn(x,"click",n[19]),fn(A,"click",n[20])],re=!0)},p(e,t){e[9]&&I.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&yn(a,T),257&t[0]&&S!==(S=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&yn(c,S),256&t[0]&&M!==(M=e[8]("selfExclusionText2")+"")&&yn(d,M),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&yn(h,k),2&t[0]&&yn(Y,e[1]),256&t[0]&&D!==(D=e[8]("selfExclusionText4")+"")&&yn(U,D),2&t[0]&&yn(V,e[1]),2&t[0]&&g!==(g="mailto:"+e[1])&&gn(f,"href",g),256&t[0]&&L!==(L=e[8]("duration")+"")&&yn(X,L),64&t[0]&&le(b,"min",e[6]),128&t[0]&&le(b,"max",e[7]),64&t[0]&&le(b,"value",e[6]),256&t[0]&&B!==(B=e[8]("forever")+"")&&yn(K,B),N===(N=ae(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(P,null))),256&t[0]&&$!==($=e[8]("save")+"")&&yn(ie,$)},i:se,o:se,d(e){e&&un(i),I&&I.d(),n[18](null),O.d(),n[21](null),re=!1,sn(oe)}}}function Lu(t,e,n){let i;pe(t,ge,e=>n(8,i=e));let r,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"!==ye(m),g=!1,y="",v="",b=new Date;Object.keys(Cr).forEach(e=>{xr(e,Cr[e])}),a=W(b.setDate(b.getDate())).add(6,"M").format("YYYY-MM-DD"),s=W(b.setDate(b.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const w=()=>{n(4,g=0==g)},_=e=>{1==g?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(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)};he(()=>()=>{o.removeEventListener("change",P)});return t.$$set=e=>{"lang"in e&&n(13,l=e.lang),"operator"in e&&n(0,c=e.operator),"supportemail"in e&&n(1,u=e.supportemail),"clientstyling"in e&&n(14,d=e.clientstyling),"clientstylingurl"in e&&n(15,p=e.clientstylingurl),"translationurl"in e&&n(16,h=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&o&&o.addEventListener("change",P,!1),8192&t.$$.dirty[0]&&l&&(e=l,fe.set(e)),32772&t.$$.dirty[0]&&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;16388&t.$$.dirty[0]&&d&&r&&((e=document.createElement("style")).innerHTML=d,r.appendChild(e)),65536&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{xr(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,r,o,g,v,a,s,i,f,w,x,C,l,d,p,h,()=>C(),function(e){me[e?"unshift":"push"](()=>{o=e,n(3,o)})},()=>w(),e=>x(e),function(e){me[e?"unshift":"push"](()=>{r=e,n(2,r)})}]}function Bu(e,t){a(e,t)}customElements.define(Su.is,Su),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",class extends t{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-pink-500, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Lu,Du,n,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&cn(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 $u={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 Iu(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[2]("modal")+"",v=n[2]("accountClosureCancel")+"",b=n[2]("accountClosureConfirm")+"";return{c(){i=dn("div"),r=dn("div"),o=dn("div"),a=dn("p"),s=hn(y),l=mn(),c=dn("div"),u=dn("button"),d=hn(v),p=mn(),h=dn("button"),m=hn(b),gn(a,"class","ModalText"),gn(u,"class","ModalCancel"),gn(h,"class","ModalConfirm"),gn(c,"class","ModalButtons"),gn(o,"class","ModalBody"),gn(r,"class","ModalContent"),gn(i,"class","ModalWrapper "+(n[3]?"ModalWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(o,l),ln(o,c),ln(c,u),ln(u,d),ln(c,p),ln(c,h),ln(h,m),f||(g=[fn(u,"click",n[13]),fn(h,"click",n[14])],f=!0)},p(e,t){4&t&&y!==(y=e[2]("modal")+"")&&yn(s,y),4&t&&v!==(v=e[2]("accountClosureCancel")+"")&&yn(d,v),4&t&&b!==(b=e[2]("accountClosureConfirm")+"")&&yn(m,b)},d(e){e&&un(i),f=!1,sn(g)}}}function Nu(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=n[2]("title")+"",w=n[2]("accountClosureDescription")+"",_=n[2]("closeAccount")+"",x=n[3]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[2]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","AccountClosureTitleMobile"),gn(p,"part","AccountClosureTitleMobile"),gn(i,"class","MenuReturnButton"),gn(i,"part","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[11]),m=!0)},p(e,t){4&t&&g!==(g=e[2]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),C=n[1]&&Iu(n);return{c(){i=dn("div"),r=dn("div"),x&&x.c(),o=mn(),a=dn("h2"),s=hn(b),l=mn(),c=dn("div"),u=dn("p"),d=hn(w),p=mn(),h=dn("div"),m=dn("button"),f=hn(_),g=mn(),C&&C.c(),this.c=se,gn(a,"class","AccountClosureTitle "+(n[3]?"AccountClosureTitleNone":"")),gn(c,"class","AccountClosureDescription "+(n[3]?"AccountClosureDescriptionMobile":"")),gn(m,"class","AccountClosureSave "+(n[3]?"AccountClosureSaveMobile":"")),gn(h,"class","AccountClosureActionButtons "+(n[3]?"AccountClosureActionButtonsMobile":"")),gn(r,"class","AccountClosureWrapper "+(n[3]?"AccountClosureWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),x&&x.m(r,null),ln(r,o),ln(r,a),ln(a,s),ln(r,l),ln(r,c),ln(c,u),ln(u,d),ln(r,p),ln(r,h),ln(h,m),ln(m,f),ln(i,g),C&&C.m(i,null),n[15](i),y||(v=fn(m,"click",n[12]),y=!0)},p(e,[t]){e[3]&&x.p(e,t),4&t&&b!==(b=e[2]("title")+"")&&yn(s,b),4&t&&w!==(w=e[2]("accountClosureDescription")+"")&&yn(d,w),4&t&&_!==(_=e[2]("closeAccount")+"")&&yn(f,_),e[1]?C?C.p(e,t):((C=Iu(e)).c(),C.m(i,null)):C&&(C.d(1),C=null)},i:se,o:se,d(e){e&&un(i),x&&x.d(),C&&C.d(),n[15](null),y=!1,v()}}}function Ou(t,e,n){let i;pe(t,ge,e=>n(2,i=e));let r,{lang:o="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:s=""}=e,{translationurl:l=""}=e,c=window.navigator.userAgent,u="PC"!==ye(c),d=!1;Object.keys($u).forEach(e=>{Bu(e,$u[e])});const p=e=>{n(1,d=e)},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&&n(7,o=e.lang),"clientstyling"in e&&n(8,a=e.clientstyling),"clientstylingurl"in e&&n(9,s=e.clientstylingurl),"translationurl"in e&&n(10,l=e.translationurl)},t.$$.update=()=>{if(128&t.$$.dirty&&o&&(e=o,fe.set(e)),257&t.$$.dirty&&a&&r&&((e=document.createElement("style")).innerHTML=a,r.appendChild(e)),513&t.$$.dirty&&s&&r){let e=new URL(s),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;1024&t.$$.dirty&&l&&fetch(l).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Bu(e,t[e])})}).catch(e=>{console.log(e)})},[r,d,i,u,p,h,m,o,a,s,l,()=>m(),()=>p(!0),()=>p(!1),()=>h(),function(e){me[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}function Fu(e,t){a(e,t)}customElements.get("player-account-closure")||customElements.define("player-account-closure",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".AccountClosureWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.AccountClosureTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Ou,Nu,n,{lang:7,clientstyling:8,clientstylingurl:9,translationurl:10},null),e&&(e.target&&cn(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 Ru={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 Hu(e,t){a(e,t)}const zu={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 Wu(e,t){a(e,t)}const Yu={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 ju(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[4]("name")+"";function v(e){return e[0]?Gu:Uu}let b=v(n),w=b(n);return{c(){i=dn("section"),r=dn("div"),o=dn("div"),(a=dn("div")).textContent="i",s=mn(),l=dn("div"),c=hn(y),u=mn(),(d=dn("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=mn(),h=dn("div"),w.c(),gn(a,"class","InfoCardPopupIcon"),gn(l,"class","InfoCardPopupTitle"),gn(d,"class","InfoCardPopupCloseButton"),gn(o,"class","InfoCardPopupHeader"),gn(h,"class","InfoCardPopupContentArea"),gn(r,"class",m="InfoCardPopupWrapper "+(n[5]?"InfoCardPopupMobileWrapper":"")+" "+(n[0]?"InfoCardPopupLimitChanged":"")),gn(i,"class",n[5]?"InfoCardPopupMobileModal":"")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(o,s),ln(o,l),ln(l,c),ln(o,u),ln(o,d),ln(r,p),ln(r,h),w.m(h,null),n[12](i),f||(g=fn(d,"click",G(n[6])),f=!0)},p(e,t){16&t&&y!==(y=e[4]("name")+"")&&yn(c,y),b===(b=v(e))&&w?w.p(e,t):(w.d(1),(w=b(e))&&(w.c(),w.m(h,null))),1&t&&m!==(m="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&gn(r,"class",m)},d(e){e&&un(i),w.d(),n[12](null),f=!1,g()}}}function Uu(e){let n,i,r=e[4]("defaultText")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InfoCardPopupContent")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16&t&&r!==(r=e[4]("defaultText")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Gu(e){let n,i,r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InfoCardPopupContent")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){19&t&&r!==(r=e[4]("amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&yn(i,r)},d(e){e&&un(n)}}}function Vu(e){let n,i=e[3]&&ju(e);return{c(){i&&i.c(),n=I(),this.c=se},m(e,t){i&&i.m(e,t),cn(e,n,t)},p(e,[t]){e[3]?i?i.p(e,t):((i=ju(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:se,o:se,d(e){i&&i.d(e),e&&un(n)}}}function qu(t,e,n){let i,{showpopup:r=""}=(pe(t,ge,e=>n(4,i=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:u=""}=e;Object.keys(Yu).forEach(e=>{Wu(e,Yu[e])});let d,p=!1,h=window.navigator.userAgent,m="PC"!==ye(h);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&n(3,p=!1)};return he(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&n(7,r=e.showpopup),"iteminfoamount"in e&&n(0,o=e.iteminfoamount),"lang"in e&&n(8,a=e.lang),"playercurrency"in e&&n(1,s=e.playercurrency),"clientstyling"in e&&n(9,l=e.clientstyling),"clientstylingurl"in e&&n(10,c=e.clientstylingurl),"translationurl"in e&&n(11,u=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,fe.set(e),o<0&&n(0,o="0"),n(3,p=r)),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=>{Wu(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,p,i,m,()=>{n(3,p=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,c,u,function(e){me[e?"unshift":"push"](()=>{d=e,n(2,d)})}]}function Xu(e,t){a(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends t{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-orange-500, #FD2839));fill:var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #FD2839))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},qu,Vu,n,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&cn(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 Zu={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 Ju(e,{delay:t=0,duration:n=400,easing:i=w}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:e=>"opacity: "+e*r}}function Ku(n){let i,r,t,o;return{c(){i=dn("div"),(r=dn("div")).innerHTML='<div class="ModalContainer"><slot></slot></div>',gn(r,"class","ModalWindow"),gn(r,"id","Modal")},m(e,t){cn(e,i,t),ln(i,r),n[6](r),n[7](i),o=!0},p(e,t){n=e},i(e){o||(_n(()=>{o&&(t=t||ne(r,Ju,{transitionDuration:n[1]},!0)).run(1)}),o=!0)},o(e){(t=t||ne(r,Ju,{transitionDuration:n[1]},!1)).run(0),o=!1},d(e){e&&un(i),n[6](null),e&&t&&t.end(),n[7](null)}}}function Qu(e){let n,i,r=e[0]&&Ku(e);return{c(){r&&r.c(),n=I(),this.c=se},m(e,t){r&&r.m(e,t),cn(e,n,t),i=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&Q(r,1)):((r=Ku(e)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(J(),ee(r,1,1,()=>{r=null}),K())},i(e){i||(Q(r),i=!0)},o(e){ee(r),i=!1},d(e){r&&r.d(e),e&&un(n)}}}function ed(t,e,n){let i,r,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const c=e=>{"ModalClosed"==e.data.type&&n(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(n(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return he(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"show"in e&&n(0,o=e.show),"duration"in e&&n(1,a=e.duration),"clientstyling"in e&&n(4,s=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&i){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&i&&((e=document.createElement("style")).innerHTML=s,i.appendChild(e))},[o,a,i,void 0,s,l,function(e){me[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(e){me[e?"unshift":"push"](()=>{i=e,n(2,i)})}]}function td(e,t){a(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends t{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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},ed,Qu,n,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&cn(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 nd={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 id(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[2]("cancel")+"",v=n[2]("confirm")+"",b=!n[3]&&function(n){let i,r,o;return{c(){(i=dn("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>',gn(i,"class","ModalCloseBtn"),gn(i,"role","button")},m(e,t){cn(e,i,t),r||(o=fn(i,"click",n[4]),r=!0)},p:se,d(e){e&&un(i),r=!1,o()}}}(n);return{c(){i=dn("div"),b&&b.c(),r=mn(),o=dn("div"),a=dn("div"),s=hn(n[0]),l=mn(),c=dn("div"),u=dn("button"),d=hn(y),p=mn(),h=dn("button"),m=hn(v),this.c=se,gn(a,"class","GamingLimitsConfirmationContent"),gn(u,"class","GamingLimitsCancelButton"),gn(h,"class","GamingLimitsConfirmButton"),gn(c,"class","GamingLimitsConfirmationControlArea"),gn(o,"class","GamingLimitsConfirmationContainer "+(n[3]?"GamingLimitsConfirmationContainerMobile":"")),gn(i,"class","GamingLimitsConfirmationWrapper "+(n[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){cn(e,i,t),b&&b.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(a,s),ln(o,l),ln(o,c),ln(c,u),ln(u,d),ln(c,p),ln(c,h),ln(h,m),n[12](i),f||(g=[fn(u,"click",n[6]),fn(h,"click",n[5])],f=!0)},p(e,[t]){e[3]||b.p(e,t),1&t&&yn(s,e[0]),4&t&&y!==(y=e[2]("cancel")+"")&&yn(d,y),4&t&&v!==(v=e[2]("confirm")+"")&&yn(m,v)},i:se,o:se,d(e){e&&un(i),b&&b.d(),n[12](null),f=!1,sn(g)}}}function rd(t,e,n){let i,{modaltext:r="Are you sure that you want to perform this action?"}=(pe(t,ge,e=>n(2,i=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u,d=(Object.keys(nd).forEach(e=>{td(e,nd[e])}),window.navigator.userAgent),p="PC"!==ye(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 he(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&n(0,r=e.modaltext),"modalsource"in e&&n(7,o=e.modalsource),"lang"in e&&n(8,a=e.lang),"clientstyling"in e&&n(9,s=e.clientstyling),"clientstylingurl"in e&&n(10,l=e.clientstylingurl),"translationurl"in e&&n(11,c=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,fe.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=>{td(e,t[e])})}).catch(e=>{console.log(e)})},[r,u,i,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,n(1,u)})}]}function od(e,t,n){e=e.slice();return e[56]=t[n],e[57]=t,e[58]=n,e}function ad(e,t,n){e=e.slice();return e[59]=t[n],e}function sd(e,t,n){e=e.slice();return e[56]=t[n],e[58]=n,e}function ld(e){let n,i,r,o=e[18]("success")+"";return{c(){n=dn("div"),i=dn("p"),r=hn(o),gn(n,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("success")+"")&&yn(r,o)},d(e){e&&un(n)}}}function cd(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=dd(sd(t,o,e));return{c(){r=dn("div");for(let e=0;e<a.length;e+=1)a[e].c();gn(r,"class","AccountEditLimitSuccessfulChangeContainer")},m(e,t){cn(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(409600&n[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var i=sd(t,o,e);a[e]?a[e].p(i,n):(a[e]=dd(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&un(r),vn(a,e)}}}function ud(e){let n,i,r,o,a=e[18]("remove")+"",s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){n=dn("p"),i=hn(a),r=mn(),o=hn(s)},m(e,t){cn(e,n,t),ln(n,i),ln(n,r),ln(n,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("remove")+"")&&yn(i,a),16384&t[0]&&s!==(s=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yn(o,s)},d(e){e&&un(n)}}}function dd(e){let n,i=e[56].period==e[17][e[58]].period&&ud(e);return{c(){i&&i.c(),n=I()},m(e,t){i&&i.m(e,t),cn(e,n,t)},p(e,t){e[56].period==e[17][e[58]].period?i?i.p(e,t):((i=ud(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(e){i&&i.d(e),e&&un(n)}}}function pd(t){let n,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=xd(od(t,o,e));return{c(){n=dn("div"),r=dn("div");for(let e=0;e<a.length;e+=1)a[e].c();gn(r,"class","AccountEditLimitsContainer"),gn(n,"class","AccountEditContent")},m(e,t){cn(e,n,t),ln(n,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,n){if(18836560&n[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var i=od(t,o,e);a[e]?a[e].p(i,n):(a[e]=xd(i),a[e].c(),a[e].m(r,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){e&&un(n),vn(a,e)}}}function hd(n){let i,r,o,a,s,l,c,u,d,p,h=n[18]("noLimit")+"",m=n[20].get(n[6])[n[58]].values,f=[];for(let e=0;e<m.length;e+=1)f[e]=fd(ad(n,m,e));function g(){n[29].call(i,n[58])}let y="Custom"===n[17][n[58]].amount&&gd(n),v=!0===n[56].isModified&&_d(n);return{c(){i=dn("select"),r=dn("option"),o=hn(h);for(let e=0;e<f.length;e+=1)f[e].c();s=mn(),l=dn("div"),y&&y.c(),c=mn(),v&&v.c(),u=I(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,gn(i,"class","AccountEditField "+(n[19]?"TimeoutSelectMobile":"")),i.disabled=a=!0===n[56].isModified,void 0===n[17][n[58]].amount&&_n(g),gn(l,"class","AccountEditLimitsInputContainer")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(i,null);wn(i,n[17][n[58]].amount,!0),cn(e,s,t),cn(e,l,t),y&&y.m(l,null),cn(e,c,t),v&&v.m(e,t),cn(e,u,t),d||(p=[fn(i,"change",g),fn(i,"change",function(){ue(n[24](n[17][n[58]],n[58],!1,n[16]))&&n[24](n[17][n[58]],n[58],!1,n[16]).apply(this,arguments)})],d=!0)},p(e,t){if(n=e,262144&t[0]&&h!==(h=n[18]("noLimit")+"")&&yn(o,h),1048656&t[0]){let e;for(m=n[20].get(n[6])[n[58]].values,e=0;e<m.length;e+=1){const o=ad(n,m,e);f[e]?f[e].p(o,t):(f[e]=fd(o),f[e].c(),f[e].m(i,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}16384&t[0]&&a!==(a=!0===n[56].isModified)&&(i.disabled=a),1179712&t[0]&&wn(i,n[17][n[58]].amount),"Custom"===n[17][n[58]].amount?y?y.p(n,t):((y=gd(n)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===n[56].isModified?v?v.p(n,t):((v=_d(n)).c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},d(e){e&&un(i),vn(f,e),e&&un(s),e&&un(l),y&&y.d(),e&&un(c),v&&v.d(e),e&&un(u),d=!1,sn(p)}}}function md(e){let n,i=("Time Limit"!==e[6]?e[4]:" minutes")+"";return{c(){n=hn(i)},m(e,t){cn(e,n,t)},p(e,t){80&t[0]&&i!==(i=("Time Limit"!==e[6]?e[4]:" minutes")+"")&&yn(n,i)},d(e){e&&un(n)}}}function fd(e){let n,i,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&md(e);return{c(){n=dn("option"),i=hn(s),r=mn(),l&&l.c(),o=mn(),n.__value=a=e[59],n.value=n.__value},m(e,t){cn(e,n,t),ln(n,i),ln(n,r),l&&l.m(n,null),ln(n,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&yn(i,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=md(e)).c(),l.m(n,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(n.__value=a,n.value=n.__value)},d(e){e&&un(n),l&&l.d()}}}function gd(e){let n;function i(e){return"Time Limit"!==e[6]?vd:yd}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function yd(n){let i,r,o,a,s,l;function c(){n[31].call(i,n[58])}let u=1==n[13][n[58]]&&bd(n);return{c(){i=dn("input"),o=mn(),a=dn("p"),u&&u.c(),gn(i,"type","number"),gn(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=r=!0===n[56].isModified,gn(a,"class","AccountEditWarningText")},m(e,t){cn(e,i,t),bn(i,n[17][n[58]].value),cn(e,o,t),cn(e,a,t),u&&u.m(a,null),s||(l=[fn(i,"keyup",function(){ue(n[24](n[17][n[58]],n[58],!0,n[16]))&&n[24](n[17][n[58]],n[58],!0,n[16]).apply(this,arguments)}),fn(i,"input",c)],s=!0)},p(e,t){n=e,16384&t[0]&&r!==(r=!0===n[56].isModified)&&(i.disabled=r),1179712&t[0]&&j(i.value)!==n[17][n[58]].value&&bn(i,n[17][n[58]].value),1==n[13][n[58]]?u?u.p(n,t):((u=bd(n)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&un(i),e&&un(o),e&&un(a),u&&u.d(),s=!1,sn(l)}}}function vd(n){let i,r,o,a,s,l;function c(){n[30].call(i,n[58])}let u=1==n[13][n[58]]&&wd(n);return{c(){i=dn("input"),o=mn(),a=dn("p"),u&&u.c(),gn(i,"type","number"),gn(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=r=!0===n[56].isModified,gn(a,"class","AccountEditWarningText")},m(e,t){cn(e,i,t),bn(i,n[17][n[58]].value),cn(e,o,t),cn(e,a,t),u&&u.m(a,null),s||(l=[fn(i,"keyup",function(){ue(n[24](n[17][n[58]],n[58],!1,n[16]))&&n[24](n[17][n[58]],n[58],!1,n[16]).apply(this,arguments)}),fn(i,"input",c)],s=!0)},p(e,t){n=e,16384&t[0]&&r!==(r=!0===n[56].isModified)&&(i.disabled=r),1179712&t[0]&&j(i.value)!==n[17][n[58]].value&&bn(i,n[17][n[58]].value),1==n[13][n[58]]?u?u.p(n,t):((u=wd(n)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&un(i),e&&un(o),e&&un(a),u&&u.d(),s=!1,sn(l)}}}function bd(e){let n,i,r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){265216&t[0]&&r!==(r=e[18]("invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&yn(i,r)},d(e){e&&un(n)}}}function wd(e){let n,i,r=e[18]("invalidInputMessageLimit")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){262144&t[0]&&r!==(r=e[18]("invalidInputMessageLimit")+"")&&yn(i,r)},d(e){e&&un(n)}}}function _d(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=e[18]("expirationDate")+"",w=(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(){n=dn("p"),i=hn(b),r=mn(),o=dn("span"),a=hn(w),s=mn(),l=dn("div"),c=dn("p"),(u=dn("span")).textContent="i",d=dn("span"),p=hn(_),h=mn(),m=hn(x),f=mn(),g=hn(C),y=hn(". "),v=hn(P),gn(n,"class","AccountEditLimitsExpiryDate"),gn(u,"class","AccountEditLimitChangePeriodIcon"),gn(l,"class","AccountEditLimitsPeriodChangeContainer")},m(e,t){cn(e,n,t),ln(n,i),ln(n,r),ln(n,o),ln(o,a),cn(e,s,t),cn(e,l,t),ln(l,c),ln(c,u),ln(c,d),ln(d,p),ln(d,h),ln(d,m),ln(d,f),ln(d,g),ln(d,y),ln(d,v)},p(e,t){262144&t[0]&&b!==(b=e[18]("expirationDate")+"")&&yn(i,b),16384&t[0]&&w!==(w=(e[56].expiryDate?W(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&yn(a,w),262144&t[0]&&_!==(_=e[18]("changedLimitTextBefore")+"")&&yn(p,_),16384&t[0]&&x!==(x=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&yn(m,x),16400&t[0]&&C!==(C=(void 0!==e[56].minutes?" minutes":e[4])+"")&&yn(g,C),262144&t[0]&&P!==(P=e[18]("changedLimitTextAfter")+"")&&yn(v,P)},d(e){e&&un(n),e&&un(s),e&&un(l)}}}function xd(e){let n,i,r,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&&hd(e);return{c(){n=dn("div"),i=dn("p"),r=hn(s),o=mn(),l&&l.c(),a=mn(),gn(i,"class","AccountEditLimitsTitle"),gn(n,"class","AccountEditLimitsBox")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(n,o),l&&l.m(n,null),ln(n,a)},p(e,t){278528&t[0]&&s!==(s=e[18](""+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&yn(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=hd(e)).c(),l.m(n,a)):l&&(l.d(1),l=null)},d(e){e&&un(n),l&&l.d()}}}function Cd(n){let i,F,r,o,a,s,R,l,c,u,H,d,p,z,h,m,f,W,g,y,Y,v,j,b,w,_,x,C,P,E,A,T,S,M,k,U,D=n[18]("back")+"",L=(n[1]?n[9]:"")+"",B=n[18]("save")+"",$=n[19]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[18]("back")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","MyAccountCategoryTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[22]),m=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("back")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),I=n[2]&&ld(n),N=n[3]&&cd(n),O=n[8]&&pd(n);return{c(){i=dn("div"),$&&$.c(),F=mn(),r=dn("div"),o=pn("svg"),a=pn("defs"),s=pn("style"),R=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),H=mn(),d=dn("h2"),p=hn(D),z=mn(),h=dn("div"),m=dn("h6"),f=hn(L),W=mn(),g=dn("div"),(y=dn("span")).textContent="i",Y=mn(),v=dn("player-account-gaming-limits-popup"),j=mn(),I&&I.c(),b=mn(),N&&N.c(),w=mn(),O&&O.c(),_=mn(),x=dn("div"),C=dn("button"),P=hn(B),T=mn(),S=dn("player-account-modal"),M=dn("player-account-gaming-limits-confirmation-modal"),this.c=se,gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(o,"xmlns","http://www.w3.org/2000/svg"),gn(o,"width","20"),gn(o,"height","20"),gn(o,"viewBox","0 0 15 15"),gn(d,"class","MyAccountCategoryTitle "+(n[19]?"MyAccountCategoryTitleNone":"")),gn(r,"class","MenuReturnButton "+(n[19]?"MyAccountCategoryTitleNone":"")),gn(y,"class","AccountEditLimitsIcon"),le(v,"showpopup",n[7]),le(v,"lang",n[0]),gn(g,"class","AccountEditLimitsIconWrapper"),gn(h,"class","AccountEditLimitsHeader"),gn(C,"class",E="AccountEditLimitsSaveButton "+(n[15]?"":"AccountEditLimitsButtonDisabled")),C.disabled=A=!n[15],gn(x,"class","AccountEditLimitsControlArea"),gn(i,"class","AccountEditLimitsWrapper "+(n[19]?"AccountEditLimitsMobileWrapper":"")),le(M,"modaltext",n[12]),le(M,"modalsource","groupEdit"),le(M,"lang",n[0])},m(e,t){cn(e,i,t),$&&$.m(i,null),ln(i,F),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(s,R),ln(o,l),ln(l,c),ln(c,u),ln(r,H),ln(r,d),ln(d,p),ln(i,z),ln(i,h),ln(h,m),ln(m,f),ln(h,W),ln(h,g),ln(g,y),ln(g,Y),ln(g,v),ln(i,j),I&&I.m(i,null),ln(i,b),N&&N.m(i,null),ln(i,w),O&&O.m(i,null),ln(i,_),ln(i,x),ln(x,C),ln(C,P),n[33](i),cn(e,T,t),cn(e,S,t),ln(S,M),k||(U=[fn(r,"click",n[22]),fn(y,"click",G(n[21])),fn(C,"click",n[32])],k=!0)},p(e,t){e[19]&&$.p(e,t),262144&t[0]&&D!==(D=e[18]("back")+"")&&yn(p,D),514&t[0]&&L!==(L=(e[1]?e[9]:"")+"")&&yn(f,L),128&t[0]&&le(v,"showpopup",e[7]),1&t[0]&&le(v,"lang",e[0]),e[2]?I?I.p(e,t):((I=ld(e)).c(),I.m(i,b)):I&&(I.d(1),I=null),e[3]?N?N.p(e,t):((N=cd(e)).c(),N.m(i,w)):N&&(N.d(1),N=null),e[8]?O?O.p(e,t):((O=pd(e)).c(),O.m(i,_)):O&&(O.d(1),O=null),262144&t[0]&&B!==(B=e[18]("save")+"")&&yn(P,B),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&gn(C,"class",E),32768&t[0]&&A!==(A=!e[15])&&(C.disabled=A),4096&t[0]&&le(M,"modaltext",e[12]),1&t[0]&&le(M,"lang",e[0])},i:se,o:se,d(e){e&&un(i),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),n[33](null),e&&un(T),e&&un(S),k=!1,sn(U)}}}function Pd(t,e,o){let n,{limitsdata:i=[]}=(pe(t,ge,e=>o(18,n=e)),e),{showsuccessnotification:r=!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(Zu).forEach(e=>{Xu(e,Zu[e])}),!1),g=!1,y="",v=!1,b=0,w=0,_="",N=window.navigator.userAgent,O="PC"!==ye(N),x=new Array(3).fill(0),C={},P=[],E=[],A=!1,T=[];const S={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}],k=[{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"]}],D=[{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"]}],F=[{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 L=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),B=new Map([["Deposit Limit",k],["Time Limit",R],["Wagering Limit",D],["Loss Limit",F]]),H=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},$=(n,e)=>{let i=JSON.parse(JSON.stringify(e));M.forEach(t=>{i.forEach(e=>{t.period==n.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,b=60),"Daily"===t.period?o(11,w=1440):"Weekly"==t.period?o(11,w=10080):o(11,w=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),C.forEach(i=>{E.forEach(e=>{var t,n;i.period===e.period&&(e=e,t=i,n=M,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?n.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):n.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):n.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,_=n("changeLimitsText",{values:{limit:e}}))},I=()=>{var e=l;fe.set(e),W(),o(16,T=JSON.parse(JSON.stringify(i))),o(14,C=JSON.parse(JSON.stringify(i))),E="Wagering Limit"===h?D:"Loss Limit"===h?F:"Deposit Limit"===h?k:"Time Limit"===h?R:[],z()},Y=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=n(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?{[L.get(h)]:[...P]}:{[L.get(h)]:[...C]},P.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:L.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 he(()=>(window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)})),t.$$set=e=>{"limitsdata"in e&&o(1,i=e.limitsdata),"showsuccessnotification"in e&&o(2,r=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]&&r&&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=>{Xu(e,t[e])})}).catch(e=>{console.log(e)})},[l,i,r,a,s,m,h,f,g,y,b,w,_,x,C,A,T,M,n,O,B,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},H,(e,t,n,i)=>{var r;"Custom"===e.amount?"Time Limit"==h?(o(10,b=60),"Daily"===e.period?o(11,w=1440):"Weekly"==e.period?o(11,w=10080):o(11,w=43200),e.value&&S.time.test(e.value)&&e.value>b&&e.value<=w?(o(13,x[t]=0,x),r=i[t],e.period==r.period&&e.value==r.amount?(o(15,A=!1),$(e,i)):o(15,A=!0)):(o(13,x[t]=1,x),o(15,A=!1))):e.value&&S.amount.test(e.value)?(o(13,x[t]=0,x),e.period==i[t].period&&e.value==i[t].amount?(o(15,A=!!A),$(e,i)):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==i[t].period?($(e,i),o(15,A=e.value!=i[t].amount)):o(15,A=!0),M.forEach(e=>{(0==e.value&&"true"!=c||"Custom"==e.amount&&!S.amount.test(e.value.toString()))&&o(15,A=!1)}))},c,u,d,p,function(e){M[e].amount=ve(this),o(17,M),o(20,B),o(6,h)},function(e){M[e].value=j(this.value),o(17,M),o(20,B),o(6,h)},function(e){M[e].value=j(this.value),o(17,M),o(20,B),o(6,h)},()=>H(),function(e){me[e?"unshift":"push"](()=>{m=e,o(5,m)})}]}function Ed(e,t,n){e=e.slice();return e[41]=t[n],e[43]=n,e}function Ad(e,t,n){e=e.slice();return e[41]=t[n],e[43]=n,e}function Td(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,A=(n[0]?n[15](n[1].charAt(0).toLowerCase()+n[1].substring(1).replace(/\s/g,"")):"")+"",T=n[15]("edit")+"";function S(e){return"Time Limit"===e[1]?kd:Md}let M=S(n),k=M(n),D=!n[9]&&!n[0].isModified&&n[14]&&Ud(n),L=n[11]&&Gd(n);return{c(){i=dn("div"),r=dn("div"),o=dn("div"),a=dn("h5"),s=hn(A),l=mn(),c=dn("div"),(u=dn("span")).textContent="i",d=mn(),p=dn("player-account-gaming-limits-popup"),m=mn(),f=dn("div"),g=dn("div"),y=dn("div"),k.c(),v=mn(),b=dn("div"),w=dn("button"),_=hn(T),x=mn(),D&&D.c(),C=mn(),L&&L.c(),gn(u,"class","InfoCardIcon"),le(p,"showpopup",h=n[8][0]),le(p,"lang",n[3]),le(p,"clientstyling",n[4]),le(p,"clientstylingurl",n[5]),gn(c,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":"")),gn(o,"class","InfoCardHeader "+(n[16]?"InfoCardMobileHeader":"")),gn(y,"class","InfoCardTableRow"),gn(g,"class","InfoCardTableWrapper"),gn(w,"class","InfoCardEditButton"),gn(b,"class","InfoCardControlArea"),gn(f,"class","InfoCard"),gn(r,"class","InfoCardWrapper"),gn(i,"class","InfoCardSection")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(o,l),ln(o,c),ln(c,u),ln(c,d),ln(c,p),ln(r,m),ln(r,f),ln(f,g),ln(g,y),k.m(y,null),ln(f,v),ln(f,b),ln(b,w),ln(w,_),ln(b,x),D&&D.m(b,null),ln(i,C),L&&L.m(i,null),P||(E=[fn(u,"click",G(n[23])),fn(w,"click",n[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,"")):"")+"")&&yn(s,A),256&t[0]&&h!==(h=e[8][0])&&le(p,"showpopup",h),8&t[0]&&le(p,"lang",e[3]),16&t[0]&&le(p,"clientstyling",e[4]),32&t[0]&&le(p,"clientstylingurl",e[5]),M===(M=S(e))&&k?k.p(e,t):(k.d(1),(k=M(e))&&(k.c(),k.m(y,null))),32768&t[0]&&T!==(T=e[15]("edit")+"")&&yn(_,T),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=Ud(e)).c(),D.m(b,null)),e[11]?L?L.p(e,t):((L=Gd(e)).c(),L.m(i,null)):L&&(L.d(1),L=null)},d(e){e&&un(i),k.d(),D&&D.d(),L&&L.d(),P=!1,sn(E)}}}function Sd(e){let n;return{c(){gn(n=dn("div"),"class","ModalLoader")},m(e,t){cn(e,n,t)},p:se,d(e){e&&un(n)}}}function Md(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Nd(Ed(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);cn(t,r,n)},p(t,n){if(3375423&n[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var i=Ed(t,o,e);a[e]?a[e].p(i,n):(a[e]=Nd(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){vn(a,e),e&&un(r)}}}function kd(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=jd(Ad(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);cn(t,r,n)},p(t,n){if(3375419&n[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var i=Ad(t,o,e);a[e]?a[e].p(i,n):(a[e]=jd(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){vn(a,e),e&&un(r)}}}function Dd(e){let n,i,r=(e[41]?e[41].currency:"")+"";return{c(){n=dn("span"),i=hn(r),gn(n,"class","InfoCardCurrency")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Ld(e){let n,i,r=e[15]("notAvailable")+"";return{c(){n=dn("div"),i=hn(r),gn(n,"class","InfoCardRowValue")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Bd(e){let n,i,r=(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(){n=dn("div"),i=hn(r),gn(n,"class","InfoCardRowValue")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){1&t[0]&&r!==(r=(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")+"")&&yn(i,r)},d(e){e&&un(n)}}}function $d(n){let i,r,o,a,s,l,c,u;function d(){return n[25](n[43])}return{c(){i=dn("div"),(r=dn("span")).textContent="i",o=mn(),a=dn("player-account-gaming-limits-popup"),gn(r,"class","InfoCardIcon"),le(a,"showpopup",s=n[8][n[43]+1]),le(a,"iteminfoamount",l=n[41].updateAmount),le(a,"playercurrency",n[2]),le(a,"lang",n[3]),le(a,"clientstyling",n[4]),le(a,"clientstylingurl",n[5]),gn(i,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":""))},m(e,t){cn(e,i,t),ln(i,r),ln(i,o),ln(i,a),c||(u=fn(r,"click",G(d)),c=!0)},p(e,t){n=e,256&t[0]&&s!==(s=n[8][n[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=n[41].updateAmount)&&le(a,"iteminfoamount",l),4&t[0]&&le(a,"playercurrency",n[2]),8&t[0]&&le(a,"lang",n[3]),16&t[0]&&le(a,"clientstyling",n[4]),32&t[0]&&le(a,"clientstylingurl",n[5])},d(e){e&&un(i),c=!1,u()}}}function Id(n){let i,r,o;return{c(){(i=dn("div")).innerHTML="<span></span>",gn(i,"class","InfoCardRemoveIcon")},m(e,t){cn(e,i,t),r||(o=fn(i,"click",function(){ue(n[20](n[41],n[1]))&&n[20](n[41],n[1]).apply(this,arguments)}),r=!0)},p(e,t){n=e},d(e){e&&un(i),r=!1,o()}}}function Nd(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",w=(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=_&&Dd(e);function P(e){return e[41].expiryDate?Bd:Ld}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)?Id:"No limit"!=e[41].amount&&e[41].isModified?$d:void 0}let S=T(e,[-1,-1]),M=S&&S(e);return{c(){n=dn("div"),i=dn("div"),r=dn("div"),o=dn("div"),a=hn(b),s=mn(),l=dn("div"),c=hn(w),u=mn(),C&&C.c(),d=mn(),p=dn("div"),h=dn("div"),m=hn(x),f=mn(),A.c(),g=mn(),M&&M.c(),v=mn(),gn(o,"class","InfoCardRowTitle"),gn(l,"class","InfoCardRowValue"),gn(r,"class","InfoCardRow InfoMainRow"),gn(h,"class","InfoCardRowTitle"),gn(p,"class","InfoCardRow"),gn(i,"class","InfoCardRowContainer"),gn(n,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(r,o),ln(o,a),ln(r,s),ln(r,l),ln(l,c),ln(l,u),C&&C.m(l,null),ln(i,d),ln(i,p),ln(p,h),ln(h,m),ln(p,f),A.m(p,null),ln(n,g),M&&M.m(n,null),ln(n,v)},p(e,t){32769&t[0]&&b!==(b=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yn(a,b),32769&t[0]&&w!==(w=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yn(c,w),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):_)?C?C.p(e,t):((C=Dd(e)).c(),C.m(l,null)):C&&(C.d(1),C=null),32768&t[0]&&x!==(x=e[15]("expirationDate")+"")&&yn(m,x),E===(E=P(e))&&A?A.p(e,t):(A.d(1),(A=E(e))&&(A.c(),A.m(p,null))),S===(S=T(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=S&&S(e))&&(M.c(),M.m(n,v)))},d(e){e&&un(n),C&&C.d(),A.d(),M&&M.d()}}}function Od(e){let n,i,r=e[15]("noLimit")+"";return{c(){n=dn("span"),i=hn(r),gn(n,"class","InfoCardCurrency")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("noLimit")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Fd(e){let n,i,r,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&&Rd(e);return{c(){n=hn(o),i=mn(),s&&s.c(),r=I()},m(e,t){cn(e,n,t),cn(e,i,t),s&&s.m(e,t),cn(e,r,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("noLimit"):e[41].amount:0)+"")&&yn(n,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("noLimit"):a)?s?s.p(e,t):((s=Rd(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&un(n),e&&un(i),s&&s.d(e),e&&un(r)}}}function Rd(e){let n,i,r=e[15]("minutes")+"";return{c(){n=dn("span"),i=hn(r),gn(n,"class","InfoCardCurrency")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("minutes")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Hd(e){let n,i,r=e[15]("notAvailable")+"";return{c(){n=dn("div"),i=hn(r),gn(n,"class","InfoCardRowValue")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){32768&t[0]&&r!==(r=e[15]("notAvailable")+"")&&yn(i,r)},d(e){e&&un(n)}}}function zd(e){let n,i,r=(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(){n=dn("div"),i=hn(r),gn(n,"class","InfoCardRowValue")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){1&t[0]&&r!==(r=(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")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Wd(n){let i,r,o,a,s,l,c,u,d;function p(){return n[24](n[43])}return{c(){i=dn("div"),(r=dn("span")).textContent="i",o=mn(),a=dn("player-account-gaming-limits-popup"),gn(r,"class","InfoCardIcon"),le(a,"showpopup",s=n[8][n[43]+1]),le(a,"iteminfoamount",l=n[41].updateMinutes),le(a,"playercurrency",c=n[15]("minutes")),le(a,"lang",n[3]),le(a,"clientstyling",n[4]),le(a,"clientstylingurl",n[5]),gn(i,"class","InfoCardIconWrapper "+(n[16]?"InfoCardIconMobileWrapper":""))},m(e,t){cn(e,i,t),ln(i,r),ln(i,o),ln(i,a),u||(d=fn(r,"click",G(p)),u=!0)},p(e,t){n=e,256&t[0]&&s!==(s=n[8][n[43]+1])&&le(a,"showpopup",s),1&t[0]&&l!==(l=n[41].updateMinutes)&&le(a,"iteminfoamount",l),32768&t[0]&&c!==(c=n[15]("minutes"))&&le(a,"playercurrency",c),8&t[0]&&le(a,"lang",n[3]),16&t[0]&&le(a,"clientstyling",n[4]),32&t[0]&&le(a,"clientstylingurl",n[5])},d(e){e&&un(i),u=!1,d()}}}function Yd(n){let i,r,o;return{c(){(i=dn("div")).innerHTML="<span></span>",gn(i,"class","InfoCardRemoveIcon")},m(e,t){cn(e,i,t),r||(o=fn(i,"click",function(){ue(n[20](n[41],n[1]))&&n[20](n[41],n[1]).apply(this,arguments)}),r=!0)},p(e,t){n=e},d(e){e&&un(i),r=!1,o()}}}function jd(e){let n,i,r,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 b(e){return 0!==e[41].amount?Fd:Od}let w=b(e),_=w(e);function x(e){return e[41].expiryDate?zd:Hd}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)?Yd:"No limit"!=e[41].amount&&e[41].isModified?Wd:void 0}let A=E(e,[-1,-1]),T=A&&A(e);return{c(){n=dn("div"),i=dn("div"),r=dn("div"),o=dn("div"),a=hn(y),s=mn(),l=dn("div"),_.c(),c=mn(),u=dn("div"),d=dn("div"),p=hn(v),h=mn(),P.c(),m=mn(),T&&T.c(),g=mn(),gn(o,"class","InfoCardRowTitle"),gn(l,"class","InfoCardRowValue"),gn(r,"class","InfoCardRow InfoMainRow"),gn(d,"class","InfoCardRowTitle"),gn(u,"class","InfoCardRow"),gn(i,"class","InfoCardRowContainer"),gn(n,"class","InfoCardBox InfoCardMultipleItems")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(r,o),ln(o,a),ln(r,s),ln(r,l),_.m(l,null),ln(i,c),ln(i,u),ln(u,d),ln(d,p),ln(u,h),P.m(u,null),ln(n,m),T&&T.m(n,null),ln(n,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15](e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&yn(a,y),w===(w=b(e))&&_?_.p(e,t):(_.d(1),(_=w(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("expirationDate")+"")&&yn(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(n,g)))},d(e){e&&un(n),_.d(),P.d(),T&&T.d()}}}function Ud(n){let i,r,o,a,s=n[15]("removeLimits")+"";return{c(){i=dn("button"),r=hn(s),gn(i,"class","InfoCardRemoveButton")},m(e,t){cn(e,i,t),ln(i,r),o||(a=fn(i,"click",n[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("removeLimits")+"")&&yn(r,s)},d(e){e&&un(i),o=!1,a()}}}function Gd(e){let n,i,r;return{c(){n=dn("player-account-modal"),le(i=dn("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),le(i,"modalsource","infoCard"),le(i,"lang",e[3]),le(i,"clientstyling",e[4]),le(i,"clientstylingurl",e[5]),le(n,"clientstyling",e[4]),le(n,"clientstylingurl",e[5])},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&le(i,"modaltext",r),8&t[0]&&le(i,"lang",e[3]),16&t[0]&&le(i,"clientstyling",e[4]),32&t[0]&&le(i,"clientstylingurl",e[5]),16&t[0]&&le(n,"clientstyling",e[4]),32&t[0]&&le(n,"clientstylingurl",e[5])},d(e){e&&un(n)}}}function Vd(n){let i;function r(e){return e[7]?Sd:Td}let o=r(n),a=o(n);return{c(){i=dn("div"),a.c(),this.c=se},m(e,t){cn(e,i,t),a.m(i,null),n[28](i)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&un(i),a.d(),n[28](null)}}}function qd(i,e,r){let o,{limitsdata:a=[]}=(pe(i,ge,e=>r(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(zu).forEach(e=>{Hu(e,zu[e])});let p,h=!0,n=new Array(5).fill(0),m=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,b="PC"!==ye(v),w="",_="",x=!0,C=W();const P=e=>{window.postMessage({type:"EditPlayerAccountGamingLimits",edit:e,name:s},window.location.href)},E=e=>{r(11,y=!0),r(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(()=>{r(8,n[e]=!0,n)},50)},T=(e,t,n,i)=>{e.splice(t,0,"time"===i?{period:n,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:n,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},S=(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":r(8,n=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return he(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})),i.$$set=e=>{"limitsdata"in e&&r(0,a=e.limitsdata),"limitname"in e&&r(1,s=e.limitname),"playercurrency"in e&&r(2,t=e.playercurrency),"lang"in e&&r(3,l=e.lang),"clientstyling"in e&&r(4,c=e.clientstyling),"clientstylingurl"in e&&r(5,u=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},i.$$.update=()=>{if(11&i.$$.dirty[0]&&a&&s&&l){var e=l;fe.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,w=o("removeLimitsText",{values:{limit:e}})),r(13,_=o("removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(14,x=!1)});{var n=a;const t=m;m.forEach((t,e)=>{n.find(e=>e.period===t)&&(m=m.filter(e=>e!==t)),n.forEach(e=>{e.period===t&&"No limit"!==e.amount&&r(9,f=!1)}),r(7,h=!1)}),m.forEach(e=>{"Time Limit"===n.name?T(n,t.indexOf(e),e,"time"):T(n,t.indexOf(e),e,"currency")})}a.sort(S)}if(80&i.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),96&i.$$.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&i.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Hu(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,c,u,p,h,n,f,g,y,w,_,x,o,b,C,P,E,(e,t)=>{r(11,y=!0),r(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){me[e?"unshift":"push"](()=>{p=e,r(6,p)})}]}function Xd(e){let n;return{c(){le(n=dn("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),le(n,"limitname",e[14]),le(n,"showsuccessnotification",e[7]),le(n,"showdeletenotification",e[6]),le(n,"playercurrency",e[5]),le(n,"lang",e[0]),le(n,"separatelimits",e[8]),le(n,"clientstyling",e[9]),le(n,"clientstylingurl",e[10])},m(e,t){cn(e,n,t)},p(e,t){8192&t&&le(n,"limitsdata",e[13]),16384&t&&le(n,"limitname",e[14]),128&t&&le(n,"showsuccessnotification",e[7]),64&t&&le(n,"showdeletenotification",e[6]),32&t&&le(n,"playercurrency",e[5]),1&t&&le(n,"lang",e[0]),256&t&&le(n,"separatelimits",e[8]),512&t&&le(n,"clientstyling",e[9]),1024&t&&le(n,"clientstylingurl",e[10])},d(e){e&&un(n)}}}function Zd(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f=e[16]("gamingLimitsText")+"",g=e[17]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[16]("gamingLimitsText")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","PlayerGamingLimitsTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[21]),m=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimitsText")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(e);return{c(){n=dn("div"),g&&g.c(),i=mn(),r=dn("h2"),o=hn(f),a=mn(),s=dn("div"),l=dn("player-account-gaming-limits-info-card"),c=mn(),u=dn("player-account-gaming-limits-info-card"),d=mn(),p=dn("player-account-gaming-limits-info-card"),h=mn(),m=dn("player-account-gaming-limits-info-card"),gn(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),le(l,"limitsdata",e[1]),le(l,"limitname",Qd),le(l,"playercurrency",e[5]),le(l,"lang",e[0]),le(l,"clientstyling",e[9]),le(l,"clientstylingurl",e[10]),le(u,"limitsdata",e[2]),le(u,"limitname",ep),le(u,"playercurrency",e[5]),le(u,"lang",e[0]),le(u,"clientstyling",e[9]),le(u,"clientstylingurl",e[10]),le(p,"limitsdata",e[3]),le(p,"limitname",tp),le(p,"playercurrency",e[5]),le(p,"lang",e[0]),le(p,"clientstyling",e[9]),le(p,"clientstylingurl",e[10]),le(m,"limitsdata",e[4]),le(m,"limitname",np),le(m,"playercurrency",e[5]),le(m,"lang",e[0]),le(m,"clientstyling",e[9]),le(m,"clientstylingurl",e[10]),gn(s,"class","PlayerAccountGamingLimitsContainer"),gn(n,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){cn(e,n,t),g&&g.m(n,null),ln(n,i),ln(n,r),ln(r,o),ln(n,a),ln(n,s),ln(s,l),ln(s,c),ln(s,u),ln(s,d),ln(s,p),ln(s,h),ln(s,m)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimitsText")+"")&&yn(o,f),2&t&&le(l,"limitsdata",e[1]),32&t&&le(l,"playercurrency",e[5]),1&t&&le(l,"lang",e[0]),512&t&&le(l,"clientstyling",e[9]),1024&t&&le(l,"clientstylingurl",e[10]),4&t&&le(u,"limitsdata",e[2]),32&t&&le(u,"playercurrency",e[5]),1&t&&le(u,"lang",e[0]),512&t&&le(u,"clientstyling",e[9]),1024&t&&le(u,"clientstylingurl",e[10]),8&t&&le(p,"limitsdata",e[3]),32&t&&le(p,"playercurrency",e[5]),1&t&&le(p,"lang",e[0]),512&t&&le(p,"clientstyling",e[9]),1024&t&&le(p,"clientstylingurl",e[10]),16&t&&le(m,"limitsdata",e[4]),32&t&&le(m,"playercurrency",e[5]),1&t&&le(m,"lang",e[0]),512&t&&le(m,"clientstyling",e[9]),1024&t&&le(m,"clientstylingurl",e[10])},d(e){e&&un(n),g&&g.d()}}}function Jd(e){let n;return{c(){gn(n=dn("div"),"class","ModalLoader")},m(e,t){cn(e,n,t)},p:se,d(e){e&&un(n)}}}function Kd(n){let i;function r(e){return e[12]?Jd:e[15]?Zd:Xd}let o=r(n),a=o(n);return{c(){i=dn("div"),a.c(),this.c=se},m(e,t){cn(e,i,t),a.m(i,null),n[22](i)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&un(i),a.d(),n[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends t{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-orange-500, #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-pink-500, #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-pink-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},rd,id,n,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&cn(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".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;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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-dunkel, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Pd,Cd,n,{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&&cn(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 t{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-pink-500, #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-orange-500, #FD2839));border:1px solid var(--emfe-w-color-secondary, var(--emfe-w-color-orange-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},qd,Vd,n,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&cn(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 Qd="Deposit Limit",ep="Wagering Limit",tp="Loss Limit",np="Time Limit";function ip(t,e,n){let i,r=(pe(t,ge,e=>n(16,i=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(Ru).forEach(e=>{Fu(e,Ru[e])});let y,v=!0,b=window.navigator.userAgent,w="PC"!==ye(b),_="",x=!0;const C=window.matchMedia("(min-width: 768px)"),P=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:w},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":n(0,u=e.data.limits.lang),n(1,r=e.data.limits.depositlimit),n(2,o=e.data.limits.wageringlimit),n(3,a=e.data.limits.losslimit),n(4,s=e.data.limits.timelimit),n(12,v=!1);break;case"EditPlayerAccountGamingLimits":n(13,y=e.data.edit),n(14,_=e.data.name),n(15,x=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":n(15,x=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;n(5,d=t.currency)}};return he(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&n(1,r=e.depositlimit),"wageringlimit"in e&&n(2,o=e.wageringlimit),"losslimit"in e&&n(3,a=e.losslimit),"timelimit"in e&&n(4,s=e.timelimit),"showdeletenotification"in e&&n(6,l=e.showdeletenotification),"showsuccessnotification"in e&&n(7,c=e.showsuccessnotification),"lang"in e&&n(0,u=e.lang),"playercurrency"in e&&n(5,d=e.playercurrency),"separatelimits"in e&&n(8,p=e.separatelimits),"clientstyling"in e&&n(9,h=e.clientstyling),"clientstylingurl"in e&&n(10,m=e.clientstylingurl),"translationurl"in e&&n(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&u&&(e=u,fe.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=>{Fu(e,t[e])})}).catch(e=>{console.log(e)})},[u,r,o,a,s,d,l,c,p,h,m,g,v,y,_,x,i,w,C,P,f,()=>P(),function(e){me[e?"unshift":"push"](()=>{g=e,n(11,g)})}]}function rp(e,t){a(e,t)}customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.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))}.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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},ip,Kd,n,{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&&cn(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 op={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 ap(e,t){a(e,t)}const sp={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 lp(e){let n,i,r,o,a,s,l,c,u=e[9]("bonusAmount")+"";return{c(){n=dn("div"),i=dn("p"),r=hn(u),o=mn(),a=dn("p"),s=hn(e[3]),l=mn(),c=hn(e[6]),gn(i,"class","BonusCardRowTitle"),gn(a,"class","BonusCardRowText"),gn(n,"class","BonusCardRow")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(n,o),ln(n,a),ln(a,s),ln(a,l),ln(a,c)},p(e,t){512&t&&u!==(u=e[9]("bonusAmount")+"")&&yn(r,u),8&t&&yn(s,e[3]),64&t&&yn(c,e[6])},d(e){e&&un(n)}}}function cp(e){let n,i,r,o,a,s,l,c,u=e[9]("wageringAmount")+"";return{c(){n=dn("div"),i=dn("p"),r=hn(u),o=mn(),a=dn("p"),s=hn(e[4]),l=mn(),c=hn(e[6]),gn(i,"class","BonusCardRowTitle"),gn(a,"class","BonusCardRowText"),gn(n,"class","BonusCardRow")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(n,o),ln(n,a),ln(a,s),ln(a,l),ln(a,c)},p(e,t){512&t&&u!==(u=e[9]("wageringAmount")+"")&&yn(r,u),16&t&&yn(s,e[4]),64&t&&yn(c,e[6])},d(e){e&&un(n)}}}function up(e){let n,i,r,o,a,s,l,c,u=e[9]("remainingBonus")+"";return{c(){n=dn("div"),i=dn("p"),r=hn(u),o=mn(),a=dn("p"),s=hn(e[5]),l=mn(),c=hn(e[6]),gn(i,"class","BonusCardRowTitle"),gn(a,"class","BonusCardRowText"),gn(n,"class","BonusCardRow")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(n,o),ln(n,a),ln(a,s),ln(a,l),ln(a,c)},p(e,t){512&t&&u!==(u=e[9]("remainingBonus")+"")&&yn(r,u),32&t&&yn(s,e[5]),64&t&&yn(c,e[6])},d(e){e&&un(n)}}}function dp(n){let i,r,o,a,s=n[9]("forfeitBonus")+"";return{c(){i=dn("button"),r=hn(s),gn(i,"class","DeleteBonus "+(n[10]?"DeleteBonusMobile":""))},m(e,t){cn(e,i,t),ln(i,r),o||(a=fn(i,"click",n[11]),o=!0)},p(e,t){512&t&&s!==(s=e[9]("forfeitBonus")+"")&&yn(r,s)},d(e){e&&un(i),o=!1,a()}}}function pp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,F,x,C,P,R,E,A,H,T,S,z,M=n[9]("date")+"",k=W(n[0]).format("DD/MM/YYYY h:mm A")+"",D=n[9](""+n[1])+"",L=n[9]("bonusName")+"",B=n[9]("bonusType")+"",$=n[3]&&lp(n),I=n[4]&&cp(n),N=n[5]&&up(n),O="active"===n[1]&&dp(n);return{c(){i=dn("div"),r=dn("div"),o=dn("div"),a=dn("p"),s=hn(M),l=mn(),c=dn("span"),u=hn(k),d=mn(),p=dn("p"),h=hn(D),f=mn(),g=dn("div"),y=dn("p"),v=hn(L),b=mn(),w=dn("p"),_=hn(n[2]),F=mn(),x=dn("div"),C=dn("p"),P=hn(B),R=mn(),E=dn("p"),A=hn(n[8]),H=mn(),$&&$.c(),T=mn(),I&&I.c(),S=mn(),N&&N.c(),z=mn(),O&&O.c(),this.c=se,gn(a,"class","BonusCardRowTitle"),gn(p,"class",m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===n[1]||"released"===n[1]?"StatusActive":"")+" "+("expired"===n[1]?"StatusExpired":"")+" "+("forfeited"===n[1]?"StatusForfeited":"")),gn(o,"class","BonusCardRow"),gn(y,"class","BonusCardRowTitle"),gn(w,"class","BonusCardRowText"),gn(g,"class","BonusCardRow"),gn(C,"class","BonusCardRowTitle"),gn(E,"class","BonusCardRowText TextCapitalize"),gn(x,"class","BonusCardRow"),gn(r,"class","BonusCardInfo"),gn(i,"class","BonusCard")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(a,l),ln(a,c),ln(c,u),ln(o,d),ln(o,p),ln(p,h),ln(r,f),ln(r,g),ln(g,y),ln(y,v),ln(g,b),ln(g,w),ln(w,_),ln(r,F),ln(r,x),ln(x,C),ln(C,P),ln(x,R),ln(x,E),ln(E,A),ln(r,H),$&&$.m(r,null),ln(r,T),I&&I.m(r,null),ln(r,S),N&&N.m(r,null),ln(i,z),O&&O.m(i,null),n[18](i)},p(e,[t]){512&t&&M!==(M=e[9]("date")+"")&&yn(s,M),1&t&&k!==(k=W(e[0]).format("DD/MM/YYYY h:mm A")+"")&&yn(u,k),514&t&&D!==(D=e[9](""+e[1])+"")&&yn(h,D),2&t&&m!==(m="BonusCardRowText BonusCardStatus TextCapitalize "+("active"===e[1]||"released"===e[1]?"StatusActive":"")+" "+("expired"===e[1]?"StatusExpired":"")+" "+("forfeited"===e[1]?"StatusForfeited":""))&&gn(p,"class",m),512&t&&L!==(L=e[9]("bonusName")+"")&&yn(v,L),4&t&&yn(_,e[2]),512&t&&B!==(B=e[9]("bonusType")+"")&&yn(P,B),256&t&&yn(A,e[8]),e[3]?$?$.p(e,t):(($=lp(e)).c(),$.m(r,T)):$&&($.d(1),$=null),e[4]?I?I.p(e,t):((I=cp(e)).c(),I.m(r,S)):I&&(I.d(1),I=null),e[5]?N?N.p(e,t):((N=up(e)).c(),N.m(r,null)):N&&(N.d(1),N=null),"active"===e[1]?O?O.p(e,t):((O=dp(e)).c(),O.m(i,null)):O&&(O.d(1),O=null)},i:se,o:se,d(e){e&&un(i),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),n[18](null)}}}function hp(t,e,n){let i;pe(t,ge,e=>n(9,i=e));let r,{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,b="PC"!==ye(v),w="";Object.keys(sp).forEach(e=>{ap(e,sp[e])});return t.$$set=e=>{"bonuswalletid"in e&&n(12,o=e.bonuswalletid),"bonusdate"in e&&n(0,a=e.bonusdate),"bonusstatus"in e&&n(1,s=e.bonusstatus),"bonusname"in e&&n(2,l=e.bonusname),"bonustype"in e&&n(13,c=e.bonustype),"bonusamount"in e&&n(3,u=e.bonusamount),"bonuswageringamount"in e&&n(4,d=e.bonuswageringamount),"bonusremainingamount"in e&&n(5,p=e.bonusremainingamount),"bonuscurrency"in e&&n(6,h=e.bonuscurrency),"lang"in e&&n(14,m=e.lang),"clientstyling"in e&&n(15,f=e.clientstyling),"clientstylingurl"in e&&n(16,g=e.clientstylingurl),"translationurl"in e&&n(17,y=e.translationurl)},t.$$.update=()=>{if(16384&t.$$.dirty&&m&&(e=m,fe.set(e)),8192&t.$$.dirty&&c&&(n(8,w=c),"freeRound"===w?n(8,w="Free Spins"):"freeBet"===w&&n(8,w="Free Bet")),65664&t.$$.dirty&&g&&r){let e=new URL(g),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;32896&t.$$.dirty&&f&&r&&((e=document.createElement("style")).innerHTML=f,r.appendChild(e)),131072&t.$$.dirty&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ap(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,l,u,d,p,h,r,w,i,b,()=>{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"](()=>{r=e,n(7,r)})}]}function mp(e,t,n){e=e.slice();return e[43]=t[n],e[45]=n,e}function fp(e,t,n){e=e.slice();return e[46]=t[n],e}function gp(e){let n,i,r=e[14]("invalidBonusCode")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidBonusCodeMessage")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("invalidBonusCode")+"")&&yn(i,r)},d(e){e&&un(n)}}}function yp(t){let r,o=t[12],a=[];for(let e=0;e<o.length;e+=1)a[e]=_p(fp(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);cn(t,r,n)},p(t,n){if(4103&n[0]){let e;for(o=t[12],e=0;e<o.length;e+=1){var i=fp(t,o,e);a[e]?a[e].p(i,n):(a[e]=_p(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){vn(a,e),e&&un(r)}}}function vp(e){let n,i,r=e[14]("noActiveBonuses")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noActiveBonuses")+"")&&yn(i,r)},d(e){e&&un(n)}}}function bp(e){let n,i,r,o,a,s,l,c,u,d;return{c(){le(n=dn("player-bonus-card"),"bonuswalletid",i=e[46].walletId),le(n,"bonusdate",r=e[46].granted),le(n,"bonusstatus",o=e[46].status),le(n,"bonusname",a=e[46].name),le(n,"bonustype",s=e[46].type),le(n,"bonusamount",l=e[46].grantedAmount),le(n,"bonuswageringamount",c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement),le(n,"bonusremainingamount",u=e[46].currentAmount),le(n,"bonuscurrency",d=e[46].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){cn(e,n,t)},p(e,t){4096&t[0]&&i!==(i=e[46].walletId)&&le(n,"bonuswalletid",i),4096&t[0]&&r!==(r=e[46].granted)&&le(n,"bonusdate",r),4096&t[0]&&o!==(o=e[46].status)&&le(n,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(n,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(n,"bonustype",s),4096&t[0]&&l!==(l=e[46].grantedAmount)&&le(n,"bonusamount",l),4096&t[0]&&c!==(c=e[46].fulfilledWR+" / "+e[46].originalWageringRequirement)&&le(n,"bonuswageringamount",c),4096&t[0]&&u!==(u=e[46].currentAmount)&&le(n,"bonusremainingamount",u),4096&t[0]&&d!==(d=e[46].currency)&&le(n,"bonuscurrency",d),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&un(n)}}}function wp(e){let n,i,r,o,a,s,l;return{c(){le(n=dn("player-bonus-card"),"bonuswalletid",i=e[46].walletId),le(n,"bonusdate",r=e[46].granted),le(n,"bonusstatus",o=e[46].status),le(n,"bonusname",a=e[46].name),le(n,"bonustype",s=e[46].type),le(n,"bonuscurrency",l=e[46].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){cn(e,n,t)},p(e,t){4096&t[0]&&i!==(i=e[46].walletId)&&le(n,"bonuswalletid",i),4096&t[0]&&r!==(r=e[46].granted)&&le(n,"bonusdate",r),4096&t[0]&&o!==(o=e[46].status)&&le(n,"bonusstatus",o),4096&t[0]&&a!==(a=e[46].name)&&le(n,"bonusname",a),4096&t[0]&&s!==(s=e[46].type)&&le(n,"bonustype",s),4096&t[0]&&l!==(l=e[46].currency)&&le(n,"bonuscurrency",l),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&un(n)}}}function _p(e){let n;function i(e){return"freeRound"===e[46].type?wp:bp}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function xp(n){let i,r,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(n[10]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Cp(mp(n,_,e));return{c(){i=dn("div"),r=dn("span"),o=hn("|<"),s=mn(),l=dn("span"),c=hn("<"),u=mn();for(let e=0;e<x.length;e+=1)x[e].c();d=mn(),p=dn("span"),h=hn(">"),f=mn(),g=dn("span"),y=hn(">|"),gn(r,"class",a="BonusesFirst "+(0===n[11]?"Inactive":"")),gn(l,"class",e="BonusesPrev "+(0===n[11]?"Inactive":"")),gn(p,"class",m="BonusesNext "+(n[11]===n[10]-1?"Inactive":"")),gn(g,"class",v="BonusesLast "+(n[11]===n[10]-1?"Inactive":"")),gn(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(i,s),ln(i,l),ln(l,c),ln(i,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(i,null);ln(i,d),ln(i,p),ln(p,h),ln(i,f),ln(i,g),ln(g,y),b||(w=[fn(r,"click",n[29]),fn(l,"click",n[30]),fn(p,"click",n[32]),fn(g,"click",n[33])],b=!0)},p(t,n){if(2048&n[0]&&a!==(a="BonusesFirst "+(0===t[11]?"Inactive":""))&&gn(r,"class",a),2048&n[0]&&e!==(e="BonusesPrev "+(0===t[11]?"Inactive":""))&&gn(l,"class",e),265216&n[0]){let e;for(_=Array(t[10]),e=0;e<_.length;e+=1){const a=mp(t,_,e);x[e]?x[e].p(a,n):(x[e]=Cp(a),x[e].c(),x[e].m(i,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}3072&n[0]&&m!==(m="BonusesNext "+(t[11]===t[10]-1?"Inactive":""))&&gn(p,"class",m),3072&n[0]&&v!==(v="BonusesLast "+(t[11]===t[10]-1?"Inactive":""))&&gn(g,"class",v)},d(e){e&&un(i),vn(x,e),b=!1,sn(w)}}}function Cp(n){let i,r,o,a,s,e=n[45]+1+"";function l(){return n[31](n[45])}return{c(){i=dn("span"),r=hn(e),gn(i,"class",o="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))},m(e,t){cn(e,i,t),ln(i,r),a||(s=fn(i,"click",l),a=!0)},p(e,t){n=e,2048&t[0]&&o!==(o="BonusesPage "+(n[45]===n[11]?"BonusPageActive":""))&&gn(i,"class",o)},d(e){e&&un(i),a=!1,s()}}}function Pp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[14]("forfeitBonus")+"",v=n[14]("forfeitBonusCancel")+"",b=n[14]("forfeitBonusConfirm")+"";return{c(){i=dn("div"),r=dn("div"),o=dn("div"),a=dn("p"),s=hn(y),l=mn(),c=dn("div"),u=dn("button"),d=hn(v),p=mn(),h=dn("button"),m=hn(b),gn(a,"class","ModalText"),gn(u,"class","ModalCancel"),gn(h,"class","ModalConfirm"),gn(c,"class","ModalButtons"),gn(o,"class","ModalBody"),gn(r,"class","ModalContent"),gn(i,"class","ModalWrapper "+(n[15]?"ModalWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(o,l),ln(o,c),ln(c,u),ln(u,d),ln(c,p),ln(c,h),ln(h,m),f||(g=[fn(u,"click",n[20]),fn(h,"click",n[21])],f=!0)},p(e,t){16384&t[0]&&y!==(y=e[14]("forfeitBonus")+"")&&yn(s,y),16384&t[0]&&v!==(v=e[14]("forfeitBonusCancel")+"")&&yn(d,v),16384&t[0]&&b!==(b=e[14]("forfeitBonusConfirm")+"")&&yn(m,b)},d(e){e&&un(i),f=!1,sn(g)}}}function Ep(n){let i,r=function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E=n[14]("title")+"",A=n[14]("bonusCode")+"",T=n[14]("getBonus")+"",S=n[15]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","ActiveBonusesTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[27]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),M=n[5]&&gp(n);function k(e){return 0===e[12].length?vp:yp}let D=k(n),L=D(n),B=0!==n[12].length&&xp(n),$=n[13]&&Pp(n);return{c(){i=dn("div"),S&&S.c(),r=mn(),o=dn("h2"),a=hn(E),s=mn(),l=dn("div"),c=dn("label"),u=hn(A),d=mn(),p=dn("div"),h=dn("input"),m=mn(),f=dn("button"),g=hn(T),y=mn(),M&&M.c(),v=mn(),b=dn("div"),L.c(),w=mn(),B&&B.c(),_=mn(),$&&$.c(),x=I(),gn(o,"class","ActiveBonusesTitle "+(n[15]?"ActiveBonusesTitleNone":"")),gn(c,"for","BonusCode"),gn(h,"class","BonusCodeInput "+(n[15]?"BonusCodeInputMobile":"")),gn(h,"type","text"),gn(h,"id","BonusCode"),gn(f,"class","SubmitBonusCode "+(n[15]?"SubmitBonusCodeMobile":"")),f.disabled=n[4],gn(p,"class","BonusCodeWrapper "+(n[15]?"BonusCodeWrapperMobile":"")),gn(l,"class","BonusCodeContainer "+(n[15]?"BonusCodeContainerMobile":"")),gn(b,"class","ActiveBonusesGrid "+(n[15]?"ActiveBonusesGridMobile":"")),gn(i,"class","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":"")),gn(i,"part","ActiveBonusesWrapper "+(n[15]?"ActiveBonusesWrapperMobile":""))},m(e,t){cn(e,i,t),S&&S.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),ln(i,l),ln(l,c),ln(c,u),ln(l,d),ln(l,p),ln(p,h),bn(h,n[6]),ln(p,m),ln(p,f),ln(f,g),ln(l,y),M&&M.m(l,null),ln(i,v),ln(i,b),L.m(b,null),ln(i,w),B&&B.m(i,null),cn(e,_,t),$&&$.m(e,t),cn(e,x,t),C||(P=[fn(h,"input",n[28]),fn(h,"keyup",n[17]),fn(f,"click",n[19])],C=!0)},p(e,t){e[15]&&S.p(e,t),16384&t[0]&&E!==(E=e[14]("title")+"")&&yn(a,E),16384&t[0]&&A!==(A=e[14]("bonusCode")+"")&&yn(u,A),64&t[0]&&h.value!==e[6]&&bn(h,e[6]),16384&t[0]&&T!==(T=e[14]("getBonus")+"")&&yn(g,T),16&t[0]&&(f.disabled=e[4]),e[5]?M?M.p(e,t):((M=gp(e)).c(),M.m(l,null)):M&&(M.d(1),M=null),D===(D=k(e))&&L?L.p(e,t):(L.d(1),(L=D(e))&&(L.c(),L.m(b,null))),0!==e[12].length?B?B.p(e,t):((B=xp(e)).c(),B.m(i,null)):B&&(B.d(1),B=null),e[13]?$?$.p(e,t):(($=Pp(e)).c(),$.m(x.parentNode,x)):$&&($.d(1),$=null)},d(e){e&&un(i),S&&S.d(),M&&M.d(),L.d(),B&&B.d(),e&&un(_),$&&$.d(e),e&&un(x),C=!1,sn(P)}}}(n);return{c(){i=dn("div"),r.c(),this.c=se},m(e,t){cn(e,i,t),r.m(i,null),n[34](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&un(i),r.d(),n[34](null)}}}function Ap(t,e,i){let n;pe(t,ge,e=>i(14,n=e));let r,{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"!==ye(h),f,g=!1,y="",v=0,b=0,w=0,_=0,x=0,C=[],P="",E=!1;Object.keys(op).forEach(e=>{rp(e,op[e])});const A=e=>{e.data&&"DeleteActiveBonus"===e.data.type&&(P=e.data.bonuswalletid,i(13,E=!0))},T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=t=>{var e={method:"GET",headers:{"X-SessionId":a}},n=new URL(`${o}/player/${s}/bonusWallet`);n.searchParams.append("filter","status=active"),n.searchParams.append("pagination",`offset=${t},limit=6`),fetch(n,e).then(e=>e.json()).then(e=>{i(10,_=Math.ceil(e.total/6)),0<=t-6&&i(7,v=t-6),t+6<e.total&&i(8,b=t+6),i(9,w=6*(_-1)),i(11,x=t/6),i(12,C=e.items)},e=>{console.error(e)})},M=()=>{window.postMessage({type:"EnableScroll"},window.location.href),i(13,E=!1)};return he(()=>(window.addEventListener("message",A,!1),()=>{window.removeEventListener("message",A)})),t.$$set=e=>{"endpoint"in e&&i(22,o=e.endpoint),"session"in e&&i(23,a=e.session),"playerid"in e&&i(24,s=e.playerid),"lang"in e&&i(0,l=e.lang),"playercurrency"in e&&i(25,c=e.playercurrency),"clientstyling"in e&&i(1,u=e.clientstyling),"clientstylingurl"in e&&i(2,d=e.clientstylingurl),"translationurl"in e&&i(26,p=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&l&&(e=l,fe.set(e)),29360128&t.$$.dirty[0]&&a&&s&&o&&S(0),12&t.$$.dirty[0]&&d&&r){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&u&&r&&((e=document.createElement("style")).innerHTML=u,r.appendChild(e)),67108864&t.$$.dirty[0]&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{rp(e,t[e])})}).catch(e=>{console.log(e)})},[l,u,d,r,!0,g,y,v,b,w,_,x,C,E,n,m,T,()=>{i(4,f=!y)},S,()=>{var e=new URL(`${o}/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?(i(5,g=!1),S(0),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage")}},window.location.href),"function"==typeof gtag&&gtag("event","ClaimBonus",{context:"PlayerActiveBonuses",userId:""+(s||"Not logged in"),bonusCode:""+y})):(i(5,g=!0),window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("errorMessage")}},window.location.href))})},M,()=>{var e={method:"DELETE",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}},t=new URL(`${o}/player/${s}/bonusWallet`);t.searchParams.append("bonusWalletID",P),fetch(t,e).then(e=>{200==e.status&&(S(0),M())})},o,a,s,c,p,()=>T(),function(){y=this.value,i(6,y)},()=>S(0),()=>S(v),e=>S(6*e),()=>S(b),()=>S(w),function(e){me[e?"unshift":"push"](()=>{r=e,i(3,r)})}]}function Tp(e,t){a(e,t)}customElements.get("player-bonus-card")||customElements.define("player-bonus-card",class extends t{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-dunkel, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C))}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},hp,pp,n,{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&&cn(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 t{constructor(e){super();var t=document.createElement("style");t.textContent=".ActiveBonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #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-pink-500, #D0046C))}.ActiveBonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-orange-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Ap,Ep,n,{endpoint:22,session:23,playerid:24,lang:0,playercurrency:25,clientstyling:1,clientstylingurl:2,translationurl:26},null,[-1,-1]),e&&(e.target&&cn(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 Sp={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 Mp(){"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 n,i=window.cstmNativeBridge.EVENTS[e];if(i){if("function"==typeof t)return n=window.cstmNativeBridge.eventListeners[i],window.cstmNativeBridge.eventListeners[i]=function(){delete window.cstmNativeBridge.eventListeners[i],n&&n.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,n=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];return"function"==typeof n?(t=Array.prototype.slice.call(arguments,1),n.apply(this,t),!0):(console.error("Native Bridge `"+e+"` method is not defined"),!1)};var kp=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},Dp=function(e,...t){try{return Mp(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},Lp=function(e,t){try{return Mp(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function Bp(e,t,n){e=e.slice();return e[108]=t[n],e}function $p(n){let r,F,R,H,z,W,Y,j,U,i,G,V,q,X,o,Z,a,J,K,Q,ee,s,te,l,e,ne,ie,re,c,oe,ae,se,le,ce,u,ue,de,pe,he,d,me,fe,ge,ye,ve,p,be,we,_e,xe,Ce,Pe,Ee,Ae,h,Te,Se,Me,ke,De,m,Le,Be,$e,Ie,Ne,f,Oe,Fe,Re,He,ze,g,We,Ye,je,Ue,Ge,y,Ve,qe,Xe,Ze,Je,v,Ke,Qe,et,tt,nt,b,it,rt,ot,at,w,st,lt,_,ct,ut,dt,x,pt,ht,mt,ft,gt,C,yt,vt,bt,P,wt,_t,xt,Ct,E,Pt,Et,At,A,Tt,St,Mt,kt,Dt,Lt,Bt,$t,It,Nt,Ot,Ft,Rt,Ht,zt=n[38]("title")+"",Wt=n[38]("personalDetails")+"",Yt=n[38]("userName")+"",jt=n[38]("userPhone")+"",Ut=("true"==n[1]?n[38]("profileSecurityQuestion2"):n[38]("profileSecurityQuestion"))+"",Gt=("true"==n[1]?n[38]("profileSecurityAnswer2"):n[38]("profileSecurityAnswer"))+"",Vt=n[38]("userEmail")+"",qt=n[38]("dateOfBirth")+"",Xt=n[38]("firstName")+"",Zt=n[38]("lastName")+"",Jt=n[38]("userTitle")+"",Kt=n[38]("currency")+"",Qt=n[38]("locationDetails")+"",en=n[38]("userCountry")+"",tn=n[38]("userCity")+"",nn=n[38]("userAddress")+"",rn=n[38]("userPostalCode")+"",on=n[38]("userProfileSaveChanges")+"",T=n[39]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[38]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","MyAccountCategoryTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[60]),m=!0)},p(e,t){128&t[1]&&g!==(g=e[38]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),an=n[17],S=[];for(let e=0;e<an.length;e+=1)S[e]=Fp(Bp(n,an,e));let M=n[26]&&Rp(n),k=n[24]&&Hp(n),D=n[25]&&zp(n),L=n[21]&&Wp(n),B=n[23]&&Yp(n),$=n[22]&&jp(n),I=(n[18]||n[19])&&Up(n),N=n[28]&&qp(n),O=n[27]&&Xp(n);return{c(){r=dn("form"),T&&T.c(),F=mn(),R=dn("h2"),H=hn(zt),z=mn(),W=dn("div"),Y=dn("h3"),j=hn(Wt),U=mn(),i=dn("section"),G=dn("div"),V=dn("label"),q=hn(Yt),X=mn(),o=dn("input"),Z=mn(),a=dn("div"),J=dn("label"),K=hn(jt),Q=mn(),ee=dn("div"),s=dn("select");for(let e=0;e<S.length;e+=1)S[e].c();te=mn(),l=dn("input"),ne=mn(),M&&M.c(),re=mn(),c=dn("div"),oe=dn("label"),ae=hn(Ut),se=hn(":"),(le=dn("span")).textContent="*",ce=mn(),u=dn("input"),de=mn(),k&&k.c(),he=mn(),d=dn("div"),me=dn("label"),fe=hn(Gt),ge=hn(":"),(ye=dn("span")).textContent="*",ve=mn(),p=dn("input"),we=mn(),D&&D.c(),xe=mn(),Ce=dn("div"),Pe=dn("label"),Ee=hn(Vt),Ae=mn(),h=dn("input"),Te=mn(),Se=dn("div"),Me=dn("label"),ke=hn(qt),De=mn(),m=dn("input"),Le=mn(),Be=dn("div"),$e=dn("label"),Ie=hn(Xt),Ne=mn(),f=dn("input"),Oe=mn(),Fe=dn("div"),Re=dn("label"),He=hn(Zt),ze=mn(),g=dn("input"),We=mn(),Ye=dn("div"),je=dn("label"),Ue=hn(Jt),Ge=mn(),y=dn("input"),Ve=mn(),qe=dn("div"),Xe=dn("label"),Ze=hn(Kt),Je=mn(),v=dn("input"),Ke=mn(),Qe=dn("div"),et=dn("h3"),tt=hn(Qt),nt=mn(),b=dn("section"),it=dn("div"),rt=dn("label"),ot=hn(en),at=mn(),w=dn("input"),lt=mn(),_=dn("div"),ct=dn("label"),ut=hn(tn),dt=mn(),x=dn("input"),mt=mn(),L&&L.c(),gt=mn(),C=dn("div"),yt=dn("label"),vt=hn(nn),bt=mn(),P=dn("input"),_t=mn(),B&&B.c(),Ct=mn(),E=dn("div"),Pt=dn("label"),Et=hn(rn),At=mn(),A=dn("input"),Mt=mn(),$&&$.c(),Dt=mn(),I&&I.c(),Lt=mn(),N&&N.c(),Bt=mn(),$t=dn("section"),It=dn("button"),Nt=hn(on),Ft=mn(),O&&O.c(),gn(R,"class","MyAccountCategoryTitle "+(n[39]?"MyAccountCategoryTitleNone":"")),gn(W,"class","PlayerNotificationsHeader"),gn(o,"type","text"),gn(o,"class","FieldDisabled"),o.value=n[37],o.readOnly=!0,gn(G,"class","PlayerInfoBox"),void 0===n[13]&&_n(()=>n[61].call(s)),gn(l,"type","text"),gn(l,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),gn(l,"placeholder",e=n[4]?n[32].number:""),gn(ee,"class","PlayerPhoneNumber"),gn(a,"class",ie="PlayerInfoBox "+(n[26]?"InvalidField":"")),gn(le,"class","FormRequired"),gn(oe,"for","SecurityQuestion"),gn(u,"type","text"),gn(u,"placeholder",ue=n[4]?n[45]:""),gn(c,"class",pe="PlayerInfoBox "+(n[24]?"InvalidField":"")),gn(ye,"class","FormRequired"),gn(me,"for","SecurityAnswer"),gn(p,"type","text"),gn(p,"placeholder",be=n[4]?n[44]:""),gn(d,"class",_e="PlayerInfoBox "+(n[25]?"InvalidField":"")),gn(h,"type","email"),gn(h,"class","FieldDisabled"),h.value=n[33],h.readOnly=!0,gn(Ce,"class","PlayerInfoBox"),gn(m,"type","text"),gn(m,"class","FieldDisabled"),m.value=n[30],m.readOnly=!0,gn(Se,"class","PlayerInfoBox"),gn(f,"type","text"),gn(f,"class","FieldDisabled"),f.value=n[34],f.readOnly=!0,gn(Be,"class","PlayerInfoBox"),gn(g,"type","text"),gn(g,"class","FieldDisabled"),g.value=n[36],g.readOnly=!0,gn(Fe,"class","PlayerInfoBox"),gn(y,"type","text"),gn(y,"class","FieldDisabled"),y.value=n[35],y.readOnly=!0,gn(Ye,"class","PlayerInfoBox"),gn(v,"type","text"),gn(v,"class","FieldDisabled"),v.value=n[31],v.readOnly=!0,gn(qe,"class","PlayerInfoBox"),gn(i,"class","PlayerDetailsContent"),gn(Qe,"class","PlayerLocationHeader"),gn(w,"type","text"),gn(w,"class","PlayerCountry FieldDisabled"),gn(w,"placeholder",n[0]),w.value=st=n[16].Name,w.readOnly=!0,gn(it,"class","PlayerInfoBox"),gn(x,"type","text"),gn(x,"placeholder",pt=n[4]?n[42]:""),x.value=ht=n[4]?"":n[29].city,gn(_,"class",ft="PlayerInfoBox "+(n[21]?"InvalidField":"")),gn(P,"placeholder",n[41]),gn(P,"type","text"),P.value=wt=n[4]?"":n[29].address,gn(C,"class",xt="PlayerInfoBox "+(n[23]?"InvalidField":"")),gn(A,"type","text"),gn(A,"placeholder",Tt=n[4]?n[43]:""),A.value=St=n[4]?"":n[29].postalCode,gn(E,"class",kt="PlayerInfoBox "+(n[22]?"InvalidField":"")),gn(b,"class","PlayerLocationContent"),gn(It,"class",Ot="PlayerDetailsSaveButton "+(n[15]&&n[20]?"":"PlayerButtonDisabled")),gn($t,"class","PlayerDetailsButtonsArea "+(n[39]?"PlayerDetailsButtonsAreaMobile":"")),gn(r,"class","PlayerInfoWrapper "+(n[39]?"PlayerInfoWrapperMobile":"")+" "+(n[40].matches&&n[39]?"PlayerInfoWrapperTablet":""))},m(e,t){cn(e,r,t),T&&T.m(r,null),ln(r,F),ln(r,R),ln(R,H),ln(r,z),ln(r,W),ln(W,Y),ln(Y,j),ln(r,U),ln(r,i),ln(i,G),ln(G,V),ln(V,q),ln(G,X),ln(G,o),ln(i,Z),ln(i,a),ln(a,J),ln(J,K),ln(a,Q),ln(a,ee),ln(ee,s);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(s,null);wn(s,n[13],!0),ln(ee,te),ln(ee,l),bn(l,n[14]),ln(a,ne),M&&M.m(a,null),ln(i,re),ln(i,c),ln(c,oe),ln(oe,ae),ln(oe,se),ln(oe,le),ln(c,ce),ln(c,u),bn(u,n[11]),ln(c,de),k&&k.m(c,null),ln(i,he),ln(i,d),ln(d,me),ln(me,fe),ln(me,ge),ln(me,ye),ln(d,ve),ln(d,p),bn(p,n[12]),ln(d,we),D&&D.m(d,null),ln(i,xe),ln(i,Ce),ln(Ce,Pe),ln(Pe,Ee),ln(Ce,Ae),ln(Ce,h),ln(i,Te),ln(i,Se),ln(Se,Me),ln(Me,ke),ln(Se,De),ln(Se,m),ln(i,Le),ln(i,Be),ln(Be,$e),ln($e,Ie),ln(Be,Ne),ln(Be,f),ln(i,Oe),ln(i,Fe),ln(Fe,Re),ln(Re,He),ln(Fe,ze),ln(Fe,g),ln(i,We),ln(i,Ye),ln(Ye,je),ln(je,Ue),ln(Ye,Ge),ln(Ye,y),ln(i,Ve),ln(i,qe),ln(qe,Xe),ln(Xe,Ze),ln(qe,Je),ln(qe,v),ln(r,Ke),ln(r,Qe),ln(Qe,et),ln(et,tt),ln(r,nt),ln(r,b),ln(b,it),ln(it,rt),ln(rt,ot),ln(it,at),ln(it,w),ln(b,lt),ln(b,_),ln(_,ct),ln(ct,ut),ln(_,dt),ln(_,x),n[69](x),ln(_,mt),L&&L.m(_,null),ln(b,gt),ln(b,C),ln(C,yt),ln(yt,vt),ln(C,bt),ln(C,P),n[71](P),ln(C,_t),B&&B.m(C,null),ln(b,Ct),ln(b,E),ln(E,Pt),ln(Pt,Et),ln(E,At),ln(E,A),n[73](A),ln(E,Mt),$&&$.m(E,null),ln(r,Dt),I&&I.m(r,null),ln(r,Lt),N&&N.m(r,null),ln(r,Bt),ln(r,$t),ln($t,It),ln(It,Nt),ln(r,Ft),O&&O.m(r,null),Rt||(Ht=[fn(s,"change",n[61]),fn(s,"change",n[62]),fn(l,"input",n[63]),fn(l,"keyup",n[46]),fn(l,"keyup",n[64]),fn(u,"input",n[65]),fn(u,"keyup",n[66]),fn(u,"blur",n[47]),fn(p,"input",n[67]),fn(p,"keyup",n[68]),fn(p,"blur",n[48]),fn(x,"blur",n[49]),fn(x,"keyup",n[70]),fn(P,"blur",n[51]),fn(P,"keyup",n[72]),fn(A,"blur",n[50]),fn(A,"keyup",n[74]),fn(It,"click",n[78])],Rt=!0)},p(t,n){if(t[39]&&T.p(t,n),128&n[1]&&zt!==(zt=t[38]("title")+"")&&yn(H,zt),128&n[1]&&Wt!==(Wt=t[38]("personalDetails")+"")&&yn(j,Wt),128&n[1]&&Yt!==(Yt=t[38]("userName")+"")&&yn(q,Yt),64&n[1]&&o.value!==t[37]&&(o.value=t[37]),128&n[1]&&jt!==(jt=t[38]("userPhone")+"")&&yn(K,jt),537001984&n[0]){let e;for(an=t[17],e=0;e<an.length;e+=1){var i=Bp(t,an,e);S[e]?S[e].p(i,n):(S[e]=Fp(i),S[e].c(),S[e].m(s,null))}for(;e<S.length;e+=1)S[e].d(1);S.length=an.length}139264&n[0]&&wn(s,t[13]),16&n[0]|2&n[1]&&e!==(e=t[4]?t[32].number:"")&&gn(l,"placeholder",e),16384&n[0]&&l.value!==t[14]&&bn(l,t[14]),t[26]?M?M.p(t,n):((M=Rp(t)).c(),M.m(a,null)):M&&(M.d(1),M=null),67108864&n[0]&&ie!==(ie="PlayerInfoBox "+(t[26]?"InvalidField":""))&&gn(a,"class",ie),2&n[0]|128&n[1]&&Ut!==(Ut=("true"==t[1]?t[38]("profileSecurityQuestion2"):t[38]("profileSecurityQuestion"))+"")&&yn(ae,Ut),16&n[0]&&ue!==(ue=t[4]?t[45]:"")&&gn(u,"placeholder",ue),2048&n[0]&&u.value!==t[11]&&bn(u,t[11]),t[24]?k?k.p(t,n):((k=Hp(t)).c(),k.m(c,null)):k&&(k.d(1),k=null),16777216&n[0]&&pe!==(pe="PlayerInfoBox "+(t[24]?"InvalidField":""))&&gn(c,"class",pe),2&n[0]|128&n[1]&&Gt!==(Gt=("true"==t[1]?t[38]("profileSecurityAnswer2"):t[38]("profileSecurityAnswer"))+"")&&yn(fe,Gt),16&n[0]&&be!==(be=t[4]?t[44]:"")&&gn(p,"placeholder",be),4096&n[0]&&p.value!==t[12]&&bn(p,t[12]),t[25]?D?D.p(t,n):((D=zp(t)).c(),D.m(d,null)):D&&(D.d(1),D=null),33554432&n[0]&&_e!==(_e="PlayerInfoBox "+(t[25]?"InvalidField":""))&&gn(d,"class",_e),128&n[1]&&Vt!==(Vt=t[38]("userEmail")+"")&&yn(Ee,Vt),4&n[1]&&h.value!==t[33]&&(h.value=t[33]),128&n[1]&&qt!==(qt=t[38]("dateOfBirth")+"")&&yn(ke,qt),1073741824&n[0]&&m.value!==t[30]&&(m.value=t[30]),128&n[1]&&Xt!==(Xt=t[38]("firstName")+"")&&yn(Ie,Xt),8&n[1]&&f.value!==t[34]&&(f.value=t[34]),128&n[1]&&Zt!==(Zt=t[38]("lastName")+"")&&yn(He,Zt),32&n[1]&&g.value!==t[36]&&(g.value=t[36]),128&n[1]&&Jt!==(Jt=t[38]("userTitle")+"")&&yn(Ue,Jt),16&n[1]&&y.value!==t[35]&&(y.value=t[35]),128&n[1]&&Kt!==(Kt=t[38]("currency")+"")&&yn(Ze,Kt),1&n[1]&&v.value!==t[31]&&(v.value=t[31]),128&n[1]&&Qt!==(Qt=t[38]("locationDetails")+"")&&yn(tt,Qt),128&n[1]&&en!==(en=t[38]("userCountry")+"")&&yn(ot,en),1&n[0]&&gn(w,"placeholder",t[0]),65536&n[0]&&st!==(st=t[16].Name)&&w.value!==st&&(w.value=st),128&n[1]&&tn!==(tn=t[38]("userCity")+"")&&yn(ut,tn),16&n[0]&&pt!==(pt=t[4]?t[42]:"")&&gn(x,"placeholder",pt),536870928&n[0]&&ht!==(ht=t[4]?"":t[29].city)&&x.value!==ht&&(x.value=ht),t[21]?L?L.p(t,n):((L=Wp(t)).c(),L.m(_,null)):L&&(L.d(1),L=null),2097152&n[0]&&ft!==(ft="PlayerInfoBox "+(t[21]?"InvalidField":""))&&gn(_,"class",ft),128&n[1]&&nn!==(nn=t[38]("userAddress")+"")&&yn(vt,nn),536870928&n[0]&&wt!==(wt=t[4]?"":t[29].address)&&P.value!==wt&&(P.value=wt),t[23]?B?B.p(t,n):((B=Yp(t)).c(),B.m(C,null)):B&&(B.d(1),B=null),8388608&n[0]&&xt!==(xt="PlayerInfoBox "+(t[23]?"InvalidField":""))&&gn(C,"class",xt),128&n[1]&&rn!==(rn=t[38]("userPostalCode")+"")&&yn(Et,rn),16&n[0]&&Tt!==(Tt=t[4]?t[43]:"")&&gn(A,"placeholder",Tt),536870928&n[0]&&St!==(St=t[4]?"":t[29].postalCode)&&A.value!==St&&(A.value=St),t[22]?$?$.p(t,n):(($=jp(t)).c(),$.m(E,null)):$&&($.d(1),$=null),4194304&n[0]&&kt!==(kt="PlayerInfoBox "+(t[22]?"InvalidField":""))&&gn(E,"class",kt),t[18]||t[19]?I?I.p(t,n):((I=Up(t)).c(),I.m(r,Lt)):I&&(I.d(1),I=null),t[28]?N?N.p(t,n):((N=qp(t)).c(),N.m(r,Bt)):N&&(N.d(1),N=null),128&n[1]&&on!==(on=t[38]("userProfileSaveChanges")+"")&&yn(Nt,on),1081344&n[0]&&Ot!==(Ot="PlayerDetailsSaveButton "+(t[15]&&t[20]?"":"PlayerButtonDisabled"))&&gn(It,"class",Ot),t[27]?O?O.p(t,n):((O=Xp(t)).c(),O.m(r,null)):O&&(O.d(1),O=null)},d(e){e&&un(r),T&&T.d(),vn(S,e),M&&M.d(),k&&k.d(),D&&D.d(),n[69](null),L&&L.d(),n[71](null),B&&B.d(),n[73](null),$&&$.d(),I&&I.d(),N&&N.d(),O&&O.d(),Rt=!1,sn(Ht)}}}function Ip(e){let n;return{c(){gn(n=dn("div"),"class","ModalLoader")},m(e,t){cn(e,n,t)},p:se,d(e){e&&un(n)}}}function Np(e){let n,i,r,o=e[108].Prefix+"";return{c(){n=dn("option"),i=hn(o),n.__value=r=e[108].Prefix,n.value=n.__value},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yn(i,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(n.__value=r,n.value=n.__value)},d(e){e&&un(n)}}}function Op(e){let n,i,r,o=e[108].Prefix+"";return{c(){n=dn("option"),i=hn(o),n.selected=!0,n.__value=r=e[108].Prefix,n.value=n.__value},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){131072&t[0]&&o!==(o=e[108].Prefix+"")&&yn(i,o),131072&t[0]&&r!==(r=e[108].Prefix)&&(n.__value=r,n.value=n.__value)},d(e){e&&un(n)}}}function Fp(e){let n;function i(e){return e[108].Prefix===e[29].mobiePrefix?Op:Np}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function Rp(e){let n,i,r=e[38]("userPhoneError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){128&t[1]&&r!==(r=e[38]("userPhoneError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Hp(e){let n,i,r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityQuestionError2"):e[38]("profileSecurityQuestionError"))+"")&&yn(i,r)},d(e){e&&un(n)}}}function zp(e){let n,i,r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){2&t[0]|128&t[1]&&r!==(r=("true"==e[1]?e[38]("profileSecurityAnswerError2"):e[38]("profileSecurityAnswerError"))+"")&&yn(i,r)},d(e){e&&un(n)}}}function Wp(e){let n,i,r=e[38]("userCityError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){128&t[1]&&r!==(r=e[38]("userCityError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Yp(e){let n,i,r=e[38]("userAddressError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){128&t[1]&&r!==(r=e[38]("userAddressError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function jp(e){let n,i,r=e[38]("userPostalCodeError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){128&t[1]&&r!==(r=e[38]("userPostalCodeError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Up(e){let n,i,r,o,a,s,l=e[38]("userNotifications")+"",c=e[19]&&Gp(e),u=e[18]&&Vp(e);return{c(){n=dn("div"),i=dn("h3"),r=hn(l),o=mn(),a=dn("section"),c&&c.c(),s=mn(),u&&u.c(),gn(n,"class","PlayerNotificationsHeader"),gn(a,"class","PlayerNotificationsCheckboxArea")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),cn(e,o,t),cn(e,a,t),c&&c.m(a,null),ln(a,s),u&&u.m(a,null)},p(e,t){128&t[1]&&l!==(l=e[38]("userNotifications")+"")&&yn(r,l),e[19]?c?c.p(e,t):((c=Gp(e)).c(),c.m(a,s)):c&&(c.d(1),c=null),e[18]?u?u.p(e,t):((u=Vp(e)).c(),u.m(a,null)):u&&(u.d(1),u=null)},d(e){e&&un(n),e&&un(o),e&&un(a),c&&c.d(),u&&u.d()}}}function Gp(n){let i,r,o,a,s,l,c,u,d,p,h=n[38]("userSMSNotification")+"";return{c(){i=dn("div"),r=dn("label"),o=dn("input"),a=mn(),s=dn("span"),l=mn(),c=dn("span"),u=hn(h),gn(o,"type","checkbox"),gn(o,"id","SMSNotification"),gn(o,"name","Enable SMS notifications"),gn(s,"class","Checkmark"),gn(r,"for","SMSNotification"),gn(i,"class","PlayerNotificationBox")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),o.checked=n[8],ln(r,a),ln(r,s),ln(r,l),ln(r,c),ln(c,u),d||(p=[fn(o,"change",n[75]),fn(o,"change",n[54])],d=!0)},p(e,t){256&t[0]&&(o.checked=e[8]),128&t[1]&&h!==(h=e[38]("userSMSNotification")+"")&&yn(u,h)},d(e){e&&un(i),d=!1,sn(p)}}}function Vp(n){let i,r,o,a,s,l,c,u,d,p,h=n[38]("userEmailNotification")+"";return{c(){i=dn("div"),r=dn("label"),o=dn("input"),a=mn(),s=dn("span"),l=mn(),c=dn("span"),u=hn(h),gn(o,"type","checkbox"),gn(o,"id","EmailNotification"),gn(o,"name","Enable Emails"),gn(s,"class","Checkmark"),gn(r,"for","EmailNotification"),gn(i,"class","PlayerNotificationBox")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),o.checked=n[9],ln(r,a),ln(r,s),ln(r,l),ln(r,c),ln(c,u),d||(p=[fn(o,"change",n[76]),fn(o,"change",n[54])],d=!0)},p(e,t){512&t[0]&&(o.checked=e[9]),128&t[1]&&h!==(h=e[38]("userEmailNotification")+"")&&yn(u,h)},d(e){e&&un(i),d=!1,sn(p)}}}function qp(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v=n[38]("userAppSettings")+"",b=n[38]("userBiometrics")+"";return{c(){i=dn("div"),r=dn("h3"),o=hn(v),a=mn(),s=dn("section"),l=dn("div"),c=dn("label"),u=dn("input"),d=mn(),p=dn("span"),h=mn(),m=dn("span"),f=hn(b),gn(i,"class","PlayerNotificationsHeader"),gn(u,"type","checkbox"),gn(u,"id","BiometricsEnabled"),gn(u,"name","Biometric Enabled"),gn(p,"class","Checkmark"),gn(c,"for","Biometrics"),gn(l,"class","PlayerNotificationBox"),gn(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),cn(e,a,t),cn(e,s,t),ln(s,l),ln(l,c),ln(c,u),u.checked=n[10],ln(c,d),ln(c,p),ln(c,h),ln(c,m),ln(m,f),g||(y=[fn(u,"change",n[77]),fn(u,"change",n[54])],g=!0)},p(e,t){128&t[1]&&v!==(v=e[38]("userAppSettings")+"")&&yn(o,v),1024&t[0]&&(u.checked=e[10]),128&t[1]&&b!==(b=e[38]("userBiometrics")+"")&&yn(f,b)},d(e){e&&un(i),e&&un(a),e&&un(s),g=!1,sn(y)}}}function Xp(e){let n,i,r,o=e[38]("userProfileConfirmationMessage")+"";return{c(){n=dn("section"),i=dn("p"),r=hn(o),gn(i,"class","PlayerDetailsConfirmSaveText"),gn(n,"class","PlayerDetailsConfirmSave")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r)},p(e,t){128&t[1]&&o!==(o=e[38]("userProfileConfirmationMessage")+"")&&yn(r,o)},d(e){e&&un(n)}}}function Zp(n){let i;function r(e){return e[3]?Ip:$p}let o=r(n),a=o(n);return{c(){i=dn("div"),a.c(),this.c=se},m(e,t){cn(e,i,t),a.m(i,null),n[79](i)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(i,null)))},i:se,o:se,d(e){e&&un(i),a.d(),n[79](null)}}}function Jp(t,e,n){let N;pe(t,ge,e=>n(38,N=e));let i,r,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,O=!0,F=window.navigator.userAgent,R="PC"!==ye(F),H=!0,f=!1,g=!1,y=!1,v="",b="",w="",_="",x=!1,z={Name:"I.e Ireland"},C=[],W=[],P=[],E=!1,A=!1,T={items:[]},Y=!1,j="",U="",G="",V=!1,q=!1,X=!1,S=!1,Z={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/};Object.keys(Sp).forEach(e=>{Tp(e,Sp[e])});e=window.matchMedia("(min-width: 768px)");let J={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:""},k={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:K,birth:Q,city:ee,currency:te,mobile:D,email:ne,firstname:ie,userTitles:re,language:oe,lastname:ae,postalCode:se,securityAnswer:L,securityQuestion:B,username:le}=k;const ce=e=>{var t;if(e.data)switch(e.data.type){case"ProfileDetailsData":n(4,H=!1),k=e.data.profileDetails,n(37,le=k.username),n(32,D=k.mobile),n(33,ne=k.email),n(34,ie=k.firstname),n(36,ae=k.lastname),oe=k.language,n(30,Q=(null==(t=k.birth)?void 0:t.day)+"/"+(null==(t=k.birth)?void 0:t.month)+"/"+(null==(t=k.birth)?void 0:t.year)),n(31,te=k.currency),n(35,re=k.title),n(11,v=k.securityQuestion),n(12,b=k.securityAnswer),n(13,w=null==(t=k.mobile)?void 0:t.prefix),n(14,_=null==(t=k.mobile)?void 0:t.number),n(29,M.address=k.address1,M),n(29,M.city=k.city,M),n(29,M.mobilePrefix=null==D?void 0:D.prefix,M),n(29,M.mobileNumber=null==D?void 0:D.number,M),n(29,M.postalCode=k.postalCode,M),n(29,M.securityAnswer=k.securityAnswer,M),n(29,M.securityQuestion=k.securityQuestion,M);break;case"ProfileConsentData":P=e.data.consent.items,Array.isArray(P)&&P.forEach(e=>{"emailmarketing"==e.tagCode?(n(18,E=!0),n(9,g="Accepted"==e.status),n(29,M.acceptNewsEmail=g,M)):"sms"==e.tagCode&&(n(19,A=!0),n(8,f="Accepted"==e.status),n(29,M.acceptSMSOffers=f,M))});break;case"ConfirmProfileInfoSave":S&&(Lp("BIOMETRICS_ENABLED",e=>{e!==y&&n(10,y=e)}),Dp(y?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),n(15,x=!1),n(27,X=!0),setTimeout(()=>{n(27,X=!1)},3e3)}},$=()=>{n(20,Y=!(V||q||j||G||U||s))},ue=e=>{e.preventDefault(),1==x&&1==Y&&(window.postMessage({type:"UpdatePlayerInfo",provisionalArray:J},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;J={acceptNewsEmail:g,acceptSMSOffers:f,address:o.value,city:a.value,mobileNumber:_,mobilePrefix:w,postalCode:r.value,securityAnswer:b,securityQuestion:v},e=J,t=M,JSON.stringify(e)===JSON.stringify(t)?n(15,x=!1):n(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"}),$()};return he(()=>(window.addEventListener("message",ce,!1),n(28,S=!!kp(F)),S&&(Lp("BIOMETRICS_ENABLED",e=>{n(10,y=!!e)}),Dp("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",ce)})),t.$$set=e=>{"endpoint"in e&&n(55,l=e.endpoint),"lang"in e&&n(56,c=e.lang),"countrycode"in e&&n(0,u=e.countrycode),"clientstyling"in e&&n(57,d=e.clientstyling),"clientstylingurl"in e&&n(58,p=e.clientstylingurl),"translationurl"in e&&n(59,h=e.translationurl),"custominputtextswitch"in e&&n(1,m=e.custominputtextswitch)},t.$$.update=()=>{if(33554432&t.$$.dirty[1]&&c&&(e=c,fe.set(e)),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&l&&u&&fetch(l+"/player/countries").then(e=>300<=e.status?new Error("Error while fetching the countries"):e.json()).then(e=>{fetch(l+"/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)),n(16,z=W.find(e=>e.Alpha2Code===u)||{Name:"I.E. Ireland"}),n(3,O=!1)})}),16777216&t.$$.dirty[1]&&l&&fetch(l+"/player/phonecodes").then(e=>e.json()).then(e=>{n(17,C=e.phoneCodes)}),4&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&p&&i){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1)})}var e;4&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&d&&i&&((e=document.createElement("style")).innerHTML=d,i.appendChild(e)),268435456&t.$$.dirty[1]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tp(e,t[e])})}).catch(e=>{console.log(e)})},[u,m,i,O,H,r,o,a,f,g,y,v,b,w,_,x,z,C,E,A,Y,j,U,G,V,q,s,X,S,M,Q,te,D,ne,ie,re,ae,le,N,R,e,K,ee,se,L,B,()=>{n(26,s=!(_&&5<=_.length&&_.length<=12)),$()},()=>{n(24,V=!(()=>{if(B)switch(m){case"true":if(Z.document.test(B)&&B.length<=50)return!0;break;case"false":if(B&&B.length<=120)return!0}return!1})()),$()},()=>{n(25,q=!(()=>{if(L)switch(m){case"true":if(Z.document.test(L)&&L.length<=50)return!0;break;case"false":if(L&&L.length<=120)return!0}return!1})()),$()},()=>{n(21,j=!(a.value&&a.value.length<=50)),$()},()=>{n(22,U=!(r.value&&r.value.length<=20)),$()},()=>{n(23,G=!(o.value&&o.value.length<=100)),$()},ue,de,I,l,c,d,p,h,()=>de(),function(){w=ve(this),n(13,w),n(17,C)},()=>I(),function(){_=this.value,n(14,_)},()=>I(),function(){v=this.value,n(11,v)},()=>I(),function(){b=this.value,n(12,b)},()=>I(),function(e){me[e?"unshift":"push"](()=>{a=e,n(7,a)})},()=>I(),function(e){me[e?"unshift":"push"](()=>{o=e,n(6,o)})},()=>I(),function(e){me[e?"unshift":"push"](()=>{r=e,n(5,r)})},()=>I(),function(){f=this.checked,n(8,f)},function(){g=this.checked,n(9,g)},function(){y=this.checked,n(10,y)},e=>ue(e),function(e){me[e?"unshift":"push"](()=>{i=e,n(2,i)})}]}function Kp(e,t){a(e,t)}customElements.get("player-profile-info")||customElements.define("player-profile-info",class extends t{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-pink-500, #D0046C));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Jp,Zp,n,{endpoint:55,lang:56,countrycode:0,clientstyling:57,clientstylingurl:58,translationurl:59,custominputtextswitch:1},null,[-1,-1,-1,-1]),e&&(e.target&&cn(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 Qp={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 eh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C=n[19]("changePasswordText")+"",P=n[19]("passwordReset")+"",E=n[19]("passwordResetConfirmation")+"",A=n[19]("backButtonText")+"",T=n[20]&&function(n){let i,r,o,a,s,l,c,u,d,p=n[19]("returnToMenu")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("g"),a=pn("path"),s=mn(),l=dn("span"),c=hn(p),gn(a,"id","Chevron_Right"),gn(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"),gn(r,"version","1.1"),gn(r,"id","Capa_1"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),gn(r,"x","0px"),gn(r,"y","0px"),gn(r,"viewBox","0 0 240.823 240.823"),M(r,"enable-background","new 0 0 240.823 240.823"),gn(r,"xml:space","preserve"),gn(r,"width","18px"),gn(r,"fill","var(--emfe-w-color-gray-300, #58586B)"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(i,l),ln(l,c),u||(d=fn(i,"click",n[45]),u=!0)},p(e,t){524288&t[0]&&p!==(p=e[19]("returnToMenu")+"")&&yn(c,p)},d(e){e&&un(i),u=!1,d()}}}(n);return{c(){T&&T.c(),i=mn(),r=dn("div"),o=dn("h3"),a=hn(C),s=mn(),l=dn("div"),c=dn("div"),(u=dn("div")).innerHTML='<div class="Checkmark"></div>',d=mn(),p=dn("div"),h=dn("h3"),m=hn(P),f=mn(),g=dn("p"),y=hn(E),v=mn(),b=dn("div"),w=hn(A),gn(r,"class","PlayerChangePasswordHeader"),gn(u,"class","IconContainer"),gn(p,"class","TextContainer"),gn(c,"class","SuccessWrapper"),gn(b,"class","PlayerChangePasswordBackButton"),gn(l,"class","ChangedPasswordSuccessfully")},m(e,t){T&&T.m(e,t),cn(e,i,t),cn(e,r,t),ln(r,o),ln(o,a),cn(e,s,t),cn(e,l,t),ln(l,c),ln(c,u),ln(c,d),ln(c,p),ln(p,h),ln(h,m),ln(p,f),ln(p,g),ln(g,y),ln(l,v),ln(l,b),ln(b,w),_||(x=fn(b,"click",n[46]),_=!0)},p(e,t){e[20]&&T.p(e,t),524288&t[0]&&C!==(C=e[19]("changePasswordText")+"")&&yn(a,C),524288&t[0]&&P!==(P=e[19]("passwordReset")+"")&&yn(m,P),524288&t[0]&&E!==(E=e[19]("passwordResetConfirmation")+"")&&yn(y,E),524288&t[0]&&A!==(A=e[19]("backButtonText")+"")&&yn(w,A)},d(e){T&&T.d(e),e&&un(i),e&&un(r),e&&un(s),e&&un(l),_=!1,x()}}}function th(n){let F,i,R,H,r,o,a,z,W,s,Y,j,l,U,c,u,G,V,d,q,X,p,Z,h,m,J,K,f,Q,ee,g,te,y,v,b,ne,w,_,ie,re,x=n[19]("title")+"",C=n[19]("currentPassword")+"",P=n[19]("newPassword")+"",E=n[19]("confirmPassword")+"",A=n[19]("submitChangePassword")+"",T=n[20]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[19]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","ChangePasswordTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[31]),m=!0)},p(e,t){524288&t[0]&&g!==(g=e[19]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function oe(e){return e[10]?ih:nh}let S=oe(n),M=S(n),k=n[4]&&rh(n);function ae(e){return e[11]?lh:sh}let D=ae(n),L=D(n);function se(e){return e[13]?uh:e[5]?ch:void 0}let B=se(n),$=B&&B(n);function le(e){return e[12]?mh:hh}let ce=le(n),I=ce(n),N=n[6]&&fh(n),O=n[18]&&gh(n);return{c(){T&&T.c(),F=mn(),i=dn("h2"),R=hn(x),H=mn(),r=dn("section"),o=dn("div"),a=dn("label"),z=hn(C),W=mn(),s=dn("input"),Y=mn(),M.c(),j=mn(),k&&k.c(),U=mn(),c=dn("div"),u=dn("label"),G=hn(P),V=mn(),d=dn("input"),q=mn(),L.c(),X=mn(),$&&$.c(),Z=mn(),h=dn("div"),m=dn("label"),J=hn(E),K=mn(),f=dn("input"),Q=mn(),I.c(),ee=mn(),N&&N.c(),te=mn(),O&&O.c(),y=mn(),v=dn("section"),b=dn("button"),ne=hn(A),gn(i,"class","ChangePasswordTitle "+(n[20]?"ChangePasswordTitleNone":"")),gn(a,"for","CurrentPassword"),gn(s,"id","CurrentPassword"),gn(s,"type","password"),gn(o,"class",l="PlayerChangePasswordBox "+(n[4]?"InvalidField":"")),gn(u,"for","NewPassword"),gn(d,"id","NewPassword"),gn(d,"autocomplete","new-password"),gn(d,"type","password"),gn(c,"class",p="PlayerChangePasswordBox "+(n[5]?"InvalidField":"")),gn(m,"for","ConfirmPassword"),gn(f,"id","ConfirmPassword"),gn(f,"type","password"),gn(h,"class",g="PlayerChangePasswordBox "+(n[6]?"InvalidField":"")),gn(r,"class","PlayerChangePasswordContent"),gn(b,"class",w="PlayerChangePasswordSaveButton "+(n[3]?"":"ButtonInactive")),b.disabled=_=!n[3],gn(v,"class","PlayerChangePasswordButtonsArea")},m(e,t){T&&T.m(e,t),cn(e,F,t),cn(e,i,t),ln(i,R),cn(e,H,t),cn(e,r,t),ln(r,o),ln(o,a),ln(a,z),ln(o,W),ln(o,s),bn(s,n[14]),n[33](s),ln(o,Y),M.m(o,null),ln(o,j),k&&k.m(o,null),ln(r,U),ln(r,c),ln(c,u),ln(u,G),ln(c,V),ln(c,d),bn(d,n[15]),n[37](d),ln(c,q),L.m(c,null),ln(c,X),$&&$.m(c,null),ln(r,Z),ln(r,h),ln(h,m),ln(m,J),ln(h,K),ln(h,f),bn(f,n[16]),n[41](f),ln(h,Q),I.m(h,null),ln(h,ee),N&&N.m(h,null),cn(e,te,t),O&&O.m(e,t),cn(e,y,t),cn(e,v,t),ln(v,b),ln(b,ne),ie||(re=[fn(s,"input",n[32]),fn(s,"blur",function(){ue(n[23](n[4],n[14],n[7]))&&n[23](n[4],n[14],n[7]).apply(this,arguments)}),fn(d,"input",n[36]),fn(d,"blur",function(){ue(n[23](n[5],n[15],n[8]))&&n[23](n[5],n[15],n[8]).apply(this,arguments)}),fn(f,"input",n[40]),fn(f,"blur",function(){ue(n[23](n[6],n[16],n[9]))&&n[23](n[6],n[16],n[9]).apply(this,arguments)}),fn(b,"click",n[44])],ie=!0)},p(e,t){(n=e)[20]&&T.p(n,t),524288&t[0]&&x!==(x=n[19]("title")+"")&&yn(R,x),524288&t[0]&&C!==(C=n[19]("currentPassword")+"")&&yn(z,C),16384&t[0]&&s.value!==n[14]&&bn(s,n[14]),S===(S=oe(n))&&M?M.p(n,t):(M.d(1),(M=S(n))&&(M.c(),M.m(o,j))),n[4]?k?k.p(n,t):((k=rh(n)).c(),k.m(o,null)):k&&(k.d(1),k=null),16&t[0]&&l!==(l="PlayerChangePasswordBox "+(n[4]?"InvalidField":""))&&gn(o,"class",l),524288&t[0]&&P!==(P=n[19]("newPassword")+"")&&yn(G,P),32768&t[0]&&d.value!==n[15]&&bn(d,n[15]),D===(D=ae(n))&&L?L.p(n,t):(L.d(1),(L=D(n))&&(L.c(),L.m(c,X))),B===(B=se(n))&&$?$.p(n,t):($&&$.d(1),($=B&&B(n))&&($.c(),$.m(c,null))),32&t[0]&&p!==(p="PlayerChangePasswordBox "+(n[5]?"InvalidField":""))&&gn(c,"class",p),524288&t[0]&&E!==(E=n[19]("confirmPassword")+"")&&yn(J,E),65536&t[0]&&f.value!==n[16]&&bn(f,n[16]),ce===(ce=le(n))&&I?I.p(n,t):(I.d(1),(I=ce(n))&&(I.c(),I.m(h,ee))),n[6]?N?N.p(n,t):((N=fh(n)).c(),N.m(h,null)):N&&(N.d(1),N=null),64&t[0]&&g!==(g="PlayerChangePasswordBox "+(n[6]?"InvalidField":""))&&gn(h,"class",g),n[18]?O?O.p(n,t):((O=gh(n)).c(),O.m(y.parentNode,y)):O&&(O.d(1),O=null),524288&t[0]&&A!==(A=n[19]("submitChangePassword")+"")&&yn(ne,A),8&t[0]&&w!==(w="PlayerChangePasswordSaveButton "+(n[3]?"":"ButtonInactive"))&&gn(b,"class",w),8&t[0]&&_!==(_=!n[3])&&(b.disabled=_)},d(e){T&&T.d(e),e&&un(F),e&&un(i),e&&un(H),e&&un(r),n[33](null),M.d(),k&&k.d(),n[37](null),L.d(),$&&$.d(),n[41](null),I.d(),N&&N.d(),e&&un(te),O&&O.d(e),e&&un(y),e&&un(v),ie=!1,sn(re)}}}function nh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("path"),c=pn("circle"),gn(l,"class","a"),gn(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"),gn(l,"transform","translate(0)"),gn(c,"class","a"),gn(c,"cx","2.779"),gn(c,"cy","2.779"),gn(c,"r","2.779"),gn(c,"transform","translate(20.827 30.303)"),gn(s,"transform","translate(-14.185 -27.832)"),gn(i,"class",u="TogglePasswordVisibility "+(n[4]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.843"),gn(i,"height","10.5"),gn(i,"viewBox","0 0 18.843 10.5")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),d||(p=fn(i,"click",n[35]),d=!0)},p(e,t){16&t[0]&&u!==(u="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",u)},d(e){e&&un(i),d=!1,p()}}}function ih(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("circle"),c=pn("g"),u=pn("path"),d=pn("path"),p=pn("g"),h=pn("path"),m=pn("path"),f=pn("rect"),gn(l,"class","a"),gn(l,"cx","0.05"),gn(l,"cy","0.05"),gn(l,"r","0.05"),gn(l,"transform","translate(121.017 31.148)"),gn(u,"class","a"),gn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gn(u,"transform","translate(-142.164 -39.123)"),gn(d,"class","a"),gn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gn(d,"transform","translate(-136.413 -42.068)"),gn(c,"transform","translate(117.499 27.37)"),gn(h,"class","a"),gn(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"),gn(h,"transform","translate(-110.856 -33.157)"),gn(m,"class","a"),gn(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"),gn(m,"transform","translate(-130.743 -29.617)"),gn(p,"transform","translate(110.856 24.899)"),gn(f,"class","a"),gn(f,"width","0.972"),gn(f,"height","15.861"),gn(f,"rx","0.486"),gn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gn(s,"transform","translate(-110.856 -23.242)"),gn(i,"class",g="TogglePasswordVisibility "+(n[4]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.844"),gn(i,"height","12.887"),gn(i,"viewBox","0 0 18.844 12.887")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),ln(c,u),ln(c,d),ln(s,p),ln(p,h),ln(p,m),ln(s,f),y||(v=fn(i,"click",n[34]),y=!0)},p(e,t){16&t[0]&&g!==(g="TogglePasswordVisibility "+(e[4]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",g)},d(e){e&&un(i),y=!1,v()}}}function rh(e){let n;function i(e){return"true"==e[0]?ah:oh}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function oh(e){let n,i,r=e[19]("invalidCurrentPassword")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidCurrentPassword")+"")&&yn(i,r)},d(e){e&&un(n)}}}function ah(e){let n,i,r=e[19]("simplePasswordError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function sh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("path"),c=pn("circle"),gn(l,"class","a"),gn(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"),gn(l,"transform","translate(0)"),gn(c,"class","a"),gn(c,"cx","2.779"),gn(c,"cy","2.779"),gn(c,"r","2.779"),gn(c,"transform","translate(20.827 30.303)"),gn(s,"transform","translate(-14.185 -27.832)"),gn(i,"class",u="TogglePasswordVisibility "+(n[5]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.843"),gn(i,"height","10.5"),gn(i,"viewBox","0 0 18.843 10.5")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),d||(p=fn(i,"click",n[39]),d=!0)},p(e,t){32&t[0]&&u!==(u="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",u)},d(e){e&&un(i),d=!1,p()}}}function lh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("circle"),c=pn("g"),u=pn("path"),d=pn("path"),p=pn("g"),h=pn("path"),m=pn("path"),f=pn("rect"),gn(l,"class","a"),gn(l,"cx","0.05"),gn(l,"cy","0.05"),gn(l,"r","0.05"),gn(l,"transform","translate(121.017 31.148)"),gn(u,"class","a"),gn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gn(u,"transform","translate(-142.164 -39.123)"),gn(d,"class","a"),gn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gn(d,"transform","translate(-136.413 -42.068)"),gn(c,"transform","translate(117.499 27.37)"),gn(h,"class","a"),gn(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"),gn(h,"transform","translate(-110.856 -33.157)"),gn(m,"class","a"),gn(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"),gn(m,"transform","translate(-130.743 -29.617)"),gn(p,"transform","translate(110.856 24.899)"),gn(f,"class","a"),gn(f,"width","0.972"),gn(f,"height","15.861"),gn(f,"rx","0.486"),gn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gn(s,"transform","translate(-110.856 -23.242)"),gn(i,"class",g="TogglePasswordVisibility "+(n[5]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.844"),gn(i,"height","12.887"),gn(i,"viewBox","0 0 18.844 12.887")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),ln(c,u),ln(c,d),ln(s,p),ln(p,h),ln(p,m),ln(s,f),y||(v=fn(i,"click",n[38]),y=!0)},p(e,t){32&t[0]&&g!==(g="TogglePasswordVisibility "+(e[5]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",g)},d(e){e&&un(i),y=!1,v()}}}function ch(e){let n;function i(e){return"true"==e[0]?ph:dh}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function uh(e){let n,i,r=e[19]("invalidNewPassword")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInputNew")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPassword")+"")&&yn(i,r)},d(e){e&&un(n)}}}function dh(e){let n,i,r=e[19]("invalidNewPasswordSecondary")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("invalidNewPasswordSecondary")+"")&&yn(i,r)},d(e){e&&un(n)}}}function ph(e){let n,i,r=e[19]("simplePasswordError")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("simplePasswordError")+"")&&yn(i,r)},d(e){e&&un(n)}}}function hh(n){let i,r,o,a,s,l,c,u,d,p;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("path"),c=pn("circle"),gn(l,"class","a"),gn(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"),gn(l,"transform","translate(0)"),gn(c,"class","a"),gn(c,"cx","2.779"),gn(c,"cy","2.779"),gn(c,"r","2.779"),gn(c,"transform","translate(20.827 30.303)"),gn(s,"transform","translate(-14.185 -27.832)"),gn(i,"class",u="TogglePasswordVisibility "+(n[6]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.843"),gn(i,"height","10.5"),gn(i,"viewBox","0 0 18.843 10.5")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),d||(p=fn(i,"click",n[43]),d=!0)},p(e,t){64&t[0]&&u!==(u="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",u)},d(e){e&&un(i),d=!1,p()}}}function mh(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v;return{c(){i=pn("svg"),r=pn("defs"),o=pn("style"),a=hn(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),s=pn("g"),l=pn("circle"),c=pn("g"),u=pn("path"),d=pn("path"),p=pn("g"),h=pn("path"),m=pn("path"),f=pn("rect"),gn(l,"class","a"),gn(l,"cx","0.05"),gn(l,"cy","0.05"),gn(l,"r","0.05"),gn(l,"transform","translate(121.017 31.148)"),gn(u,"class","a"),gn(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),gn(u,"transform","translate(-142.164 -39.123)"),gn(d,"class","a"),gn(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),gn(d,"transform","translate(-136.413 -42.068)"),gn(c,"transform","translate(117.499 27.37)"),gn(h,"class","a"),gn(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"),gn(h,"transform","translate(-110.856 -33.157)"),gn(m,"class","a"),gn(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"),gn(m,"transform","translate(-130.743 -29.617)"),gn(p,"transform","translate(110.856 24.899)"),gn(f,"class","a"),gn(f,"width","0.972"),gn(f,"height","15.861"),gn(f,"rx","0.486"),gn(f,"transform","translate(114.827 23.858) rotate(-39.315)"),gn(s,"transform","translate(-110.856 -23.242)"),gn(i,"class",g="TogglePasswordVisibility "+(n[6]?"InvalidToggle":"")+" "+(n[20]?"TogglePasswordVisibilityMobile":"")),gn(i,"xmlns","http://www.w3.org/2000/svg"),gn(i,"width","18.844"),gn(i,"height","12.887"),gn(i,"viewBox","0 0 18.844 12.887")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(i,s),ln(s,l),ln(s,c),ln(c,u),ln(c,d),ln(s,p),ln(p,h),ln(p,m),ln(s,f),y||(v=fn(i,"click",n[42]),y=!0)},p(e,t){64&t[0]&&g!==(g="TogglePasswordVisibility "+(e[6]?"InvalidToggle":"")+" "+(e[20]?"TogglePasswordVisibilityMobile":""))&&gn(i,"class",g)},d(e){e&&un(i),y=!1,v()}}}function fh(e){let n,i,r=e[19]("confirmPasswordInvalid")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","InvalidInput")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){524288&t[0]&&r!==(r=e[19]("confirmPasswordInvalid")+"")&&yn(i,r)},d(e){e&&un(n)}}}function gh(e){let n,i,r;return{c(){n=dn("div"),i=dn("p"),r=hn(e[17]),gn(i,"class","PasswordChangedError")},m(e,t){cn(e,n,t),ln(n,i),ln(i,r)},p(e,t){131072&t[0]&&yn(r,e[17])},d(e){e&&un(n)}}}function yh(n){let i,r=function(e){let n;function i(e){return e[2]?eh:th}let r=i(e),o=r(e);return{c(){n=dn("form"),o.c(),gn(n,"class","PlayerChangePasswordWrapper "+(e[20]?"PlayerChangePasswordWrapperMobile":"")+" "+(e[21].matches&&e[20]?"PlayerChangePasswordWrapperTablet":""))},m(e,t){cn(e,n,t),o.m(n,null)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n,null)))},d(e){e&&un(n),o.d()}}}(n);return{c(){i=dn("div"),r.c(),this.c=se},m(e,t){cn(e,i,t),r.m(i,null),n[47](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&un(i),r.d(),n[47](null)}}}function vh(t,e,i){let n;pe(t,ge,e=>i(19,n=e));let r,{lang:o="en"}=e,{simplepasswordvalidation:a="false"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:c=""}=e,u=window.navigator.userAgent,d="PC"!==ye(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,b=!1,w=!1,_=!1,x=!1,C=!1,P="",E="",A="",T=!1,S="",M=!1;Object.keys(Qp).forEach(e=>{Kp(e,Qp[e])});const k=e=>{switch(e){case"userCurrentPassword":i(10,w=!w),i(7,m.type=w?"text":"password",m);break;case"userNewPassword":i(11,_=!_),i(8,f.type=_?"text":"password",f);break;case"userConfirmPassword":i(12,x=!x),i(9,g.type=x?"text":"password",g)}},D=e=>!!h.password.test(e),L=e=>{e.preventDefault(),p&&window.postMessage({type:"ChangePassword",userCurrentPassword:P,userNewPassword:E},window.location.href)},B=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},$=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},I=e=>{if(e.data)switch(e.data.type){case"PasswordChangedSuccessfully":i(2,T=!0);break;case"ShowPasswordChangedError":i(18,M=e.data.showErrorPasswordChanged),i(17,S=e.data.errorPasswordChanged)}};return he(()=>(window.addEventListener("message",I,!1),()=>{window.removeEventListener("message",I)})),t.$$set=e=>{"lang"in e&&i(27,o=e.lang),"simplepasswordvalidation"in e&&i(0,a=e.simplepasswordvalidation),"clientstyling"in e&&i(28,s=e.clientstyling),"clientstylingurl"in e&&i(29,l=e.clientstylingurl),"translationurl"in e&&i(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,fe.set(e)),t.$$.dirty[0],536870914&t.$$.dirty[0]&&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;268435458&t.$$.dirty[0]&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),1073741824&t.$$.dirty[0]&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Kp(e,t[e])})}).catch(e=>{console.log(e)})},[a,r,T,p,y,v,b,m,f,g,w,_,x,C,P,E,A,S,M,n,d,N,k,(e,t,n)=>{"CurrentPassword"===n.id?i(4,y=!D(t)):"NewPassword"===n.id&&(i(5,v=!D(t)),P&&i(13,C=P===E),!A)||i(6,b=E!==A||!D(t)),i(3,p=!(y||v||b||C||!P||!E||!A))},L,B,$,o,s,l,c,()=>B(),function(){P=this.value,i(14,P)},function(e){me[e?"unshift":"push"](()=>{m=e,i(7,m)})},()=>k("userCurrentPassword"),()=>k("userCurrentPassword"),function(){E=this.value,i(15,E)},function(e){me[e?"unshift":"push"](()=>{f=e,i(8,f)})},()=>k("userNewPassword"),()=>k("userNewPassword"),function(){A=this.value,i(16,A)},function(e){me[e?"unshift":"push"](()=>{g=e,i(9,g)})},()=>k("userConfirmPassword"),()=>k("userConfirmPassword"),e=>L(e),()=>B(),()=>$(),function(e){me[e?"unshift":"push"](()=>{r=e,i(1,r)})}]}function bh(e,t){a(e,t)}customElements.get("player-change-password")||customElements.define("player-change-password",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerChangePasswordWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A));padding:50px;max-width:400px}.ChangePasswordTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.ChangePasswordTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));background:var(--emfe-w-color-pale, #FBECF4);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-dunkel, #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-pink-500, #D0046C));background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));max-width:185px}.ChangedPasswordSuccessfully .PlayerChangePasswordBackButton:hover{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},vh,yh,n,{lang:27,simplepasswordvalidation:0,clientstyling:28,clientstylingurl:29,translationurl:30},null,[-1,-1]),e&&(e.target&&cn(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 wh={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 _h(e,t,n){e=e.slice();return e[35]=t[n].value,e[36]=t[n].text,e[38]=n,e}function xh(e){let n;return{c(){(n=dn("div")).textContent=""+e[6],gn(n,"class","successMessageMobile")},m(e,t){cn(e,n,t)},p:se,d(e){e&&un(n)}}}function Ch(e){let n,i;return{c(){n=dn("div"),i=hn(e[6]),gn(n,"class","successMessage "+(e[5]?"successMessageMobile":""))},m(e,t){cn(e,n,t),ln(n,i)},p:se,d(e){e&&un(n)}}}function Ph(n){let i,r,o,a,s,l,c,e=n[4]("setFrequency")+"",u=n[7],d=[];for(let e=0;e<u.length;e+=1)d[e]=Ah(_h(n,u,e));return{c(){i=dn("form");for(let e=0;e<d.length;e+=1)d[e].c();r=mn(),o=dn("div"),a=dn("button"),s=hn(e),gn(a,"class","PlayerRealityCheckButton"),gn(o,"class","BottomButtonsArea "+(n[5]?"BottomButtonsAreaMobile":"")),gn(i,"class","customRadio")},m(e,t){cn(e,i,t);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(i,null);ln(i,r),ln(i,o),ln(o,a),ln(a,s),l||(c=fn(a,"click",n[22]),l=!0)},p(t,n){if(130&n[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,n):(d[e]=Ah(s),d[e].c(),d[e].m(i,r))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}16&n[0]&&e!==(e=t[4]("setFrequency")+"")&&yn(s,e)},d(e){e&&un(i),vn(d,e),l=!1,c()}}}function Eh(e){let n,i,r=e[4]("realityCheckLoading")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16&t[0]&&r!==(r=e[4]("realityCheckLoading")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Ah(n){let i,r,o,a,s,t,l,c,e=n[36]+"";return t=function(t){let n;return{p(...e){(n=e).forEach(e=>t.push(e))},r(){n.forEach(e=>t.splice(t.indexOf(e),1))}}}(n[21][0]),{c(){i=dn("div"),r=dn("input"),o=mn(),a=dn("label"),s=hn(e),gn(r,"type","radio"),gn(r,"id",n[35]),r.__value=n[35],r.value=r.__value,gn(a,"for",n[35]),t.p(r)},m(e,t){cn(e,i,t),ln(i,r),r.checked=r.__value===n[1],ln(i,o),ln(i,a),ln(a,s),l||(c=fn(r,"change",n[20]),l=!0)},p(e,t){2&t[0]&&(r.checked=r.__value===e[1])},d(e){e&&un(i),t.r(),l=!1,c()}}}function Th(n){let i,r,o,a,s,l,c,u,d,p,h=n[4]("title")+"",m=n[4]("realityCheckText")+"",f=n[5]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y=n[4]("title")+"",v=n[3]&&xh(n);return{c(){v&&v.c(),i=mn(),r=dn("div"),o=pn("svg"),a=pn("defs"),s=pn("style"),l=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),c=pn("g"),u=pn("g"),d=pn("path"),p=mn(),h=dn("h2"),m=hn(y),gn(d,"class","aaa"),gn(d,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(d,"transform","translate(15 15) rotate(180)"),gn(u,"transform","translate(20 158)"),gn(c,"transform","translate(-20 -158)"),gn(o,"xmlns","http://www.w3.org/2000/svg"),gn(o,"width","15"),gn(o,"height","15"),gn(o,"viewBox","0 0 15 15"),gn(h,"class","RealityCheckTitleMobile"),gn(h,"part","RealityCheckTitleMobile"),gn(r,"class","MenuReturnButton"),gn(r,"part","MenuReturnButton")},m(e,t){v&&v.m(e,t),cn(e,i,t),cn(e,r,t),ln(r,o),ln(o,a),ln(a,s),ln(s,l),ln(o,c),ln(c,u),ln(u,d),ln(r,p),ln(r,h),ln(h,m),f||(g=fn(r,"click",n[19]),f=!0)},p(e,t){e[3]?v?v.p(e,t):((v=xh(e)).c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),16&t[0]&&y!==(y=e[4]("title")+"")&&yn(m,y)},d(e){v&&v.d(e),e&&un(i),e&&un(r),f=!1,g()}}}(n),g=n[3]&&Ch(n);function y(e){return e[2]?Eh:Ph}let v=y(n),b=v(n);return{c(){i=dn("div"),f&&f.c(),r=mn(),g&&g.c(),o=mn(),a=dn("h2"),s=hn(h),l=mn(),c=dn("div"),u=dn("p"),d=hn(m),p=mn(),b.c(),this.c=se,gn(a,"class","RealityCheckTitle "+(n[5]?"RealityCheckTitleNone":"")),gn(c,"class","RealityCheckDescription "+(n[5]?"RealityCheckDescriptionMobile":"")),gn(i,"class","PlayerRealityCheckWrapper "+(n[5]?"PlayerRealityCheckWrapperMobile":"")),gn(i,"part","PlayerRealityCheckWrapper "+(n[5]?"PlayerRealityCheckWrapperMobile":""))},m(e,t){cn(e,i,t),f&&f.m(i,null),ln(i,r),g&&g.m(i,null),ln(i,o),ln(i,a),ln(a,s),ln(i,l),ln(i,c),ln(c,u),ln(u,d),ln(c,p),b.m(c,null),n[23](i)},p(e,t){e[5]&&f.p(e,t),e[3]?g?g.p(e,t):((g=Ch(e)).c(),g.m(i,o)):g&&(g.d(1),g=null),16&t[0]&&h!==(h=e[4]("title")+"")&&yn(s,h),16&t[0]&&m!==(m=e[4]("realityCheckText")+"")&&yn(d,m),v===(v=y(e))&&b?b.p(e,t):(b.d(1),(b=v(e))&&(b.c(),b.m(c,null)))},i:se,o:se,d(e){e&&un(i),f&&f.d(),g&&g.d(),b.d(),n[23](null)}}}function Sh(n,e,i){let r;pe(n,ge,e=>i(4,r=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"!==ye(t),f="",g=!0,y=(Object.keys(wh).forEach(e=>{bh(e,wh[e])}),!1),v=r("successMessage"),b=[],w=[];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&&(i(3,y=!0),setTimeout(()=>{i(3,y=!1)},2e3))};return he(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)})),n.$$set=e=>{"realitycheck"in e&&i(10,a=e.realitycheck),"endpoint"in e&&i(11,s=e.endpoint),"playerid"in e&&i(12,l=e.playerid),"session"in e&&i(13,c=e.session),"lang"in e&&i(14,u=e.lang),"clientstyling"in e&&i(15,d=e.clientstyling),"clientstylingurl"in e&&i(16,p=e.clientstylingurl),"translationurl"in e&&i(17,h=e.translationurl)},n.$$.update=()=>{if(16384&n.$$.dirty[0]&&u&&(t=u,fe.set(t)),14336&n.$$.dirty[0]&&s&&l&&c&&(t=new URL(`${s}/player/${l}/availablerealityvalues`),e={method:"GET",headers:{"X-SessionId":c,accept:"application/json"}},fetch(t.href,e).then(e=>e.json()).then(e=>{i(18,b=e.AvailableRealityCheckValues),b.forEach(e=>{0==e?w.push({value:e.toString(),text:r("never")}):e<60?w.push({value:e.toString(),text:e+" "+r("minutes")}):60==e?w.push({value:e.toString(),text:r("oneHour")}):60<e&&w.push({value:e.toString(),text:e/60+" "+r("hours")})}),i(2,g=!1)},e=>{console.error(e)})),263168&n.$$.dirty[0]&&b&&a&&i(1,f=a),65537&n.$$.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&n.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),131072&n.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{bh(e,t[e])})}).catch(e=>{console.log(e)})},[o,f,g,y,r,m,v,w,_,x,a,s,l,c,u,d,p,h,b,()=>x(),function(){f=this.__value,i(1,f)},[[]],e=>_(e),function(e){me[e?"unshift":"push"](()=>{o=e,i(0,o)})}]}function Mh(e,t){a(e,t)}customElements.get("player-reality-check")||customElements.define("player-reality-check",class extends t{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-pink-500, #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-dunkel, #07072A));line-height:24px}.PlayerRealityCheckWrapper{position:relative;color:var(--emfe-w-pam-contrast, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Sh,Th,n,{realitycheck:10,endpoint:11,playerid:12,session:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17},null,[-1,-1]),e&&(e.target&&cn(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 kh={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 Dh(e,t,n){e=e.slice();return e[42]=t[n],e[44]=n,e}function Lh(e,t,n){e=e.slice();return e[45]=t[n],e}function Bh(t){let r,o=t[13],a=[];for(let e=0;e<o.length;e+=1)a[e]=Oh(Lh(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=I()},m(t,n){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,n);cn(t,r,n)},p(t,n){if(8199&n[0]){let e;for(o=t[13],e=0;e<o.length;e+=1){var i=Lh(t,o,e);a[e]?a[e].p(i,n):(a[e]=Oh(i),a[e].c(),a[e].m(r.parentNode,r))}for(;e<a.length;e+=1)a[e].d(1);a.length=o.length}},d(e){vn(a,e),e&&un(r)}}}function $h(e){let n,i,r=e[14]("noBonusHistory")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noBonusHistory")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Ih(e){let n,i,r,o,a,s,l,c,u,d;return{c(){le(n=dn("player-bonus-card"),"bonuswalletid",i=e[45].walletId),le(n,"bonusdate",r=e[45].granted),le(n,"bonusstatus",o=e[45].status),le(n,"bonusname",a=e[45].name),le(n,"bonustype",s=e[45].type),le(n,"bonusamount",l=e[45].grantedAmount),le(n,"bonuswageringamount",c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement),le(n,"bonusremainingamount",u=e[45].currentAmount),le(n,"bonuscurrency",d=e[45].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){cn(e,n,t)},p(e,t){8192&t[0]&&i!==(i=e[45].walletId)&&le(n,"bonuswalletid",i),8192&t[0]&&r!==(r=e[45].granted)&&le(n,"bonusdate",r),8192&t[0]&&o!==(o=e[45].status)&&le(n,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(n,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(n,"bonustype",s),8192&t[0]&&l!==(l=e[45].grantedAmount)&&le(n,"bonusamount",l),8192&t[0]&&c!==(c=e[45].fulfilledWR+" / "+e[45].originalWageringRequirement)&&le(n,"bonuswageringamount",c),8192&t[0]&&u!==(u=e[45].currentAmount)&&le(n,"bonusremainingamount",u),8192&t[0]&&d!==(d=e[45].currency)&&le(n,"bonuscurrency",d),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&un(n)}}}function Nh(e){let n,i,r,o,a,s,l;return{c(){le(n=dn("player-bonus-card"),"bonuswalletid",i=e[45].walletId),le(n,"bonusdate",r=e[45].granted),le(n,"bonusstatus",o=e[45].status),le(n,"bonusname",a=e[45].name),le(n,"bonustype",s=e[45].type),le(n,"bonuscurrency",l=e[45].currency),le(n,"lang",e[0]),le(n,"clientstyling",e[1]),le(n,"clientstylingurl",e[2])},m(e,t){cn(e,n,t)},p(e,t){8192&t[0]&&i!==(i=e[45].walletId)&&le(n,"bonuswalletid",i),8192&t[0]&&r!==(r=e[45].granted)&&le(n,"bonusdate",r),8192&t[0]&&o!==(o=e[45].status)&&le(n,"bonusstatus",o),8192&t[0]&&a!==(a=e[45].name)&&le(n,"bonusname",a),8192&t[0]&&s!==(s=e[45].type)&&le(n,"bonustype",s),8192&t[0]&&l!==(l=e[45].currency)&&le(n,"bonuscurrency",l),1&t[0]&&le(n,"lang",e[0]),2&t[0]&&le(n,"clientstyling",e[1]),4&t[0]&&le(n,"clientstylingurl",e[2])},d(e){e&&un(n)}}}function Oh(e){let n;function i(e){return"freeRound"===e[45].type?Nh:Ih}let r=i(e),o=r(e);return{c(){o.c(),n=I()},m(e,t){o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&un(n)}}}function Fh(n){let i,r,o,a,s,l,c,e,u,d,p,h,m,f,g,y,v,b,w,_=Array(n[11]),x=[];for(let e=0;e<_.length;e+=1)x[e]=Rh(Dh(n,_,e));return{c(){i=dn("div"),r=dn("span"),o=hn("|<"),s=mn(),l=dn("span"),c=hn("<"),u=mn();for(let e=0;e<x.length;e+=1)x[e].c();d=mn(),p=dn("span"),h=hn(">"),f=mn(),g=dn("span"),y=hn(">|"),gn(r,"class",a="BonusesFirst "+(0===n[12]?"Inactive":"")),gn(l,"class",e="BonusesPrev "+(0===n[12]?"Inactive":"")),gn(p,"class",m="BonusesNext "+(n[12]===n[11]-1?"Inactive":"")),gn(g,"class",v="BonusesLast "+(n[12]===n[11]-1?"Inactive":"")),gn(i,"class","BonusesPaginationWrapper "+(n[15]?"BonusesPaginationWrapperMobile":""))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(i,s),ln(i,l),ln(l,c),ln(i,u);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(i,null);ln(i,d),ln(i,p),ln(p,h),ln(i,f),ln(i,g),ln(g,y),b||(w=[fn(r,"click",n[26]),fn(l,"click",n[27]),fn(p,"click",n[29]),fn(g,"click",n[30])],b=!0)},p(t,n){if(4096&n[0]&&a!==(a="BonusesFirst "+(0===t[12]?"Inactive":""))&&gn(r,"class",a),4096&n[0]&&e!==(e="BonusesPrev "+(0===t[12]?"Inactive":""))&&gn(l,"class",e),137216&n[0]){let e;for(_=Array(t[11]),e=0;e<_.length;e+=1){const a=Dh(t,_,e);x[e]?x[e].p(a,n):(x[e]=Rh(a),x[e].c(),x[e].m(i,d))}for(;e<x.length;e+=1)x[e].d(1);x.length=_.length}6144&n[0]&&m!==(m="BonusesNext "+(t[12]===t[11]-1?"Inactive":""))&&gn(p,"class",m),6144&n[0]&&v!==(v="BonusesLast "+(t[12]===t[11]-1?"Inactive":""))&&gn(g,"class",v)},d(e){e&&un(i),vn(x,e),b=!1,sn(w)}}}function Rh(n){let i,r,o,a,s,e=n[44]+1+"";function l(){return n[28](n[44])}return{c(){i=dn("span"),r=hn(e),gn(i,"class",o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))},m(e,t){cn(e,i,t),ln(i,r),a||(s=fn(i,"click",l),a=!0)},p(e,t){n=e,4096&t[0]&&o!==(o="BonusesPage "+(n[44]===n[12]?"BonusPageActive":""))&&gn(i,"class",o)},d(e){e&&un(i),a=!1,s()}}}function Hh(n){let i,r=function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,A,T,S,M=n[14]("title")+"",k=n[14]("dateFrom")+"",D=n[14]("dateTo")+"",L=n[14]("dateFilter")+"",B=n[15]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","BonusesTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[22]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function $(e){return 0===e[13].length?$h:Bh}let I=$(n),N=I(n),O=0!==n[13].length&&Fh(n);return{c(){i=dn("div"),B&&B.c(),r=mn(),o=dn("h2"),a=hn(M),s=mn(),l=dn("div"),c=dn("div"),u=dn("div"),d=dn("label"),p=hn(k),h=mn(),m=dn("vaadin-date-picker"),f=mn(),g=dn("div"),y=dn("label"),v=hn(D),b=mn(),w=dn("vaadin-date-picker"),_=mn(),x=dn("button"),C=hn(L),P=mn(),E=dn("div"),N.c(),A=mn(),O&&O.c(),gn(o,"class","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),gn(o,"part","BonusesTitle "+(n[15]?"BonusesTitleNone":"")),gn(d,"for","BonusCalendarStartDate"),le(m,"max",n[6]),le(m,"value",n[7]),le(m,"placeholder","From"),le(m,"class","VaadinDatePicker"),gn(u,"class","BonusesCalendarStartDate "+(n[15]?"BonusesCalendarMobile":"")),gn(y,"for","BonusesCalendarEndDate"),le(w,"max",n[6]),le(w,"value",n[6]),le(w,"placeholder","To"),le(w,"class","VaadinDatePicker"),gn(g,"class","BonusesCalendarEndDate "+(n[15]?"BonusesCalendarMobile":"")),gn(c,"class","BonusesCalendarContainer "+(n[15]?"BonusesCalendarContainerMobile":"")),gn(x,"class","BonusesCalendarFilter "+(n[15]?"BonusesCalendarFilterMobile":"")),gn(l,"class","BonusCalendarWrapper "+(n[15]?"BonusCalendarWrapperMobile":"")),gn(E,"class","BonusesGrid "+(n[15]?"BonusesGridMobile":"")),gn(i,"class","BonusesWrapper "+(n[15]?"BonusesWrapperMobile":""))},m(e,t){cn(e,i,t),B&&B.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),ln(i,l),ln(l,c),ln(c,u),ln(u,d),ln(d,p),ln(u,h),ln(u,m),n[23](m),ln(c,f),ln(c,g),ln(g,y),ln(y,v),ln(g,b),ln(g,w),n[24](w),ln(l,_),ln(l,x),ln(x,C),ln(i,P),ln(i,E),N.m(E,null),ln(i,A),O&&O.m(i,null),T||(S=fn(x,"click",n[25]),T=!0)},p(e,t){e[15]&&B.p(e,t),16384&t[0]&&M!==(M=e[14]("title")+"")&&yn(a,M),16384&t[0]&&k!==(k=e[14]("dateFrom")+"")&&yn(p,k),64&t[0]&&le(m,"max",e[6]),128&t[0]&&le(m,"value",e[7]),16384&t[0]&&D!==(D=e[14]("dateTo")+"")&&yn(v,D),64&t[0]&&le(w,"max",e[6]),64&t[0]&&le(w,"value",e[6]),16384&t[0]&&L!==(L=e[14]("dateFilter")+"")&&yn(C,L),I===(I=$(e))&&N?N.p(e,t):(N.d(1),(N=I(e))&&(N.c(),N.m(E,null))),0!==e[13].length?O?O.p(e,t):((O=Fh(e)).c(),O.m(i,null)):O&&(O.d(1),O=null)},d(e){e&&un(i),B&&B.d(),n[23](null),n[24](null),N.d(),O&&O.d(),T=!1,S()}}}(n);return{c(){i=dn("div"),r.c(),this.c=se},m(e,t){cn(e,i,t),r.m(i,null),n[31](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&un(i),r.d(),n[31](null)}}}function zh(t,e,i){let n;pe(t,ge,e=>i(14,n=e));let r,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"!==ye(g),v=(s=W(new Date).format("YYYY-MM-DD"),l=W(new Date).subtract(3,"months").format("YYYY-MM-DD")),b=s,w=0,_=0,x=0,C=0,P=0,E=[];Object.keys(kh).forEach(e=>{Mh(e,kh[e])});const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},T=t=>{var e=new URL(`${c}/player/${d}/bonusWallet`),n=`status=closed,status=forfeited,status=released,status=expired,type=standard,type=freeround,type=freebet,granted=[${new Date(v).toISOString()}~${new Date(b).toISOString()}]`,n=(e.searchParams.append("filter",n),e.searchParams.append("pagination",`offset=${t},limit=6`),{method:"GET",headers:{"X-SessionId":u}});fetch(e.href,n).then(e=>e.json()).then(e=>{i(11,C=Math.ceil(e.total/6)),0<=t-6&&i(8,w=t-6),t+6<e.total&&i(9,_=t+6),i(10,x=6*(C-1)),i(12,P=t/6),i(13,E=e.items)},e=>{console.error(e)})},S=e=>{v=e.target.value},M=e=>{b=e.target.value};he(()=>()=>{o.removeEventListener("change",S),a.removeEventListener("change",M)});return t.$$set=e=>{"endpoint"in e&&i(18,c=e.endpoint),"session"in e&&i(19,u=e.session),"playerid"in e&&i(20,d=e.playerid),"lang"in e&&i(0,p=e.lang),"clientstyling"in e&&i(1,h=e.clientstyling),"clientstylingurl"in e&&i(2,m=e.clientstylingurl),"translationurl"in e&&i(21,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&p&&(e=p,fe.set(e)),48&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",S,!1),a.addEventListener("change",M,!1)),1835008&t.$$.dirty[0]&&u&&d&&c&&T(0),12&t.$$.dirty[0]&&m&&r){let e=new URL(m),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e;10&t.$$.dirty[0]&&h&&r&&((e=document.createElement("style")).innerHTML=h,r.appendChild(e)),2097152&t.$$.dirty[0]&&f&&fetch(f).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Mh(e,t[e])})}).catch(e=>{console.log(e)})},[p,h,m,r,o,a,s,l,w,_,x,C,P,E,n,y,A,T,c,u,d,f,()=>A(),function(e){me[e?"unshift":"push"](()=>{o=e,i(4,o)})},function(e){me[e?"unshift":"push"](()=>{a=e,i(5,a)})},()=>T(0),()=>T(0),()=>T(w),e=>T(6*e),()=>T(_),()=>T(x),function(e){me[e?"unshift":"push"](()=>{r=e,i(3,r)})}]}function Wh(e,t){a(e,t)}customElements.get("player-bonus-history")||customElements.define("player-bonus-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".BonusesWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-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))}.BonusesTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #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-pink-500, #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-dunkel, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},zh,Hh,n,{endpoint:18,session:19,playerid:20,lang:0,clientstyling:1,clientstylingurl:2,translationurl:21},null,[-1,-1]),e&&(e.target&&cn(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 Yh={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 jh(e){let n,i,r;return{c(){n=dn("div"),_((i=dn("iframe")).src,r=e[2])||gn(i,"src",r),gn(i,"title","Deposit Iframe"),gn(n,"class","DepositIframeWrapper")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&gn(i,"src",r)},d(e){e&&un(n)}}}function Uh(e){let n,i,r=e[3]("loading")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Gh(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","DepositTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function u(e){return e[1]?Uh:jh}let d=u(n),p=d(n);return{c(){i=dn("div"),c&&c.c(),r=mn(),o=dn("h2"),a=hn(l),s=mn(),p.c(),this.c=se,gn(o,"class","DepositTitle "+(n[4]?"DepositTitleNone":"")),gn(i,"class","DepositWrapper "+(n[4]?"DepositWrapperMobile":""))},m(e,t){cn(e,i,t),c&&c.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),p.m(i,null),n[16](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&un(i),c&&c.d(),p.d(),n[16](null)}}}function Vh(i,e,r){let t;pe(i,ge,e=>r(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,n=window.navigator.userAgent,f="PC"!==ye(n),g=!0,y=0,v="";Object.keys(Yh).forEach(e=>{Wh(e,Yh[e])});const b=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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:"GoToDeposit"},window.location.href)}};return he(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},i.$$.update=()=>{if(1024&i.$$.dirty&&c&&(n=c,fe.set(n)),8193&i.$$.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&i.$$.dirty&&d&&o&&((n=document.createElement("style")).innerHTML=d,o.appendChild(n)),16384&i.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Wh(e,t[e])})}).catch(e=>{console.log(e)}),1984&i.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);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=>{r(1,g=!1),r(2,v=e.CashierUrl)},e=>{console.error(e)})}var n},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){me[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function qh(e,t){a(e,t)}customElements.get("player-deposit")||customElements.define("player-deposit",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));padding:50px 50px 30px 50px;max-width:100%}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset}.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))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Vh,Gh,n,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&cn(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 Xh={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 Zh(e){let n,i,r;return{c(){n=dn("div"),_((i=dn("iframe")).src,r=e[2])||gn(i,"src",r),gn(i,"title","Withdrawal Iframe"),gn(n,"class","WithdrawalIframeWrapper")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&gn(i,"src",r)},d(e){e&&un(n)}}}function Jh(e){let n,i,r=e[3]("loading")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yn(i,r)},d(e){e&&un(n)}}}function Kh(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","WithdrawalTitleMobile"),gn(i,"class","MenuReturnButton"),gn(i,"part","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[15]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function u(e){return e[1]?Jh:Zh}let d=u(n),p=d(n);return{c(){i=dn("div"),c&&c.c(),r=mn(),o=dn("h2"),a=hn(l),s=mn(),p.c(),this.c=se,gn(o,"class","WithdrawalTitle "+(n[4]?"WithdrawalTitleNone":"")),gn(i,"class","WithdrawalWrapper "+(n[4]?"WithdrawalWrapperMobile":""))},m(e,t){cn(e,i,t),c&&c.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),p.m(i,null),n[16](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&un(i),c&&c.d(),p.d(),n[16](null)}}}function Qh(i,e,r){let t;pe(i,ge,e=>r(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,n=window.navigator.userAgent,f="PC"!==ye(n),g=!0,y=0,v="";Object.keys(Xh).forEach(e=>{qh(e,Xh[e])});const b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},w=e=>{if(e.data)switch("ProfileDetailsData"===e.data.type&&r(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:"ChangeAccountPage",page:{path:"/deposit",id:469}},window.location.href)}};return he(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)})),i.$$set=e=>{"endpoint"in e&&r(7,a=e.endpoint),"session"in e&&r(8,s=e.session),"playerid"in e&&r(9,l=e.playerid),"lang"in e&&r(10,c=e.lang),"hasdefaultamount"in e&&r(11,u=e.hasdefaultamount),"clientstyling"in e&&r(12,d=e.clientstyling),"clientstylingurl"in e&&r(13,p=e.clientstylingurl),"translationurl"in e&&r(14,h=e.translationurl),"playercurrency"in e&&r(6,m=e.playercurrency)},i.$$.update=()=>{if(1024&i.$$.dirty&&c&&(n=c,fe.set(n)),8193&i.$$.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&i.$$.dirty&&d&&o&&((n=document.createElement("style")).innerHTML=d,o.appendChild(n)),16384&i.$$.dirty&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qh(e,t[e])})}).catch(e=>{console.log(e)}),1984&i.$$.dirty&&s&&l&&a&&m&&c){var e=new URL(`${a}/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=>{r(1,g=!1),r(2,v=e.CashierUrl)},e=>{console.error(e)})}var n},[o,g,v,t,f,b,m,a,s,l,c,u,d,p,h,()=>b(),function(e){me[e?"unshift":"push"](()=>{o=e,r(0,o)})}]}function em(e,t){a(e,t)}customElements.get("player-withdrawal")||customElements.define("player-withdrawal",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".WithdrawalWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.WithdrawalTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.WithdrawalTitleMobile{font-size:16px}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Qh,Kh,n,{endpoint:7,session:8,playerid:9,lang:10,hasdefaultamount:11,clientstyling:12,clientstylingurl:13,translationurl:14,playercurrency:6},null),e&&(e.target&&cn(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 tm={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 nm(e){let n,i,r;return{c(){n=dn("div"),_((i=dn("iframe")).src,r=e[2])||gn(i,"src",r),gn(i,"title","Pending Withdrawals Iframe"),gn(n,"class","PendingWithdrawalsIframeWrapper")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&gn(i,"src",r)},d(e){e&&un(n)}}}function im(e){let n,i,r=e[3]("loading")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yn(i,r)},d(e){e&&un(n)}}}function rm(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","PendingWithdrawalsTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function u(e){return e[1]?im:nm}let d=u(n),p=d(n);return{c(){i=dn("div"),c&&c.c(),r=mn(),o=dn("h2"),a=hn(l),s=mn(),p.c(),this.c=se,gn(o,"class","PendingWithdrawalsTitle "+(n[4]?"PendingWithdrawalsTitleNone":"")),gn(i,"class","PendingWithdrawalsWrapper "+(n[4]?"PendingWithdrawalsWrapperMobile":""))},m(e,t){cn(e,i,t),c&&c.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),p.m(i,null),n[14](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&un(i),c&&c.d(),p.d(),n[14](null)}}}function om(n,e,i){let t;pe(n,ge,e=>i(3,t=e));let r,{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"!==ye(p),m=!0,f="";Object.keys(tm).forEach(e=>{em(e,tm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return n.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"playerid"in e&&i(8,s=e.playerid),"lang"in e&&i(9,l=e.lang),"clientstyling"in e&&i(10,c=e.clientstyling),"clientstylingurl"in e&&i(11,u=e.clientstylingurl),"translationurl"in e&&i(12,d=e.translationurl)},n.$$.update=()=>{if(512&n.$$.dirty&&l&&(t=l,fe.set(t)),960&n.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/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=>{i(1,m=!1),i(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&n.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&n.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&n.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{em(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){me[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function am(e,t){a(e,t)}customElements.get("player-pending-withdrawals")||customElements.define("player-pending-withdrawals",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".PendingWithdrawalsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.PendingWithdrawalsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.PendingWithdrawalsTitleMobile{font-size:16px}.PendingWithdrawalsTitleNone{display:none}.PendingWithdrawalsIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},om,rm,n,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&cn(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 sm={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 lm(e){let n,i,r;return{c(){n=dn("div"),_((i=dn("iframe")).src,r=e[2])||gn(i,"src",r),gn(i,"title","Transaction History Iframe"),gn(n,"class","TransactionHistoryIframeWrapper")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){4&t&&!_(i.src,r=e[2])&&gn(i,"src",r)},d(e){e&&un(n)}}}function cm(e){let n,i,r=e[3]("loading")+"";return{c(){n=dn("p"),i=hn(r)},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){8&t&&r!==(r=e[3]("loading")+"")&&yn(i,r)},d(e){e&&un(n)}}}function um(n){let i,r,o,a,s,l=n[3]("title")+"",c=n[4]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[3]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","TransactionHistoryTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[13]),m=!0)},p(e,t){8&t&&g!==(g=e[3]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n);function u(e){return e[1]?cm:lm}let d=u(n),p=d(n);return{c(){i=dn("div"),c&&c.c(),r=mn(),o=dn("h2"),a=hn(l),s=mn(),p.c(),this.c=se,gn(o,"class","TransactionHistoryTitle "+(n[4]?"TransactionHistoryTitleNone":"")),gn(i,"class","TransactionHistoryWrapper "+(n[4]?"TransactionHistoryWrapperMobile":""))},m(e,t){cn(e,i,t),c&&c.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),p.m(i,null),n[14](i)},p(e,[t]){e[4]&&c.p(e,t),8&t&&l!==(l=e[3]("title")+"")&&yn(a,l),d===(d=u(e))&&p?p.p(e,t):(p.d(1),(p=d(e))&&(p.c(),p.m(i,null)))},i:se,o:se,d(e){e&&un(i),c&&c.d(),p.d(),n[14](null)}}}function dm(n,e,i){let t;pe(n,ge,e=>i(3,t=e));let r,{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"!==ye(p),m=!0,f="";Object.keys(sm).forEach(e=>{am(e,sm[e])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)};return n.$$set=e=>{"endpoint"in e&&i(6,o=e.endpoint),"session"in e&&i(7,a=e.session),"playerid"in e&&i(8,s=e.playerid),"lang"in e&&i(9,l=e.lang),"clientstyling"in e&&i(10,c=e.clientstyling),"clientstylingurl"in e&&i(11,u=e.clientstylingurl),"translationurl"in e&&i(12,d=e.translationurl)},n.$$.update=()=>{if(512&n.$$.dirty&&l&&(t=l,fe.set(t)),960&n.$$.dirty&&a&&s&&o&&l&&((t=new URL(`${o}/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=>{i(1,m=!1),i(2,f=e.CashierUrl)},e=>{console.error(e)})),2049&n.$$.dirty&&u&&r){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}var e,t;1025&n.$$.dirty&&c&&r&&((e=document.createElement("style")).innerHTML=c,r.appendChild(e)),4096&n.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{am(e,t[e])})}).catch(e=>{console.log(e)})},[r,m,f,t,h,g,o,a,s,l,c,u,d,()=>g(),function(e){me[e?"unshift":"push"](()=>{r=e,i(0,r)})}]}function pm(e,t){a(e,t)}customElements.get("player-transaction-history")||customElements.define("player-transaction-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".TransactionHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-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))}.TransactionHistoryTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.TransactionHistoryTitleMobile{font-size:16px}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},dm,um,n,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},null),e&&(e.target&&cn(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 hm={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 mm(e,t,n){e=e.slice();return e[55]=t[n],e}function fm(e,t,n){e=e.slice();return e[58]=t[n],e}function gm(n){let i,r,o,a,s,l,c,e=n[14]("numberOfResults")+"",u=n[15],d=[];for(let e=0;e<u.length;e+=1)d[e]=ym(fm(n,u,e));return{c(){i=dn("div"),r=dn("span"),o=hn(e),a=mn(),s=dn("select");for(let e=0;e<d.length;e+=1)d[e].c();gn(s,"class","PlayerGamingHistoryItemCount"),void 0===n[7]&&_n(()=>n[33].call(s)),gn(i,"class","PlayerGamingItemCountContainer")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(i,a),ln(i,s);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(s,null);wn(s,n[7],!0),l||(c=[fn(s,"change",n[33]),fn(s,"change",n[34])],l=!0)},p(t,n){if(16384&n[0]&&e!==(e=t[14]("numberOfResults")+"")&&yn(o,e),32768&n[0]){let e;for(u=t[15],e=0;e<u.length;e+=1){const o=fm(t,u,e);d[e]?d[e].p(o,n):(d[e]=ym(o),d[e].c(),d[e].m(s,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}32896&n[0]&&wn(s,t[7])},d(e){e&&un(i),vn(d,e),l=!1,sn(c)}}}function ym(e){let n,i,t=e[58]+"";return{c(){n=dn("option"),i=hn(t),n.__value=e[58],n.value=n.__value},m(e,t){cn(e,n,t),ln(n,i)},p:se,d(e){e&&un(n)}}}function vm(e){let n,i,r=e[14]("noRecord")+"";return{c(){n=dn("p"),i=hn(r),gn(n,"class","PlayerGamingHistoryEmpty")},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){16384&t[0]&&r!==(r=e[14]("noRecord")+"")&&yn(i,r)},d(e){e&&un(n)}}}function bm(e){let n,i,r;return{c(){n=dn("p"),i=hn("Invalid data: "),r=hn(e[8]),gn(n,"class","PlayerGamingHistoryEmpty")},m(e,t){cn(e,n,t),ln(n,i),ln(n,r)},p(e,t){256&t[0]&&yn(r,e[8])},d(e){e&&un(n)}}}function wm(n){let i,r,o,a,s,l,O,c,u,F,d,p,R,H,z,W,Y,j,U,h,G,m,f,g,y,e,V,v,q,b,w,X,_,x,Z,J,C,P,E,A,T,K,Q,S=n[14]("transactionId")+"",M=n[14]("date")+"",k=n[14]("gameName")+"",D=n[14]("stake")+"",L=n[14]("return")+"",B=n[14]("previous")+"",$=n[14]("next")+"",I=n[13],N=[];for(let e=0;e<I.length;e+=1)N[e]=xm(mm(n,I,e));return{c(){i=dn("div"),r=dn("table"),o=dn("thead"),a=dn("tr"),s=dn("th"),l=hn(S),O=mn(),c=dn("th"),u=hn(M),F=mn(),d=dn("th"),p=hn(k),R=mn(),H=dn("th"),z=hn(D),W=mn(),Y=dn("th"),j=hn(L),U=mn(),h=dn("tbody");for(let e=0;e<N.length;e+=1)N[e].c();G=mn(),m=dn("div"),f=dn("button"),g=pn("svg"),y=pn("path"),V=mn(),v=dn("span"),q=hn(B),X=mn(),_=dn("button"),x=dn("span"),Z=hn($),J=mn(),C=pn("svg"),P=pn("path"),gn(i,"class","PlayerGamingHistoryContainer"),gn(y,"fill",e=n[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gn(y,"class","a"),gn(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"),gn(y,"transform","translate(19.246 -6.188) rotate(90)"),gn(g,"xmlns","http://www.w3.org/2000/svg"),gn(g,"width","8"),gn(g,"height","13.992"),gn(g,"viewBox","0 0 8 13.992"),gn(v,"class","PlayerPaginationControlsText"),gn(f,"class",b="PlayerPaginationControls "+(n[5]?"":"PlayerPaginationControlsDisabled")),f.disabled=w=!n[5],gn(x,"class","PlayerPaginationControlsText"),gn(P,"fill",E=n[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)"),gn(P,"class","a"),gn(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"),gn(P,"transform","translate(-11.246 20.179) rotate(-90)"),gn(C,"xmlns","http://www.w3.org/2000/svg"),gn(C,"width","8"),gn(C,"height","13.992"),gn(C,"viewBox","0 0 8 13.992"),gn(_,"class",A="PlayerPaginationControls "+(n[4]?"":"PlayerPaginationControlsDisabled")),_.disabled=T=!n[4],gn(m,"class","PlayerPaginationControlsArea")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(s,l),ln(a,O),ln(a,c),ln(c,u),ln(a,F),ln(a,d),ln(d,p),ln(a,R),ln(a,H),ln(H,z),ln(a,W),ln(a,Y),ln(Y,j),ln(r,U),ln(r,h);for(let e=0;e<N.length;e+=1)N[e]&&N[e].m(h,null);cn(e,G,t),cn(e,m,t),ln(m,f),ln(f,g),ln(g,y),ln(f,V),ln(f,v),ln(v,q),ln(m,X),ln(m,_),ln(_,x),ln(x,Z),ln(_,J),ln(_,C),ln(C,P),K||(Q=[fn(f,"click",n[35]),fn(_,"click",n[36])],K=!0)},p(t,n){if(16384&n[0]&&S!==(S=t[14]("transactionId")+"")&&yn(l,S),16384&n[0]&&M!==(M=t[14]("date")+"")&&yn(u,M),16384&n[0]&&k!==(k=t[14]("gameName")+"")&&yn(p,k),16384&n[0]&&D!==(D=t[14]("stake")+"")&&yn(z,D),16384&n[0]&&L!==(L=t[14]("return")+"")&&yn(j,L),1073152&n[0]){let e;for(I=t[13],e=0;e<I.length;e+=1){var i=mm(t,I,e);N[e]?N[e].p(i,n):(N[e]=xm(i),N[e].c(),N[e].m(h,null))}for(;e<N.length;e+=1)N[e].d(1);N.length=I.length}32&n[0]&&e!==(e=t[5]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gn(y,"fill",e),16384&n[0]&&B!==(B=t[14]("previous")+"")&&yn(q,B),32&n[0]&&b!==(b="PlayerPaginationControls "+(t[5]?"":"PlayerPaginationControlsDisabled"))&&gn(f,"class",b),32&n[0]&&w!==(w=!t[5])&&(f.disabled=w),16384&n[0]&&$!==($=t[14]("next")+"")&&yn(Z,$),16&n[0]&&E!==(E=t[4]?"var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))":"var(--emfe-w-color-gray-100, #E6E6E6)")&&gn(P,"fill",E),16&n[0]&&A!==(A="PlayerPaginationControls "+(t[4]?"":"PlayerPaginationControlsDisabled"))&&gn(_,"class",A),16&n[0]&&T!==(T=!t[4])&&(_.disabled=T)},d(e){e&&un(i),vn(N,e),e&&un(G),e&&un(m),K=!1,sn(Q)}}}function _m(e){let n;return{c(){gn(n=dn("div"),"class","DataLoader")},m(e,t){cn(e,n,t)},p:se,d(e){e&&un(n)}}}function xm(e){let n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,A,T,S,M=e[55].roundId+"",k=e[20](e[55])+"",D=e[55].gameModel.name+"",L=e[55].stakeAmount+"",B=e[55].returnAmount+"";return{c(){n=dn("tr"),i=dn("td"),r=dn("span"),o=hn(M),l=mn(),c=dn("td"),u=dn("span"),d=hn(k),h=mn(),m=dn("td"),f=dn("span"),g=hn(D),v=mn(),b=dn("td"),w=dn("span"),_=hn(L),C=mn(),P=dn("td"),E=dn("span"),A=hn(B),S=mn(),gn(i,"data-label",a=e[14]("transactionId")),gn(i,"title",s=e[55].roundId),gn(c,"data-label",p=e[14]("date")),gn(m,"data-label",y=e[14]("gameName")),gn(b,"data-label",x=e[14]("stake")),gn(P,"data-label",T=e[14]("return"))},m(e,t){cn(e,n,t),ln(n,i),ln(i,r),ln(r,o),ln(n,l),ln(n,c),ln(c,u),ln(u,d),ln(n,h),ln(n,m),ln(m,f),ln(f,g),ln(n,v),ln(n,b),ln(b,w),ln(w,_),ln(n,C),ln(n,P),ln(P,E),ln(E,A),ln(n,S)},p(e,t){8192&t[0]&&M!==(M=e[55].roundId+"")&&yn(o,M),16384&t[0]&&a!==(a=e[14]("transactionId"))&&gn(i,"data-label",a),8192&t[0]&&s!==(s=e[55].roundId)&&gn(i,"title",s),8192&t[0]&&k!==(k=e[20](e[55])+"")&&yn(d,k),16384&t[0]&&p!==(p=e[14]("date"))&&gn(c,"data-label",p),8192&t[0]&&D!==(D=e[55].gameModel.name+"")&&yn(g,D),16384&t[0]&&y!==(y=e[14]("gameName"))&&gn(m,"data-label",y),8192&t[0]&&L!==(L=e[55].stakeAmount+"")&&yn(_,L),16384&t[0]&&x!==(x=e[14]("stake"))&&gn(b,"data-label",x),8192&t[0]&&B!==(B=e[55].returnAmount+"")&&yn(A,B),16384&t[0]&&T!==(T=e[14]("return"))&&gn(P,"data-label",T)},d(e){e&&un(n)}}}function Cm(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_,x,C,P,E,A,T,S,M,k=n[14]("title")+"",D=n[14]("dateFrom")+"",L=n[14]("dateTo")+"",B=n[14]("dateFilter")+"",$=n[16]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[14]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","PlayerGamingHistoryTitleMobile"),gn(p,"part","PlayerGamingHistoryTitleMobile"),gn(i,"class","MenuReturnButton"),gn(i,"part","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[29]),m=!0)},p(e,t){16384&t[0]&&g!==(g=e[14]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),I=!n[12].matches&&gm(n);function F(e){return e[9]?_m:0<e[13].length?wm:0<e[8].length?bm:vm}let N=F(n),O=N(n);return{c(){i=dn("div"),r=dn("div"),$&&$.c(),o=mn(),a=dn("h2"),s=hn(k),l=mn(),c=dn("div"),u=dn("div"),d=dn("div"),p=dn("div"),h=dn("span"),m=hn(D),f=mn(),g=dn("vaadin-date-picker"),y=mn(),v=dn("div"),b=dn("span"),w=hn(L),_=mn(),x=dn("vaadin-date-picker"),C=mn(),P=dn("button"),E=hn(B),A=mn(),I&&I.c(),T=mn(),O.c(),this.c=se,gn(a,"class","PlayerGamingHistoryTitle "+(n[16]?"PlayerGamingHistoryTitleNone":"")),le(g,"max",n[10]),le(g,"placeholder","From"),le(g,"value",n[11]),le(g,"class","VaadinDatePicker"),gn(p,"class","PlayerGamingDateWrapper"),le(x,"max",n[10]),le(x,"placeholder","To"),le(x,"value",n[10]),le(x,"class","VaadinDatePicker"),gn(v,"class","PlayerGamingDateWrapper"),gn(d,"class","PlayerGamingDateContainer"),gn(P,"class","PlayerGamingHistoryFilterButton"),gn(u,"class","PlayerGamingHistoryFilterWrapper"),gn(c,"class","PlayerGamingHistoryTopSection"),gn(r,"class","PlayerGamingHistoryWrapper "+(n[16]?"PlayerGamingHistoryWrapperMobile":"")+" "+(n[17].matches&&n[16]?"PlayerTabletGamingHistoryWrapper":""))},m(e,t){cn(e,i,t),ln(i,r),$&&$.m(r,null),ln(r,o),ln(r,a),ln(a,s),ln(r,l),ln(r,c),ln(c,u),ln(u,d),ln(d,p),ln(p,h),ln(h,m),ln(p,f),ln(p,g),n[30](g),ln(d,y),ln(d,v),ln(v,b),ln(b,w),ln(v,_),ln(v,x),n[31](x),ln(u,C),ln(u,P),ln(P,E),ln(u,A),I&&I.m(u,null),ln(r,T),O.m(r,null),n[37](r),n[38](i),S||(M=fn(P,"click",n[32]),S=!0)},p(e,t){e[16]&&$.p(e,t),16384&t[0]&&k!==(k=e[14]("title")+"")&&yn(s,k),16384&t[0]&&D!==(D=e[14]("dateFrom")+"")&&yn(m,D),1024&t[0]&&le(g,"max",e[10]),2048&t[0]&&le(g,"value",e[11]),16384&t[0]&&L!==(L=e[14]("dateTo")+"")&&yn(w,L),1024&t[0]&&le(x,"max",e[10]),1024&t[0]&&le(x,"value",e[10]),16384&t[0]&&B!==(B=e[14]("dateFilter")+"")&&yn(E,B),e[12].matches?I&&(I.d(1),I=null):I?I.p(e,t):((I=gm(e)).c(),I.m(u,null)),N===(N=F(e))&&O?O.p(e,t):(O.d(1),(O=N(e))&&(O.c(),O.m(r,null)))},i:se,o:se,d(e){e&&un(i),$&&$.d(),n[30](null),n[31](null),I&&I.d(),O.d(),n[37](null),n[38](null),S=!1,M()}}}function Pm(t,e,r){let n;pe(t,ge,e=>r(14,n=e));let i,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="",b="",w="",_=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,S="PC"!==ye(T),N=(l=W(new Date).format("YYYY-MM-DD"),c=W(new Date).subtract(1,"days").format("YYYY-MM-DD"),Object.keys(hm).forEach(e=>{pm(e,hm[e])}),window.matchMedia("(min-width: 768px)")),M=window.matchMedia("(max-width: 1280px)"),k=[];const D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:S},window.location.href)},O=()=>{r(12,M=window.matchMedia("(max-width: 1280px)"))},F=(e,t,n)=>{var e=new URL(e),i=(r(13,k=[]),{method:"GET",headers:{"X-SessionID":p}});t||(e.searchParams.append("offset",String(0)),e.searchParams.append("limit",String(2*+P))),n&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),r(9,A=!0),fetch(e.href,i).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(13,k=(e=>{let i=new Map;return e.forEach(e=>{var t="1"===e.transType?"stakeAmount":"returnAmount",n=i.get(e.roundId);n?n[t]=e.totalAmount:((n=Object.assign({},e))[t]=e.totalAmount,i.set(e.roundId,n))}),Array.from(i.values())})(k)),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,A=!1)},e=>{r(9,A=!1),console.error(e)})},L=(e,t,n)=>{var i;"gm16"===y?F(e,t,n):(t=t,n=n,e=new URL(e),r(13,k=[]),r(8,E=""),i={method:"GET",headers:{"X-SessionID":p}},t||(e.searchParams.append("offset","0"),e.searchParams.append("limit",P)),n&&(e.searchParams.append("startDate",_),e.searchParams.append("endDate",x)),r(9,A=!0),fetch(e.href,i).then(e=>e.json()).then(e=>{var t;e.error?(t=e.error.split(":"),r(8,E=t[1].substring(0,t[1].lastIndexOf(" "))+" "+t[2])):(r(13,k=e.transactions),r(4,b=e.pagination.next),r(5,w=e.pagination.previous)),r(9,A=!1)},e=>{r(9,A=!1),console.error(e)}))},B=e=>{e.data&&e.data.type},$=e=>{_=e.target.value},I=e=>{x=e.target.value};return he(()=>(window.addEventListener("message",B,!1),window.addEventListener("resize",O,!1),()=>{o.removeEventListener("change",$),a.removeEventListener("change",I),window.removeEventListener("message",B),window.removeEventListener("resize",B)})),t.$$set=e=>{"endpoint"in e&&r(21,u=e.endpoint),"playerid"in e&&r(22,d=e.playerid),"session"in e&&r(23,p=e.session),"lang"in e&&r(24,h=e.lang),"clientstyling"in e&&r(25,m=e.clientstyling),"clientstylingurl"in e&&r(26,f=e.clientstylingurl),"translationurl"in e&&r(27,g=e.translationurl),"gmversion"in e&&r(28,y=e.gmversion)},t.$$.update=()=>{if(3&t.$$.dirty[0]&&o&&a&&(o.addEventListener("change",$,!1),a.addEventListener("change",I,!1)),31457280&t.$$.dirty[0]&&p&&d&&u&&h&&(e=h,fe.set(e),r(3,v="gm16"===y?`${u}v1/player/${d}/transactions/wagering?type=Casino`:`${u}/player/${d}/bets`),L(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,b,w,void 0,P,E,A,l,c,M,k,n,C,S,N,D,L,e=>("gm16"===y?W(e.ins):W(e.roundStartDate)).format("D/M/YYYY - h:mm A"),u,d,p,h,m,f,g,y,()=>D(),function(e){me[e?"unshift":"push"](()=>{o=e,r(0,o)})},function(e){me[e?"unshift":"push"](()=>{a=e,r(1,a)})},()=>L(v,!1,!0),function(){P=ve(this),r(7,P),r(15,C)},()=>L(v,!1,!0),()=>L(w,!0,!1),()=>L(b,!0,!1),function(e){me[e?"unshift":"push"](()=>{i=e,r(6,i)})},function(e){me[e?"unshift":"push"](()=>{s=e,r(2,s)})}]}function Em(e,t){a(e,t)}customElements.get("player-gaming-history")||customElements.define("player-gaming-history",class extends t{constructor(e){super();var t=document.createElement("style");t.textContent=".PlayerGamingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));font-weight:400}.PlayerGamingHistoryTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerGamingHistoryTitleNone{display:none}.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))}.PlayerGamingHistoryEmpty{color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #07072A))}.PlayerGamingHistoryContainer{width:100%;row-gap:30px;color:var(--emfe-w-pam-typography, var(--emfe-w-color-dunkel, #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-pink-500, #D0046C));box-shadow:0 0 0 1pt var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.PlayerPaginationControls{background:transparent;border:none;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-dunkel, #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-pink-500, #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-pink-500, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Pm,Cm,n,{endpoint:21,playerid:22,session:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,gmversion:28},null,[-1,-1]),e&&(e.target&&cn(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 Am={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 Tm(n){let i,r,o,a,s,l,c,t,u,d,p;return{c(){i=dn("div"),r=dn("div"),o=dn("div"),(a=dn("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=mn(),l=dn("slot"),gn(a,"class","ModalCloseBtn"),gn(a,"role","button"),gn(o,"class","LoginModalContainer"),gn(o,"part","LoginModalContainer"),gn(r,"class",c="LoginModalWindow "+(n[4]?"LoginModalMobileWindow":""))},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(o,s),ln(o,l),n[8](r),n[9](i),u=!0,d||(p=fn(a,"click",n[5]),d=!0)},p(e,t){n=e,(!u||16&t&&c!==(c="LoginModalWindow "+(n[4]?"LoginModalMobileWindow":"")))&&gn(r,"class",c)},i(e){u||(_n(()=>{u&&(t=t||ne(r,Ju,{transitionDuration:n[1]},!0)).run(1)}),u=!0)},o(e){(t=t||ne(r,Ju,{transitionDuration:n[1]},!1)).run(0),u=!1},d(e){e&&un(i),n[8](null),e&&t&&t.end(),n[9](null),d=!1,p()}}}function Sm(e){let n,i,r="true"==e[0]&&Tm(e);return{c(){r&&r.c(),n=I(),this.c=se},m(e,t){r&&r.m(e,t),cn(e,n,t),i=!0},p(e,[t]){"true"==e[0]?r?(r.p(e,t),1&t&&Q(r,1)):((r=Tm(e)).c(),Q(r,1),r.m(n.parentNode,n)):r&&(J(),ee(r,1,1,()=>{r=null}),K())},i(e){i||(Q(r),i=!0)},o(e){ee(r),i=!1},d(e){r&&r.d(e),e&&un(n)}}}function Mm(t,e,n){let i,r,{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),n(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),n(0,o="false"))};return he(()=>{return window.addEventListener("message",d,!1),n(4,c=!!((e=u).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))),()=>{window.removeEventListener("message",d)};var e}),t.$$set=e=>{"show"in e&&n(0,o=e.show),"duration"in e&&n(1,a=e.duration),"clientstyling"in e&&n(6,s=e.clientstyling),"clientstylingurl"in e&&n(7,l=e.clientstylingurl)},t.$$.update=()=>{if(68&t.$$.dirty&&s&&r&&((e=document.createElement("style")).innerHTML=s,r.appendChild(e)),132&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),setTimeout(()=>{},500)})}var e},[o,a,r,void 0,c,()=>{n(0,o="false"),window.postMessage({type:"ModalClosed"},window.location.href)},s,l,function(e){me[e?"unshift":"push"](()=>{i=e,n(3,i)})},function(e){me[e?"unshift":"push"](()=>{r=e,n(2,r)})}]}function km(e){let n,i;return{c(){n=dn("general-player-login-register-modal"),le(i=dn("om-betting-history-details"),"item-layout","V2"),le(i,"cashoutserver","V2"),le(i,"matchscorelayout","V2"),le(i,"matchscorescope","BHDetailed"),le(i,"tournament-route",":sportId/:tournamentId"),le(i,"match-route",":sportId/:tournamentId/:matchId"),le(i,"betid",e[1]),le(n,"show",e[5]),le(n,"clientstyling",e[2]),le(n,"clientstylingurl",e[3])},m(e,t){cn(e,n,t),ln(n,i)},p(e,t){2&t&&le(i,"betid",e[1]),32&t&&le(n,"show",e[5]),4&t&&le(n,"clientstyling",e[2]),8&t&&le(n,"clientstylingurl",e[3])},d(e){e&&un(n)}}}function Dm(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,w,_=n[6]("bettingHistory.title")+"",x=n[6]("bettingHistory.openBets")+"",C=n[6]("bettingHistory.settledBets")+"",P=n[7]&&function(n){let i,r,o,a,s,l,c,u,d,p,h,m,f,g=n[6]("title")+"";return{c(){i=dn("div"),r=pn("svg"),o=pn("defs"),a=pn("style"),s=hn(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),l=pn("g"),c=pn("g"),u=pn("path"),d=mn(),p=dn("h2"),h=hn(g),gn(u,"class","aaa"),gn(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),gn(u,"transform","translate(15 15) rotate(180)"),gn(c,"transform","translate(20 158)"),gn(l,"transform","translate(-20 -158)"),gn(r,"xmlns","http://www.w3.org/2000/svg"),gn(r,"width","15"),gn(r,"height","15"),gn(r,"viewBox","0 0 15 15"),gn(p,"class","BettingHistoryTitleMobile"),gn(i,"class","MenuReturnButton")},m(e,t){cn(e,i,t),ln(i,r),ln(r,o),ln(o,a),ln(a,s),ln(r,l),ln(l,c),ln(c,u),ln(i,d),ln(i,p),ln(p,h),m||(f=fn(i,"click",n[13]),m=!0)},p(e,t){64&t&&g!==(g=e[6]("title")+"")&&yn(h,g)},d(e){e&&un(i),m=!1,f()}}}(n),E="true"===n[5]&&n[1]&&km(n);return{c(){i=dn("div"),P&&P.c(),r=mn(),o=dn("h2"),a=hn(_),s=mn(),l=dn("div"),c=dn("button"),u=hn(x),d=mn(),p=dn("button"),h=hn(C),m=mn(),f=dn("om-betting-history-list"),g=mn(),E&&E.c(),y=mn(),v=dn("div"),this.c=se,gn(o,"class","BettingHistoryTitle "+(n[7]?"BettingHistoryTitleNone":"")),gn(o,"part","`BettingHistoryTitleMobile"),gn(c,"class","BettingHistoryButton "+(n[7]?"BettingHistoryButtonMobile":"")),k(c,"BettingHistoryButtonSelected","openBets"===n[0]),gn(p,"class","BettingHistoryButton"),k(p,"BettingHistoryButtonSelected","settledBets"===n[0]),k(p,"mobile",n[7]),gn(l,"class","BettingHistoryTabs"),le(f,"bet-status",n[0]),le(f,"item-layout","V2"),le(f,"match-score-layout","v2"),le(f,"match-score-scope","BHDetailed"),le(f,"date-format","dd.mm.yyyy"),le(f,"time-format","HH:MM"),le(f,"tournament-route",":sportId/:tournamentId"),le(f,"match-route",":betId"),gn(v,"class","OM-MatchScore OM-MatchScore__List"),gn(i,"class","BettingHistoryWrapper"),k(i,"BettingHistoryWrapperMobile",n[7])},m(e,t){cn(e,i,t),P&&P.m(i,null),ln(i,r),ln(i,o),ln(o,a),ln(i,s),ln(i,l),ln(l,c),ln(c,u),ln(l,d),ln(l,p),ln(p,h),ln(i,m),ln(i,f),ln(i,g),E&&E.m(i,null),ln(i,y),ln(i,v),n[16](i),b||(w=[fn(c,"click",n[14]),fn(p,"click",n[15]),fn(f,"routeChange",n[10])],b=!0)},p(e,[t]){e[7]&&P.p(e,t),64&t&&_!==(_=e[6]("bettingHistory.title")+"")&&yn(a,_),64&t&&x!==(x=e[6]("bettingHistory.openBets")+"")&&yn(u,x),1&t&&k(c,"BettingHistoryButtonSelected","openBets"===e[0]),64&t&&C!==(C=e[6]("bettingHistory.settledBets")+"")&&yn(h,C),1&t&&k(p,"BettingHistoryButtonSelected","settledBets"===e[0]),1&t&&le(f,"bet-status",e[0]),"true"===e[5]&&e[1]?E?E.p(e,t):((E=km(e)).c(),E.m(i,y)):E&&(E.d(1),E=null)},i:se,o:se,d(e){e&&un(i),P&&P.d(),E&&E.d(),n[16](null),b=!1,sn(w)}}}function Lm(t,e,n){let i;pe(t,ge,e=>n(6,i=e));let r,{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"!==ye(p);Object.entries(Am).forEach(([e,t])=>{Em(e,t)});const m=e=>{n(0,o=e)},f=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:h},window.location.href)},g=e=>{"ModalClosed"===(null==(e=e.data)?void 0:e.type)&&n(5,d="false")};return he(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),t.$$set=e=>{"betstatus"in e&&n(0,o=e.betstatus),"lang"in e&&n(11,a=e.lang),"selectedBetId"in e&&n(1,s=e.selectedBetId),"clientstyling"in e&&n(2,l=e.clientstyling),"clientstylingurl"in e&&n(3,c=e.clientstylingurl),"translationurl"in e&&n(12,u=e.translationurl)},t.$$.update=()=>{var e;if(2048&t.$$.dirty&&a&&(e=a,fe.set(e)),20&t.$$.dirty&&l&&r&&((e=document.createElement("style")).innerHTML=l,r.appendChild(e)),24&t.$$.dirty&&c&&r){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1)})}4096&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Em(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,l,c,r,d,i,h,m,f,e=>{e=e.detail.params.betId;n(1,s=e),n(5,d="true")},a,u,()=>f(),()=>m("openBets"),()=>m("settledBets"),function(e){me[e?"unshift":"push"](()=>{r=e,n(4,r)})}]}function Bm(e){let n,i,r,o,a,s,l;function c(e){return e[16]&&e[15]===e[22][0]?Xm:e[16]&&e[15]===e[22][1]?qm:e[16]&&e[15]===e[22][2]?Vm:e[16]&&e[15]===e[22][3]?Gm:e[16]&&e[15]===e[22][4]?Um:e[16]&&e[15]==e[22][5]?jm:e[16]&&e[15]===e[22][6]?Ym:e[16]&&e[15]===e[22][7]?Wm:e[16]&&e[15]===e[22][8]?zm:e[16]&&e[15]===e[22][9]?Hm:e[16]&&e[15]===e[22][10]?Rm:e[16]&&e[15]===e[22][11]?Fm:e[16]&&e[15]===e[22][12]?Om:e[16]&&e[15]===e[22][13]?Nm:e[16]&&e[15]===e[22][14]?Im:void 0}let u=c(e),d=u&&u(e);return{c(){n=dn("nav"),i=dn("player-account-menu"),r=mn(),o=dn("main"),d&&d.c(),a=mn(),s=dn("aside"),l=dn("player-account-notifications"),le(i,"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"selecteditem",e[20]),le(i,"userroles",e[9]),le(i,"clientstyling",e[11]),le(i,"clientstylingurl",e[12]),le(l,"customnotif",e[0]),le(l,"clientstyling",e[11]),le(l,"clientstylingurl",e[12])},m(e,t){cn(e,n,t),ln(n,i),cn(e,r,t),cn(e,o,t),d&&d.m(o,null),cn(e,a,t),cn(e,s,t),ln(s,l)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),1048576&t[0]&&le(i,"selecteditem",e[20]),512&t[0]&&le(i,"userroles",e[9]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12]),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]&&le(l,"customnotif",e[0]),2048&t[0]&&le(l,"clientstyling",e[11]),4096&t[0]&&le(l,"clientstylingurl",e[12])},d(e){e&&un(n),e&&un(r),e&&un(o),d&&d.d(),e&&un(a),e&&un(s)}}}function $m(e){let n;function i(e){return e[16]?e[16]&&e[15]===e[22][0]?df:e[16]&&e[15]===e[22][1]?uf:e[16]&&e[15]===e[22][2]?cf:e[16]&&e[15]===e[22][3]?lf:e[16]&&e[15]===e[22][4]?sf:e[16]&&e[15]===e[22][5]?af:e[16]&&e[15]===e[22][6]?of:e[16]&&e[15]===e[22][7]?rf:e[16]&&e[15]===e[22][8]?nf:e[16]&&e[15]===e[22][9]?tf:e[16]&&e[15]===e[22][10]?ef:e[16]&&e[15]===e[22][11]?Qm:e[16]&&e[15]===e[22][12]?Km:e[16]&&e[15]===e[22][13]?Jm:e[16]&&e[15]===e[22][14]?Zm:void 0:pf}let r=i(e),o=r&&r(e);return{c(){o&&o.c(),n=I()},m(e,t){o&&o.m(e,t),cn(e,n,t)},p(e,t){r===(r=i(e))&&o?o.p(e,t):(o&&o.d(1),(o=r&&r(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o&&o.d(e),e&&un(n)}}}function Im(e){let n;return{c(){le(n=dn("player-account-betting-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Nm(e){let n;return{c(){le(n=dn("player-transaction-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Om(e){let n;return{c(){le(n=dn("player-pending-withdrawals"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Fm(e){let n;return{c(){le(n=dn("player-withdrawal"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[18])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),262144&t[0]&&le(n,"playercurrency",e[18])},d(e){e&&un(n)}}}function Rm(e){let n;return{c(){le(n=dn("player-deposit"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[18])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),262144&t[0]&&le(n,"playercurrency",e[18])},d(e){e&&un(n)}}}function Hm(e){let n;return{c(){le(n=dn("player-gaming-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function zm(e){let n;return{c(){le(n=dn("player-bonus-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Wm(e){let n;return{c(){le(n=dn("player-active-bonuses"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"playercurrency",e[18]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),262144&t[0]&&le(n,"playercurrency",e[18]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Ym(e){let n;return{c(){le(n=dn("player-account-self-exclusion"),"lang",e[4]),le(n,"operator",e[5]),le(n,"supportemail",e[6]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),64&t[0]&&le(n,"supportemail",e[6]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function jm(n){let i,r,o;return{c(){le(i=dn("player-account-gaming-limits"),"playercurrency",n[18]),le(i,"separatelimits",n[7]),le(i,"clientstyling",n[11]),le(i,"clientstylingurl",n[12])},m(e,t){cn(e,i,t),r||(o=x(n[23].call(null,i)),r=!0)},p(e,t){262144&t[0]&&le(i,"playercurrency",e[18]),128&t[0]&&le(i,"separatelimits",e[7]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12])},d(e){e&&un(i),r=!1,o()}}}function Um(e){let n;return{c(){le(n=dn("player-account-closure"),"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Gm(e){let n;return{c(){le(n=dn("player-account-timeout"),"lang",e[4]),le(n,"operator",e[5]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Vm(e){let n;return{c(){le(n=dn("player-reality-check"),"realitycheck",e[19]),le(n,"endpoint",e[3]),le(n,"playerid",e[1]),le(n,"session",e[2]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){524288&t[0]&&le(n,"realitycheck",e[19]),8&t[0]&&le(n,"endpoint",e[3]),2&t[0]&&le(n,"playerid",e[1]),4&t[0]&&le(n,"session",e[2]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function qm(e){let n;return{c(){le(n=dn("player-change-password"),"simplepasswordvalidation",e[10]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){1024&t[0]&&le(n,"simplepasswordvalidation",e[10]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Xm(e){let n;return{c(){le(n=dn("player-profile-info"),"endpoint",e[3]),le(n,"lang",e[4]),le(n,"countrycode",e[17]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"custominputtextswitch",e[13])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),16&t[0]&&le(n,"lang",e[4]),131072&t[0]&&le(n,"countrycode",e[17]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),8192&t[0]&&le(n,"custominputtextswitch",e[13])},d(e){e&&un(n)}}}function Zm(e){let n;return{c(){le(n=dn("player-account-betting-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Jm(e){let n;return{c(){le(n=dn("player-transaction-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Km(e){let n;return{c(){le(n=dn("player-pending-withdrawals"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function Qm(e){let n;return{c(){le(n=dn("player-withdrawal"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[18])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),262144&t[0]&&le(n,"playercurrency",e[18])},d(e){e&&un(n)}}}function ef(e){let n;return{c(){le(n=dn("player-deposit"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"hasdefaultamount",e[8]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"playercurrency",e[18])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),256&t[0]&&le(n,"hasdefaultamount",e[8]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),262144&t[0]&&le(n,"playercurrency",e[18])},d(e){e&&un(n)}}}function tf(e){let n;return{c(){le(n=dn("player-gaming-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function nf(e){let n;return{c(){le(n=dn("player-bonus-history"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function rf(e){let n;return{c(){le(n=dn("player-active-bonuses"),"endpoint",e[3]),le(n,"session",e[2]),le(n,"playerid",e[1]),le(n,"lang",e[4]),le(n,"playercurrency",e[18]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),4&t[0]&&le(n,"session",e[2]),2&t[0]&&le(n,"playerid",e[1]),16&t[0]&&le(n,"lang",e[4]),262144&t[0]&&le(n,"playercurrency",e[18]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function of(e){let n;return{c(){le(n=dn("player-account-self-exclusion"),"lang",e[4]),le(n,"operator",e[5]),le(n,"supportemail",e[6]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),64&t[0]&&le(n,"supportemail",e[6]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function af(n){let i,r,o;return{c(){le(i=dn("player-account-gaming-limits"),"playercurrency",n[18]),le(i,"separatelimits",n[7]),le(i,"clientstyling",n[11]),le(i,"clientstylingurl",n[12])},m(e,t){cn(e,i,t),r||(o=x(n[23].call(null,i)),r=!0)},p(e,t){262144&t[0]&&le(i,"playercurrency",e[18]),128&t[0]&&le(i,"separatelimits",e[7]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12])},d(e){e&&un(i),r=!1,o()}}}function sf(e){let n;return{c(){le(n=dn("player-account-closure"),"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function lf(e){let n;return{c(){le(n=dn("player-account-timeout"),"lang",e[4]),le(n,"operator",e[5]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){16&t[0]&&le(n,"lang",e[4]),32&t[0]&&le(n,"operator",e[5]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function cf(e){let n;return{c(){le(n=dn("player-reality-check"),"realitycheck",e[19]),le(n,"endpoint",e[3]),le(n,"playerid",e[1]),le(n,"session",e[2]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){524288&t[0]&&le(n,"realitycheck",e[19]),8&t[0]&&le(n,"endpoint",e[3]),2&t[0]&&le(n,"playerid",e[1]),4&t[0]&&le(n,"session",e[2]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function uf(e){let n;return{c(){le(n=dn("player-change-password"),"simplepasswordvalidation",e[10]),le(n,"lang",e[4]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12])},m(e,t){cn(e,n,t)},p(e,t){1024&t[0]&&le(n,"simplepasswordvalidation",e[10]),16&t[0]&&le(n,"lang",e[4]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function df(e){let n;return{c(){le(n=dn("player-profile-info"),"endpoint",e[3]),le(n,"lang",e[4]),le(n,"countrycode",e[17]),le(n,"clientstyling",e[11]),le(n,"clientstylingurl",e[12]),le(n,"custominputtextswitch",e[13])},m(e,t){cn(e,n,t)},p(e,t){8&t[0]&&le(n,"endpoint",e[3]),16&t[0]&&le(n,"lang",e[4]),131072&t[0]&&le(n,"countrycode",e[17]),2048&t[0]&&le(n,"clientstyling",e[11]),4096&t[0]&&le(n,"clientstylingurl",e[12]),8192&t[0]&&le(n,"custominputtextswitch",e[13])},d(e){e&&un(n)}}}function pf(e){let n,i,r,o;return{c(){n=dn("nav"),i=dn("player-account-menu"),r=mn(),o=dn("player-account-notifications"),le(i,"endpoint",e[3]),le(i,"session",e[2]),le(i,"playerid",e[1]),le(i,"lang",e[4]),le(i,"userroles",e[9]),le(i,"clientstyling",e[11]),le(i,"clientstylingurl",e[12]),le(o,"customnotif",e[0]),le(o,"clientstyling",e[11]),le(o,"clientstylingurl",e[12]),gn(n,"class","PlayerAccountMobile")},m(e,t){cn(e,n,t),ln(n,i),ln(n,r),ln(n,o)},p(e,t){8&t[0]&&le(i,"endpoint",e[3]),4&t[0]&&le(i,"session",e[2]),2&t[0]&&le(i,"playerid",e[1]),16&t[0]&&le(i,"lang",e[4]),512&t[0]&&le(i,"userroles",e[9]),2048&t[0]&&le(i,"clientstyling",e[11]),4096&t[0]&&le(i,"clientstylingurl",e[12]),1&t[0]&&le(o,"customnotif",e[0]),2048&t[0]&&le(o,"clientstyling",e[11]),4096&t[0]&&le(o,"clientstylingurl",e[12])},d(e){e&&un(n)}}}function hf(n){let i,r=function(e){let n,t=e[21]?$m:Bm,i=t(e);return{c(){n=dn("section"),i.c(),gn(n,"class","PlayerAccountPage "+(e[21]?"PlayerAccountMobilePage":""))},m(e,t){cn(e,n,t),i.m(n,null)},p(e,t){i.p(e,t)},d(e){e&&un(n),i.d()}}}(n);return{c(){i=dn("div"),r.c(),this.c=se},m(e,t){cn(e,i,t),r.m(i,null),n[35](i)},p(e,t){r.p(e,t)},i:se,o:se,d(e){e&&un(i),r.d(),n[35](null)}}}function mf(t,e,o){let a;pe(t,ge,e=>o(47,a=e));let n,{cmsendpoint:s=""}=e,{env:l=""}=e,{customnotifications:i=""}=e,{limitspath:r=""}=e,{playerid:c=""}=e,{session:u=""}=e,{endpoint:d=""}=e,{lang:p=""}=e,{operator:h="Everymatrix"}=e,{supportemail:N=""}=e,{operatorid:O=""}=e,{realm:F=""}=e,{webapiendpoint:R="wss://api-stage.everymatrix.com/v2"}=e,{separatelimits:H="true"}=e,{hasdefaultamount:z="false"}=e,{userroles:m=""}=e,{simplepasswordvalidation:W="false"}=e,{clientstyling:f=""}=e,{clientstylingurl:g=""}=e,{translationurl:y=""}=e,{custominputtextswitch:Y="false"}=e;var j,U;({withLocale:j,translations:U}={withLocale:"en",translations:{}}),fe.subscribe(e=>{null==e&&(Mi.set(U),fe.set(j))});let v,b,w,_,G,x,V=window.navigator.userAgent,q="PC"!==ye(V),X=[],Z=[],C="",P="",E="",J="",A=null,T="",S={},M=!1,k=!1,K="",D="",Q=!1,L=!1;Object.keys(Zi).forEach(e=>{Xi(e,Zi[e])});const ee=n=>{let t;if(n.data)switch(n.data.type){case"AccountMenuDetails":break;case"ChangeAccountPage":o(16,L=!0),o(15,E=n.data.page.path),o(20,x=n.data.page.id),"/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(16,L=!0),o(15,E=n.data.pagePath),"/profile-info"==E&&(B(),$());var i=new URL(`${s}/${p}/profile-menu?env=`+l);i.searchParams.append("device",T),te(i).then(e=>{e=e.filter(e=>e.label==n.data.pageName);0<e.length&&o(20,x=e[0].id)});break;case"PlayerAccountMenuActive":case"GoToPreviousRoute":n.data.isMobile&&(o(16,L=!1),re());break;case"UpdatePlayerInfo":i=n.data.provisionalArray,i={mobile:{prefix:i.mobilePrefix,number:i.mobileNumber},address1:i.address,city:i.city,postalCode:i.postalCode,securityQuestion:i.securityQuestion,securityAnswer:i.securityAnswer},i=(t=new URL(`${d}/player/${C}/profile`),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)});fetch(t.href,i).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}/player/${C}/consent`);i={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n.data.consentArray)};fetch(t.href,i).then(e=>{200==e.status&&window.postMessage({type:"ConfirmProfileInfoSave"},window.location.href)});break;case"ChangePassword":(async(e,t)=>{let n=new URL(`${d}/player/${C}/password`),i={currentPassword:e,newPassword:t},r={method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},o=await fetch(n.href,r);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();D=e.error.substring(e.error.indexOf("errorMessage")+13,e.error.length),Q=!0,window.postMessage({type:"ShowPasswordChangedError",showErrorPasswordChanged:Q,errorPasswordChanged:D},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:D}},window.location.href)}})(n.data.userCurrentPassword,n.data.userNewPassword);break;case"SetPlayerAccountTimeout":(t=new URL(`v2/player/${C}/limits`,d.slice(0,-2))).searchParams.append("playerId",C);i={coolOff:{period:n.data.timeoutSelected}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))).searchParams.append("playerId",C);i={selfExclusion:{period:n.data.selfExclusionPeriod,expiryDate:n.data.selfExclusionExpiryDate,selfExclusionReason:"UserRequest"}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))).searchParams.append("playerId",C);i={selfExclusion:{period:"SelfExclusionPermanent",sendNotificationEmail:!0,selfExclusionReason:"UserRequest"}},i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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=n.data.session,C=n.data.userid,ie();break;case"PlayerAccountGamingLimitsUpdate":t=new URL(`v2/player/${C}/limits`,d.slice(0,-2));i=n.data.payload,i={method:"PUT",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,i).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.slice(0,-2))))});break;case"PlayerAccountGamingLimitDelete":var i=n.data.limit||{},r=Array.isArray(i)?i.map(e=>e.period):i.period;let e="";switch(n.data.name){case"depositLimits":e="deposit";break;case"cumulativeSessionLimits":e="cumulativeSession";break;case"wageringLimit":e="wagering";break;case"lossLimit":e="loss"}i={method:"DELETE",headers:{"X-SessionID":P},body:JSON.stringify(i)};t=new URL(`v2/player/${C}/limits/`+e,d.slice(0,-2)),Array.isArray(r)?r.forEach(e=>{t.searchParams.append("periods",e)}):t.searchParams.append("periods",r),fetch(t.href,i).then(e=>{200==e.status&&(k=!0,window.postMessage({type:"WidgetNotification",data:{type:"success",message:a("limitsDeleteSuccess")}},window.location.href))}).then(e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))});break;case"GamingLimitsConfirmChanges":case"CancelGamingLimitsChanges":I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)));break;case"SubmittedRealityCheck":{r=n.data.realityCheckUpdatedValue;let e=new URL(`${d}/player/${C}/realitycheck`),t=(r&&(K=r),{method:"POST",headers:{"X-SessionID":P,"Content-Type":"application/json",Accept:"application/json",realityCheckValue:parseInt(K,10)}});fetch(e.href,t).then(e=>{200==e.status&&(ne(new URL(`${d}/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 te(e){return e.searchParams.append("device",T),(await fetch(e.href)).json()}const B=()=>{var e=new URL(`${d}/player/${C}/profile`),t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(17,J=e.country),o(18,A=e.currency),window.postMessage({type:"ProfileDetailsData",profileDetails:e},window.location.href)},e=>{console.error(e)})},$=()=>{var e=new URL(`${d}/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)})},ne=e=>{var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{o(19,G=e.UserRealityCheckValue)},e=>{console.error(e)})},I=e=>{!0===M?setTimeout(()=>{M=!1},3e3):!0===k&&setTimeout(()=>{k=!1},3e3);var t={method:"GET",headers:{"X-SessionID":P}};fetch(e.href,t).then(e=>e.json()).then(e=>{S=e,0!==Object.keys(S).length?(o(31,v=null!=(e=S.depositLimits)?e:[]),o(32,b=null!=(e=S.wageringLimits)?e:[]),o(33,w=null!=(e=S.lossLimits)?e:[]),S.hasOwnProperty("cumulativeSessionLimits")?(o(34,_=S.timeLimit),o(34,_=S.cumulativeSessionLimits.map(e=>(e.amount=e.minutes,e)))):o(34,_=[]),window.postMessage({type:"PlayerLimitsData",limits:{playercurrency:A,depositlimit:v,wageringlimit:b,losslimit:w,timelimit:_,showsuccessnotification:M,showdeletenotification:k,lang:p}},window.location.href)):(o(31,v=[]),o(32,b=[]),o(33,w=[]),o(34,_=[])),oe()},e=>{console.error(e)})},ie=()=>{var e;te(new URL(`${s}/${p}/profile-menu?env=`+l)).then(e=>{X=e,window.postMessage({type:"AccountMenuDetails",accountMenuInfo:X},window.location.href)}),(e=new URL(`${s}/${p}/support-information?env=`+l)).searchParams.append("userRoles",m),e.searchParams.append("device",T),fetch(e.href).then(e=>e.json()).then(e=>{e.length&&(Z=e[0].children,window.postMessage({type:"NotificationsDetails",notificationsInfo:Z},window.location.href))},e=>{console.error(e)}),B(),$(),ne(new URL(`${d}/player/${c}/realitycheck`))},re=()=>{var e;(e=ye(V))&&(T="PC"===e?"dk":"mtWeb"),C=c,P=u,q||o(16,L=!0),ie()};return he(()=>(window.addEventListener("message",ee,!1),()=>{window.removeEventListener("message",ee)})),t.$$set=e=>{"cmsendpoint"in e&&o(24,s=e.cmsendpoint),"env"in e&&o(25,l=e.env),"customnotifications"in e&&o(0,i=e.customnotifications),"limitspath"in e&&o(26,r=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,h=e.operator),"supportemail"in e&&o(6,N=e.supportemail),"operatorid"in e&&o(27,O=e.operatorid),"realm"in e&&o(28,F=e.realm),"webapiendpoint"in e&&o(29,R=e.webapiendpoint),"separatelimits"in e&&o(7,H=e.separatelimits),"hasdefaultamount"in e&&o(8,z=e.hasdefaultamount),"userroles"in e&&o(9,m=e.userroles),"simplepasswordvalidation"in e&&o(10,W=e.simplepasswordvalidation),"clientstyling"in e&&o(11,f=e.clientstyling),"clientstylingurl"in e&&o(12,g=e.clientstylingurl),"translationurl"in e&&o(30,y=e.translationurl),"custominputtextswitch"in e&&o(13,Y=e.custominputtextswitch)},t.$$.update=()=>{if(98320&t.$$.dirty[0]&&p&&L&&E&&(e=p,fe.set(e)),50332191&t.$$.dirty[0]&&s&&d&&i&&c&&u&&p&&l&&m&&re(),t.$$.dirty[1],18432&t.$$.dirty[0]&&f&&n&&((e=document.createElement("style")).innerHTML=f,n.appendChild(e)),20480&t.$$.dirty[0]&&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;1073741824&t.$$.dirty[0]&&y&&fetch(y).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Xi(e,t[e])})}).catch(e=>{console.log(e)})},[i,c,u,d,p,h,N,H,z,m,W,f,g,Y,n,E,L,J,A,void 0,x,q,["/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"],e=>{I(new URL(`v2/player/${C}/limits`,d.slice(0,-2)))},s,l,r,O,F,R,y,v,b,w,_,function(e){me[e?"unshift":"push"](()=>{n=e,o(14,n)})}]}customElements.get("general-player-login-register-modal")||customElements.define("general-player-login-register-modal",class extends t{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-orange-500, #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-orange-500, #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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Mm,Sm,n,{show:0,duration:1,clientstyling:6,clientstylingurl:7},null),e&&(e.target&&cn(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 t{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-pink-500, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #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-pink-500, #D0046C));border:none}.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))}.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),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},Lm,Dm,n,{betstatus:0,lang:11,selectedBetId:1,clientstyling:2,clientstylingurl:3,translationurl:12},null),e&&(e.target&&cn(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()}});class ff extends t{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-dunkel, #07072A));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountPage>main{grid-area:main}.PlayerAccountPage>aside{grid-area:aside}',this.shadowRoot.appendChild(t),r(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},mf,hf,n,{cmsendpoint:24,env:25,customnotifications:0,limitspath:26,playerid:1,session:2,endpoint:3,lang:4,operator:5,supportemail:6,operatorid:27,realm:28,webapiendpoint:29,separatelimits:7,hasdefaultamount:8,userroles:9,simplepasswordvalidation:10,clientstyling:11,clientstylingurl:12,translationurl:30,custominputtextswitch:13},null,[-1,-1,-1]),e&&(e.target&&cn(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","clientstyling","clientstylingurl","translationurl","custominputtextswitch"]}get cmsendpoint(){return this.$$.ctx[24]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),p()}get env(){return this.$$.ctx[25]}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[26]}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[27]}set operatorid(e){this.$$set({operatorid:e}),p()}get realm(){return this.$$.ctx[28]}set realm(e){this.$$set({realm:e}),p()}get webapiendpoint(){return this.$$.ctx[29]}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 clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),p()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),p()}get translationurl(){return this.$$.ctx[30]}set translationurl(e){this.$$set({translationurl:e}),p()}get custominputtextswitch(){return this.$$.ctx[13]}set custominputtextswitch(e){this.$$set({custominputtextswitch:e}),p()}}return customElements.get("player-account-controller")||customElements.define("player-account-controller",ff),ff});
1691
1691
  //# sourceMappingURL=player-account-controller.js.map