@everymatrix/player-account-gaming-limits 1.9.1 → 1.9.3

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,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function z(){}const T=e=>e;function E(e){return e()}function C(){return Object.create(null)}function q(e){e.forEach(E)}function w(e){return"function"==typeof e}function h(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function m(e,...t){if(null==e)return z;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function j(e,t,i){e.$$.on_destroy.push(m(t,i))}var e="undefined"!=typeof window;let M=e?()=>window.performance.now():()=>Date.now(),A=e?e=>requestAnimationFrame(e):z;const S=new Set;function D(t){S.forEach(e=>{e.c(t)||(S.delete(e),e.f())}),0!==S.size&&A(D)}function Z(e,t){e.appendChild(t)}function k(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function X(e,t,i){e.insertBefore(t,i||null)}function K(e){e.parentNode.removeChild(e)}function P(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function J(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e){return document.createTextNode(e)}function ee(){return Q(" ")}function b(){return Q("")}function te(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function oe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ie(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ne(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:ie(e,t,i)}function V(e){return""===e?null:+e}function re(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function p(e,t){e.value=null==t?"":t}function O(t,i){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===i)return n.selected=!0}t.selectedIndex=-1}function H(e){const t={};for(const i of e)t[i.name]=i.value;return t}const N=new Map;let R,B=0;function $(e,t,i,n,r,o,a,s=0){var l,u=16.666/n;let c="{\n";for(let e=0;e<=1;e+=u){const n=t+(i-t)*o(e);c+=100*e+`%{${a(n,1-n)}}
2
- `}const d=c+`100% {${a(i,1-i)}}
3
- }`,h=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,m=k(e),{stylesheet:p,rules:f}=N.get(m)||(s=m,l={stylesheet:(l=e,g=J("style"),Z((l=k(l)).head||l,g),g.sheet),rules:{}},N.set(s,l),l);f[h]||(f[h]=!0,p.insertRule(`@keyframes ${h} `+d,p.cssRules.length));var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+h+` ${n}ms linear ${r}ms 1 both`,B+=1,h}function Y(e){R=e}function ae(e){!function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],U=[],G=[],se=[],le=Promise.resolve();let ue=!1;function ce(e){G.push(e)}const de=new Set;let he,me=0;function g(){const e=R;do{for(;me<F.length;){const e=F[me];me++,Y(e),t=i=void 0;var t,i=e.$$;null!==i.fragment&&(i.update(),q(i.before_update),t=i.dirty,i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,t),i.after_update.forEach(ce))}for(Y(null),F.length=0,me=0;U.length;)U.pop()();for(let e=0;e<G.length;e+=1){const n=G[e];de.has(n)||(de.add(n),n())}}while(G.length=0,F.length);for(;se.length;)se.pop()();ue=!1,de.clear(),Y(e)}function pe(e,t,i){e.dispatchEvent(function(e,{bubbles:t=!1,cancelable:i=!1}={}){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t,i,void 0),n}((t?"intro":"outro")+i))}const fe=new Set;let y;function ge(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ye(e,t,i,n){e&&e.o&&(fe.has(e)||(fe.add(e),y.c.push(()=>{fe.delete(e),n&&(i&&e.d(1),n())}),e.o(t)))}const ve={duration:0};function we(l,e,t,i){let u=e(l,t),c=i?0:1,d=null,h=null,m=null;function p(){if(m){var e=l,t=m;const i=(e.style.animation||"").split(", "),n=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),r=i.length-n.length;r&&(e.style.animation=n.join(", "),(B-=r)||A(()=>{B||(N.forEach(e=>{const t=e["stylesheet"];let i=t.cssRules.length;for(;i--;)t.deleteRule(i);e.rules={}}),N.clear())}))}}function f(e,t){var i=e.b-c;return t*=Math.abs(i),{a:c,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function n(e){const{delay:t=0,duration:i=300,easing:n=T,tick:r=z,css:o}=u||ve,a={start:M()+t,b:e};if(e||((a.group=y).r+=1),!d&&!h){o&&(p(),m=$(l,c,e,i,t,n,o)),e&&r(0,1),d=f(a,i),ce(()=>pe(l,e,"start"));{var s=e=>{return h&&e>h.start&&(d=f(h,i),h=null,pe(l,d.b,"start"),o&&(p(),m=$(l,c,d.b,d.duration,0,n,u.css))),d&&(e>=d.end?(r(c=d.b,1-c),pe(l,d.b,"end"),h||(d.b?p():--d.group.r||q(d.group.c)),d=null):e>=d.start&&(e=e-d.start,c=d.a+d.d*n(e/d.duration),r(c,1-c))),!(!d&&!h)};let t;return 0===S.size&&A(D),void new Promise(e=>{S.add(t={c:s,f:e})})}}h=a}return{run(e){w(u)?(he||(he=Promise.resolve()).then(()=>{he=null}),he.then(()=>{u=u(),n(e)})):n(e)},end(){p(),d=h=null}}}function be(n,e,t,i,r,o,a,s=[-1]){var l=R;Y(n);const u=n.$$={fragment:null,ctx:null,props:o,update:z,not_equal:r,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:C(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),c&&(i=e,-1===(e=n).$$.dirty[0]&&(F.push(e),ue||(ue=!0,le.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31)),t}):[],u.update(),c=!0,q(u.before_update),u.fragment=!!i&&i(u.ctx),e.target){if(e.hydrate){o=e.target;const z=Array.from(o.childNodes);u.fragment&&u.fragment.l(z),z.forEach(K)}else u.fragment&&u.fragment.c();e.intro&&ge(n.$$.fragment);{var d=n;s=e.target;a=e.anchor;t=e.customElement;const{fragment:h,on_mount:m,on_destroy:p,after_update:f}=d.$$;h&&h.m(s,a),t||ce(()=>{var e=m.map(E).filter(w);p?p.push(...e):q(e),d.$$.on_mount=[]}),f.forEach(ce)}g()}Y(l)}let _e;"function"==typeof HTMLElement&&(_e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(w);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(q(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=z}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var Le,xe,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,Te="URLSearchParams"in s,Ee="Symbol"in s&&"iterator"in Symbol,Ce="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),Me="FormData"in s,Ae="ArrayBuffer"in s;function Se(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 Ie(e){return e="string"!=typeof e?String(e):e}function De(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Ee&&(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){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ke(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Pe(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Oe(e){var t=new FileReader,i=Pe(t);return t.readAsArrayBuffer(e),i}function He(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ne(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ae&&Ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=He(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ae&&(ArrayBuffer.prototype.isPrototypeOf(e)||xe(e))?this._bodyArrayBuffer=He(e):this._bodyText=e=Object.prototype.toString.call(e):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):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ce&&(this.blob=function(){var e=ke(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(){return this._bodyArrayBuffer?ke(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Oe)}),this.text=function(){var e,t,i=ke(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,e=new FileReader,t=Pe(e),e.readAsText(i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Me&&(this.formData=function(){return this.text().then($e)}),this.json=function(){return this.text().then(JSON.parse)},this}Ae&&(Le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xe=ArrayBuffer.isView||function(e){return e&&-1<Le.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=Se(e),t=Ie(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},l.prototype.delete=function(e){delete this.map[Se(e)]},l.prototype.get=function(e){return e=Se(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(Se(e))},l.prototype.set=function(e,t){this.map[Se(e)]=Ie(t)},l.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},l.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),De(i)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),De(t)},l.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),De(i)},Ee&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Re=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var i,n=(t=t||{}).body;if(e instanceof Be){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,n||null==e._bodyInit||(n=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=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Re.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function $e(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,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)}Be.prototype.clone=function(){return new Be(this,{body:this._bodyInit})},Ne.call(Be.prototype),Ne.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Ye=[301,302,303,307,308],Fe=(u.redirect=function(e,t){if(-1===Ye.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},s.DOMException);try{new Fe}catch(z){(Fe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe}function Ge(n,a){return new Promise(function(r,e){var t=new Be(n,a);if(t.signal&&t.signal.aborted)return e(new Fe("Aborted","AbortError"));var 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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),i.append(t,e))}),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 u(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 Fe("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&s.location.href?s.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&&(Ce?o.responseType="blob":Ae&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,Ie(a.headers[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 Ii(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ge.polyfill=!0,s.fetch||(s.fetch=Ge,s.Headers=l,s.Request=Be,s.Response=u),self.fetch.bind(self);var Ue=function(e,t){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function je(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ve(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function ze(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function d(e){return"function"==typeof e}function qe(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 Ze=qe(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 Xe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=je(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(d(o))try{o()}catch(e){r=e instanceof Ze?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=je(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{et(c)}catch(e){r=null!=r?r:[],e instanceof Ze?r=ze(ze([],Ve(r)),Ve(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ze(r)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)et(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Xe(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Xe(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((e=new i).closed=!0,e);var Ke=i,Je=Ke.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Qe(e){return e instanceof Ke||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function et(e){d(e)?e():e.unsubscribe()}var tt=void 0,it=!1,nt=!1,rt={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=rt.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],Ve(i))):setTimeout.apply(void 0,ze([e,t],Ve(i)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ot(){}var at=null;function st(e){if(it){var t=!at;if(t&&(at={errorThrown:!1,error:null}),e(),t){var t=at,i=t.errorThrown,t=t.error;if(at=null,i)throw t}}else e()}We(n,lt=Ke),n.create=function(e,t,i){return new pt(e,t,i)},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,lt.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var lt,ut=n,ct=Function.prototype.bind;function n(e){var t=lt.call(this)||this;return t.isStopped=!1,e?Qe(t.destination=e)&&e.add(t):t.destination=vt,t}function dt(e,t){return ct.call(e,t)}gt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yt(e)}},gt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yt(e)}else yt(e)},gt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yt(e)}};var ht,mt=gt,pt=(We(ft,ht=ut),ft);function ft(e,t,i){var n=ht.call(this)||this,i=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:n&&nt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&dt(e.next,t),error:e.error&&dt(e.error,t),complete:e.complete&&dt(e.complete,t)}):e;return n.destination=new mt(i),n}function gt(e){this.partialObserver=e}function yt(e){var t=e;rt.setTimeout(function(){throw t})}var vt={closed:!0,next:ot,error:function(e){throw e},complete:ot},e="function"==typeof Symbol&&Symbol.observable||"@@observable";function wt(e){return e}r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof ut||n&&d(n.next)&&d(n.error)&&d(n.complete)&&Qe(n)?e:new pt(e,t,i);return st(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(n,e){var r=this;return new(e=_t(e))(function(e,t){var i=new pt({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.subscribe(i)})},r.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},r.prototype[e]=function(){return this},r.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?wt:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},r.prototype.toPromise=function(e){var n=this;return new(e=_t(e))(function(e,t){var i;n.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},r.create=function(e){return new r(e)};var bt=r;function r(e){e&&(this._subscribe=e)}function _t(e){return null!=(e=null!=e?e:tt)?e:Promise}var Lt,xt,Tt,Et=qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(We(o,Tt=bt),o.prototype.lift=function(e){var t=new Ct(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new Et},o.prototype.next=function(r){var o=this;st(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=je(o.currentObservers),n=i.next();!n.done;n=i.next())n.value.next(r)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var i=this;st(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},o.prototype.complete=function(){var t=this;st(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),Tt.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Je:(this.currentObservers=null,r.push(e),new Ke(function(){t.currentObservers=null,Xe(r,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},o.prototype.asObservable=function(){var e=new bt;return e.source=this,e},o.create=function(e,t){return new Ct(e,t)},o),Ct=(We(It,xt=e),It.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},It.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},It.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},It.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Je},It),Mt={now:function(){return(Mt.delegate||Date).now()},delegate:void 0},At=(We(St,Lt=e),St.prototype.next=function(e){var t=this,i=t.isStopped,n=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(n.push(e),r||n.push(o.now()+t)),this._trimBuffer(),Lt.prototype.next.call(this,e)},St.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},St.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*e;if(e<1/0&&r<i.length&&i.splice(0,i.length-r),!n){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},St);function St(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Mt);var n=Lt.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function It(e,t){var i=xt.call(this)||this;return i.destination=e,i.source=t,i}function o(){var e=Tt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Dt=[],kt={};const Pt=[];function Ot(n,r=z){let o;const a=new Set;function s(e){if(h(n,e)&&(n=e,o)){const e=!Pt.length;for(const e of a)e[1](),Pt.push(e,n);if(e){for(let e=0;e<Pt.length;e+=2)Pt[e][0](Pt[e+1]);Pt.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=z){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||z),e(n),()=>{a.delete(i),0===a.size&&(o(),o=null)}}}}function Ht(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Ot(t,t=>{let i=!1;const n=[];let r=0,o=z;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),c?t(e):o=w(e)?e:z)},e=u.map((e,t)=>m(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=1<<t}));return i=!0,a(),function(){q(e),o()}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Rt));var t}var Rt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ut(Array.isArray(e)?[]:{},e,t):e}function $t(e,t,i){return e.concat(t).map(function(e){return Bt(e,i)})}function Yt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function Ft(e,t){try{return t in e}catch(e){return!1}}function Gt(n,r,o){var a={};return o.isMergeableObject(n)&&Yt(n).forEach(function(e){a[e]=Bt(n[e],o)}),Yt(r).forEach(function(t){var e,i;(!Ft(e=n,i=t)||Object.hasOwnProperty.call(e,i)&&Object.propertyIsEnumerable.call(e,i))&&(Ft(n,t)&&o.isMergeableObject(r[t])?a[t]=function(e){if(!e.customMerge)return Ut;e=e.customMerge(t);return"function"==typeof e?e:Ut}(o)(n[t],r[t],o):a[t]=Bt(r[t],o))}),a}function Ut(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||$t,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Gt(e,t,i):Bt(t,i)}Ut.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return Ut(e,t,i)},{});throw new Error("first argument should be an array")};var Wt=Ut,jt=function(e,t){return(jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Vt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}jt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,v,zt,_=function(){return(_=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function qt(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function Zt(e){return e.type===v.literal}function Xt(e){return e.type===v.number}function Kt(e){return e.type===v.date}function Jt(e){return e.type===v.time}function Qt(e){return e.type===v.select}function ei(e){return e.type===v.plural}function ti(e){return e.type===v.tag}function ii(e){return e&&"object"==typeof e&&e.type===zt.number}function ni(e){return e&&"object"==typeof e&&e.type===zt.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=v=v||{})[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=zt=zt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ri=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var oi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ai=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,si=/^(@+)?(\+|#+)?[rs]?$/g,li=/(\*)(0+)|(#+)(0+)|(0+)/g,ui=/^(0+)$/;function ci(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(si,function(e,t,i){return"string"!=typeof i?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===i?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),n}function di(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 hi(e){return di(e)||{}}function mi(e){for(var a={},t=0,i=e;t<i.length;t++){var n,r=i[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=_(_(_({},a),{notation:"scientific"}),r.options.reduce(function(e,t){return _(_({},e),hi(t))},{}));continue;case"engineering":a=_(_(_({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return _(_({},e),hi(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(li,function(e,t,i,n,r,o){if(t)a.minimumIntegerDigits=i.length;else{if(n&&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(ui.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(ai.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(ai,function(e,t,i,n,r,o){return"*"===i?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.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=_(_({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=_(_({},a),ci(o)))}else si.test(r.stem)?a=_(_({},a),ci(r.stem)):((o=di(r.stem))&&(a=_(_({},a),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!ui.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=_(_({},a),n)))}return a}var pi={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 fi=new RegExp("^".concat(e.source,"*")),gi=new RegExp("".concat(e.source,"*$"));function L(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,yi=!!String.fromCodePoint,vi=!!Object.fromEntries,wi=!!String.prototype.codePointAt,bi=!!String.prototype.trimStart,_i=!!String.prototype.trimEnd,Li=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xi=!0;try{xi="a"===(null==(ji=Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:ji[0])}catch(z){xi=!1}var Ti,Ei,Ci=e?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Mi=yi?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;o<r;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},Ai=vi?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],r=r[1];t[o]=r}return t},Si=wi?function(e,t){return e.codePointAt(t)}:function(e,t){var i,n=e.length;if(!(t<0||n<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536},Di=bi?function(e){return e.trimStart()}:function(e){return e.replace(fi,"")},ki=_i?function(e){return e.trimEnd()}:function(e){return e.replace(gi,"")};function Pi(e,t){return new RegExp(e,t)}Ei=xi?(Ti=Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ti.lastIndex=t,null!=(t=Ti.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Si(e,t);if(void 0===r||Ni(r)||(33<=(i=r)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094))break;n.push(r),t+=65536<=r?2:1}return Mi.apply(void 0,n)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,i)).err)return r;n.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(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,L(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Hi(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r;n.push(r.val)}else{if((r=this.parseLiteral(e,t)).err)return r;n.push(r.val)}}else{o=this.clonePosition();this.bump(),n.push({type:v.pound,location:L(o,this.clonePosition())})}}}return{val:n,err:null}},a.prototype.parseTag=function(e,t){var i=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:L(i,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hi(this.char()))return this.error(f.INVALID_TAG,L(e,this.clonePosition()));var r=this.clonePosition();return n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,L(r,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:L(i,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,L(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,L(i,this.clonePosition()))}return this.error(f.INVALID_TAG,L(i,this.clonePosition()))},a.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())},a.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{r=this.tryParseUnquoted(e,t);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=L(i,this.clonePosition());return{val:{type:v.literal,value:n,location:i},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Hi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Mi.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),Mi(i))},a.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,L(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,L(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:L(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,L(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(f.MALFORMED_ARGUMENT,L(i,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ei(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:L(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,i,n){var r,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,L(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((p=this.parseSimpleArgStyleIfPossible()).err)return p;if(0===(m=ki(p.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,L(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:L(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var c=L(n,this.clonePosition());if(l&&Ci(null==l?void 0:l.style,"::",0)){var d=Di(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?p:{val:{type:v.number,value:i,location:c,style:p.val},err:null};if(0===d.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var h=d,m=(this.locale&&(h=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(pi[t||""]||pi[i||""]||pi["".concat(i,"-001")]||pi["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===r?"H":r}return i}(d,this.locale)),{type:zt.dateTime,pattern:h,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},h.replace(ri,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):{}});return{val:{type:"date"===a?v.date:v.time,value:i,location:c,style:m},err:null}}return{val:{type:"number"===a?v.number:"date"===a?v.date:v.time,value:i,location:c,style:null!=(d=null==l?void 0:l.style)?d:null},err:null};case"plural":case"selectordinal":case"select":h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,L(h,_({},h)));this.bumpSpace();var p,m=this.parseIdentifierIfPossible(),c=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,L(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),m=this.parseIdentifierIfPossible(),c=p.val}l=this.tryParsePluralOrSelectOptions(e,a,t,m);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;d=L(n,this.clonePosition());return"select"===a?{val:{type:v.select,value:i,options:Ai(l.val),location:d},err:null}:{val:{type:v.plural,value:i,options:Ai(l.val),offset:c,pluralType:"plural"===a?"cardinal":"ordinal",location:d},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,L(o,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,L(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,L(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,n=e.split(oi).filter(function(e){return 0<e.length});i<n.length;i++){var r=n[i].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:zt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?mi(i):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=L(u,this.clonePosition()),s=this.message.slice(u.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();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,L(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,i);if(u.err)return u;var d=this.tryParseArgumentClose(c);if(d.err)return d;o.push([s,{value:u.val,location:L(c,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,L(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(f.MISSING_OTHER_CLAUSE,L(this.clonePosition(),this.clonePosition())):{val:o,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-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()}n=L(n,this.clonePosition());return r?Li(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Si(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(Ci(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.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)},a.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}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ni(this.char());)this.bump()},a.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Oi=a;function a(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 Hi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ni(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Ri(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Oi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Qt(e)||ei(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Xt(e)&&ii(e.style)||(Kt(e)||Jt(e))&&ni(e.style)?delete e.style.location:ti(e)&&i(e.children)})}(e.val),e.val}function Bi(e,t){var i=t&&t.cache?t.cache:Vi,n=t&&t.serializer?t.serializer:Gi;return(t&&t.strategy?t.strategy:function(e,t){return Fi(e,this,1===e.length?$i:Yi,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function $i(e,t,i,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function Yi(e,t,i){var n=Array.prototype.slice.call(arguments,3),i=i(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Fi(e,t,i,n,r){return i.bind(t,e,n,r)}var Gi=function(){return JSON.stringify(arguments)};function Ui(){this.cache=Object.create(null)}Ui.prototype.get=function(e){return this.cache[e]},Ui.prototype.set=function(e,t){this.cache[e]=t};var Wi,ji,Vi={create:function(){return new Ui}},zi={variadic:function(e,t){return Fi(e,this,Yi,t.cache.create(),t.serializer)},monadic:function(e,t){return Fi(e,this,$i,t.cache.create(),t.serializer)}};(ji=Wi=Wi||{}).MISSING_VALUE="MISSING_VALUE",ji.INVALID_VALUE="INVALID_VALUE",ji.MISSING_INTL_API="MISSING_INTL_API";Vt(an,Ki=Error),an.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var x,qi,Zi,Xi,Ki,Ji=an,Qi=(Vt(on,Xi=Ji),on),en=(Vt(rn,Zi=Ji),rn),tn=(Vt(nn,qi=Ji),nn);function nn(e,t){return qi.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Wi.MISSING_VALUE,t)||this}function rn(e,t,i){return Zi.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Wi.INVALID_VALUE,i)||this}function on(e,t,i,n){return Xi.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Wi.INVALID_VALUE,n)||this}function an(e,t,i){e=Ki.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function sn(e,t,i,n,r,o,a){if(1===e.length&&Zt(e[0]))return[{type:x.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Zt(c))s.push({type:x.literal,value:c.value});else if(c.type===v.pound)"number"==typeof o&&s.push({type:x.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!(r&&d in r))throw new tn(d,a);d=r[d];if(c.type===v.argument)d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),s.push({type:"string"==typeof d?x.literal:x.object,value:d});else if(Kt(c)){var h="string"==typeof c.style?n.date[c.style]:ni(c.style)?c.style.parsedOptions:void 0;s.push({type:x.literal,value:i.getDateTimeFormat(t,h).format(d)})}else if(Jt(c))h="string"==typeof c.style?n.time[c.style]:ni(c.style)?c.style.parsedOptions:n.time.medium,s.push({type:x.literal,value:i.getDateTimeFormat(t,h).format(d)});else if(Xt(c))(h="string"==typeof c.style?n.number[c.style]:ii(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),s.push({type:x.literal,value:i.getNumberFormat(t,h).format(d)});else{if(ti(c)){var m=c.children,p=c.value,f=r[p];if("function"!=typeof f)throw new en(p,"function",a);p=f(sn(m,t,i,n,r,o).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),s.push.apply(s,p.map(function(e){return{type:"string"==typeof e?x.literal:x.object,value:e}}))}if(Qt(c)){if(!(g=c.options[d]||c.options.other))throw new Qi(c.value,d,Object.keys(c.options),a);s.push.apply(s,sn(g.value,t,i,n,r))}else if(ei(c)){if(!(g=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Ji('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Wi.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Qi(c.value,d,Object.keys(c.options),a);s.push.apply(s,sn(g.value,t,i,n,r,d-(c.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===x.literal&&t.type===x.literal?i.value+=t.value:e.push(t),e},[])}function ln(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(e=x=x||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(c,"defaultLocale",{get:function(){return c.memoizedDefaultLocale||(c.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),c.memoizedDefaultLocale},enumerable:!1,configurable:!0}),c.memoizedDefaultLocale=null,c.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])},c.__parse=Ri,c.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 un=c;function c(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=c.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=a.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===x.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return sn(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=c.resolveLocale(t),"string"==typeof e){if(this.message=e,!c.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=c.__parse(e,{ignoreTag:null==n?void 0:n.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=c.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?_(_(_({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=_(_({},i[t]),n[t]||{}),e},{})):i),e},_({},r)):r),this.formatters=n&&n.formatters||{getNumberFormat:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:ln((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:zi.variadic}),getDateTimeFormat:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,qt([void 0],t,!1)))},{cache:ln(t.dateTime),strategy:zi.variadic}),getPluralRules:Bi(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,qt([void 0],t,!1)))},{cache:ln(t.pluralRules),strategy:zi.variadic})}}const cn={},dn=(e,t,i)=>i&&(t in cn||(cn[t]={}),e in cn[t]||(cn[t][e]=i),i),hn=(t,i)=>{if(null!=i){if(i in cn&&t in cn[i])return cn[i][t];var n=An(i);for(let e=0;e<n.length;e++){var r=function(e,i){if(!fn(e))return null;e=function(e){return mn[e]||null}(e);{var n=i;if(null==n)return;if(n in e)return e[n];const r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}(n[e],t);if(r)return dn(t,i,r)}}};let mn;const pn=Ot({});function fn(e){return e in mn}function gn(t,...i){delete cn[t],pn.update(e=>(e[t]=Wt.all([e[t]||{},...i]),e))}Ht([pn],([e])=>Object.keys(e)),pn.subscribe(e=>mn=e);const yn={};function vn(e){return yn[e]}function wn(e){return null!=e&&An(e).some(e=>{return null==(e=vn(e))?void 0:e.size})}const bn={};function _n(e){if(!wn(e))return e in bn?bn[e]:Promise.resolve();const t=An(e).map(e=>{var t=vn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return bn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const i=Promise.all(e.map(e=>{var t=n,i=e;return yn[t].delete(i),0===yn[t].size&&delete yn[t],e().then(e=>e.default||e)}));return i.then(e=>gn(n,...e))}})).then(()=>{if(wn(e))return _n(e);delete bn[e]}),bn[e]}function Ln(e,t){var i={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}const xn={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 Tn=Ot(!1);let En;const Cn=Ot(null);function Mn(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function An(e,t=xn.fallbackLocale){e=Mn(e);return t?[...new Set([...e,...Mn(t)])]:e}function Sn(){return null!=En?En:void 0}Cn.subscribe(e=>{En=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W=Object.assign(Object.assign({},Cn),{set:t=>{if(t&&function(e){if(null!=e){var t=An(e);for(let e=0;e<t.length;e++){var i=t[e];if(fn(i))return i}}}(t)&&wn(t)){var i=xn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Sn()&&i?e=window.setTimeout(()=>Tn.set(!0),i):Tn.set(!0),_n(t).then(()=>{Cn.set(t)}).finally(()=>{clearTimeout(e),Tn.set(!1)})}return Cn.set(t)}}),In=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Dn=(e,t)=>{var i=xn["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},kn=In(e=>{var{locale:t,format:i}=e,e=Ln(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(e=Dn("number",i)),new Intl.NumberFormat(t,e)}),Pn=In(e=>{var{locale:t,format:i}=e,e=Ln(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?e=Dn("date",i):0===Object.keys(e).length&&(e=Dn("date","short")),new Intl.DateTimeFormat(t,e)}),On=In(e=>{var{locale:t,format:i}=e,e=Ln(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?e=Dn("time",i):0===Object.keys(e).length&&(e=Dn("time","short")),new Intl.DateTimeFormat(t,e)}),Hn=In((e,t=Sn())=>new un(e,t,xn.formats,{ignoreTag:xn.ignoreTag})),Nn=Ht([W,pn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Sn(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=hn(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!=(n=null!=(i=null==(i=(n=xn).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let u=l;try{u=Hn(l,a).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),Rn=(Ht([W],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=Ln(e,["locale"]);return On(Object.assign({locale:t},e))})(t).format(e)),Ht([W],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=Ln(e,["locale"]);return Pn(Object.assign({locale:t},e))})(t).format(e)),Ht([W],()=>(e,t)=>((e={})=>{var{locale:t=Sn()}=e,e=Ln(e,["locale"]);return kn(Object.assign({locale:t},e))})(t).format(e)),Ht([W,pn],()=>(e,t=Sn())=>hn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Dt.indexOf(e)&&(t=new At(t),kt[e]=t,Dt.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 Bn(e,t){gn(e,t)}const $n={en:{gamingLimits:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}},"zh-hk":{gamingLimits:{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"}},fr:{gamingLimits:{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:{gamingLimits:{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:{gamingLimits:{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:{gamingLimits:{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 Yn(e,t){gn(e,t)}const Fn={en:{cardText:{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":{cardText:{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:{cardText:{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:{cardText:{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:{cardText:{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:{cardText:{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 Gn(e,t){gn(e,t)}const Un={en:{popupText:{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:{popupText:{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":{popupText:{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"}},fr:{popupText:{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:{popupText:{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:{popupText:{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:{popupText:{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 Wn(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,e,t,g,y,v=i[4]("popupText.name")+"";function w(e){return e[0]?Vn:jn}let b=w(i),_=b(i);return{c(){n=J("section"),r=J("div"),o=J("div"),(a=J("div")).textContent="i",s=ee(),l=J("div"),u=Q(v),c=ee(),(d=J("div")).innerHTML='<svg class="w-6 h-6" part="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>',h=ee(),m=J("div"),_.c(),ie(a,"class","InfoCardPopupIcon"),ie(a,"part","InfoCardPopupIcon"),ie(l,"class","InfoCardPopupTitle"),ie(l,"part","InfoCardPopupTitle"),ie(d,"class","InfoCardPopupCloseButton"),ie(d,"part","InfoCardPopupCloseButton"),ie(o,"class","InfoCardPopupHeader"),ie(o,"part","InfoCardPopupHeader"),ie(m,"class","InfoCardPopupContentArea"),ie(m,"part","InfoCardPopupContentArea"),ie(r,"class",p="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ie(r,"part",f="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ie(n,"class",e=i[5]?"InfoCardPopupMobileModal":""),ie(n,"part",t=i[5]?"InfoCardPopupMobileModal":"")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(o,s),Z(o,l),Z(l,u),Z(o,c),Z(o,d),Z(r,h),Z(r,m),_.m(m,null),i[12](n),g||(y=te(d,"click",oe(i[6])),g=!0)},p(e,t){16&t&&v!==(v=e[4]("popupText.name")+"")&&re(u,v),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(m,null))),1&t&&p!==(p="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ie(r,"class",p),1&t&&f!==(f="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ie(r,"part",f)},d(e){e&&K(n),_.d(),i[12](null),g=!1,y()}}}function jn(e){let i,n,r=e[4]("popupText.defaultText")+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InfoCardPopupContent"),ie(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){16&t&&r!==(r=e[4]("popupText.defaultText")+"")&&re(n,r)},d(e){e&&K(i)}}}function Vn(e){let i,n,r=e[4]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InfoCardPopupContent"),ie(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){19&t&&r!==(r=e[4]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&re(n,r)},d(e){e&&K(i)}}}function zn(e){let i,n=e[3]&&Wn(e);return{c(){n&&n.c(),i=b(),this.c=z},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=Wn(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:z,o:z,d(e){n&&n.d(e),e&&K(i)}}}function qn(t,e,i){let n,{showpopup:r=""}=(j(t,Nn,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(Un).forEach(e=>{Gn(e,Un[e])});let d,h=!1,m=window.navigator.userAgent,p="PC"!==Rn(m);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,h=!1)};return ae(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,r=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,W.set(e),o<0&&i(0,o="0"),i(3,h=r)),1028&t.$$.dirty&&u&&d){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{d.appendChild(t)},1)})}if(516&t.$$.dirty&&l&&d){let e=document.createElement("style");e.innerHTML=l,d.appendChild(e)}var e;2048&t.$$.dirty&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Gn(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,h,n,p,()=>{i(3,h=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,u,c,function(e){U[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function Zn(e,t){gn(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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, #FD2839);fill:var(--emfe-w-color-secondary, #FD2839)}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},qn,zn,h,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),g()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),g()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),g()}});const Xn={en:{editText:{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":{editText:{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:{editText:{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:{editText:{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:{editText:{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:{editText:{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"}}};Jn=Kn={path:void 0,exports:{},require:function(e,t){return Ii(null==t&&Kn.path)}},Kn.exports,Jn.exports=function(){var N;function p(){return N.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(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 $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));return i}function G(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,i,n){return Dt(e,t,i,n,!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 U(e){if(null==e._isValid){var t=g(e),i=j.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function W(e){var t=u(NaN);return null!=e?G(g(t),e):g(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},V=p.momentProperties=[],z=!1;function q(e,t){var i,n,r,o=V.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(r=t[n=V[i]])||(e[n]=r);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return G(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,o),s){for(var e,t,i=[],n=arguments.length,r=0;r<n;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];i.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,n=G({},e);for(i in t)f(t,i)&&(R(e[i])&&R(t[i])?(n[i]={},G(n[i],e[i]),G(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&R(e[i])&&(n[i]=G({},n[i]));return n}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function n(e,t,i,n){var r="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=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(n){for(var e,r=n.match(ie),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="",i=0;i<o;i++)t+=c(r[i])?r[i].call(e,n):r[i];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=i&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,i,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}var ce={};function i(e,t){ce[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function h(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?h(e):t}function he(t,i){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,i),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=m(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Oe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var r=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,Le=/[+-]?\d{1,6}/,xe=/\d+/,Te=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,n){Ae[e]=c(i)?i:function(e,t){return e&&n?n:i}}function Me(e,t){return f(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},Se={};function L(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),$(i)&&(r=function(e,t){t[i]=m(e)}),n=e.length,t=0;t<n;t++)Se[e[t]]=r}function Ie(e,r){L(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var x,T=0,E=1,C=2,M=3,A=4,S=5,De=6,ke=7,Pe=8;function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%(i=12)+i)%i;return e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[E]=m(e)-1}),L(["MMM","MMMM"],function(e,t,i,n){n=i._locale.monthsParse(e,n,i._strict);null!=n?t[E]=n:g(i).invalidMonth=e});var He="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("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=w,$e=w;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!$(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Fe(e){return null!=e?(Ye(this,e),p.updateOffset(this,!0),this):me(this,"Month")}function Ge(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],r=[],o=0;o<12;o++)t=u([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),r.sort(e),o=0;o<12;o++)i[o]=_(i[o]),n[o]=_(n[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("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ue(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),b("Y",Te),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",Le,ye),b("YYYYYY",Le,ye),L(["YYYYY","YYYYYY"],T),L("YYYY",function(e,t){t[T]=2===e.length?p.parseTwoDigitYear(e):m(e)}),L("YY",function(e,t){t[T]=p.parseTwoDigitYear(e)}),L("Y",function(e,t){t[T]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var We=he("FullYear",!0);function je(e,t,i,n,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,o,a),s}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,i){i=7+t-i;return-(7+Ve(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,n,r){var o,t=1+7*(t-1)+(7+i-n)%7+ze(e,n,r),i=t<=0?Ue(o=e-1)+t:t>Ue(e)?(o=e+1,t-Ue(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var n,r,o=ze(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+I(r=e.year()-1,t,i):o>I(e.year(),t,i)?(n=o-I(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function I(e,t,i){var n=ze(e,t,i),t=ze(e+1,t,i);return(Ue(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),Ie(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=m(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),Ie(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:g(i).invalidWeekday=e}),Ie(["d","e","E"],function(e,t,i,n){t[n]=m(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function nt(){function e(e,t){return t.length-e.length}for(var t,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=u([2e3,1]).day(l),t=_(this.weekdaysMin(n,"")),i=_(this.weekdaysShort(n,"")),n=_(this.weekdays(n,"")),r.push(t),o.push(i),a.push(n),s.push(t),s.push(i),s.push(n);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){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,rt),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),L(["H","HH"],M),L(["k","kk"],function(e,t,i){e=m(e);t[M]=24===e?0:e}),L(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),L(["h","hh"],function(e,t,i){t[M]=m(e),g(i).bigHour=!0}),L("hmm",function(e,t,i){var n=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n)),g(i).bigHour=!0}),L("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n,2)),t[S]=m(e.substr(r)),g(i).bigHour=!0}),L("Hmm",function(e,t,i){var n=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n))}),L("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n,2)),t[S]=m(e.substr(r))});w=he("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:He,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},D={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ct(e[o]).split("-")).length,i=(i=ct(e[o+1]))?i.split("-"):null;0<t;){if(n=ht(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(r,i)>=t-1)break;t--}o++}return st}function ht(t){var e;if(void 0===D[t]&&Jn&&Jn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Ii(),mt(e)}catch(e){D[t]=null}return D[t]}function mt(e,t){return e&&((t=s(t)?k(e):pt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function pt(e,t){if(null===t)return delete D[e],null;var i,n=lt;if(t.abbr=e,null!=D[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])n=D[t.parentLocale]._config;else{if(null==(i=ht(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=i._config}return D[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){pt(e.name,e.config)}),mt(e),D[e]}function k(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=ht(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[C]<1||t[C]>Oe(t[T],t[E])?C:t[M]<0||24<t[M]||24===t[M]&&(0!==t[A]||0!==t[S]||0!==t[De])?M:t[A]<0||59<t[A]?A:t[S]<0||59<t[S]?S:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<T||C<t)&&(t=C),g(e)._overflowWeeks&&-1===t&&(t=ke),g(e)._overflowWeekday&&-1===t&&(t=Pe),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Lt=/^(?:(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}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,i,n,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,u=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],n=!1!==wt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,i=u;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!n&&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||""),St(e)}else e._isValid=!1}function Et(e,t,i,n,r,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Ct(e){var t,i,n,r,o=Lt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],n=t,r=e,i&&Je.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(i=o[8],n=o[9],r=o[10],i?xt[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,i){return null!=e?e:null!=t?t:i}function At(e){var t,i,n,r,o,a,s,l,u,c,d,h=[];if(!e._d){for(c=e,d=new Date(p.now()),i=c._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[C]&&null==e._a[E]&&(null!=(d=(c=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,n=Mt(d.GG,c._a[T],Ze(P(),1,4).year),r=Mt(d.W,1),((o=Mt(d.E,1))<1||7<o)&&(l=!0)):(a=c._locale._week.dow,s=c._locale._week.doy,u=Ze(P(),a,s),n=Mt(d.gg,c._a[T],u.year),r=Mt(d.w,u.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>I(n,a,s)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=qe(n,r,o,a,s),c._a[T]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(d=Mt(e._a[T],i[T]),(e._dayOfYear>Ue(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=h[t]=i[t];for(;t<7;t++)e._a[t]=h[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[A]&&0===e._a[S]&&0===e._a[De]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?Ve:je).apply(null,h),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function St(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,n,r=""+e._i,o=r.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)n=i[l],(t=(r.match(Me(n,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[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),d=n,m=e,null!=(h=t)&&f(Se,d)&&Se[d](h,m._a,m,d)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(o=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[T]=e._locale.erasConvertYear(c,e._a[T])),At(e),ft(e)}else Ct(e);else Tt(e);var u,c,d,h,m}function It(e){var t,i=e._i,n=e._f;{var r,o;if(e._locale=e._locale||k(e._l),null===i||void 0===n&&""===i)return W({nullInput:!0});else return"string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(Y(i)?e._d=i:a(n)?function(e){var t,i,n,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],St(t),U(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,i=t):(null==n||o<n||a)&&(n=o,i=t,a&&(s=!0));G(e,i||t)}(e):n?St(e):s(n=(i=e)._i)?i._d=new Date(p.now()):Y(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Tt(r),!1===r._isValid&&(delete r._isValid,Ct(r),!1===r._isValid&&(delete r._isValid,r._strict?r._isValid=!1:p.createFromInputFallback(r)))):r._d=new Date(+o[1])):a(n)?(i._a=F(n.slice(0),function(e){return parseInt(e,10)}),At(i)):R(n)?(r=i)._d||(t=void 0===(o=ue(r._i)).day?o.date:o.day,r._a=F([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),At(r)):$(n)?i._d=new Date(n):p.createFromInputFallback(i),U(e)||(e._d=null),e)}}function Dt(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(R(e)&&B(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,(r=new Z(ft(It(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function P(e,t,i,n){return Dt(e,t,i,n,!1)}p.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":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function kt(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return P();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var e=ue(e),t=e.year||0,i=e.quarter||0,n=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,u=e.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=Pt.length;for(t in e)if(f(e,t)&&(-1===x.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[Pt[i]]){if(n)return!1;parseFloat(e[Pt[i]])!==m(e[Pt[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=k(),this._bubble()}function Ht(e){return e instanceof Ot}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,i){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ce),b("ZZ",Ce),L(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=$t(Ce,e)});var Bt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Bt)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||Y(e)?e:P(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),p.updateOffset(t,!1),t):P(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function O(e,t){var i,n,r=e,o=null;return Ht(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(o=Ut.exec(e))?(i="-"===o[1]?-1:1,r={y:0,d:m(o[C])*i,h:m(o[M])*i,m:m(o[A])*i,s:m(o[S])*i,ms:m(Nt(1e3*o[De]))*i}):(o=Wt.exec(e))?(i="-"===o[1]?-1:1,r={y:jt(o[2],i),M:jt(o[3],i),w:jt(o[4],i),d:jt(o[5],i),h:jt(o[6],i),m:jt(o[7],i),s:jt(o[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=P(r.from),o=P(r.to),i=t.isValid()&&o.isValid()?(o=Yt(o,t),t.isBefore(o)?n=Vt(t,o):((n=Vt(o,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=i.milliseconds,r.M=i.months),o=new Ot(r),Ht(e)&&f(e,"_locale")&&(o._locale=e._locale),Ht(e)&&f(e,"_isValid")&&(o._isValid=e._isValid),o}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function zt(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(J(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."),i=e,e=t,t=i),qt(this,O(e,t),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,me(e,"Month")+t*i),o&&pe(e,"Date",me(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n&&p.updateOffset(e,o||t))}O.fn=Ot.prototype,O.invalid=function(){return O(NaN)};He=zt(1,"add"),Ke=zt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Zt(e)||$(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),i&&n)||function(e){var t,i,n=R(e)&&!B(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)i=o[t],r=r||f(e,i);return n&&r}(e)||null==e;var t,i,n}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=k(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ni(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ri(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),i.push(_(r[o].narrow)),n.push(_(r[o].name)),n.push(_(r[o].abbr)),n.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){n(0,[e,e.length],0,t)}function si(e,t,i,n,r){var o;return null==e?Ze(this,n,r).year:(t>(o=I(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,n,r))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),b("N",ri),b("NN",ri),b("NNN",ri),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){n=i._locale.erasParse(e,n,i._strict);n?g(i).era=n:g(i).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),L(["y","yy","yyy","yyyy"],T),L(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[T]=i._locale.eraYearOrdinalParse(e,r):t[T]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),b("G",Te),b("g",Te),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",Le,ye),b("ggggg",Le,ye),Ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=m(e)}),Ie(["gg","GG"],function(e,t,i,n){t[n]=p.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",r),L("Q",function(e,t){t[E]=3*(m(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],C),L("Do",function(e,t){t[C]=m(e.match(v)[0])});_e=he("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),L(["DDD","DDDD"],function(e,t,i){i._dayOfYear=m(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),L(["m","mm"],A);ge=he("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),L(["s","ss"],S);var li,Le=he("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),b("S",be,r),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,xe);function ui(e,t){t[De]=m(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")L(li,ui);ye=he("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=Z.prototype;function ci(e){return e}r.add=He,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!B(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||f(e,n[r]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||P(),i=Yt(e,this).startOf("day"),i=p.calendarFormat(this,i)||"sameElse",t=t&&(c(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,P(e)))},r.clone=function(){return new Z(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,n)/12;break;case"month":o=Kt(this,n);break;case"quarter":o=Kt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:h(o)},r.endOf=function(e){var t,i;if(void 0===(e=d(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ni:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}return this._d.setTime(t),p.updateOffset(this,!0),this},r.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(P(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(P(),e)},r.get=function(e){return c(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:P(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:P(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,i,n){return e=l(e)?e:P(e),t=l(t)?t:P(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},r.isSame=function(e,t){var e=l(e)?e:P(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 U(this)},r.lang=Qe,r.locale=Jt,r.localeData=Qt,r.max=we,r.min=ve,r.parsingFlags=function(){return G({},g(this))},r.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ce[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ue(e)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(c(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,i;if(void 0===(e=d(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?ni:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}return this._d.setTime(t),p.updateOffset(this,!0),this},r.subtract=Ke,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},r.toDate=function(){return new Date(this.valueOf())},r.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.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"):c(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")},r.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",i="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))},"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(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},r.eraYear=function(){for(var e,t,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(e=i[n].since<=i[n].until?1:-1,t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return(this.year()-p(i[n].since).year())*e+i[n].offset;return this.year()},r.year=We,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return si.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=Fe,r.daysInMonth=function(){return Oe(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=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return I(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return I(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return I(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return I(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},r.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},r.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN;var t,i},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=w,r.minute=r.minutes=ge,r.second=r.seconds=Le,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ft(this);if("string"==typeof e){if(null===(e=$t(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,O(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.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(Ft(this),"m")),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?P(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=Gt,r.isUTC=Gt,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",Fe),r.years=e("years accessor is deprecated. Use year instead",We),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(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return q(t,this),(t=It(t))._a?(e=(t._isUTC?u:P)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<n;a++)(i&&e[a]!==t[a]||!i&&m(e[a])!==m(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function di(e,t,i,n){var r=k(),n=u().set(n,t);return r[i](n,e)}function hi(e,t,i){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var n=[],r=0;r<12;r++)n[r]=di(e,r,i,"month");return n}function mi(e,t,i,n){t=("boolean"==typeof e||(i=t=e,e=!1),$(t)&&(i=t,t=void 0),t||"");var r,o=k(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=di(t,(r+a)%7,n,"day");return s}y.calendar=function(e,t,i){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ci,y.postformat=ci,y.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return c(r)?r(e,t,i,n):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(c(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,n=this._eras||k("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=p(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=p(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},y.erasParse=function(e,t,i){var n,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if(0<=[o,a,s].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Re).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[Re.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var n,r;if(this._monthsParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))||-1!==(r=x.call(this._longMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))||-1!==(r=x.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var n,r;if(this._weekdaysParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.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")||nt.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")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},mt("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===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",k);var pi=Math.abs;function fi(e,t,i,n){t=O(t,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),He=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),Le=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),We=bi("minutes"),y=bi("hours"),_i=bi("days"),Li=bi("months"),xi=bi("years");var Ti=Math.round,Ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ci(e,t,i,n){var r=O(e).abs(),o=Ti(r.as("s")),a=Ti(r.as("m")),s=Ti(r.as("h")),l=Ti(r.as("d")),u=Ti(r.as("M")),c=Ti(r.as("w")),r=Ti(r.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||a<=1&&["m"]||a<i.m&&["mm",a]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return(o=(o=null!=i.w?o||c<=1&&["w"]||c<i.w&&["ww",c]:o)||u<=1&&["M"]||u<i.M&&["MM",u]||r<=1&&["y"]||["yy",r])[2]=t,o[3]=0<+e,o[4]=n,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,o)}var Mi=Math.abs;function Ai(e){return(0<e)-(e<0)||+e}function Si(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,r,o,a,s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),c=this.asSeconds();return c?(e=h(s/60),t=h(e/60),s%=60,e%=60,i=h(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(c)?"-":"",o=Ai(this._days)!==Ai(c)?"-":"",a=Ai(this._milliseconds)!==Ai(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"}var H=Ot.prototype;return H.isValid=function(){return this._isValid},H.abs=function(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this},H.add=function(e,t){return fi(this,e,t,1)},H.subtract=function(e,t){return fi(this,e,t,-1)},H.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},H.asMilliseconds=be,H.asSeconds=fe,H.asMinutes=He,H.asHours=we,H.asDays=ve,H.asWeeks=Ke,H.asMonths=w,H.asQuarters=ge,H.asYears=Le,H.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},H._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),n.milliseconds=e%1e3,e=h(e/1e3),n.seconds=e%60,e=h(e/60),n.minutes=e%60,e=h(e/60),n.hours=e%24,t+=h(e/24),i+=e=h(yi(t)),t-=gi(vi(e)),e=h(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},H.clone=function(){return O(this)},H.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},H.milliseconds=ye,H.seconds=_e,H.minutes=We,H.hours=y,H.days=_i,H.weeks=function(){return h(this.days()/7)},H.months=Li,H.years=xi,H.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=Ei;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ei,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),t=Ci(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)},H.toISOString=Si,H.toString=Si,H.toJSON=Si,H.locale=Jt,H.localeData=Qt,H.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Si),H.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Te),b("X",/[+-]?\d+(\.\d{1,3})?/),L("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),L("x",function(e,t,i){i._d=new Date(m(e))}),p.version="2.29.3",N=P,p.fn=r,p.min=function(){return kt("isBefore",[].slice.call(arguments,0))},p.max=function(){return kt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=u,p.unix=function(e){return P(1e3*e)},p.months=function(e,t){return hi(e,t,"months")},p.isDate=Y,p.locale=mt,p.invalid=W,p.duration=O,p.isMoment=l,p.weekdays=function(e,t,i){return mi(e,t,i,"weekdays")},p.parseZone=function(){return P.apply(null,arguments).parseZone()},p.localeData=k,p.isDuration=Ht,p.monthsShort=function(e,t){return hi(e,t,"monthsShort")},p.weekdaysMin=function(e,t,i){return mi(e,t,i,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var i,n;return null!=t?(n=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(n=null!=(i=ht(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=D[e],D[e]=n),mt(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===mt()&&mt(e)):null!=D[e]&&delete D[e]),D[e]},p.locales=function(){return te(D)},p.weekdaysShort=function(e,t,i){return mi(e,t,i,"weekdaysShort")},p.normalizeUnits=d,p.relativeTimeRounding=function(e){return void 0===e?Ti:"function"==typeof e&&(Ti=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Ei[e]&&(void 0===t?Ei[e]:(Ei[e]=t,"s"===e&&(Ei.ss=t-1),!0))},p.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"},p.prototype=r,p.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"},p}();var Kn,Jn,I=Kn.exports;function Qn(e,{delay:t=0,duration:i=400,easing:n=T}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function er(i){let n,r,t,o;return{c(){n=J("div"),(r=J("div")).innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',ie(r,"class","ModalWindow"),ie(r,"part","ModalWindow"),ie(r,"id","Modal")},m(e,t){X(e,n,t),Z(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(ce(()=>{(t=t||we(r,Qn,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||we(r,Qn,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&K(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function tr(e){let i,n,r=e[0]&&er(e);return{c(){r&&r.c(),i=b(),this.c=z},m(e,t){r&&r.m(e,t),X(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&ge(r,1)):((r=er(e)).c(),ge(r,1),r.m(i.parentNode,i)):r&&(y={r:0,c:[],p:y},ye(r,1,1,()=>{r=null}),y.r||q(y.c),y=y.p)},i(e){n||(ge(r),n=!0)},o(e){ye(r),n=!1},d(e){r&&r.d(e),e&&K(i)}}}function ir(e,t,i){let n,r,{show:o=!1}=t,{duration:a=350}=t,{clientstyling:s=""}=t,{clientstylingurl:l=""}=t;const u=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return ae(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),e.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},e.$$.update=()=>{if(36&e.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}if(20&e.$$.dirty&&s&&n){let e=document.createElement("style");e.innerHTML=s,n.appendChild(e)}},[o,a,n,void 0,s,l,function(e){U[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){U[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function nr(e,t){gn(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;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;background-color:rgba(0, 0, 0, 0.9)}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},ir,tr,h,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),g()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const rr={en:{modalText:{cancel:"取消",confirm:"確認"}},fr:{modalText:{cancel:"Annuler",confirm:"Confirmer"}},ro:{modalText:{cancel:"Anulează",confirm:"Confirmă"}},es:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}},pt:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}}};function or(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g,y=i[2]("modalText.cancel")+"",v=i[2]("modalText.confirm")+"",w=!i[3]&&function(i){let n,r,o;return{c(){(n=J("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" part="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>',ie(n,"class","ModalCloseBtn"),ie(n,"part","ModalCloseBtn"),ie(n,"role","button")},m(e,t){X(e,n,t),r||(o=te(n,"click",i[4]),r=!0)},p:z,d(e){e&&K(n),r=!1,o()}}}(i);return{c(){n=J("div"),w&&w.c(),r=ee(),o=J("div"),a=J("div"),s=Q(i[0]),l=ee(),u=J("div"),c=J("button"),d=Q(y),h=ee(),m=J("button"),p=Q(v),this.c=z,ie(a,"class","GamingLimitsConfirmationContent"),ie(a,"part","GamingLimitsConfirmationContent"),ie(c,"class","GamingLimitsCancelButton"),ie(c,"part","GamingLimitsCancelButton"),ie(m,"class","GamingLimitsConfirmButton"),ie(m,"part","GamingLimitsConfirmButton"),ie(u,"class","GamingLimitsConfirmationControlArea"),ie(u,"part","GamingLimitsConfirmationControlArea"),ie(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),ie(o,"part","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),ie(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":"")),ie(n,"part","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){X(e,n,t),w&&w.m(n,null),Z(n,r),Z(n,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(c,d),Z(u,h),Z(u,m),Z(m,p),i[12](n),f||(g=[te(c,"click",i[6]),te(m,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&re(s,e[0]),4&t&&y!==(y=e[2]("modalText.cancel")+"")&&re(d,y),4&t&&v!==(v=e[2]("modalText.confirm")+"")&&re(p,v)},i:z,o:z,d(e){e&&K(n),w&&w.d(),i[12](null),f=!1,q(g)}}}function ar(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(j(t,Nn,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c,d=(Object.keys(rr).forEach(e=>{nr(e,rr[e])}),window.navigator.userAgent),h="PC"!==Rn(d),m={},p="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(m=e.data.removeData,e=e.data.removeName,p="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return ae(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,r=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,W.set(e)),514&t.$$.dirty&&s&&c){let e=document.createElement("style");e.innerHTML=s,c.appendChild(e)}if(1026&t.$$.dirty&&l&&c){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{c.appendChild(t)},1)})}var e;2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{nr(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,n,h,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:m,name:p},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,u,function(e){U[e?"unshift":"push"](()=>{c=e,i(1,c)})}]}function sr(e,t,i){const n=e.slice();return n[56]=t[i],n[57]=t,n[58]=i,n}function lr(e,t,i){const n=e.slice();return n[59]=t[i],n}function ur(e,t,i){const n=e.slice();return n[56]=t[i],n[58]=i,n}function cr(e){let i,n,r,o=e[18]("editText.success")+"";return{c(){i=J("div"),n=J("p"),r=Q(o),ie(i,"class","AccountEditLimitSuccessfulChangeContainer"),ie(i,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("editText.success")+"")&&re(r,o)},d(e){e&&K(i)}}}function dr(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=mr(ur(t,o,e));return{c(){r=J("div");for(let e=0;e<a.length;e+=1)a[e].c();ie(r,"class","AccountEditLimitSuccessfulChangeContainer"),ie(r,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,r,t);for(let e=0;e<a.length;e+=1)a[e].m(r,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=ur(t,o,e);a[e]?a[e].p(n,i):(a[e]=mr(n),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&&K(r),P(a,e)}}}function hr(e){let i,n,r,o,a=e[18]("editText.remove")+"",s=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("p"),n=Q(a),r=ee(),o=Q(s)},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("editText.remove")+"")&&re(n,a),16384&t[0]&&s!==(s=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(o,s)},d(e){e&&K(i)}}}function mr(e){let i,n=e[56].period==e[17][e[58]].period&&hr(e);return{c(){n&&n.c(),i=b()},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=hr(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&K(i)}}}function pr(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Tr(sr(t,o,e));return{c(){i=J("div"),r=J("div");for(let e=0;e<a.length;e+=1)a[e].c();ie(r,"class","AccountEditLimitsContainer"),ie(r,"part","AccountEditLimitsContainer"),ie(i,"class","AccountEditContent"),ie(i,"part","AccountEditContent")},m(e,t){X(e,i,t),Z(i,r);for(let e=0;e<a.length;e+=1)a[e].m(r,null)},p(t,i){if(18836552&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=sr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Tr(n),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&&K(i),P(a,e)}}}function fr(i){let n,r,o,e,t,a,s,l,u,c,d,h,m=i[18]("editText.noLimit")+"",p=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<p.length;e+=1)f[e]=yr(lr(i,p,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&vr(i),v=!0===i[56].isModified&&xr(i);return{c(){n=J("select"),r=J("option"),o=Q(m);for(let e=0;e<f.length;e+=1)f[e].c();s=ee(),l=J("div"),y&&y.c(),u=ee(),v&&v.c(),c=b(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,ie(n,"class",e="AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),ie(n,"part",t="AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&ce(g),ie(l,"class","AccountEditLimitsInputContainer"),ie(l,"part","AccountEditLimitsInputContainer")},m(e,t){X(e,n,t),Z(n,r),Z(r,o);for(let e=0;e<f.length;e+=1)f[e].m(n,null);O(n,i[17][i[58]].amount),X(e,s,t),X(e,l,t),y&&y.m(l,null),X(e,u,t),v&&v.m(e,t),X(e,c,t),d||(h=[te(n,"change",g),te(n,"change",function(){w(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&m!==(m=i[18]("editText.noLimit")+"")&&re(o,m),1048648&t[0]){let e;for(p=i[20].get(i[6])[i[58]].values,e=0;e<p.length;e+=1){const o=lr(i,p,e);f[e]?f[e].p(o,t):(f[e]=yr(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&O(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=vr(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=xr(i)).c(),v.m(c.parentNode,c)):v&&(v.d(1),v=null)},d(e){e&&K(n),P(f,e),e&&K(s),e&&K(l),y&&y.d(),e&&K(u),v&&v.d(e),e&&K(c),d=!1,q(h)}}}function gr(e){let i,n=("Time Limit"!==e[6]?e[3]:" minutes")+"";return{c(){i=Q(n)},m(e,t){X(e,i,t)},p(e,t){72&t[0]&&n!==(n=("Time Limit"!==e[6]?e[3]:" minutes")+"")&&re(i,n)},d(e){e&&K(i)}}}function yr(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&gr(e);return{c(){i=J("option"),n=Q(s),r=ee(),l&&l.c(),o=ee(),i.__value=a=e[59],i.value=i.__value},m(e,t){X(e,i,t),Z(i,n),Z(i,r),l&&l.m(i,null),Z(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&re(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=gr(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&K(i),l&&l.d()}}}function vr(e){let i;function n(e){return"Time Limit"!==e[6]?br:wr}let r=n(e),o=r(e);return{c(){o.c(),i=b()},m(e,t){o.m(e,t),X(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&K(i)}}}function wr(i){let n,r,o,a,s,l;function u(){i[31].call(n,i[58])}let c=1==i[13][i[58]]&&_r(i);return{c(){n=J("input"),o=ee(),a=J("p"),c&&c.c(),ie(n,"type","number"),ie(n,"class","AccountEditField AccountEditFieldCustom"),ie(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,ie(a,"class","AccountEditWarningText"),ie(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),p(n,i[17][i[58]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&V(n.value)!==i[17][i[58]].value&&p(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=_r(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&K(n),e&&K(o),e&&K(a),c&&c.d(),s=!1,q(l)}}}function br(i){let n,r,o,a,s,l;function u(){i[30].call(n,i[58])}let c=1==i[13][i[58]]&&Lr(i);return{c(){n=J("input"),o=ee(),a=J("p"),c&&c.c(),ie(n,"type","number"),ie(n,"class","AccountEditField AccountEditFieldCustom"),ie(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,ie(a,"class","AccountEditWarningText"),ie(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),p(n,i[17][i[58]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&V(n.value)!==i[17][i[58]].value&&p(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=Lr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&K(n),e&&K(o),e&&K(a),c&&c.d(),s=!1,q(l)}}}function _r(e){let i,n,r=e[18]("editText.invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InvalidInput"),ie(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("editText.invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&re(n,r)},d(e){e&&K(i)}}}function Lr(e){let i,n,r=e[18]("editText.invalidInputMessageLimit")+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InvalidInput"),ie(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("editText.invalidInputMessageLimit")+"")&&re(n,r)},d(e){e&&K(i)}}}function xr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w=e[18]("editText.expirationDate")+"",b=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("editText.changedLimitTextBefore")+"",L=(0<e[56].updateAmount?e[56].updateAmount:0)+"",x=(void 0!==e[56].minutes?" minutes":e[3])+"",T=e[18]("editText.changedLimitTextAfter")+"";return{c(){i=J("p"),n=Q(w),r=ee(),o=J("span"),a=Q(b),s=ee(),l=J("div"),u=J("p"),(c=J("span")).textContent="i",d=J("span"),h=Q(_),m=ee(),p=Q(L),f=ee(),g=Q(x),y=Q(". "),v=Q(T),ie(i,"class","AccountEditLimitsExpiryDate"),ie(i,"part","AccountEditLimitsExpiryDate"),ie(c,"class","AccountEditLimitChangePeriodIcon"),ie(c,"part","AccountEditLimitChangePeriodIcon"),ie(l,"class","AccountEditLimitsPeriodChangeContainer"),ie(l,"part","AccountEditLimitsPeriodChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o),Z(o,a),X(e,s,t),X(e,l,t),Z(l,u),Z(u,c),Z(u,d),Z(d,h),Z(d,m),Z(d,p),Z(d,f),Z(d,g),Z(d,y),Z(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("editText.expirationDate")+"")&&re(n,w),16384&t[0]&&b!==(b=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(a,b),262144&t[0]&&_!==(_=e[18]("editText.changedLimitTextBefore")+"")&&re(h,_),16384&t[0]&&L!==(L=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&re(p,L),16392&t[0]&&x!==(x=(void 0!==e[56].minutes?" minutes":e[3])+"")&&re(g,x),262144&t[0]&&T!==(T=e[18]("editText.changedLimitTextAfter")+"")&&re(v,T)},d(e){e&&K(i),e&&K(s),e&&K(l)}}}function Tr(e){let i,n,r,o,a,s=e[18]("editText."+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&fr(e);return{c(){i=J("div"),n=J("p"),r=Q(s),o=ee(),l&&l.c(),a=ee(),ie(n,"class","AccountEditLimitsTitle"),ie(n,"part","AccountEditLimitsTitle"),ie(i,"class","AccountEditLimitsBox"),ie(i,"part","AccountEditLimitsBox")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(i,o),l&&l.m(i,null),Z(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18]("editText."+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&re(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=fr(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&K(i),l&&l.d()}}}function Er(i){let n,B,r,o,a,s,$,l,u,c,Y,d,h,F,m,p,f,G,g,y,U,v,W,w,b,_,L,x,T,E,C,M,A,S,I,j,V,D=i[18]("editText.back")+"",k=(i[0]?i[9]:"")+"",P=i[18]("editText.save")+"",O=i[19]&&function(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g=i[18]("editText.back")+"";return{c(){n=J("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),h=J("h2"),m=Q(g),ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(r,"xmlns","http://www.w3.org/2000/svg"),ie(r,"width","15"),ie(r,"height","15"),ie(r,"viewBox","0 0 15 15"),ie(h,"class","MyAccountCategoryTitleMobile"),ie(h,"part","MyAccountCategoryTitleMobile"),ie(n,"class","MenuReturnButton"),ie(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,h),Z(h,m),p||(f=te(n,"click",i[22]),p=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("editText.back")+"")&&re(m,g)},d(e){e&&K(n),p=!1,f()}}}(i),H=i[1]&&cr(i),N=i[2]&&dr(i),R=i[8]&&pr(i);return{c(){n=J("div"),O&&O.c(),B=ee(),r=J("div"),o=t("svg"),a=t("defs"),s=t("style"),$=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),Y=ee(),d=J("h2"),h=Q(D),F=ee(),m=J("div"),p=J("h6"),f=Q(k),G=ee(),g=J("div"),(y=J("span")).textContent="i",U=ee(),v=J("player-account-gaming-limits-popup"),W=ee(),H&&H.c(),w=ee(),N&&N.c(),b=ee(),R&&R.c(),_=ee(),L=J("div"),x=J("button"),T=Q(P),A=ee(),S=J("player-account-modal"),I=J("player-account-gaming-limits-confirmation-modal"),this.c=z,ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(o,"xmlns","http://www.w3.org/2000/svg"),ie(o,"width","20"),ie(o,"height","20"),ie(o,"viewBox","0 0 15 15"),ie(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(d,"part","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(r,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(r,"part","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(y,"class","AccountEditLimitsIcon"),ie(y,"part","AccountEditLimitsIcon"),ne(v,"showpopup",i[7]),ne(v,"lang",i[4]),ie(g,"class","AccountEditLimitsIconWrapper"),ie(g,"part","AccountEditLimitsIconWrapper"),ie(m,"class","AccountEditLimitsHeader"),ie(m,"part","AccountEditLimitsHeader"),ie(x,"class",E="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),ie(x,"part",C="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),x.disabled=M=!i[15],ie(L,"class","AccountEditLimitsControlArea"),ie(L,"part","AccountEditLimitsControlArea"),ie(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ne(I,"modaltext",i[12]),ne(I,"modalsource","groupEdit"),ne(I,"lang",i[4])},m(e,t){X(e,n,t),O&&O.m(n,null),Z(n,B),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(s,$),Z(o,l),Z(l,u),Z(u,c),Z(r,Y),Z(r,d),Z(d,h),Z(n,F),Z(n,m),Z(m,p),Z(p,f),Z(m,G),Z(m,g),Z(g,y),Z(g,U),Z(g,v),Z(n,W),H&&H.m(n,null),Z(n,w),N&&N.m(n,null),Z(n,b),R&&R.m(n,null),Z(n,_),Z(n,L),Z(L,x),Z(x,T),i[33](n),X(e,A,t),X(e,S,t),Z(S,I),j||(V=[te(r,"click",i[22]),te(y,"click",oe(i[21])),te(x,"click",i[32])],j=!0)},p(e,t){e[19]&&O.p(e,t),262144&t[0]&&D!==(D=e[18]("editText.back")+"")&&re(h,D),513&t[0]&&k!==(k=(e[0]?e[9]:"")+"")&&re(f,k),128&t[0]&&ne(v,"showpopup",e[7]),16&t[0]&&ne(v,"lang",e[4]),e[1]?H?H.p(e,t):((H=cr(e)).c(),H.m(n,w)):H&&(H.d(1),H=null),e[2]?N?N.p(e,t):((N=dr(e)).c(),N.m(n,b)):N&&(N.d(1),N=null),e[8]?R?R.p(e,t):((R=pr(e)).c(),R.m(n,_)):R&&(R.d(1),R=null),262144&t[0]&&P!==(P=e[18]("editText.save")+"")&&re(T,P),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&ie(x,"class",E),32768&t[0]&&C!==(C="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&ie(x,"part",C),32768&t[0]&&M!==(M=!e[15])&&(x.disabled=M),4096&t[0]&&ne(I,"modaltext",e[12]),16&t[0]&&ne(I,"lang",e[4])},i:z,o:z,d(e){e&&K(n),O&&O.d(),H&&H.d(),N&&N.d(),R&&R.d(),i[33](null),e&&K(A),e&&K(S),j=!1,q(V)}}}function Cr(e,t,o){let i,{limitsdata:n=[]}=(j(e,Nn,e=>o(18,i=e)),t),{showsuccessnotification:r=!1}=t,{showdeletenotification:a=!1}=t,{playercurrency:s=""}=t,{lang:l="en"}=t,{separatelimits:u="true"}=t,{clientstyling:c=""}=t,{clientstylingurl:d=""}=t,{translationurl:h=""}=t,m,p,f=(Object.keys(Xn).forEach(e=>{Zn(e,Xn[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",N=window.navigator.userAgent,R="PC"!==Rn(N),L=new Array(3).fill(0),x={},T=[],E=[],C=!1,M=[];const A={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let S=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],I=[{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"]}],B=[{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"]}],$=[{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 k=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),P=new Map([["Deposit Limit",I],["Time Limit",$],["Wagering Limit",D],["Loss Limit",B]]),Y=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},O=(i,e)=>{let n=JSON.parse(JSON.stringify(e));S.forEach(t=>{n.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},F=()=>{M.forEach(e=>{var t=e;E.forEach(e=>{t.period===e.period&&("Time Limit"===m&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount)&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount)))})}),x.forEach(r=>{E.forEach(t=>{if(r.period===t.period){var i=r,n=S;let e=t.values;i.amount&&"No limit"!==i.amount?e.includes(JSON.stringify(i.amount))?n.forEach(e=>{e.period===i.period&&(e.amount=JSON.stringify(i.amount),e.value=i.amount)}):n.forEach(e=>{e.period===i.period&&(e.amount="Custom",e.value=i.amount)}):n.forEach(e=>{e.period===i.period&&(e.amount=i.amount,e.value=0)})}})})},H=()=>{var e=l;W.set(e),e="Time Limit"===m?"time limit":"Deposit Limit"===m?"deposit limit":"Wagering Limit"===m?"wagering limit":"loss limit",o(12,_=i("editText.changeLimitsText",{values:{limit:e}})),o(16,M=JSON.parse(JSON.stringify(n))),o(14,x=JSON.parse(JSON.stringify(n))),E="Wagering Limit"===m?D:"Loss Limit"===m?B:"Deposit Limit"===m?I:"Time Limit"===m?$:[],F()},G=e=>{if(e.data)switch(e.data.type){case"EditPlayerLimit":o(6,m=e.data.name),o(9,y=i("editText."+m.charAt(0).toLowerCase()+m.substring(1).replace(/\s/g,""))),H(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===m?S.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,minutes:t.value},T.push(e)):x.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):S.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},T.push(e)):x.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==u?{[k.get(m)]:[...T]}:{[k.get(m)]:[...x]},T.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:k.get(m)},window.location.href),o(15,C=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),H(),o(15,C=!1),v=!1}var t};return ae(()=>(window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)})),e.$$set=e=>{"limitsdata"in e&&o(0,n=e.limitsdata),"showsuccessnotification"in e&&o(1,r=e.showsuccessnotification),"showdeletenotification"in e&&o(2,a=e.showdeletenotification),"playercurrency"in e&&o(3,s=e.playercurrency),"lang"in e&&o(4,l=e.lang),"separatelimits"in e&&o(25,u=e.separatelimits),"clientstyling"in e&&o(26,c=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,h=e.translationurl)},e.$$.update=()=>{if(6&e.$$.dirty[0]&&r&&a&&H(),e.$$.dirty[0],67108896&e.$$.dirty[0]&&c&&p){let e=document.createElement("style");e.innerHTML=c,p.appendChild(e)}if(134217760&e.$$.dirty[0]&&d&&p){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}268435456&e.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Zn(e,t[e])})}).catch(e=>{console.log(e)})},[n,r,a,s,l,p,m,f,g,y,w,b,_,L,x,C,M,S,i,R,P,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},Y,(e,t,i,n)=>{var r;"Custom"===e.amount?"Time Limit"==m?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&A.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,L[t]=0,L),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,C=!1),O(e,n)):o(15,C=!0)):(o(13,L[t]=1,L),o(15,C=!1))):e.value&&A.amount.test(e.value)?(o(13,L[t]=0,L),e.period==n[t].period&&e.value==n[t].amount?(o(15,C=!!C),O(e,n)):o(15,C=!0),"true"!=u&&S.forEach(e=>{0==e.value&&o(15,C=!1)})):(o(13,L[t]=1,L),o(15,C=!1)):(e.period==n[t].period?(O(e,n),o(15,C=e.value!=n[t].amount)):o(15,C=!0),S.forEach(e=>{(0==e.value&&"true"!=u||"Custom"==e.amount&&!A.amount.test(e.value.toString()))&&o(15,C=!1)}))},u,c,d,h,function(e){S[e].amount=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),o(17,S),o(20,P),o(6,m)},function(e){S[e].value=V(this.value),o(17,S),o(20,P),o(6,m)},function(e){S[e].value=V(this.value),o(17,S),o(20,P),o(6,m)},()=>Y(),function(e){U[e?"unshift":"push"](()=>{p=e,o(5,p)})}]}function Mr(e,t,i){const n=e.slice();return n[41]=t[i],n[43]=i,n}function Ar(e,t,i){const n=e.slice();return n[41]=t[i],n[43]=i,n}function Sr(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w,b,_,L,x,T,E,C=(i[0]?i[15]("cardText."+i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",M=i[15]("cardText.edit")+"";function A(e){return"Time Limit"===e[1]?kr:Dr}let S=A(i),I=S(i),D=!i[9]&&!i[0].isModified&&i[14]&&zr(i),k=i[11]&&qr(i);return{c(){n=J("div"),r=J("div"),o=J("div"),a=J("h5"),s=Q(C),l=ee(),u=J("div"),(c=J("span")).textContent="i",d=ee(),h=J("player-account-gaming-limits-popup"),p=ee(),f=J("div"),g=J("div"),y=J("div"),I.c(),v=ee(),w=J("div"),b=J("button"),_=Q(M),L=ee(),D&&D.c(),x=ee(),k&&k.c(),ie(c,"class","InfoCardIcon"),ie(c,"part","InfoCardIcon"),ne(h,"showpopup",m=i[8][0]),ne(h,"lang",i[3]),ne(h,"clientstyling",i[4]),ne(h,"clientstylingurl",i[5]),ie(u,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(u,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),ie(o,"part","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),ie(y,"class","InfoCardTableRow"),ie(y,"part","InfoCardTableRow"),ie(g,"class","InfoCardTableWrapper"),ie(g,"part","InfoCardTableWrapper"),ie(b,"class","InfoCardEditButton"),ie(b,"part","InfoCardEditButton"),ie(w,"class","InfoCardControlArea"),ie(w,"part","InfoCardControlArea"),ie(f,"class","InfoCard"),ie(f,"part","InfoCard"),ie(r,"class","InfoCardWrapper"),ie(r,"part","InfoCardWrapper"),ie(n,"class","InfoCardSection"),ie(n,"part","InfoCardSection")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(u,d),Z(u,h),Z(r,p),Z(r,f),Z(f,g),Z(g,y),I.m(y,null),Z(f,v),Z(f,w),Z(w,b),Z(b,_),Z(w,L),D&&D.m(w,null),Z(n,x),k&&k.m(n,null),T||(E=[te(c,"click",oe(i[23])),te(b,"click",i[26])],T=!0)},p(e,t){32771&t[0]&&C!==(C=(e[0]?e[15]("cardText."+e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&re(s,C),256&t[0]&&m!==(m=e[8][0])&&ne(h,"showpopup",m),8&t[0]&&ne(h,"lang",e[3]),16&t[0]&&ne(h,"clientstyling",e[4]),32&t[0]&&ne(h,"clientstylingurl",e[5]),S===(S=A(e))&&I?I.p(e,t):(I.d(1),(I=S(e))&&(I.c(),I.m(y,null))),32768&t[0]&&M!==(M=e[15]("cardText.edit")+"")&&re(_,M),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=zr(e)).c(),D.m(w,null)),e[11]?k?k.p(e,t):((k=qr(e)).c(),k.m(n,null)):k&&(k.d(1),k=null)},d(e){e&&K(n),I.d(),D&&D.d(),k&&k.d(),T=!1,q(E)}}}function Ir(e){let i;return{c(){ie(i=J("div"),"class","ModalLoader"),ie(i,"part","ModalLoader")},m(e,t){X(e,i,t)},p:z,d(e){e&&K(i)}}}function Dr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Br(Mr(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=b()},m(t,i){for(let e=0;e<a.length;e+=1)a[e].m(t,i);X(t,r,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Mr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Br(n),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){P(a,e),e&&K(r)}}}function kr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Vr(Ar(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=b()},m(t,i){for(let e=0;e<a.length;e+=1)a[e].m(t,i);X(t,r,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Ar(t,o,e);a[e]?a[e].p(n,i):(a[e]=Vr(n),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){P(a,e),e&&K(r)}}}function Pr(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&re(n,r)},d(e){e&&K(i)}}}function Or(e){let i,n,r=e[15]("cardText.notAvailable")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.notAvailable")+"")&&re(n,r)},d(e){e&&K(i)}}}function Hr(e){let i,n,r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(n,r)},d(e){e&&K(i)}}}function Nr(i){let n,r,o,a,s,l,u,c;function d(){return i[25](i[43])}return{c(){n=J("div"),(r=J("span")).textContent="i",o=ee(),a=J("player-account-gaming-limits-popup"),ie(r,"class","InfoCardIcon"),ie(r,"part","InfoCardIcon"),ne(a,"showpopup",s=i[8][i[43]+1]),ne(a,"iteminfoamount",l=i[41].updateAmount),ne(a,"playercurrency",i[2]),ne(a,"lang",i[3]),ne(a,"clientstyling",i[4]),ne(a,"clientstylingurl",i[5]),ie(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(n,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),u||(c=te(r,"click",oe(d)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ne(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ne(a,"iteminfoamount",l),4&t[0]&&ne(a,"playercurrency",i[2]),8&t[0]&&ne(a,"lang",i[3]),16&t[0]&&ne(a,"clientstyling",i[4]),32&t[0]&&ne(a,"clientstylingurl",i[5])},d(e){e&&K(n),u=!1,c()}}}function Rr(i){let n,r,o;return{c(){(n=J("div")).innerHTML="<span></span>",ie(n,"class","InfoCardRemoveIcon"),ie(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&K(n),r=!1,o()}}}function Br(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"),L=e[15]("cardText.expirationDate")+"",x=_&&Pr(e);function T(e){return e[41].expiryDate?Hr:Or}let E=T(e),C=E(e);function M(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("cardText.noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?Rr:"No limit"!=e[41].amount&&e[41].isModified?Nr:void 0}let A=M(e,[-1,-1]),S=A&&A(e);return{c(){i=J("div"),n=J("div"),r=J("div"),o=J("div"),a=Q(w),s=ee(),l=J("div"),u=Q(b),c=ee(),x&&x.c(),d=ee(),h=J("div"),m=J("div"),p=Q(L),f=ee(),C.c(),g=ee(),S&&S.c(),v=ee(),ie(o,"class","InfoCardRowTitle"),ie(o,"part","InfoCardRowTitle"),ie(l,"class","InfoCardRowValue"),ie(l,"part","InfoCardRowValue"),ie(r,"class","InfoCardRow InfoMainRow"),ie(r,"part","InfoCardRow InfoMainRow"),ie(m,"class","InfoCardRowTitle"),ie(m,"part","InfoCardRowTitle"),ie(h,"class","InfoCardRow"),ie(h,"part","InfoCardRow"),ie(n,"class","InfoCardRowContainer"),ie(n,"part","InfoCardRowContainer"),ie(i,"class","InfoCardBox InfoCardMultipleItems"),ie(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),Z(l,u),Z(l,c),x&&x.m(l,null),Z(n,d),Z(n,h),Z(h,m),Z(m,p),Z(h,f),C.m(h,null),Z(i,g),S&&S.m(i,null),Z(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&re(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"")&&re(u,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"):_)?x?x.p(e,t):((x=Pr(e)).c(),x.m(l,null)):x&&(x.d(1),x=null),32768&t[0]&&L!==(L=e[15]("cardText.expirationDate")+"")&&re(p,L),E===(E=T(e))&&C?C.p(e,t):(C.d(1),(C=E(e))&&(C.c(),C.m(h,null))),A===(A=M(e,t))&&S?S.p(e,t):(S&&S.d(1),(S=A&&A(e))&&(S.c(),S.m(i,v)))},d(e){e&&K(i),x&&x.d(),C.d(),S&&S.d()}}}function $r(e){let i,n,r=e[15]("cardText.noLimit")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.noLimit")+"")&&re(n,r)},d(e){e&&K(i)}}}function Yr(e){let i,n,r,o=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"),s=a&&Fr(e);return{c(){i=Q(o),n=ee(),s&&s.c(),r=b()},m(e,t){X(e,i,t),X(e,n,t),s&&s.m(e,t),X(e,r,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"")&&re(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"):a)?s?s.p(e,t):((s=Fr(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&K(i),e&&K(n),s&&s.d(e),e&&K(r)}}}function Fr(e){let i,n,r=e[15]("cardText.minutes")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.minutes")+"")&&re(n,r)},d(e){e&&K(i)}}}function Gr(e){let i,n,r=e[15]("cardText.notAvailable")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.notAvailable")+"")&&re(n,r)},d(e){e&&K(i)}}}function Ur(e){let i,n,r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(n,r)},d(e){e&&K(i)}}}function Wr(i){let n,r,o,a,s,l,u,c,d;function h(){return i[24](i[43])}return{c(){n=J("div"),(r=J("span")).textContent="i",o=ee(),a=J("player-account-gaming-limits-popup"),ie(r,"class","InfoCardIcon"),ie(r,"part","InfoCardIcon"),ne(a,"showpopup",s=i[8][i[43]+1]),ne(a,"iteminfoamount",l=i[41].updateMinutes),ne(a,"playercurrency",u=i[15]("cardText.minutes")),ne(a,"lang",i[3]),ne(a,"clientstyling",i[4]),ne(a,"clientstylingurl",i[5]),ie(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(n,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),c||(d=te(r,"click",oe(h)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ne(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ne(a,"iteminfoamount",l),32768&t[0]&&u!==(u=i[15]("cardText.minutes"))&&ne(a,"playercurrency",u),8&t[0]&&ne(a,"lang",i[3]),16&t[0]&&ne(a,"clientstyling",i[4]),32&t[0]&&ne(a,"clientstylingurl",i[5])},d(e){e&&K(n),c=!1,d()}}}function jr(i){let n,r,o;return{c(){(n=J("div")).innerHTML="<span></span>",ie(n,"class","InfoCardRemoveIcon"),ie(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&K(n),r=!1,o()}}}function Vr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("cardText.expirationDate")+"";function w(e){return 0!==e[41].amount?Yr:$r}let b=w(e),_=b(e);function L(e){return e[41].expiryDate?Ur:Gr}let x=L(e),T=x(e);function E(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("cardText.noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?jr:"No limit"!=e[41].amount&&e[41].isModified?Wr:void 0}let C=E(e,[-1,-1]),M=C&&C(e);return{c(){i=J("div"),n=J("div"),r=J("div"),o=J("div"),a=Q(y),s=ee(),l=J("div"),_.c(),u=ee(),c=J("div"),d=J("div"),h=Q(v),m=ee(),T.c(),p=ee(),M&&M.c(),g=ee(),ie(o,"class","InfoCardRowTitle"),ie(o,"part","InfoCardRowTitle"),ie(l,"class","InfoCardRowValue"),ie(l,"part","InfoCardRowValue"),ie(r,"class","InfoCardRow InfoMainRow"),ie(r,"part","InfoCardRow InfoMainRow"),ie(d,"class","InfoCardRowTitle"),ie(d,"part","InfoCardRowTitle"),ie(c,"class","InfoCardRow"),ie(c,"part","InfoCardRow"),ie(n,"class","InfoCardRowContainer"),ie(n,"part","InfoCardRowContainer"),ie(i,"class","InfoCardBox InfoCardMultipleItems"),ie(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),_.m(l,null),Z(n,u),Z(n,c),Z(c,d),Z(d,h),Z(c,m),T.m(c,null),Z(i,p),M&&M.m(i,null),Z(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&re(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("cardText.expirationDate")+"")&&re(h,v),x===(x=L(e))&&T?T.p(e,t):(T.d(1),(T=x(e))&&(T.c(),T.m(c,null))),C===(C=E(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=C&&C(e))&&(M.c(),M.m(i,g)))},d(e){e&&K(i),_.d(),T.d(),M&&M.d()}}}function zr(i){let n,r,o,a,s=i[15]("cardText.removeLimits")+"";return{c(){n=J("button"),r=Q(s),ie(n,"class","InfoCardRemoveButton"),ie(n,"part","InfoCardRemoveButton")},m(e,t){X(e,n,t),Z(n,r),o||(a=te(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("cardText.removeLimits")+"")&&re(r,s)},d(e){e&&K(n),o=!1,a()}}}function qr(e){let i,n,r;return{c(){i=J("player-account-modal"),ne(n=J("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),ne(n,"modalsource","infoCard"),ne(n,"lang",e[3]),ne(n,"clientstyling",e[4]),ne(n,"clientstylingurl",e[5]),ne(i,"clientstyling",e[4]),ne(i,"clientstylingurl",e[5])},m(e,t){X(e,i,t),Z(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&ne(n,"modaltext",r),8&t[0]&&ne(n,"lang",e[3]),16&t[0]&&ne(n,"clientstyling",e[4]),32&t[0]&&ne(n,"clientstylingurl",e[5]),16&t[0]&&ne(i,"clientstyling",e[4]),32&t[0]&&ne(i,"clientstylingurl",e[5])},d(e){e&&K(i)}}}function Zr(i){let n;function r(e){return e[7]?Ir:Sr}let o=r(i),a=o(i);return{c(){n=J("div"),a.c(),this.c=z},m(e,t){X(e,n,t),a.m(n,null),i[28](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:z,o:z,d(e){e&&K(n),a.d(),i[28](null)}}}function Xr(n,e,r){let o,{limitsdata:a=[]}=(j(n,Nn,e=>r(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:c=""}=e,{translationurl:d=""}=e;Object.keys(Fn).forEach(e=>{Yn(e,Fn[e])});let h,m=!0,i=new Array(5).fill(0),p=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==Rn(v),b="",_="",L=!0,x=I();const T=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)},C=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{r(8,i[e]=!0,i)},50)},M=(e,t,i,n)=>{e.splice(t,0,"time"===n?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},A=(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,S=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":r(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return ae(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})),n.$$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,u=e.clientstyling),"clientstylingurl"in e&&r(5,c=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},n.$$.update=()=>{if(11&n.$$.dirty[0]&&a&&s&&l){var e=l;W.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,b=o("cardText.removeLimitsText",{values:{limit:e}})),r(13,_=o("cardText.removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(14,L=!1)});{var i=a;const t=p;p.forEach((t,e)=>{i.find(e=>e.period===t)&&(p=p.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&r(9,f=!1)}),r(7,m=!1)}),p.forEach(e=>{"Time Limit"===i.name?M(i,t.indexOf(e),e,"time"):M(i,t.indexOf(e),e,"currency")})}a.sort(A)}if(80&n.$$.dirty[0]&&u&&h){let e=document.createElement("style");e.innerHTML=u,h.appendChild(e)}if(96&n.$$.dirty[0]&&c&&h){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{h.appendChild(t)},1)})}4194304&n.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yn(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,u,c,h,m,i,f,g,y,b,_,L,o,w,x,T,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)},C,d,()=>C(0),e=>C(e+1),e=>C(e+1),()=>T(a),()=>E(a),function(e){U[e?"unshift":"push"](()=>{h=e,r(6,h)})}]}function Kr(e){let i;return{c(){ne(i=J("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ne(i,"limitname",e[14]),ne(i,"showsuccessnotification",e[7]),ne(i,"showdeletenotification",e[6]),ne(i,"playercurrency",e[5]),ne(i,"lang",e[0]),ne(i,"separatelimits",e[8]),ne(i,"clientstyling",e[9]),ne(i,"clientstylingurl",e[10])},m(e,t){X(e,i,t)},p(e,t){8192&t&&ne(i,"limitsdata",e[13]),16384&t&&ne(i,"limitname",e[14]),128&t&&ne(i,"showsuccessnotification",e[7]),64&t&&ne(i,"showdeletenotification",e[6]),32&t&&ne(i,"playercurrency",e[5]),1&t&&ne(i,"lang",e[0]),256&t&&ne(i,"separatelimits",e[8]),512&t&&ne(i,"clientstyling",e[9]),1024&t&&ne(i,"clientstylingurl",e[10])},d(e){e&&K(i)}}}function Jr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f=e[16]("gamingLimits.gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g=i[16]("gamingLimits.gamingLimitsText")+"";return{c(){n=J("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),h=J("h2"),m=Q(g),ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(r,"xmlns","http://www.w3.org/2000/svg"),ie(r,"width","15"),ie(r,"height","15"),ie(r,"viewBox","0 0 15 15"),ie(h,"class","PlayerGamingLimitsTitleMobile"),ie(h,"part","PlayerGamingLimitsTitleMobile"),ie(n,"class","MenuReturnButton"),ie(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,h),Z(h,m),p||(f=te(n,"click",i[21]),p=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimits.gamingLimitsText")+"")&&re(m,g)},d(e){e&&K(n),p=!1,f()}}}(e);return{c(){i=J("div"),g&&g.c(),n=ee(),r=J("h2"),o=Q(f),a=ee(),s=J("div"),l=J("player-account-gaming-limits-info-card"),u=ee(),c=J("player-account-gaming-limits-info-card"),d=ee(),h=J("player-account-gaming-limits-info-card"),m=ee(),p=J("player-account-gaming-limits-info-card"),ie(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ie(r,"part","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ne(l,"limitsdata",e[1]),ne(l,"limitname",to),ne(l,"playercurrency",e[5]),ne(l,"lang",e[0]),ne(l,"clientstyling",e[9]),ne(l,"clientstylingurl",e[10]),ne(c,"limitsdata",e[2]),ne(c,"limitname",io),ne(c,"playercurrency",e[5]),ne(c,"lang",e[0]),ne(c,"clientstyling",e[9]),ne(c,"clientstylingurl",e[10]),ne(h,"limitsdata",e[3]),ne(h,"limitname",no),ne(h,"playercurrency",e[5]),ne(h,"lang",e[0]),ne(h,"clientstyling",e[9]),ne(h,"clientstylingurl",e[10]),ne(p,"limitsdata",e[4]),ne(p,"limitname",ro),ne(p,"playercurrency",e[5]),ne(p,"lang",e[0]),ne(p,"clientstyling",e[9]),ne(p,"clientstylingurl",e[10]),ie(s,"class","PlayerAccountGamingLimitsContainer"),ie(s,"part","PlayerAccountGamingLimitsContainer"),ie(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":"")),ie(i,"part","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){X(e,i,t),g&&g.m(i,null),Z(i,n),Z(i,r),Z(r,o),Z(i,a),Z(i,s),Z(s,l),Z(s,u),Z(s,c),Z(s,d),Z(s,h),Z(s,m),Z(s,p)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimits.gamingLimitsText")+"")&&re(o,f),2&t&&ne(l,"limitsdata",e[1]),32&t&&ne(l,"playercurrency",e[5]),1&t&&ne(l,"lang",e[0]),512&t&&ne(l,"clientstyling",e[9]),1024&t&&ne(l,"clientstylingurl",e[10]),4&t&&ne(c,"limitsdata",e[2]),32&t&&ne(c,"playercurrency",e[5]),1&t&&ne(c,"lang",e[0]),512&t&&ne(c,"clientstyling",e[9]),1024&t&&ne(c,"clientstylingurl",e[10]),8&t&&ne(h,"limitsdata",e[3]),32&t&&ne(h,"playercurrency",e[5]),1&t&&ne(h,"lang",e[0]),512&t&&ne(h,"clientstyling",e[9]),1024&t&&ne(h,"clientstylingurl",e[10]),16&t&&ne(p,"limitsdata",e[4]),32&t&&ne(p,"playercurrency",e[5]),1&t&&ne(p,"lang",e[0]),512&t&&ne(p,"clientstyling",e[9]),1024&t&&ne(p,"clientstylingurl",e[10])},d(e){e&&K(i),g&&g.d()}}}function Qr(e){let i;return{c(){ie(i=J("div"),"class","ModalLoader"),ie(i,"part","ModalLoader")},m(e,t){X(e,i,t)},p:z,d(e){e&&K(i)}}}function eo(i){let n;function r(e){return e[12]?Qr:e[15]?Jr:Kr}let o=r(i),a=o(i);return{c(){n=J("div"),a.c(),this.c=z},m(e,t){X(e,n,t),a.m(n,null),i[22](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:z,o:z,d(e){e&&K(n),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;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, #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-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, #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}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},ar,or,h,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),g()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),g()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-color-primary, #D0046C)}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-color-primary-50, #FBECF4);border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-color-primary, #D0046C);cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},Cr,Er,h,{limitsdata:0,showsuccessnotification:1,showdeletenotification:2,playercurrency:3,lang:4,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),g()}get showsuccessnotification(){return this.$$.ctx[1]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),g()}get showdeletenotification(){return this.$$.ctx[2]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),g()}get playercurrency(){return this.$$.ctx[3]}set playercurrency(e){this.$$set({playercurrency:e}),g()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),g()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),g()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),g()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.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-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, #FD2839);border:1px solid var(--emfe-w-color-secondary, #FD2839)}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:\"\\274c\";font-size:7px;color:var(--emfe-w-color-secondary, #FD2839);line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emfe-w-color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color: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 var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},Xr,Zr,h,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),g()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),g()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),g()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),g()}});let to="Deposit Limit",io="Wagering Limit",no="Loss Limit",ro="Time Limit";function oo(t,e,i){let n,r=(j(t,Nn,e=>i(16,n=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:u=!1}=e,{lang:c="en"}=e,{playercurrency:d=""}=e,{separatelimits:h="true"}=e,{clientstyling:m=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,g;Object.keys($n).forEach(e=>{Bn(e,$n[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==Rn(w),_="",L=!0;const x=window.matchMedia("(min-width: 768px)"),T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,c=e.data.limits.lang),i(1,r=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,L=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,L=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return ae(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&i(1,r=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,u=e.showsuccessnotification),"lang"in e&&i(0,c=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,h=e.separatelimits),"clientstyling"in e&&i(9,m=e.clientstyling),"clientstylingurl"in e&&i(10,p=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&c&&(e=c,W.set(e)),2560&t.$$.dirty&&m&&g){let e=document.createElement("style");e.innerHTML=m,g.appendChild(e)}if(3072&t.$$.dirty&&p&&g){let e=new URL(p),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=>{Bn(e,t[e])})}).catch(e=>{console.log(e)})},[c,r,o,a,s,d,l,u,h,m,p,g,v,y,_,L,n,b,x,T,f,()=>T(),function(e){U[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}class ao extends _e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-color-primary, #D0046C);padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:\" \";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>",be(this,{target:this.shadowRoot,props:H(this.attributes),customElement:!0},oo,eo,h,{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&&X(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}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}),g()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),g()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),g()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),g()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),g()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),g()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),g()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),g()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),g()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),g()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",ao),ao});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function z(){}const x=e=>e;function m(e){return e()}function p(){return Object.create(null)}function q(e){e.forEach(m)}function w(e){return"function"==typeof e}function T(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function E(e,...t){if(null==e)return z;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function j(e,t,i){e.$$.on_destroy.push(E(t,i))}var e="undefined"!=typeof window;let C=e?()=>window.performance.now():()=>Date.now(),M=e?e=>requestAnimationFrame(e):z;const A=new Set;function S(t){A.forEach(e=>{e.c(t)||(A.delete(e),e.f())}),0!==A.size&&M(S)}function Z(e,t){e.appendChild(t)}function D(e){var t;return e?(t=e.getRootNode?e.getRootNode():e.ownerDocument)&&t.host?t:e.ownerDocument:document}function X(e,t,i){e.insertBefore(t,i||null)}function K(e){e.parentNode&&e.parentNode.removeChild(e)}function k(t,i){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(i)}function J(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e){return document.createTextNode(e)}function ee(){return Q(" ")}function b(){return Q("")}function te(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function oe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ie(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function ne(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:ie(e,t,i)}function V(e){return""===e?null:+e}function re(e,t){e.data!==(t=""+t)&&(e.data=t)}function P(e,t){e.value=null==t?"":t}function O(t,i,e){for(let e=0;e<t.options.length;e+=1){var n=t.options[e];if(n.__value===i)return n.selected=!0}e&&void 0===i||(t.selectedIndex=-1)}function N(e){var t={};for(const i of e)t[i.name]=i.value;return t}const H=new Map;let R,B=0;function $(e,t,i,n,r,o,a,s=0){var l=16.666/n;let u="{\n";for(let e=0;e<=1;e+=l){const n=t+(i-t)*o(e);u+=100*e+`%{${a(n,1-n)}}
2
+ `}var c,d=u+`100% {${a(i,1-i)}}
3
+ }`,s=`__svelte_${function(e){let t=5381,i=e.length;for(;i--;)t=(t<<5)-t^e.charCodeAt(i);return t>>>0}(d)}_`+s,h=D(e),{stylesheet:m,rules:p}=H.get(h)||(h=h,c={stylesheet:(c=e,p=J("style"),c=D(c),m=p,Z(c.head||c,m),m.sheet,p.sheet),rules:{}},H.set(h,c),c),h=(p[s]||(p[s]=!0,m.insertRule(`@keyframes ${s} `+d,m.cssRules.length)),e.style.animation||"");return e.style.animation=(h?h+", ":"")+s+` ${n}ms linear ${r}ms 1 both`,B+=1,s}function Y(e){R=e}function ae(e){!function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const F=[],U=[];let G=[];const se=[],le=Promise.resolve();let ue=!1;function ce(e){G.push(e)}const de=new Set;let he,me=0;function h(){if(0===me){const n=R;do{try{for(;me<F.length;){const n=F[me];me++,Y(n),e=t=void 0;var e,t=n.$$;null!==t.fragment&&(t.update(),q(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ce))}}catch(n){throw F.length=0,me=0,n}for(Y(null),F.length=0,me=0;U.length;)U.pop()();for(let e=0;e<G.length;e+=1){var i=G[e];de.has(i)||(de.add(i),i())}}while(G.length=0,F.length);for(;se.length;)se.pop()();ue=!1,de.clear(),Y(n)}}function pe(e,t,i){var n;e.dispatchEvent(([e,{bubbles:t=!1,cancelable:i=!1}={}]=[(t?"intro":"outro")+i],(n=document.createEvent("CustomEvent")).initCustomEvent(e,t,i,void 0),n))}const fe=new Set;let g;function ge(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ye(e,t,i,n){e&&e.o?fe.has(e)||(fe.add(e),g.c.push(()=>{fe.delete(e),n&&(i&&e.d(1),n())}),e.o(t)):n&&n()}const ve={duration:0};function we(l,e,t,i){const n={direction:"both"};let u=e(l,t,n),c=i?0:1,d=null,h=null,m=null;function p(){var e,t,i,n;m&&(e=l,t=m,i=(e.style.animation||"").split(", "),n=i.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),!(i=i.length-n.length)||(e.style.animation=n.join(", "),B-=i)||M(()=>{B||(H.forEach(e=>{e=e.stylesheet.ownerNode;e&&K(e)}),H.clear())}))}function f(e,t){var i=e.b-c;return t*=Math.abs(i),{a:c,b:e.b,d:i,duration:t,start:e.start,end:e.start+t,group:e.group}}function r(e){const{delay:t=0,duration:i=300,easing:n=x,tick:r=z,css:o}=u||ve,a={start:C()+t,b:e};if(e||((a.group=g).r+=1),d||h)h=a;else{o&&(p(),m=$(l,c,e,i,t,n,o)),e&&r(0,1),d=f(a,i),ce(()=>pe(l,e,"start"));{var s=e=>{return h&&e>h.start&&(d=f(h,i),h=null,pe(l,d.b,"start"),o)&&(p(),m=$(l,c,d.b,d.duration,0,n,u.css)),d&&(e>=d.end?(r(c=d.b,1-c),pe(l,d.b,"end"),h||(d.b?p():--d.group.r||q(d.group.c)),d=null):e>=d.start&&(e=e-d.start,c=d.a+d.d*n(e/d.duration),r(c,1-c))),!(!d&&!h)};let t;0===A.size&&M(S),new Promise(e=>{A.add(t={c:s,f:e})})}}}return{run(e){w(u)?(he||(he=Promise.resolve()).then(()=>{he=null}),he.then(()=>{u=u(n),r(e)})):r(e)},end(){p(),d=h=null}}}function be(n,e,t,i,r,o,a,s=[-1]){var l=R;Y(n);const u=n.$$={fragment:null,ctx:[],props:o,update:z,not_equal:r,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:p(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...i)=>{var i=i.length?i[0]:t;return u.ctx&&r(u.ctx[e],u.ctx[e]=i)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](i),c)&&(i=e,-1===(e=n).$$.dirty[0]&&(F.push(e),ue||(ue=!0,le.then(h)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31),t}):[],u.update(),c=!0,q(u.before_update),u.fragment=!!i&&i(u.ctx),e.target){if(e.hydrate){o=e.target;const z=Array.from(o.childNodes);u.fragment&&u.fragment.l(z),z.forEach(K)}else u.fragment&&u.fragment.c();e.intro&&ge(n.$$.fragment);var d=n,s=e.target,a=e.anchor,t=e.customElement,{fragment:i,after_update:o}=d.$$;i&&i.m(s,a),t||ce(()=>{var e=d.$$.on_mount.map(m).filter(w);d.$$.on_destroy?d.$$.on_destroy.push(...e):q(e),d.$$.on_mount=[]}),o.forEach(ce),h()}Y(l)}let _e;"function"==typeof HTMLElement&&(_e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(m).filter(w);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,i){this[e]=i}disconnectedCallback(){q(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var i=e.after_update;const n=[],r=[];G.forEach(e=>(-1===i.indexOf(e)?n:r).push(e)),r.forEach(e=>e()),G=n}q(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=z}$on(e,t){if(!w(t))return z;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var Le,xe,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==s&&s,Te="URLSearchParams"in s,Ee="Symbol"in s&&"iterator"in Symbol,Ce="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),Me="FormData"in s,Ae="ArrayBuffer"in s;function Se(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 Ie(e){return e="string"!=typeof e?String(e):e}function De(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Ee&&(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){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ke(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Pe(i){return new Promise(function(e,t){i.onload=function(){e(i.result)},i.onerror=function(){t(i.error)}})}function Oe(e){var t=new FileReader,i=Pe(t);return t.readAsArrayBuffer(e),i}function Ne(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function He(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:Ce&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Me&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Te&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ae&&Ce&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ne(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ae&&(ArrayBuffer.prototype.isPrototypeOf(e)||xe(e))?this._bodyArrayBuffer=Ne(e):this._bodyText=e=Object.prototype.toString.call(e):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):Te&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ce&&(this.blob=function(){var e=ke(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(){return this._bodyArrayBuffer?ke(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Oe)}),this.text=function(){var e,t,i=ke(this);if(i)return i;if(this._bodyBlob)return i=this._bodyBlob,e=new FileReader,t=Pe(e),e.readAsText(i),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Me&&(this.formData=function(){return this.text().then($e)}),this.json=function(){return this.text().then(JSON.parse)},this}Ae&&(Le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xe=ArrayBuffer.isView||function(e){return e&&-1<Le.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=Se(e),t=Ie(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},l.prototype.delete=function(e){delete this.map[Se(e)]},l.prototype.get=function(e){return e=Se(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(Se(e))},l.prototype.set=function(e,t){this.map[Se(e)]=Ie(t)},l.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},l.prototype.keys=function(){var i=[];return this.forEach(function(e,t){i.push(t)}),De(i)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),De(t)},l.prototype.entries=function(){var i=[];return this.forEach(function(e,t){i.push([t,e])}),De(i)},Ee&&(l.prototype[Symbol.iterator]=l.prototype.entries);var Re=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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.');var i,n=(t=t||{}).body;if(e instanceof Be){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,n||null==e._bodyInit||(n=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=(i=(e=t.method||this.method||"GET").toUpperCase(),-1<Re.indexOf(i)?i:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((i=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function $e(e){var i=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),i.append(decodeURIComponent(t),decodeURIComponent(e)))}),i}function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,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)}Be.prototype.clone=function(){return new Be(this,{body:this._bodyInit})},He.call(Be.prototype),He.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var Ye=[301,302,303,307,308],Fe=(u.redirect=function(e,t){if(-1===Ye.indexOf(t))throw new RangeError("Invalid status code");return new u(null,{status:t,headers:{location:e}})},s.DOMException);try{new Fe}catch(z){(Fe=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe}function Ge(n,a){return new Promise(function(r,e){var t=new Be(n,a);if(t.signal&&t.signal.aborted)return e(new Fe("Aborted","AbortError"));var 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 e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),i.append(t,e))}),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 u(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 Fe("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&s.location.href?s.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&&(Ce?o.responseType="blob":Ae&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,Ie(a.headers[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 Ii(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}Ge.polyfill=!0,s.fetch||(s.fetch=Ge,s.Headers=l,s.Request=Be,s.Response=u),self.fetch.bind(self);var Ue=function(e,t){return(Ue=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function je(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ve(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function ze(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function d(e){return"function"==typeof e}function qe(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 Ze=qe(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 Xe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.prototype.unsubscribe=function(){var e,t,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=je(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(d(o))try{o()}catch(e){r=e instanceof Ze?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=je(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{et(c)}catch(e){r=null!=r?r:[],e instanceof Ze?r=ze(ze([],Ve(r)),Ve(e.errors)):r.push(e)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}}if(r)throw new Ze(r)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)et(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Xe(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Xe(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((e=new i).closed=!0,e);var Ke=i,Je=Ke.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Qe(e){return e instanceof Ke||e&&"closed"in e&&d(e.remove)&&d(e.add)&&d(e.unsubscribe)}function et(e){d(e)?e():e.unsubscribe()}var tt=void 0,it=!1,nt=!1,rt={setTimeout:function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=rt.delegate;return null!=r&&r.setTimeout?r.setTimeout.apply(r,ze([e,t],Ve(i))):setTimeout.apply(void 0,ze([e,t],Ve(i)))},clearTimeout:function(e){var t=rt.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ot(){}var at=null;function st(e){if(it){var t=!at;if(t&&(at={errorThrown:!1,error:null}),e(),t){var t=at,i=t.errorThrown,t=t.error;if(at=null,i)throw t}}else e()}We(n,lt=Ke),n.create=function(e,t,i){return new pt(e,t,i)},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,lt.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var lt,ut=n,ct=Function.prototype.bind;function n(e){var t=lt.call(this)||this;return t.isStopped=!1,e?Qe(t.destination=e)&&e.add(t):t.destination=vt,t}function dt(e,t){return ct.call(e,t)}gt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yt(e)}},gt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yt(e)}else yt(e)},gt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yt(e)}};var ht,mt=gt,pt=(We(ft,ht=ut),ft);function ft(e,t,i){var n=ht.call(this)||this,i=d(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0}:n&&nt?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&dt(e.next,t),error:e.error&&dt(e.error,t),complete:e.complete&&dt(e.complete,t)}):e;return n.destination=new mt(i),n}function gt(e){this.partialObserver=e}function yt(e){var t=e;rt.setTimeout(function(){throw t})}var vt={closed:!0,next:ot,error:function(e){throw e},complete:ot},e="function"==typeof Symbol&&Symbol.observable||"@@observable";r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n,r=this,o=(n=e)&&n instanceof ut||n&&d(n.next)&&d(n.error)&&d(n.complete)&&Qe(n)?e:new pt(e,t,i);return st(function(){var e=r.operator,t=r.source;o.add(e?e.call(o,t):t?r._subscribe(o):r._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(n,e){var r=this;return new(e=bt(e))(function(e,t){var i=new pt({next:function(e){try{n(e)}catch(e){t(e),i.unsubscribe()}},error:t,complete:e});r.subscribe(i)})},r.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},r.prototype[e]=function(){return this},r.prototype.pipe=function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},r.prototype.toPromise=function(e){var n=this;return new(e=bt(e))(function(e,t){var i;n.subscribe(function(e){return i=e},function(e){return t(e)},function(){return e(i)})})},r.create=function(e){return new r(e)};var wt=r;function r(e){e&&(this._subscribe=e)}function bt(e){return null!=(e=null!=e?e:tt)?e:Promise}var _t,Lt,xt,Tt=qe(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),e=(We(o,xt=wt),o.prototype.lift=function(e){var t=new Et(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new Tt},o.prototype.next=function(r){var o=this;st(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var i=je(o.currentObservers),n=i.next();!n.done;n=i.next())n.value.next(r)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var i=this;st(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var e=i.observers;e.length;)e.shift().error(t)}})},o.prototype.complete=function(){var t=this;st(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),xt.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,i=this.hasError,n=this.isStopped,r=this.observers;return i||n?Je:(this.currentObservers=null,r.push(e),new Ke(function(){t.currentObservers=null,Xe(r,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,i=this.thrownError,n=this.isStopped;t?e.error(i):n&&e.complete()},o.prototype.asObservable=function(){var e=new wt;return e.source=this,e},o.create=function(e,t){return new Et(e,t)},o),Et=(We(St,Lt=e),St.prototype.next=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.next)&&i.call(t,e)},St.prototype.error=function(e){var t,i;null!=(i=null==(t=this.destination)?void 0:t.error)&&i.call(t,e)},St.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},St.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Je},St),Ct={now:function(){return(Ct.delegate||Date).now()},delegate:void 0},Mt=(We(At,_t=e),At.prototype.next=function(e){var t=this,i=t.isStopped,n=t._buffer,r=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;i||(n.push(e),r)||n.push(o.now()+t),this._trimBuffer(),_t.prototype.next.call(this,e)},At.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),i=this._infiniteTimeWindow,n=this._buffer.slice(),r=0;r<n.length&&!e.closed;r+=i?1:2)e.next(n[r]);return this._checkFinalizedStatuses(e),t},At.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,i=this._buffer,n=this._infiniteTimeWindow,r=(n?1:2)*e;if(e<1/0&&r<i.length&&i.splice(0,i.length-r),!n){for(var o=t.now(),a=0,s=1;s<i.length&&i[s]<=o;s+=2)a=s;a&&i.splice(0,a+1)}},At);function At(e,t,i){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===i&&(i=Ct);var n=_t.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function St(e,t){var i=Lt.call(this)||this;return i.destination=e,i.source=t,i}function o(){var e=xt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let It=[],Dt={};const kt=[];function Pt(n,r=z){let o;const a=new Set;function s(e){if(T(n,e)&&(n=e,o)){const e=!kt.length;for(const e of a)e[1](),kt.push(e,n);if(e){for(let e=0;e<kt.length;e+=2)kt[e][0](kt[e+1]);kt.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=z){const i=[e,t];return a.add(i),1===a.size&&(o=r(s)||z),e(n),()=>{a.delete(i),0===a.size&&o&&(o(),o=null)}}}}function Ot(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Pt(t,t=>{let i=!1;const n=[];let r=0,o=z;const a=()=>{var e;r||(o(),e=s(l?n[0]:n,t),c?t(e):o=w(e)?e:z)},e=u.map((e,t)=>E(e,e=>{n[t]=e,r&=~(1<<t),i&&a()},()=>{r|=1<<t}));return i=!0,a(),function(){q(e),o(),i=!1}}).subscribe}}function Nt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Ht);var t}var Ht="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Rt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Gt(Array.isArray(e)?[]:{},e,t):e}function Bt(e,t,i){return e.concat(t).map(function(e){return Rt(e,i)})}function $t(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 Yt(e,t){try{return t in e}catch(e){return!1}}function Ft(n,r,o){var a={};return o.isMergeableObject(n)&&$t(n).forEach(function(e){a[e]=Rt(n[e],o)}),$t(r).forEach(function(e){var t,i;(!Yt(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(Yt(n,e)&&o.isMergeableObject(r[e])?a[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:Gt)(n[e],r[e],o):a[e]=Rt(r[e],o))}),a}function Gt(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||Bt,i.isMergeableObject=i.isMergeableObject||Nt,i.cloneUnlessOtherwiseSpecified=Rt;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):Ft(e,t,i):Rt(t,i)}Gt.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return Gt(e,t,i)},{});throw new Error("first argument should be an array")};var Ut=Gt,Wt=function(e,t){return(Wt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)};function jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Wt(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var f,y,Vt,v=function(){return(v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function zt(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function qt(e){return e.type===y.literal}function Zt(e){return e.type===y.number}function Xt(e){return e.type===y.date}function Kt(e){return e.type===y.time}function Jt(e){return e.type===y.select}function Qt(e){return e.type===y.plural}function ei(e){return e.type===y.tag}function ti(e){return e&&"object"==typeof e&&e.type===Vt.number}function ii(e){return e&&"object"==typeof e&&e.type===Vt.dateTime}(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=Vt=Vt||{})[e.number=0]="number",e[e.dateTime=1]="dateTime";var e=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ni=/(?:[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 ri=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,oi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ai=/^(@+)?(\+|#+)?[rs]?$/g,si=/(\*)(0+)|(#+)(0+)|(0+)/g,li=/^(0+)$/;function ui(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(ai,function(e,t,i){return"string"!=typeof i?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===i?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof i?i.length:0)),""}),n}function ci(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 di(e){return ci(e)||{}}function hi(e){for(var a={},t=0,i=e;t<i.length;t++){var n,r=i[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=v(v(v({},a),{notation:"scientific"}),r.options.reduce(function(e,t){return v(v({},e),di(t))},{}));continue;case"engineering":a=v(v(v({},a),{notation:"engineering"}),r.options.reduce(function(e,t){return v(v({},e),di(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(si,function(e,t,i,n,r,o){if(t)a.minimumIntegerDigits=i.length;else{if(n&&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(li.test(r.stem))a.minimumIntegerDigits=r.stem.length;else if(oi.test(r.stem)){if(1<r.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(oi,function(e,t,i,n,r,o){return"*"===i?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.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=v(v({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=v(v({},a),ui(o)))}else ai.test(r.stem)?a=v(v({},a),ui(r.stem)):((o=ci(r.stem))&&(a=v(v({},a),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var i=e.slice(0,2);if("+!"===i?(t.signDisplay="always",e=e.slice(2)):"+?"===i&&(t.signDisplay="exceptZero",e=e.slice(2)),!li.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem))&&(a=v(v({},a),n)))}return a}var mi={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 pi=new RegExp("^".concat(e.source,"*")),fi=new RegExp("".concat(e.source,"*$"));function _(e,t){return{start:e,end:t}}var e=!!String.prototype.startsWith,gi=!!String.fromCodePoint,yi=!!Object.fromEntries,vi=!!String.prototype.codePointAt,wi=!!String.prototype.trimStart,bi=!!String.prototype.trimEnd,_i=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Li=!0;try{Li="a"===(null==(Wi=ki("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Wi[0])}catch(z){Li=!1}var xi,Ti,Ei=e?function(e,t,i){return e.startsWith(t,i)}:function(e,t,i){return e.slice(i,i+t.length)===t},Ci=gi?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i,n="",r=e.length,o=0;o<r;){if(1114111<(i=e[o++]))throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return n},Mi=yi?Object.fromEntries:function(e){for(var t={},i=0,n=e;i<n.length;i++){var r=n[i],o=r[0],r=r[1];t[o]=r}return t},Ai=vi?function(e,t){return e.codePointAt(t)}:function(e,t){var i,n=e.length;if(!(t<0||n<=t))return(i=e.charCodeAt(t))<55296||56319<i||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536},Si=wi?function(e){return e.trimStart()}:function(e){return e.replace(pi,"")},Di=bi?function(e){return e.trimEnd()}:function(e){return e.replace(fi,"")};function ki(e,t){return new RegExp(e,t)}Ti=Li?(xi=ki("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return xi.lastIndex=t,null!=(t=xi.exec(e)[1])?t:""}):function(e,t){for(var i,n=[];;){var r=Ai(e,t);if(void 0===r||Ni(r)||33<=(i=r)&&i<=35||36===i||37<=i&&i<=39||40===i||41===i||42===i||43===i||44===i||45===i||46<=i&&i<=47||58<=i&&i<=59||60<=i&&i<=62||63<=i&&i<=64||91===i||92===i||93===i||94===i||96===i||123===i||124===i||125===i||126===i||161===i||162<=i&&i<=165||166===i||167===i||169===i||171===i||172===i||174===i||176===i||177===i||182===i||187===i||191===i||215===i||247===i||8208<=i&&i<=8213||8214<=i&&i<=8215||8216===i||8217===i||8218===i||8219<=i&&i<=8220||8221===i||8222===i||8223===i||8224<=i&&i<=8231||8240<=i&&i<=8248||8249===i||8250===i||8251<=i&&i<=8254||8257<=i&&i<=8259||8260===i||8261===i||8262===i||8263<=i&&i<=8273||8274===i||8275===i||8277<=i&&i<=8286||8592<=i&&i<=8596||8597<=i&&i<=8601||8602<=i&&i<=8603||8604<=i&&i<=8607||8608===i||8609<=i&&i<=8610||8611===i||8612<=i&&i<=8613||8614===i||8615<=i&&i<=8621||8622===i||8623<=i&&i<=8653||8654<=i&&i<=8655||8656<=i&&i<=8657||8658===i||8659===i||8660===i||8661<=i&&i<=8691||8692<=i&&i<=8959||8960<=i&&i<=8967||8968===i||8969===i||8970===i||8971===i||8972<=i&&i<=8991||8992<=i&&i<=8993||8994<=i&&i<=9e3||9001===i||9002===i||9003<=i&&i<=9083||9084===i||9085<=i&&i<=9114||9115<=i&&i<=9139||9140<=i&&i<=9179||9180<=i&&i<=9185||9186<=i&&i<=9254||9255<=i&&i<=9279||9280<=i&&i<=9290||9291<=i&&i<=9311||9472<=i&&i<=9654||9655===i||9656<=i&&i<=9664||9665===i||9666<=i&&i<=9719||9720<=i&&i<=9727||9728<=i&&i<=9838||9839===i||9840<=i&&i<=10087||10088===i||10089===i||10090===i||10091===i||10092===i||10093===i||10094===i||10095===i||10096===i||10097===i||10098===i||10099===i||10100===i||10101===i||10132<=i&&i<=10175||10176<=i&&i<=10180||10181===i||10182===i||10183<=i&&i<=10213||10214===i||10215===i||10216===i||10217===i||10218===i||10219===i||10220===i||10221===i||10222===i||10223===i||10224<=i&&i<=10239||10240<=i&&i<=10495||10496<=i&&i<=10626||10627===i||10628===i||10629===i||10630===i||10631===i||10632===i||10633===i||10634===i||10635===i||10636===i||10637===i||10638===i||10639===i||10640===i||10641===i||10642===i||10643===i||10644===i||10645===i||10646===i||10647===i||10648===i||10649<=i&&i<=10711||10712===i||10713===i||10714===i||10715===i||10716<=i&&i<=10747||10748===i||10749===i||10750<=i&&i<=11007||11008<=i&&i<=11055||11056<=i&&i<=11076||11077<=i&&i<=11078||11079<=i&&i<=11084||11085<=i&&i<=11123||11124<=i&&i<=11125||11126<=i&&i<=11157||11158===i||11159<=i&&i<=11263||11776<=i&&i<=11777||11778===i||11779===i||11780===i||11781===i||11782<=i&&i<=11784||11785===i||11786===i||11787===i||11788===i||11789===i||11790<=i&&i<=11798||11799===i||11800<=i&&i<=11801||11802===i||11803===i||11804===i||11805===i||11806<=i&&i<=11807||11808===i||11809===i||11810===i||11811===i||11812===i||11813===i||11814===i||11815===i||11816===i||11817===i||11818<=i&&i<=11822||11823===i||11824<=i&&i<=11833||11834<=i&&i<=11835||11836<=i&&i<=11839||11840===i||11841===i||11842===i||11843<=i&&i<=11855||11856<=i&&i<=11857||11858===i||11859<=i&&i<=11903||12289<=i&&i<=12291||12296===i||12297===i||12298===i||12299===i||12300===i||12301===i||12302===i||12303===i||12304===i||12305===i||12306<=i&&i<=12307||12308===i||12309===i||12310===i||12311===i||12312===i||12313===i||12314===i||12315===i||12316===i||12317===i||12318<=i&&i<=12319||12320===i||12336===i||64830===i||64831===i||65093<=i&&i<=65094)break;n.push(r),t+=65536<=r?2:1}return Ci.apply(void 0,n)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,i){for(var n=[];!this.isEOF();){var r,o=this.char();if(123===o){if((r=this.parseArgument(e,i)).err)return r;n.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(i)break;return this.error(f.UNMATCHED_CLOSING_TAG,_(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Oi(this.peek()||0)){if((r=this.parseTag(e,t)).err)return r}else if((r=this.parseLiteral(e,t)).err)return r;n.push(r.val)}else{o=this.clonePosition();this.bump(),n.push({type:y.pound,location:_(o,this.clonePosition())})}}}return{val:n,err:null}},a.prototype.parseTag=function(e,t){var i,n=this.clonePosition(),r=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:y.literal,value:"<".concat(r,"/>"),location:_(n,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()||!Oi(this.char())?this.error(f.INVALID_TAG,_(e,this.clonePosition())):(i=this.clonePosition(),r!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,_(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:r,children:t,location:_(n,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,_(e,this.clonePosition())))):this.error(f.UNCLOSED_TAG,_(n,this.clonePosition()))):this.error(f.INVALID_TAG,_(n,this.clonePosition()))},a.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())},a.prototype.parseLiteral=function(e,t){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(t);if(r)n+=r;else{r=this.tryParseUnquoted(e,t);if(r)n+=r;else{r=this.tryParseLeftAngleBracket();if(!r)break;n+=r}}}i=_(i,this.clonePosition());return{val:{type:y.literal,value:n,location:i},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Oi(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(i);this.bump()}return Ci.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){var i;return this.isEOF()||60===(i=this.char())||123===i||35===i&&("plural"===t||"selectordinal"===t)||125===i&&0<e?null:(this.bump(),Ci(i))},a.prototype.parseArgument=function(e,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,_(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,_(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:_(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(i,this.clonePosition())):this.parseArgumentOptions(e,t,n,i);default:return this.error(f.MALFORMED_ARGUMENT,_(i,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),i=Ti(this.message,t),t=t+i.length;return this.bumpTo(t),{value:i,location:_(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,i,n){var r,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,_(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(h=Di(d.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,_(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:_(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(n)).err?u:(m=_(n,this.clonePosition()),l&&Ei(null==l?void 0:l.style,"::",0)?(p=Si(l.style.slice(2)),"number"===a?(d=this.parseNumberSkeletonFromString(p,l.styleLocation)).err?d:{val:{type:y.number,value:i,location:m,style:d.val},err:null}:0===p.length?this.error(f.EXPECT_DATE_TIME_SKELETON,m):(c=p,this.locale&&(c=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=function(e){var t,i=e.hourCycle;if(i=void 0===i&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(i=e.language)&&(t=e.maximize().region),(mi[t||""]||mi[i||""]||mi["".concat(i,"-001")]||mi["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)i+="a";for(;0<a--;)i=l+i}else i+="J"===r?"H":r}return i}(p,this.locale)),h={type:Vt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(r={},c.replace(ni,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:i,location:m,style:h},err:null})):{val:{type:"number"===a?y.number:"date"===a?y.date:y.time,value:i,location:m,style:null!=(p=null==l?void 0:l.style)?p:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,_(c,v({},c)));this.bumpSpace();var d,h=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===h.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_(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(),h=this.parseIdentifierIfPossible(),m=d.val}var p,l=this.tryParsePluralOrSelectOptions(e,a,t,h);return l.err?l:(u=this.tryParseArgumentClose(n)).err?u:(p=_(n,this.clonePosition()),"select"===a?{val:{type:y.select,value:i,options:Mi(l.val),location:p},err:null}:{val:{type:y.plural,value:i,options:Mi(l.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:p},err:null});default:return this.error(f.INVALID_ARGUMENT_TYPE,_(o,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,_(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_(i,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],i=0,n=e.split(ri).filter(function(e){return 0<e.length});i<n.length;i++){var r=n[i].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:Vt.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?hi(i):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,i,n){for(var r=!1,o=[],a=new Set,s=n.value,l=n.location;;){if(0===s.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=_(u,this.clonePosition()),s=this.message.slice(u.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();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,i);if(u.err)return u;var d=this.tryParseArgumentClose(c);if(d.err)return d;o.push([s,{value:u.val,location:_(c,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,_(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error(f.MISSING_OTHER_CLAUSE,_(this.clonePosition(),this.clonePosition())):{val:o,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-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()}n=_(n,this.clonePosition());return r?_i(o*=i)?{val:o,err:null}:this.error(t,n):this.error(e,n)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ai(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.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))},a.prototype.bumpIf=function(e){if(Ei(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.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)},a.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}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ni(this.char());)this.bump()},a.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 Pi=a;function a(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 Oi(e){return 97<=e&&e<=122||65<=e&&e<=90}function Ni(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Hi(e,t){t=v({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var i,e=new Pi(e,t).parse();if(e.err)throw(i=SyntaxError(f[e.err.kind])).location=e.err.location,i.originalMessage=e.err.message,i;return null!=t&&t.captureLocation||function i(e){e.forEach(function(e){if(delete e.location,Jt(e)||Qt(e))for(var t in e.options)delete e.options[t].location,i(e.options[t].value);else Zt(e)&&ti(e.style)||(Xt(e)||Kt(e))&&ii(e.style)?delete e.style.location:ei(e)&&i(e.children)})}(e.val),e.val}function Ri(e,t){var i=t&&t.cache?t.cache:ji,n=t&&t.serializer?t.serializer:Fi;return(t&&t.strategy?t.strategy:function(e,t){return Yi(e,this,1===e.length?Bi:$i,t.cache.create(),t.serializer)})(e,{cache:i,serializer:n})}function Bi(e,t,i,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function $i(e,t,i){var n=Array.prototype.slice.call(arguments,3),i=i(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Yi(e,t,i,n,r){return i.bind(t,e,n,r)}var Fi=function(){return JSON.stringify(arguments)};function Gi(){this.cache=Object.create(null)}Gi.prototype.get=function(e){return this.cache[e]},Gi.prototype.set=function(e,t){this.cache[e]=t};var Ui,Wi,ji={create:function(){return new Gi}},Vi={variadic:function(e,t){return Yi(e,this,$i,t.cache.create(),t.serializer)},monadic:function(e,t){return Yi(e,this,Bi,t.cache.create(),t.serializer)}};(Wi=Ui=Ui||{}).MISSING_VALUE="MISSING_VALUE",Wi.INVALID_VALUE="INVALID_VALUE",Wi.MISSING_INTL_API="MISSING_INTL_API";jt(on,Xi=Error),on.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var L,zi,qi,Zi,Xi,Ki=on,Ji=(jt(rn,Zi=Ki),rn),Qi=(jt(nn,qi=Ki),nn),en=(jt(tn,zi=Ki),tn);function tn(e,t){return zi.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Ui.MISSING_VALUE,t)||this}function nn(e,t,i){return qi.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Ui.INVALID_VALUE,i)||this}function rn(e,t,i,n){return Zi.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ui.INVALID_VALUE,n)||this}function on(e,t,i){e=Xi.call(this,e)||this;return e.code=t,e.originalMessage=i,e}function an(e,t,i,n,r,o,a){if(1===e.length&&qt(e[0]))return[{type:L.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(qt(c))s.push({type:L.literal,value:c.value});else if(c.type===y.pound)"number"==typeof o&&s.push({type:L.literal,value:i.getNumberFormat(t).format(o)});else{var d=c.value;if(!(r&&d in r))throw new en(d,a);d=r[d];if(c.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?L.literal:L.object,value:d});else if(Xt(c)){var h="string"==typeof c.style?n.date[c.style]:ii(c.style)?c.style.parsedOptions:void 0;s.push({type:L.literal,value:i.getDateTimeFormat(t,h).format(d)})}else if(Kt(c))h="string"==typeof c.style?n.time[c.style]:ii(c.style)?c.style.parsedOptions:n.time.medium,s.push({type:L.literal,value:i.getDateTimeFormat(t,h).format(d)});else if(Zt(c))(h="string"==typeof c.style?n.number[c.style]:ti(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(d*=h.scale||1),s.push({type:L.literal,value:i.getNumberFormat(t,h).format(d)});else{if(ei(c)){var m=c.children,p=c.value,f=r[p];if("function"!=typeof f)throw new Qi(p,"function",a);p=f(an(m,t,i,n,r,o).map(function(e){return e.value}));Array.isArray(p)||(p=[p]),s.push.apply(s,p.map(function(e){return{type:"string"==typeof e?L.literal:L.object,value:e}}))}if(Jt(c)){if(!(g=c.options[d]||c.options.other))throw new Ji(c.value,d,Object.keys(c.options),a);s.push.apply(s,an(g.value,t,i,n,r))}else if(Qt(c)){if(!(g=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Ki('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ui.MISSING_INTL_API,a);var f=i.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Ji(c.value,d,Object.keys(c.options),a);s.push.apply(s,an(g.value,t,i,n,r,d-(c.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var i=e[e.length-1];return i&&i.type===L.literal&&t.type===L.literal?i.value+=t.value:e.push(t),e},[])}function sn(i){return{create:function(){return{get:function(e){return i[e]},set:function(e,t){i[e]=t}}}}}(e=L=L||{})[e.literal=0]="literal",e[e.object=1]="object",Object.defineProperty(c,"defaultLocale",{get:function(){return c.memoizedDefaultLocale||(c.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),c.memoizedDefaultLocale},enumerable:!1,configurable:!0}),c.memoizedDefaultLocale=null,c.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])},c.__parse=Hi,c.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 ln=c;function c(e,t,i,n){var r,o,a=this;if(void 0===t&&(t=c.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===L.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 an(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=c.resolveLocale(t),"string"==typeof e){if(this.message=e,!c.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=c.__parse(e,{ignoreTag:null==n?void 0:n.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=c.formats,(o=i)?Object.keys(r).reduce(function(e,t){var i,n;return e[t]=(i=r[t],(n=o[t])?v(v(v({},i||{}),n||{}),Object.keys(i).reduce(function(e,t){return e[t]=v(v({},i[t]),n[t]||{}),e},{})):i),e},v({},r)):r),this.formatters=n&&n.formatters||{getNumberFormat:Ri(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,zt([void 0],t,!1)))},{cache:sn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Vi.variadic}),getDateTimeFormat:Ri(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,zt([void 0],t,!1)))},{cache:sn(t.dateTime),strategy:Vi.variadic}),getPluralRules:Ri(function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,zt([void 0],t,!1)))},{cache:sn(t.pluralRules),strategy:Vi.variadic})}}const un={},cn=(e,t,i)=>i&&(t in un||(un[t]={}),e in un[t]||(un[t][e]=i),i),dn=(t,i)=>{if(null!=i){if(i in un&&t in un[i])return un[i][t];var n=Cn(i);for(let e=0;e<n.length;e++){var r=function(e,t){if(!pn(e))return null;e=function(e){return hn[e]||null}(e);{var i=t;if(null!=i){if(i in e)return e[i];var n=i.split(".");let t=e;for(let e=0;e<n.length;e++)if("object"==typeof t){if(0<e){const i=n.slice(e,n.length).join(".");if(i in t){t=t[i];break}}t=t[n[e]]}else t=void 0;return t}}}(n[e],t);if(r)return cn(t,i,r)}}};let hn;const mn=Pt({});function pn(e){return e in hn}function fn(t,...i){delete un[t],mn.update(e=>(e[t]=Ut.all([e[t]||{},...i]),e))}Ot([mn],([e])=>Object.keys(e)),mn.subscribe(e=>hn=e);const gn={};function yn(e){return gn[e]}function vn(e){return null!=e&&Cn(e).some(e=>{return null==(e=yn(e))?void 0:e.size})}const wn={};function bn(e){var t;return vn(e)?(t=Cn(e).map(e=>{var t=yn(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),wn[e]=Promise.all(t.map(([e,t])=>{return n=e,Promise.all(t.map(e=>{return t=n,i=e,gn[t].delete(i),0===gn[t].size&&delete gn[t],e().then(e=>e.default||e);var t,i})).then(e=>fn(n,...e));var n})).then(()=>{if(vn(e))return bn(e);delete wn[e]}),wn[e]):e in wn?wn[e]:Promise.resolve()}const _n={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 Ln=Pt(!1);let xn;const Tn=Pt(null);function En(e){return e.split("-").map((e,t,i)=>i.slice(0,t+1).join("-")).reverse()}function Cn(e,t=_n.fallbackLocale){e=En(e);return t?[...new Set([...e,...En(t)])]:e}function Mn(){return null!=xn?xn:void 0}Tn.subscribe(e=>{xn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const W={...Tn,set:t=>{if(t&&function(e){if(null!=e){var t=Cn(e);for(let e=0;e<t.length;e++){var i=t[e];if(pn(i))return i}}}(t)&&vn(t)){var i=_n["loadingDelay"];let e;return"undefined"!=typeof window&&null!=Mn()&&i?e=window.setTimeout(()=>Ln.set(!0),i):Ln.set(!0),bn(t).then(()=>{Tn.set(t)}).finally(()=>{clearTimeout(e),Ln.set(!1)})}return Tn.set(t)}},An=i=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=i(e)}},Sn=(e,t)=>{var i=_n["formats"];if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},In=An(({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(i=Sn("number",t)),new Intl.NumberFormat(e,i)}),Dn=An(({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?i=Sn("date",t):0===Object.keys(i).length&&(i=Sn("date","short")),new Intl.DateTimeFormat(e,i)}),kn=An(({locale:e,format:t,...i})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?i=Sn("time",t):0===Object.keys(i).length&&(i=Sn("time","short")),new Intl.DateTimeFormat(e,i)}),Pn=An((e,t=Mn())=>new ln(e,t,_n.formats,{ignoreTag:_n.ignoreTag})),On=Ot([W,mn],()=>(e,t={})=>{var i,n;let r=t;"object"==typeof e&&(e=(r=e).id);var{values:o,locale:a=Mn(),default:s}=r;if(null==a)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=dn(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!=(n=null!=(i=null==(i=(n=_n).handleMissingMessage)?void 0:i.call(n,{locale:a,id:e,defaultValue:s}))?i:s)?n:e;if(!o)return l;let u=l;try{u=Pn(l,a).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),Nn=(Ot([W],()=>(e,t)=>{return[{locale:t=Mn(),...i}={}]=[t],kn({locale:t,...i}).format(e);var i}),Ot([W],()=>(e,t)=>{return[{locale:t=Mn(),...i}={}]=[t],Dn({locale:t,...i}).format(e);var i}),Ot([W],()=>(e,t)=>{return[{locale:t=Mn(),...i}={}]=[t],In({locale:t,...i}).format(e);var i}),Ot([W,mn],()=>(e,t=Mn())=>dn(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==It.indexOf(e)&&(t=new Mt(t),Dt[e]=t,It.push(e)),Dt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Hn(e,t){fn(e,t)}const Rn={en:{gamingLimits:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}},"zh-hk":{gamingLimits:{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"}},fr:{gamingLimits:{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:{gamingLimits:{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:{gamingLimits:{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:{gamingLimits:{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 Bn(e,t){fn(e,t)}const $n={en:{cardText:{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":{cardText:{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:{cardText:{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:{cardText:{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:{cardText:{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:{cardText:{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 Yn(e,t){fn(e,t)}const Fn={en:{popupText:{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:{popupText:{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":{popupText:{name:"信息",amountChanged:"您的限額已更改或增加:{amount} {currency}。 您必須等待到期日期才能使新限制生效:",defaultText:"當您設置遊戲限制時,它從您激活它的那一刻起生效,並持續到所選時間段結束。 因此,如果您將每日限制設置為 14.00,則計算的 24 小時周期是從其激活到格林威治標準時間 00:00。 然後限制每 24 小時有效。 您可以隨時降低限制並立即生效。 但是,提高或取消限制將僅在當前限製到期時適用。"}},fr:{popupText:{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:{popupText:{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:{popupText:{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:{popupText:{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 Gn(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v=i[4]("popupText.name")+"";function w(e){return e[0]?Wn:Un}let b=w(i),_=b(i);return{c(){n=J("section"),r=J("div"),o=J("div"),(a=J("div")).textContent="i",s=ee(),l=J("div"),u=Q(v),c=ee(),(d=J("div")).innerHTML='<svg class="w-6 h-6" part="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>',h=ee(),m=J("div"),_.c(),ie(a,"class","InfoCardPopupIcon"),ie(a,"part","InfoCardPopupIcon"),ie(l,"class","InfoCardPopupTitle"),ie(l,"part","InfoCardPopupTitle"),ie(d,"class","InfoCardPopupCloseButton"),ie(d,"part","InfoCardPopupCloseButton"),ie(o,"class","InfoCardPopupHeader"),ie(o,"part","InfoCardPopupHeader"),ie(m,"class","InfoCardPopupContentArea"),ie(m,"part","InfoCardPopupContentArea"),ie(r,"class",p="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ie(r,"part",f="InfoCardPopupWrapper "+(i[5]?"InfoCardPopupMobileWrapper":"")+" "+(i[0]?"InfoCardPopupLimitChanged":"")),ie(n,"class",i[5]?"InfoCardPopupMobileModal":""),ie(n,"part",i[5]?"InfoCardPopupMobileModal":"")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(o,s),Z(o,l),Z(l,u),Z(o,c),Z(o,d),Z(r,h),Z(r,m),_.m(m,null),i[12](n),g||(y=te(d,"click",oe(i[6])),g=!0)},p(e,t){16&t&&v!==(v=e[4]("popupText.name")+"")&&re(u,v),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(m,null))),1&t&&p!==(p="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ie(r,"class",p),1&t&&f!==(f="InfoCardPopupWrapper "+(e[5]?"InfoCardPopupMobileWrapper":"")+" "+(e[0]?"InfoCardPopupLimitChanged":""))&&ie(r,"part",f)},d(e){e&&K(n),_.d(),i[12](null),g=!1,y()}}}function Un(e){let i,n,r=e[4]("popupText.defaultText")+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InfoCardPopupContent"),ie(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){16&t&&r!==(r=e[4]("popupText.defaultText")+"")&&re(n,r)},d(e){e&&K(i)}}}function Wn(e){let i,n,r=e[4]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InfoCardPopupContent"),ie(i,"part","InfoCardPopupContent")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){19&t&&r!==(r=e[4]("popupText.amountChanged",{values:{amount:e[0],currency:e[1]}})+"")&&re(n,r)},d(e){e&&K(i)}}}function jn(e){let i,n=e[3]&&Gn(e);return{c(){n&&n.c(),i=b(),this.c=z},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,[t]){e[3]?n?n.p(e,t):((n=Gn(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:z,o:z,d(e){n&&n.d(e),e&&K(i)}}}function Vn(t,e,i){let n,{showpopup:r=""}=(j(t,On,e=>i(4,n=e)),e),{iteminfoamount:o=""}=e,{lang:a="en"}=e,{playercurrency:s="USD"}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,{translationurl:c=""}=e;Object.keys(Fn).forEach(e=>{Yn(e,Fn[e])});let d,h=!1,m=window.navigator.userAgent,p="PC"!==Nn(m);const f=e=>{e.data&&"ClosePlayerAccountGamingLimitsPopup"==e.data.type&&i(3,h=!1)};return ae(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"showpopup"in e&&i(7,r=e.showpopup),"iteminfoamount"in e&&i(0,o=e.iteminfoamount),"lang"in e&&i(8,a=e.lang),"playercurrency"in e&&i(1,s=e.playercurrency),"clientstyling"in e&&i(9,l=e.clientstyling),"clientstylingurl"in e&&i(10,u=e.clientstylingurl),"translationurl"in e&&i(11,c=e.translationurl)},t.$$.update=()=>{if(384&t.$$.dirty&&r&&a&&(e=a,W.set(e),o<0&&i(0,o="0"),i(3,h=r)),1028&t.$$.dirty&&u&&d){let e=new URL(u),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&&c&&fetch(c).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Yn(e,t[e])})}).catch(e=>{console.log(e)})},[o,s,d,h,n,p,()=>{i(3,h=!1),window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href)},r,a,l,u,c,function(e){U[e?"unshift":"push"](()=>{d=e,i(2,d)})}]}function zn(e,t){fn(e,t)}customElements.get("player-account-gaming-limits-popup")||customElements.define("player-account-gaming-limits-popup",class extends _e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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, #FD2839);fill:var(--emfe-w-color-secondary, #FD2839)}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Vn,jn,T,{showpopup:7,iteminfoamount:0,lang:8,playercurrency:1,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["showpopup","iteminfoamount","lang","playercurrency","clientstyling","clientstylingurl","translationurl"]}get showpopup(){return this.$$.ctx[7]}set showpopup(e){this.$$set({showpopup:e}),h()}get iteminfoamount(){return this.$$.ctx[0]}set iteminfoamount(e){this.$$set({iteminfoamount:e}),h()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),h()}get playercurrency(){return this.$$.ctx[1]}set playercurrency(e){this.$$set({playercurrency:e}),h()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),h()}});const qn={en:{editText:{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":{editText:{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:{editText:{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:{editText:{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:{editText:{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:{editText:{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"}}};Xn=Zn={path:void 0,exports:{},require:function(e,t){return Ii(null==t&&Zn.path)}},Zn.exports,Xn.exports=function(){var H;function p(){return H.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B(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 $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Y(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function F(e,t){for(var i=[],n=e.length,r=0;r<n;++r)i.push(t(e[r],r));return i}function G(e,t){for(var i in t)f(t,i)&&(e[i]=t[i]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,i,n){return Dt(e,t,i,n,!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 U(e){if(null==e._isValid){var t=g(e),i=j.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function W(e){var t=u(NaN);return null!=e?G(g(t),e):g(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},V=p.momentProperties=[],z=!1;function q(e,t){var i,n,r,o=V.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=g(t)),s(t._locale)||(e._locale=t._locale),0<o)for(i=0;i<o;i++)s(r=t[n=V[i]])||(e[n]=r);return e}function Z(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,a){var s=!0;return G(function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,o),s){for(var e,t,i=[],n=arguments.length,r=0;r<n;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];i.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var K={};function J(e,t){null!=p.deprecationHandler&&p.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var i,n=G({},e);for(i in t)f(t,i)&&(R(e[i])&&R(t[i])?(n[i]={},G(n[i],e[i]),G(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)f(e,i)&&!f(t,i)&&R(e[i])&&(n[i]=G({},n[i]));return n}function ee(e){null!=e&&this.set(e)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;var te=Object.keys||function(e){var t,i=[];for(t in e)f(e,t)&&i.push(t);return i};function o(e,t,i){var n=""+Math.abs(e);return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,re={},oe={};function n(e,t,i,n){var r="string"==typeof n?function(){return this[n]()}:n;e&&(oe[e]=r),t&&(oe[t[0]]=function(){return o(r.apply(this,arguments),t[1],t[2])}),i&&(oe[i]=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(n){for(var e,r=n.match(ie),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="",i=0;i<o;i++)t+=c(r[i])?r[i].call(e,n):r[i];return t}}(t),re[t](e)):e.localeData().invalidDate()}function se(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=i&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--i;return e}var le={};function t(e,t){var i=e.toLowerCase();le[i]=le[i+"s"]=le[t]=e}function d(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,i,n={};for(i in e)f(e,i)&&(t=d(i))&&(n[t]=e[i]);return n}var ce={};function i(e,t){ce[e]=t}function de(e){return e%4==0&&e%100!=0||e%400==0}function h(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?h(e):t}function he(t,i){return function(e){return null!=e?(pe(this,t,e),p.updateOffset(this,i),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&de(e.year())&&1===e.month()&&29===e.date()?(i=m(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),Oe(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var r=/\d/,y=/\d\d/,fe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,v=/\d\d?/,ve=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,be=/\d{1,3}/,_e=/\d{1,4}/,Le=/[+-]?\d{1,6}/,xe=/\d+/,Te=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,w=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function b(e,i,n){Ae[e]=c(i)?i:function(e,t){return e&&n?n:i}}function Me(e,t){return f(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,r){return t||i||n||r})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ae={},Se={};function L(e,i){var t,n,r=i;for("string"==typeof e&&(e=[e]),$(i)&&(r=function(e,t){t[i]=m(e)}),n=e.length,t=0;t<n;t++)Se[e[t]]=r}function Ie(e,r){L(e,function(e,t,i,n){i._w=i._w||{},r(e,i._w,i,n)})}var x,T=0,E=1,C=2,M=3,A=4,S=5,De=6,ke=7,Pe=8;function Oe(e,t){var i;return isNaN(e)||isNaN(t)?NaN:(i=(t%(i=12)+i)%i,e+=(t-i)/12,1==i?de(e)?29:28:31-i%7%2)}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),i("month",8),b("M",v),b("MM",v,y),b("MMM",function(e,t){return t.monthsShortRegex(e)}),b("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[E]=m(e)-1}),L(["MMM","MMMM"],function(e,t,i,n){n=i._locale.monthsParse(e,n,i._strict);null!=n?t[E]=n:g(i).invalidMonth=e});var Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),He="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=w,$e=w;function Ye(e,t){var i;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!$(t=e.localeData().monthsParse(t)))return;i=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i)}}function Fe(e){return null!=e?(Ye(this,e),p.updateOffset(this,!0),this):me(this,"Month")}function Ge(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],r=[],o=0;o<12;o++)t=u([2e3,o]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),r.push(this.months(t,"")),r.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),r.sort(e),o=0;o<12;o++)i[o]=_(i[o]),n[o]=_(n[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("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ue(e){return de(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),i("year",1),b("Y",Te),b("YY",v,y),b("YYYY",_e,ge),b("YYYYY",Le,ye),b("YYYYYY",Le,ye),L(["YYYYY","YYYYYY"],T),L("YYYY",function(e,t){t[T]=2===e.length?p.parseTwoDigitYear(e):m(e)}),L("YY",function(e,t){t[T]=p.parseTwoDigitYear(e)}),L("Y",function(e,t){t[T]=parseInt(e,10)}),p.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var We=he("FullYear",!0);function je(e,t,i,n,r,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,i,n,r,o,a),s}function Ve(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ze(e,t,i){i=7+t-i;return-(7+Ve(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,i,n,r){var o,t=1+7*(t-1)+(7+i-n)%7+ze(e,n,r),i=t<=0?Ue(o=e-1)+t:t>Ue(e)?(o=e+1,t-Ue(e)):(o=e,t);return{year:o,dayOfYear:i}}function Ze(e,t,i){var n,r,o=ze(e.year(),t,i),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?n=o+I(r=e.year()-1,t,i):o>I(e.year(),t,i)?(n=o-I(e.year(),t,i),r=e.year()+1):(r=e.year(),n=o),{week:n,year:r}}function I(e,t,i){var n=ze(e,t,i),t=ze(e+1,t,i);return(Ue(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),i("week",5),i("isoWeek",5),b("w",v),b("ww",v,y),b("W",v),b("WW",v,y),Ie(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=m(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),i("day",11),i("weekday",11),i("isoWeekday",11),b("d",v),b("e",v),b("E",v),b("dd",function(e,t){return t.weekdaysMinRegex(e)}),b("ddd",function(e,t){return t.weekdaysShortRegex(e)}),b("dddd",function(e,t){return t.weekdaysRegex(e)}),Ie(["dd","ddd","dddd"],function(e,t,i,n){n=i._locale.weekdaysParse(e,n,i._strict);null!=n?t.d=n:g(i).invalidWeekday=e}),Ie(["d","e","E"],function(e,t,i,n){t[n]=m(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=w,tt=w,it=w;function nt(){function e(e,t){return t.length-e.length}for(var t,i,n,r=[],o=[],a=[],s=[],l=0;l<7;l++)n=u([2e3,1]).day(l),t=_(this.weekdaysMin(n,"")),i=_(this.weekdaysShort(n,"")),n=_(this.weekdays(n,"")),r.push(t),o.push(i),a.push(n),s.push(t),s.push(i),s.push(n);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){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,rt),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)}),n("hmmss",0,0,function(){return""+rt.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),i("hour",13),b("a",at),b("A",at),b("H",v),b("h",v),b("k",v),b("HH",v,y),b("hh",v,y),b("kk",v,y),b("hmm",ve),b("hmmss",we),b("Hmm",ve),b("Hmmss",we),L(["H","HH"],M),L(["k","kk"],function(e,t,i){e=m(e);t[M]=24===e?0:e}),L(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),L(["h","hh"],function(e,t,i){t[M]=m(e),g(i).bigHour=!0}),L("hmm",function(e,t,i){var n=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n)),g(i).bigHour=!0}),L("hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n,2)),t[S]=m(e.substr(r)),g(i).bigHour=!0}),L("Hmm",function(e,t,i){var n=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n))}),L("Hmmss",function(e,t,i){var n=e.length-4,r=e.length-2;t[M]=m(e.substr(0,n)),t[A]=m(e.substr(n,2)),t[S]=m(e.substr(r))});w=he("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:Ne,monthsShort:He,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},D={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function dt(e){for(var t,i,n,r,o=0;o<e.length;){for(t=(r=ct(e[o]).split("-")).length,i=(i=ct(e[o+1]))?i.split("-"):null;0<t;){if(n=ht(r.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(r,i)>=t-1)break;t--}o++}return st}function ht(t){var e;if(void 0===D[t]&&Xn&&Xn.exports&&null!=t.match("^[^/\\\\]*$"))try{e=st._abbr,Ii(),mt(e)}catch(e){D[t]=null}return D[t]}function mt(e,t){return e&&((t=s(t)?k(e):pt(e,t))?st=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),st._abbr}function pt(e,t){if(null===t)return delete D[e],null;var i,n=lt;if(t.abbr=e,null!=D[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=D[e]._config;else if(null!=t.parentLocale)if(null!=D[t.parentLocale])n=D[t.parentLocale]._config;else{if(null==(i=ht(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=i._config}return D[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){pt(e.name,e.config)}),mt(e),D[e]}function k(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return st;if(!a(e)){if(t=ht(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[C]<1||t[C]>Oe(t[T],t[E])?C:t[M]<0||24<t[M]||24===t[M]&&(0!==t[A]||0!==t[S]||0!==t[De])?M:t[A]<0||59<t[A]?A:t[S]<0||59<t[S]?S:t[De]<0||999<t[De]?De:-1,g(e)._overflowDayOfYear&&(t<T||C<t)&&(t=C),g(e)._overflowWeeks&&-1===t&&(t=ke),g(e)._overflowWeekday&&-1===t&&(t=Pe),g(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Lt=/^(?:(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}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,i,n,r,o,a,s=e._i,l=gt.exec(s)||yt.exec(s),s=wt.length,u=bt.length;if(l){for(g(e).iso=!0,t=0,i=s;t<i;t++)if(wt[t][1].exec(l[1])){r=wt[t][0],n=!1!==wt[t][2];break}if(null==r)return e._isValid=!1;if(l[3]){for(t=0,i=u;t<i;t++)if(bt[t][1].exec(l[3])){o=(l[2]||" ")+bt[t][0];break}if(null==o)return e._isValid=!1}if(!n&&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||""),St(e)}else e._isValid=!1}function Et(e,t,i,n,r,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),He.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&e.push(parseInt(o,10)),e}function Ct(e){var t,i,n,r,o=Lt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),i=o[1],n=t,r=e,i&&Je.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()?(g(r).weekdayMismatch=!0,r._isValid=!1):(e._a=t,e._tzm=(i=o[8],n=o[9],r=o[10],i?xt[i]:n?0:((i=parseInt(r,10))-(n=i%100))/100*60+n),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,i){return null!=e?e:null!=t?t:i}function At(e){var t,i,n,r,o,a,s,l,u,c,d,h=[];if(!e._d){for(c=e,d=new Date(p.now()),i=c._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],e._w&&null==e._a[C]&&null==e._a[E]&&(null!=(d=(c=e)._w).GG||null!=d.W||null!=d.E?(a=1,s=4,n=Mt(d.GG,c._a[T],Ze(P(),1,4).year),r=Mt(d.W,1),((o=Mt(d.E,1))<1||7<o)&&(l=!0)):(a=c._locale._week.dow,s=c._locale._week.doy,u=Ze(P(),a,s),n=Mt(d.gg,c._a[T],u.year),r=Mt(d.w,u.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>I(n,a,s)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=qe(n,r,o,a,s),c._a[T]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(d=Mt(e._a[T],i[T]),(e._dayOfYear>Ue(d)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=Ve(d,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[C]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=h[t]=i[t];for(;t<7;t++)e._a[t]=h[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[A]&&0===e._a[S]&&0===e._a[De]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?Ve:je).apply(null,h),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function St(e){if(e._f!==p.ISO_8601)if(e._f!==p.RFC_2822){e._a=[],g(e).empty=!0;for(var t,i,n,r=""+e._i,o=r.length,a=0,s=(i=se(e._f,e._locale).match(ie)||[]).length,l=0;l<s;l++)n=i[l],(t=(r.match(Me(n,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[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),d=n,m=e,null!=(h=t)&&f(Se,d)&&Se[d](h,m._a,m,d)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=o-a,0<r.length&&g(e).unusedInput.push(r),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(o=e._locale,u=e._a[M],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[T]=e._locale.erasConvertYear(c,e._a[T])),At(e),ft(e)}else Ct(e);else Tt(e);var u,c,d,h,m}function It(e){var t,i=e._i,n=e._f;{var r,o;return(e._locale=e._locale||k(e._l),null===i||void 0===n&&""===i)?W({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),l(i)?new Z(ft(i)):(Y(i)?e._d=i:a(n)?function(e){var t,i,n,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],St(t),U(t)&&(a=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,i=t):(null==n||o<n||a)&&(n=o,i=t,a)&&(s=!0);G(e,i||t)}(e):n?St(e):s(n=(i=e)._i)?i._d=new Date(p.now()):Y(n)?i._d=new Date(n.valueOf()):"string"==typeof n?(r=i,null===(o=_t.exec(r._i))?(Tt(r),!1===r._isValid&&(delete r._isValid,Ct(r),!1===r._isValid)&&(delete r._isValid,r._strict?r._isValid=!1:p.createFromInputFallback(r))):r._d=new Date(+o[1])):a(n)?(i._a=F(n.slice(0),function(e){return parseInt(e,10)}),At(i)):R(n)?(r=i)._d||(t=void 0===(o=ue(r._i)).day?o.date:o.day,r._a=F([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),At(r)):$(n)?i._d=new Date(n):p.createFromInputFallback(i),U(e)||(e._d=null),e))}}function Dt(e,t,i,n,r){var o={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(R(e)&&B(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=e,o._f=t,o._strict=n,(r=new Z(ft(It(r=o))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function P(e,t,i,n){return Dt(e,t,i,n,!1)}p.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":""))}),p.ISO_8601=function(){},p.RFC_2822=function(){};ve=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:W()}),we=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:W()});function kt(e,t){var i,n;if(!(t=1===t.length&&a(t[0])?t[0]:t).length)return P();for(i=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](i)||(i=t[n]);return i}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var e=ue(e),t=e.year||0,i=e.quarter||0,n=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,u=e.millisecond||0;this._isValid=function(e){var t,i,n=!1,r=Pt.length;for(t in e)if(f(e,t)&&(-1===x.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[Pt[i]]){if(n)return!1;parseFloat(e[Pt[i]])!==m(e[Pt[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*s+1e3*a*60*60,this._days=+o+7*r,this._months=+n+3*i+12*t,this._data={},this._locale=k(),this._bubble()}function Nt(e){return e instanceof Ot}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,i){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+i+o(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),b("Z",Ce),b("ZZ",Ce),L(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=$t(Ce,e)});var Bt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Bt)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function Yt(e,t){var i;return t._isUTC?(t=t.clone(),i=(l(e)||Y(e)?e:P(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+i),p.updateOffset(t,!1),t):P(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var Ut=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function O(e,t){var i,n,r=e;return Nt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(t=Ut.exec(e))?(i="-"===t[1]?-1:1,r={y:0,d:m(t[C])*i,h:m(t[M])*i,m:m(t[A])*i,s:m(t[S])*i,ms:m(Ht(1e3*t[De]))*i}):(t=Wt.exec(e))?(i="-"===t[1]?-1:1,r={y:jt(t[2],i),M:jt(t[3],i),w:jt(t[4],i),d:jt(t[5],i),h:jt(t[6],i),m:jt(t[7],i),s:jt(t[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(t=P(r.from),i=P(r.to),t=t.isValid()&&i.isValid()?(i=Yt(i,t),t.isBefore(i)?n=Vt(t,i):((n=Vt(i,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(r={}).ms=t.milliseconds,r.M=t.months),n=new Ot(r),Nt(e)&&f(e,"_locale")&&(n._locale=e._locale),Nt(e)&&f(e,"_isValid")&&(n._isValid=e._isValid),n}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Vt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function zt(n,r){return function(e,t){var i;return null===t||isNaN(+t)||(J(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."),i=e,e=t,t=i),qt(this,O(e,t),n),this}}function qt(e,t,i,n){var r=t._milliseconds,o=Ht(t._days),t=Ht(t._months);e.isValid()&&(n=null==n||n,t&&Ye(e,me(e,"Month")+t*i),o&&pe(e,"Date",me(e,"Date")+o*i),r&&e._d.setTime(e._d.valueOf()+r*i),n)&&p.updateOffset(e,o||t)}O.fn=Ot.prototype,O.invalid=function(){return O(NaN)};Ne=zt(1,"add"),Ke=zt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||Y(e)||Zt(e)||$(e)||(i=a(t=e),n=!1,i&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),i&&n)||function(e){var t,i,n=R(e)&&!B(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)i=o[t],r=r||f(e,i);return n&&r}(e)||null==e;var t,i,n}function Kt(e,t){var i,n;return e.date()<t.date()?-Kt(t,e):-((i=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(n=e.clone().add(i,"months"))<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Jt(e){return void 0===e?this._locale._abbr:(null!=(e=k(e))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var ei=126227808e5;function ti(e,t){return(e%t+t)%t}function ii(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-ei:new Date(e,t,i).valueOf()}function ni(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-ei:Date.UTC(e,t,i)}function ri(e,t){return t.erasAbbrRegex(e)}function oi(){for(var e=[],t=[],i=[],n=[],r=this.eras(),o=0,a=r.length;o<a;++o)t.push(_(r[o].name)),e.push(_(r[o].abbr)),i.push(_(r[o].narrow)),n.push(_(r[o].name)),n.push(_(r[o].abbr)),n.push(_(r[o].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function ai(e,t){n(0,[e,e.length],0,t)}function si(e,t,i,n,r){var o;return null==e?Ze(this,n,r).year:(t>(o=I(e,n,r))&&(t=o),function(e,t,i,n,r){e=qe(e,t,i,n,r),t=Ve(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,i,n,r))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),b("N",ri),b("NN",ri),b("NNN",ri),b("NNNN",function(e,t){return t.erasNameRegex(e)}),b("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,n){n=i._locale.erasParse(e,n,i._strict);n?g(i).era=n:g(i).invalidEra=e}),b("y",xe),b("yy",xe),b("yyy",xe),b("yyyy",xe),b("yo",function(e,t){return t._eraYearOrdinalRegex||xe}),L(["y","yy","yyy","yyyy"],T),L(["yo"],function(e,t,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[T]=i._locale.eraYearOrdinalParse(e,r):t[T]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ai("gggg","weekYear"),ai("ggggg","weekYear"),ai("GGGG","isoWeekYear"),ai("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),i("weekYear",1),i("isoWeekYear",1),b("G",Te),b("g",Te),b("GG",v,y),b("gg",v,y),b("GGGG",_e,ge),b("gggg",_e,ge),b("GGGGG",Le,ye),b("ggggg",Le,ye),Ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=m(e)}),Ie(["gg","GG"],function(e,t,i,n){t[n]=p.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),i("quarter",7),b("Q",r),L("Q",function(e,t){t[E]=3*(m(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),i("date",9),b("D",v),b("DD",v,y),b("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],C),L("Do",function(e,t){t[C]=m(e.match(v)[0])});_e=he("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),i("dayOfYear",4),b("DDD",be),b("DDDD",fe),L(["DDD","DDDD"],function(e,t,i){i._dayOfYear=m(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),i("minute",14),b("m",v),b("mm",v,y),L(["m","mm"],A);ge=he("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),i("second",15),b("s",v),b("ss",v,y),L(["s","ss"],S);var li,Le=he("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),i("millisecond",16),b("S",be,r),b("SS",be,y),b("SSS",be,fe),li="SSSS";li.length<=9;li+="S")b(li,xe);function ui(e,t){t[De]=m(1e3*("0."+e))}for(li="S";li.length<=9;li+="S")L(li,ui);ye=he("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");r=Z.prototype;function ci(e){return e}r.add=Ne,r.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!B(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r=0;r<n.length;r+=1)i=i||f(e,n[r]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||P(),i=Yt(e,this).startOf("day"),i=p.calendarFormat(this,i)||"sameElse",t=t&&(c(t[i])?t[i].call(this,e):t[i]);return this.format(t||this.localeData().calendar(i,this,P(e)))},r.clone=function(){return new Z(this)},r.diff=function(e,t,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Yt(e,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),t=d(t)){case"year":o=Kt(this,n)/12;break;case"month":o=Kt(this,n);break;case"quarter":o=Kt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:h(o)},r.endOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni:ii,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-ti(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-ti(t,1e3)-1}this._d.setTime(t),p.updateOffset(this,!0)}return this},r.format=function(e){return e=e||(this.isUtc()?p.defaultFormatUtc:p.defaultFormat),e=ae(this,e),this.localeData().postformat(e)},r.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.fromNow=function(e){return this.from(P(),e)},r.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||P(e).isValid())?O({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},r.toNow=function(e){return this.to(P(),e)},r.get=function(e){return c(this[e=d(e)])?this[e]():this},r.invalidAt=function(){return g(this).overflow},r.isAfter=function(e,t){return e=l(e)?e:P(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:P(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,i,n){return e=l(e)?e:P(e),t=l(t)?t:P(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},r.isSame=function(e,t){var e=l(e)?e:P(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 U(this)},r.lang=Qe,r.locale=Jt,r.localeData=Qt,r.max=we,r.min=ve,r.parsingFlags=function(){return G({},g(this))},r.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)f(e,t)&&i.push({unit:t,priority:ce[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=ue(e)),n=i.length,r=0;r<n;r++)this[i[r].unit](e[i[r].unit]);else if(c(this[e=d(e)]))return this[e](t);return this},r.startOf=function(e){var t,i;if(void 0!==(e=d(e))&&"millisecond"!==e&&this.isValid()){switch(i=this._isUTC?ni:ii,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ti(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=ti(t,6e4);break;case"second":t=this._d.valueOf(),t-=ti(t,1e3)}this._d.setTime(t),p.updateOffset(this,!0)}return this},r.subtract=Ke,r.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},r.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.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"):c(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,i;return this.isValid()?(t="moment",i="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(i+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"undefined"!=typeof Symbol&&null!=Symbol.for&&(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(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},r.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},r.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},r.eraYear=function(){for(var e,t,i=this.localeData().eras(),n=0,r=i.length;n<r;++n)if(e=i[n].since<=i[n].until?1:-1,t=this.clone().startOf("day").valueOf(),i[n].since<=t&&t<=i[n].until||i[n].until<=t&&t<=i[n].since)return(this.year()-p(i[n].since).year())*e+i[n].offset;return this.year()},r.year=We,r.isLeapYear=function(){return de(this.year())},r.weekYear=function(e){return si.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},r.isoWeekYear=function(e){return si.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=Fe,r.daysInMonth=function(){return Oe(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=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},r.weeksInYear=function(){var e=this.localeData()._week;return I(this.year(),e.dow,e.doy)},r.weeksInWeekYear=function(){var e=this.localeData()._week;return I(this.weekYear(),e.dow,e.doy)},r.isoWeeksInYear=function(){return I(this.year(),1,4)},r.isoWeeksInISOWeekYear=function(){return I(this.isoWeekYear(),1,4)},r.date=_e,r.day=r.days=function(e){var t,i,n;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(i=e,n=this.localeData(),e="string"!=typeof i?i:isNaN(i)?"number"==typeof(i=n.weekdaysParse(i))?i:null:parseInt(i,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,i;return this.isValid()?null!=e?(t=e,i=this.localeData(),i="string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?i:i-7)):this.day()||7:null!=e?this:NaN},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=w,r.minute=r.minutes=ge,r.second=r.seconds=Le,r.millisecond=r.milliseconds=ye,r.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Ft(this);if("string"==typeof e){if(null===(e=$t(Ce,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Ft(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?qt(this,O(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.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(Ft(this),"m"),this},r.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},r.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?P(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=Gt,r.isUTC=Gt,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",Fe),r.years=e("years accessor is deprecated. Use year instead",We),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=It(t))._a?(e=(t._isUTC?u:P)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0,a=0;a<n;a++)(i&&e[a]!==t[a]||!i&&m(e[a])!==m(t[a]))&&o++;return o+r}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function di(e,t,i,n){var r=k(),n=u().set(n,t);return r[i](n,e)}function hi(e,t,i){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,i,"month");for(var n=[],r=0;r<12;r++)n[r]=di(e,r,i,"month");return n}function mi(e,t,i,n){t=("boolean"==typeof e||(i=t=e,e=!1),$(t)&&(i=t,t=void 0),t||"");var r,o=k(),a=e?o._week.dow:0,s=[];if(null!=i)return di(t,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=di(t,(r+a)%7,n,"day");return s}y.calendar=function(e,t,i){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,i):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(ie).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=ci,y.postformat=ci,y.relativeTime=function(e,t,i,n){var r=this._relativeTime[i];return c(r)?r(e,t,i,n):r.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,i;for(i in e)f(e,i)&&(c(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var i,n=this._eras||k("en")._eras,r=0,o=n.length;r<o;++r)switch("string"==typeof n[r].since&&(i=p(n[r].since).startOf("day"),n[r].since=i.valueOf()),typeof n[r].until){case"undefined":n[r].until=1/0;break;case"string":i=p(n[r].until).startOf("day").valueOf(),n[r].until=i.valueOf()}return n},y.erasParse=function(e,t,i){var n,r,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if(0<=[o,a,s].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var i=e.since<=e.until?1:-1;return void 0===t?p(e.since).year():p(e.since).year()+(t-e.offset)*i},y.erasAbbrRegex=function(e){return f(this,"_erasAbbrRegex")||oi.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return f(this,"_erasNameRegex")||oi.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return f(this,"_erasNarrowRegex")||oi.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(a(this._months)?this._months:this._months[(this._months.isFormat||Re).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[Re.test(t)?"format":"standalone"])[e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,i){var n,r;if(this._monthsParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))?r:null:"MMM"===t?-1!==(r=x.call(this._shortMonthsParse,e))||-1!==(r=x.call(this._longMonthsParse,e))?r:null:-1!==(r=x.call(this._longMonthsParse,e))||-1!==(r=x.call(this._shortMonthsParse,e))?r:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ge.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Ge.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,i){var n,r;if(this._weekdaysParseExact)return function(e,t,i){var n,r,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"dddd"===t?-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:"ddd"===t?-1!==(r=x.call(this._shortWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._minWeekdaysParse,e))?r:null:-1!==(r=x.call(this._minWeekdaysParse,e))||-1!==(r=x.call(this._weekdaysParse,e))||-1!==(r=x.call(this._shortWeekdaysParse,e))?r:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||nt.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")||nt.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")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=it),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},mt("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===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),p.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),p.langData=e("moment.langData is deprecated. Use moment.localeData instead.",k);var pi=Math.abs;function fi(e,t,i,n){t=O(t,i);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function gi(e){return e<0?Math.floor(e):Math.ceil(e)}function yi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function wi(e){return function(){return this.as(e)}}be=wi("ms"),fe=wi("s"),Ne=wi("m"),we=wi("h"),ve=wi("d"),Ke=wi("w"),w=wi("M"),ge=wi("Q"),Le=wi("y");function bi(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=bi("milliseconds"),_e=bi("seconds"),We=bi("minutes"),y=bi("hours"),_i=bi("days"),Li=bi("months"),xi=bi("years");var Ti=Math.round,Ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ci(e,t,i,n){var r=O(e).abs(),o=Ti(r.as("s")),a=Ti(r.as("m")),s=Ti(r.as("h")),l=Ti(r.as("d")),u=Ti(r.as("M")),c=Ti(r.as("w")),r=Ti(r.as("y")),o=(o<=i.ss?["s",o]:o<i.s&&["ss",o])||(a<=1?["m"]:a<i.m&&["mm",a])||(s<=1?["h"]:s<i.h&&["hh",s])||(l<=1?["d"]:l<i.d&&["dd",l]);return(o=(o=null!=i.w?o||(c<=1?["w"]:c<i.w&&["ww",c]):o)||(u<=1?["M"]:u<i.M&&["MM",u])||(r<=1?["y"]:["yy",r]))[2]=t,o[3]=0<+e,o[4]=n,function(e,t,i,n,r){return r.relativeTime(t||1,!!i,e,n)}.apply(null,o)}var Mi=Math.abs;function Ai(e){return(0<e)-(e<0)||+e}function Si(){var e,t,i,n,r,o,a,s,l,u,c;return this.isValid()?(s=Mi(this._milliseconds)/1e3,l=Mi(this._days),u=Mi(this._months),(c=this.asSeconds())?(e=h(s/60),t=h(e/60),s%=60,e%=60,i=h(u/12),u%=12,n=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=Ai(this._months)!==Ai(c)?"-":"",o=Ai(this._days)!==Ai(c)?"-":"",a=Ai(this._milliseconds)!==Ai(c)?"-":"",(c<0?"-":"")+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(s?a+n+"S":"")):"P0D"):this.localeData().invalidDate()}var N=Ot.prototype;return N.isValid=function(){return this._isValid},N.abs=function(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this},N.add=function(e,t){return fi(this,e,t,1)},N.subtract=function(e,t){return fi(this,e,t,-1)},N.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=d(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+yi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},N.asMilliseconds=be,N.asSeconds=fe,N.asMinutes=Ne,N.asHours=we,N.asDays=ve,N.asWeeks=Ke,N.asMonths=w,N.asQuarters=ge,N.asYears=Le,N.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},N._bubble=function(){var e=this._milliseconds,t=this._days,i=this._months,n=this._data;return 0<=e&&0<=t&&0<=i||e<=0&&t<=0&&i<=0||(e+=864e5*gi(vi(i)+t),i=t=0),n.milliseconds=e%1e3,e=h(e/1e3),n.seconds=e%60,e=h(e/60),n.minutes=e%60,e=h(e/60),n.hours=e%24,t+=h(e/24),i+=e=h(yi(t)),t-=gi(vi(e)),e=h(i/12),i%=12,n.days=t,n.months=i,n.years=e,this},N.clone=function(){return O(this)},N.get=function(e){return e=d(e),this.isValid()?this[e+"s"]():NaN},N.milliseconds=ye,N.seconds=_e,N.minutes=We,N.hours=y,N.days=_i,N.weeks=function(){return h(this.days()/7)},N.months=Li,N.years=xi,N.humanize=function(e,t){var i,n;return this.isValid()?(i=!1,n=Ei,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(n=Object.assign({},Ei,t),null!=t.s)&&null==t.ss&&(n.ss=t.s-1),t=Ci(this,!i,n,e=this.localeData()),i&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},N.toISOString=Si,N.toString=Si,N.toJSON=Si,N.locale=Jt,N.localeData=Qt,N.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Si),N.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),b("x",Te),b("X",/[+-]?\d+(\.\d{1,3})?/),L("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),L("x",function(e,t,i){i._d=new Date(m(e))}),p.version="2.29.4",H=P,p.fn=r,p.min=function(){return kt("isBefore",[].slice.call(arguments,0))},p.max=function(){return kt("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=u,p.unix=function(e){return P(1e3*e)},p.months=function(e,t){return hi(e,t,"months")},p.isDate=Y,p.locale=mt,p.invalid=W,p.duration=O,p.isMoment=l,p.weekdays=function(e,t,i){return mi(e,t,i,"weekdays")},p.parseZone=function(){return P.apply(null,arguments).parseZone()},p.localeData=k,p.isDuration=Nt,p.monthsShort=function(e,t){return hi(e,t,"monthsShort")},p.weekdaysMin=function(e,t,i){return mi(e,t,i,"weekdaysMin")},p.defineLocale=pt,p.updateLocale=function(e,t){var i,n;return null!=t?(n=lt,null!=D[e]&&null!=D[e].parentLocale?D[e].set(Q(D[e]._config,t)):(t=Q(n=null!=(i=ht(e))?i._config:n,t),null==i&&(t.abbr=e),(n=new ee(t)).parentLocale=D[e],D[e]=n),mt(e)):null!=D[e]&&(null!=D[e].parentLocale?(D[e]=D[e].parentLocale,e===mt()&&mt(e)):null!=D[e]&&delete D[e]),D[e]},p.locales=function(){return te(D)},p.weekdaysShort=function(e,t,i){return mi(e,t,i,"weekdaysShort")},p.normalizeUnits=d,p.relativeTimeRounding=function(e){return void 0===e?Ti:"function"==typeof e&&(Ti=e,!0)},p.relativeTimeThreshold=function(e,t){return void 0!==Ei[e]&&(void 0===t?Ei[e]:(Ei[e]=t,"s"===e&&(Ei.ss=t-1),!0))},p.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"},p.prototype=r,p.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"},p}();var Zn,Xn,I=Zn.exports;function Kn(e,{delay:t=0,duration:i=400,easing:n=x}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:e=>"opacity: "+e*r}}function Jn(i){let n,r,t,o;return{c(){n=J("div"),(r=J("div")).innerHTML='<div class="ModalContainer" part="ModalContainer"><slot></slot></div>',ie(r,"class","ModalWindow"),ie(r,"part","ModalWindow"),ie(r,"id","Modal")},m(e,t){X(e,n,t),Z(n,r),i[6](r),i[7](n),o=!0},p(e,t){i=e},i(e){o||(ce(()=>{o&&(t=t||we(r,Kn,{transitionDuration:i[1]},!0)).run(1)}),o=!0)},o(e){(t=t||we(r,Kn,{transitionDuration:i[1]},!1)).run(0),o=!1},d(e){e&&K(n),i[6](null),e&&t&&t.end(),i[7](null)}}}function Qn(e){let i,n,r=e[0]&&Jn(e);return{c(){r&&r.c(),i=b(),this.c=z},m(e,t){r&&r.m(e,t),X(e,i,t),n=!0},p(e,[t]){e[0]?r?(r.p(e,t),1&t&&ge(r,1)):((r=Jn(e)).c(),ge(r,1),r.m(i.parentNode,i)):r&&(g={r:0,c:[],p:g},ye(r,1,1,()=>{r=null}),g.r||q(g.c),g=g.p)},i(e){n||(ge(r),n=!0)},o(e){ye(r),n=!1},d(e){r&&r.d(e),e&&K(i)}}}function er(t,e,i){let n,r,{show:o=!1}=e,{duration:a=350}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e;const u=e=>{"ModalClosed"==e.data.type&&i(0,o=!1),"ShowLimitsConfirmationModal"===e.data.type&&(i(0,o=!0),window.postMessage({type:"DisableScroll"},window.location.href))};return ae(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),t.$$set=e=>{"show"in e&&i(0,o=e.show),"duration"in e&&i(1,a=e.duration),"clientstyling"in e&&i(4,s=e.clientstyling),"clientstylingurl"in e&&i(5,l=e.clientstylingurl)},t.$$.update=()=>{if(36&t.$$.dirty&&l&&n){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;20&t.$$.dirty&&s&&n&&((e=document.createElement("style")).innerHTML=s,n.appendChild(e))},[o,a,n,void 0,s,l,function(e){U[e?"unshift":"push"](()=>{r=e,i(3,r)})},function(e){U[e?"unshift":"push"](()=>{n=e,i(2,n)})}]}function tr(e,t){fn(e,t)}customElements.get("player-account-modal")||customElements.define("player-account-modal",class extends _e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;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;background-color:rgba(0, 0, 0, 0.9)}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},er,Qn,T,{show:0,duration:1,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["show","duration","clientstyling","clientstylingurl"]}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),h()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),h()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}});const ir={en:{modalText:{cancel:"取消",confirm:"確認"}},fr:{modalText:{cancel:"Annuler",confirm:"Confirmer"}},ro:{modalText:{cancel:"Anulează",confirm:"Confirmă"}},es:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}},pt:{modalText:{cancel:"Cancelar",confirm:"Confirmar"}}};function nr(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g,y=i[2]("modalText.cancel")+"",v=i[2]("modalText.confirm")+"",w=!i[3]&&function(i){let n,r,o;return{c(){(n=J("span")).innerHTML='<slot name="close"><svg class="w-6 h-6" part="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>',ie(n,"class","ModalCloseBtn"),ie(n,"part","ModalCloseBtn"),ie(n,"role","button")},m(e,t){X(e,n,t),r||(o=te(n,"click",i[4]),r=!0)},p:z,d(e){e&&K(n),r=!1,o()}}}(i);return{c(){n=J("div"),w&&w.c(),r=ee(),o=J("div"),a=J("div"),s=Q(i[0]),l=ee(),u=J("div"),c=J("button"),d=Q(y),h=ee(),m=J("button"),p=Q(v),this.c=z,ie(a,"class","GamingLimitsConfirmationContent"),ie(a,"part","GamingLimitsConfirmationContent"),ie(c,"class","GamingLimitsCancelButton"),ie(c,"part","GamingLimitsCancelButton"),ie(m,"class","GamingLimitsConfirmButton"),ie(m,"part","GamingLimitsConfirmButton"),ie(u,"class","GamingLimitsConfirmationControlArea"),ie(u,"part","GamingLimitsConfirmationControlArea"),ie(o,"class","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),ie(o,"part","GamingLimitsConfirmationContainer "+(i[3]?"GamingLimitsConfirmationContainerMobile":"")),ie(n,"class","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":"")),ie(n,"part","GamingLimitsConfirmationWrapper "+(i[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(e,t){X(e,n,t),w&&w.m(n,null),Z(n,r),Z(n,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(c,d),Z(u,h),Z(u,m),Z(m,p),i[12](n),f||(g=[te(c,"click",i[6]),te(m,"click",i[5])],f=!0)},p(e,[t]){e[3]||w.p(e,t),1&t&&re(s,e[0]),4&t&&y!==(y=e[2]("modalText.cancel")+"")&&re(d,y),4&t&&v!==(v=e[2]("modalText.confirm")+"")&&re(p,v)},i:z,o:z,d(e){e&&K(n),w&&w.d(),i[12](null),f=!1,q(g)}}}function rr(t,e,i){let n,{modaltext:r="Are you sure that you want to perform this action?"}=(j(t,On,e=>i(2,n=e)),e),{modalsource:o=""}=e,{lang:a="en"}=e,{clientstyling:s=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e,c,d=(Object.keys(ir).forEach(e=>{tr(e,ir[e])}),window.navigator.userAgent),h="PC"!==Nn(d),m={},p="";const f=e=>{e.data&&"DeleteLimitsItem"===e.data.type&&(m=e.data.removeData,e=e.data.removeName,p="Time Limit"===e?"cumulativeSessionLimits":"Deposit Limit"===e?"depositLimits":"Wagering Limit"===e?"wageringLimit":"lossLimit")};return ae(()=>(window.addEventListener("message",f,!1),()=>{window.removeEventListener("message",f)})),t.$$set=e=>{"modaltext"in e&&i(0,r=e.modaltext),"modalsource"in e&&i(7,o=e.modalsource),"lang"in e&&i(8,a=e.lang),"clientstyling"in e&&i(9,s=e.clientstyling),"clientstylingurl"in e&&i(10,l=e.clientstylingurl),"translationurl"in e&&i(11,u=e.translationurl)},t.$$.update=()=>{if(385&t.$$.dirty&&r&&o&&a&&(e=a,W.set(e)),514&t.$$.dirty&&s&&c&&((e=document.createElement("style")).innerHTML=s,c.appendChild(e)),1026&t.$$.dirty&&l&&c){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{c.appendChild(t)},1)})}var e;2048&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{tr(e,t[e])})}).catch(e=>{console.log(e)})},[r,c,n,h,()=>{window.postMessage({type:"ModalClosed"},window.location.href)},()=>{"groupEdit"===o?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):"infoCard"===o&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:m,name:p},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,u,function(e){U[e?"unshift":"push"](()=>{c=e,i(1,c)})}]}function or(e,t,i){e=e.slice();return e[56]=t[i],e[57]=t,e[58]=i,e}function ar(e,t,i){e=e.slice();return e[59]=t[i],e}function sr(e,t,i){e=e.slice();return e[56]=t[i],e[58]=i,e}function lr(e){let i,n,r,o=e[18]("editText.success")+"";return{c(){i=J("div"),n=J("p"),r=Q(o),ie(i,"class","AccountEditLimitSuccessfulChangeContainer"),ie(i,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(n,r)},p(e,t){262144&t[0]&&o!==(o=e[18]("editText.success")+"")&&re(r,o)},d(e){e&&K(i)}}}function ur(t){let r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=dr(sr(t,o,e));return{c(){r=J("div");for(let e=0;e<a.length;e+=1)a[e].c();ie(r,"class","AccountEditLimitSuccessfulChangeContainer"),ie(r,"part","AccountEditLimitSuccessfulChangeContainer")},m(e,t){X(e,r,t);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(409600&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=sr(t,o,e);a[e]?a[e].p(n,i):(a[e]=dr(n),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&&K(r),k(a,e)}}}function cr(e){let i,n,r,o,a=e[18]("editText.remove")+"",s=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("p"),n=Q(a),r=ee(),o=Q(s)},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o)},p(e,t){262144&t[0]&&a!==(a=e[18]("editText.remove")+"")&&re(n,a),16384&t[0]&&s!==(s=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(o,s)},d(e){e&&K(i)}}}function dr(e){let i,n=e[56].period==e[17][e[58]].period&&cr(e);return{c(){n&&n.c(),i=b()},m(e,t){n&&n.m(e,t),X(e,i,t)},p(e,t){e[56].period==e[17][e[58]].period?n?n.p(e,t):((n=cr(e)).c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&K(i)}}}function hr(t){let i,r,o=t[14],a=[];for(let e=0;e<o.length;e+=1)a[e]=Lr(or(t,o,e));return{c(){i=J("div"),r=J("div");for(let e=0;e<a.length;e+=1)a[e].c();ie(r,"class","AccountEditLimitsContainer"),ie(r,"part","AccountEditLimitsContainer"),ie(i,"class","AccountEditContent"),ie(i,"part","AccountEditContent")},m(e,t){X(e,i,t),Z(i,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(t,i){if(18836552&i[0]){let e;for(o=t[14],e=0;e<o.length;e+=1){var n=or(t,o,e);a[e]?a[e].p(n,i):(a[e]=Lr(n),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&&K(i),k(a,e)}}}function mr(i){let n,r,o,a,s,l,u,c,d,h,m=i[18]("editText.noLimit")+"",p=i[20].get(i[6])[i[58]].values,f=[];for(let e=0;e<p.length;e+=1)f[e]=fr(ar(i,p,e));function g(){i[29].call(n,i[58])}let y="Custom"===i[17][i[58]].amount&&gr(i),v=!0===i[56].isModified&&_r(i);return{c(){n=J("select"),r=J("option"),o=Q(m);for(let e=0;e<f.length;e+=1)f[e].c();s=ee(),l=J("div"),y&&y.c(),u=ee(),v&&v.c(),c=b(),r.__value="",r.value=r.__value,r.disabled=!0,r.selected=!0,r.hidden=!0,ie(n,"class","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),ie(n,"part","AccountEditField "+(i[19]?"TimeoutSelectMobile":"")),n.disabled=a=!0===i[56].isModified,void 0===i[17][i[58]].amount&&ce(g),ie(l,"class","AccountEditLimitsInputContainer"),ie(l,"part","AccountEditLimitsInputContainer")},m(e,t){X(e,n,t),Z(n,r),Z(r,o);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(n,null);O(n,i[17][i[58]].amount,!0),X(e,s,t),X(e,l,t),y&&y.m(l,null),X(e,u,t),v&&v.m(e,t),X(e,c,t),d||(h=[te(n,"change",g),te(n,"change",function(){w(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)})],d=!0)},p(e,t){if(i=e,262144&t[0]&&m!==(m=i[18]("editText.noLimit")+"")&&re(o,m),1048648&t[0]){let e;for(p=i[20].get(i[6])[i[58]].values,e=0;e<p.length;e+=1){const o=ar(i,p,e);f[e]?f[e].p(o,t):(f[e]=fr(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=p.length}16384&t[0]&&a!==(a=!0===i[56].isModified)&&(n.disabled=a),1179712&t[0]&&O(n,i[17][i[58]].amount),"Custom"===i[17][i[58]].amount?y?y.p(i,t):((y=gr(i)).c(),y.m(l,null)):y&&(y.d(1),y=null),!0===i[56].isModified?v?v.p(i,t):((v=_r(i)).c(),v.m(c.parentNode,c)):v&&(v.d(1),v=null)},d(e){e&&K(n),k(f,e),e&&K(s),e&&K(l),y&&y.d(),e&&K(u),v&&v.d(e),e&&K(c),d=!1,q(h)}}}function pr(e){let i,n=("Time Limit"!==e[6]?e[3]:" minutes")+"";return{c(){i=Q(n)},m(e,t){X(e,i,t)},p(e,t){72&t[0]&&n!==(n=("Time Limit"!==e[6]?e[3]:" minutes")+"")&&re(i,n)},d(e){e&&K(i)}}}function fr(e){let i,n,r,o,a,s=e[59]+"",l="No limit"!==e[59]&&"Custom"!==e[59]&&pr(e);return{c(){i=J("option"),n=Q(s),r=ee(),l&&l.c(),o=ee(),i.__value=a=e[59],i.value=i.__value},m(e,t){X(e,i,t),Z(i,n),Z(i,r),l&&l.m(i,null),Z(i,o)},p(e,t){64&t[0]&&s!==(s=e[59]+"")&&re(n,s),"No limit"!==e[59]&&"Custom"!==e[59]?l?l.p(e,t):((l=pr(e)).c(),l.m(i,o)):l&&(l.d(1),l=null),64&t[0]&&a!==(a=e[59])&&(i.__value=a,i.value=i.__value)},d(e){e&&K(i),l&&l.d()}}}function gr(e){let i;function n(e){return"Time Limit"!==e[6]?vr:yr}let r=n(e),o=r(e);return{c(){o.c(),i=b()},m(e,t){o.m(e,t),X(e,i,t)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),(o=r(e))&&(o.c(),o.m(i.parentNode,i)))},d(e){o.d(e),e&&K(i)}}}function yr(i){let n,r,o,a,s,l;function u(){i[31].call(n,i[58])}let c=1==i[13][i[58]]&&wr(i);return{c(){n=J("input"),o=ee(),a=J("p"),c&&c.c(),ie(n,"type","number"),ie(n,"class","AccountEditField AccountEditFieldCustom"),ie(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,ie(a,"class","AccountEditWarningText"),ie(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),P(n,i[17][i[58]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[24](i[17][i[58]],i[58],!0,i[16]))&&i[24](i[17][i[58]],i[58],!0,i[16]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&V(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=wr(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&K(n),e&&K(o),e&&K(a),c&&c.d(),s=!1,q(l)}}}function vr(i){let n,r,o,a,s,l;function u(){i[30].call(n,i[58])}let c=1==i[13][i[58]]&&br(i);return{c(){n=J("input"),o=ee(),a=J("p"),c&&c.c(),ie(n,"type","number"),ie(n,"class","AccountEditField AccountEditFieldCustom"),ie(n,"part","AccountEditField AccountEditFieldCustom"),n.disabled=r=!0===i[56].isModified,ie(a,"class","AccountEditWarningText"),ie(a,"part","AccountEditWarningText")},m(e,t){X(e,n,t),P(n,i[17][i[58]].value),X(e,o,t),X(e,a,t),c&&c.m(a,null),s||(l=[te(n,"keyup",function(){w(i[24](i[17][i[58]],i[58],!1,i[16]))&&i[24](i[17][i[58]],i[58],!1,i[16]).apply(this,arguments)}),te(n,"input",u)],s=!0)},p(e,t){i=e,16384&t[0]&&r!==(r=!0===i[56].isModified)&&(n.disabled=r),1179712&t[0]&&V(n.value)!==i[17][i[58]].value&&P(n,i[17][i[58]].value),1==i[13][i[58]]?c?c.p(i,t):((c=br(i)).c(),c.m(a,null)):c&&(c.d(1),c=null)},d(e){e&&K(n),e&&K(o),e&&K(a),c&&c.d(),s=!1,q(l)}}}function wr(e){let i,n,r=e[18]("editText.invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InvalidInput"),ie(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){265216&t[0]&&r!==(r=e[18]("editText.invalidInputMessageTime",{values:{minTime:e[10],maxTime:e[11]}})+"")&&re(n,r)},d(e){e&&K(i)}}}function br(e){let i,n,r=e[18]("editText.invalidInputMessageLimit")+"";return{c(){i=J("p"),n=Q(r),ie(i,"class","InvalidInput"),ie(i,"part","InvalidInput")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){262144&t[0]&&r!==(r=e[18]("editText.invalidInputMessageLimit")+"")&&re(n,r)},d(e){e&&K(i)}}}function _r(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w=e[18]("editText.expirationDate")+"",b=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"",_=e[18]("editText.changedLimitTextBefore")+"",L=(0<e[56].updateAmount?e[56].updateAmount:0)+"",x=(void 0!==e[56].minutes?" minutes":e[3])+"",T=e[18]("editText.changedLimitTextAfter")+"";return{c(){i=J("p"),n=Q(w),r=ee(),o=J("span"),a=Q(b),s=ee(),l=J("div"),u=J("p"),(c=J("span")).textContent="i",d=J("span"),h=Q(_),m=ee(),p=Q(L),f=ee(),g=Q(x),y=Q(". "),v=Q(T),ie(i,"class","AccountEditLimitsExpiryDate"),ie(i,"part","AccountEditLimitsExpiryDate"),ie(c,"class","AccountEditLimitChangePeriodIcon"),ie(c,"part","AccountEditLimitChangePeriodIcon"),ie(l,"class","AccountEditLimitsPeriodChangeContainer"),ie(l,"part","AccountEditLimitsPeriodChangeContainer")},m(e,t){X(e,i,t),Z(i,n),Z(i,r),Z(i,o),Z(o,a),X(e,s,t),X(e,l,t),Z(l,u),Z(u,c),Z(u,d),Z(d,h),Z(d,m),Z(d,p),Z(d,f),Z(d,g),Z(d,y),Z(d,v)},p(e,t){262144&t[0]&&w!==(w=e[18]("editText.expirationDate")+"")&&re(n,w),16384&t[0]&&b!==(b=(e[56].expiryDate?I(e[56].expiryDate).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(a,b),262144&t[0]&&_!==(_=e[18]("editText.changedLimitTextBefore")+"")&&re(h,_),16384&t[0]&&L!==(L=(0<e[56].updateAmount?e[56].updateAmount:0)+"")&&re(p,L),16392&t[0]&&x!==(x=(void 0!==e[56].minutes?" minutes":e[3])+"")&&re(g,x),262144&t[0]&&T!==(T=e[18]("editText.changedLimitTextAfter")+"")&&re(v,T)},d(e){e&&K(i),e&&K(s),e&&K(l)}}}function Lr(e){let i,n,r,o,a,s=e[18]("editText."+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"",l=e[56].period==e[17][e[58]].period&&mr(e);return{c(){i=J("div"),n=J("p"),r=Q(s),o=ee(),l&&l.c(),a=ee(),ie(n,"class","AccountEditLimitsTitle"),ie(n,"part","AccountEditLimitsTitle"),ie(i,"class","AccountEditLimitsBox"),ie(i,"part","AccountEditLimitsBox")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(i,o),l&&l.m(i,null),Z(i,a)},p(e,t){278528&t[0]&&s!==(s=e[18]("editText."+e[56].period.charAt(0).toLowerCase()+e[56].period.substring(1))+"")&&re(r,s),e[56].period==e[17][e[58]].period?l?l.p(e,t):((l=mr(e)).c(),l.m(i,a)):l&&(l.d(1),l=null)},d(e){e&&K(i),l&&l.d()}}}function xr(i){let n,B,r,o,a,s,$,l,u,c,Y,d,h,F,m,p,f,G,g,y,U,v,W,w,b,_,L,x,T,E,C,M,A,S,I,j,V,D=i[18]("editText.back")+"",k=(i[0]?i[9]:"")+"",P=i[18]("editText.save")+"",O=i[19]&&function(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g=i[18]("editText.back")+"";return{c(){n=J("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),h=J("h2"),m=Q(g),ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(r,"xmlns","http://www.w3.org/2000/svg"),ie(r,"width","15"),ie(r,"height","15"),ie(r,"viewBox","0 0 15 15"),ie(h,"class","MyAccountCategoryTitleMobile"),ie(h,"part","MyAccountCategoryTitleMobile"),ie(n,"class","MenuReturnButton"),ie(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,h),Z(h,m),p||(f=te(n,"click",i[22]),p=!0)},p(e,t){262144&t[0]&&g!==(g=e[18]("editText.back")+"")&&re(m,g)},d(e){e&&K(n),p=!1,f()}}}(i),N=i[1]&&lr(i),H=i[2]&&ur(i),R=i[8]&&hr(i);return{c(){n=J("div"),O&&O.c(),B=ee(),r=J("div"),o=t("svg"),a=t("defs"),s=t("style"),$=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),Y=ee(),d=J("h2"),h=Q(D),F=ee(),m=J("div"),p=J("h6"),f=Q(k),G=ee(),g=J("div"),(y=J("span")).textContent="i",U=ee(),v=J("player-account-gaming-limits-popup"),W=ee(),N&&N.c(),w=ee(),H&&H.c(),b=ee(),R&&R.c(),_=ee(),L=J("div"),x=J("button"),T=Q(P),A=ee(),S=J("player-account-modal"),I=J("player-account-gaming-limits-confirmation-modal"),this.c=z,ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(o,"xmlns","http://www.w3.org/2000/svg"),ie(o,"width","20"),ie(o,"height","20"),ie(o,"viewBox","0 0 15 15"),ie(d,"class","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(d,"part","MyAccountCategoryTitle "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(r,"class","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(r,"part","MenuReturnButton "+(i[19]?"MyAccountCategoryTitleNone":"")),ie(y,"class","AccountEditLimitsIcon"),ie(y,"part","AccountEditLimitsIcon"),ne(v,"showpopup",i[7]),ne(v,"lang",i[4]),ie(g,"class","AccountEditLimitsIconWrapper"),ie(g,"part","AccountEditLimitsIconWrapper"),ie(m,"class","AccountEditLimitsHeader"),ie(m,"part","AccountEditLimitsHeader"),ie(x,"class",E="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),ie(x,"part",C="AccountEditLimitsSaveButton "+(i[15]?"":"AccountEditLimitsButtonDisabled")),x.disabled=M=!i[15],ie(L,"class","AccountEditLimitsControlArea"),ie(L,"part","AccountEditLimitsControlArea"),ie(n,"class","AccountEditLimitsWrapper "+(i[19]?"AccountEditLimitsMobileWrapper":"")),ne(I,"modaltext",i[12]),ne(I,"modalsource","groupEdit"),ne(I,"lang",i[4])},m(e,t){X(e,n,t),O&&O.m(n,null),Z(n,B),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(s,$),Z(o,l),Z(l,u),Z(u,c),Z(r,Y),Z(r,d),Z(d,h),Z(n,F),Z(n,m),Z(m,p),Z(p,f),Z(m,G),Z(m,g),Z(g,y),Z(g,U),Z(g,v),Z(n,W),N&&N.m(n,null),Z(n,w),H&&H.m(n,null),Z(n,b),R&&R.m(n,null),Z(n,_),Z(n,L),Z(L,x),Z(x,T),i[33](n),X(e,A,t),X(e,S,t),Z(S,I),j||(V=[te(r,"click",i[22]),te(y,"click",oe(i[21])),te(x,"click",i[32])],j=!0)},p(e,t){e[19]&&O.p(e,t),262144&t[0]&&D!==(D=e[18]("editText.back")+"")&&re(h,D),513&t[0]&&k!==(k=(e[0]?e[9]:"")+"")&&re(f,k),128&t[0]&&ne(v,"showpopup",e[7]),16&t[0]&&ne(v,"lang",e[4]),e[1]?N?N.p(e,t):((N=lr(e)).c(),N.m(n,w)):N&&(N.d(1),N=null),e[2]?H?H.p(e,t):((H=ur(e)).c(),H.m(n,b)):H&&(H.d(1),H=null),e[8]?R?R.p(e,t):((R=hr(e)).c(),R.m(n,_)):R&&(R.d(1),R=null),262144&t[0]&&P!==(P=e[18]("editText.save")+"")&&re(T,P),32768&t[0]&&E!==(E="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&ie(x,"class",E),32768&t[0]&&C!==(C="AccountEditLimitsSaveButton "+(e[15]?"":"AccountEditLimitsButtonDisabled"))&&ie(x,"part",C),32768&t[0]&&M!==(M=!e[15])&&(x.disabled=M),4096&t[0]&&ne(I,"modaltext",e[12]),16&t[0]&&ne(I,"lang",e[4])},i:z,o:z,d(e){e&&K(n),O&&O.d(),N&&N.d(),H&&H.d(),R&&R.d(),i[33](null),e&&K(A),e&&K(S),j=!1,q(V)}}}function Tr(t,e,o){let i,{limitsdata:n=[]}=(j(t,On,e=>o(18,i=e)),e),{showsuccessnotification:r=!1}=e,{showdeletenotification:a=!1}=e,{playercurrency:s=""}=e,{lang:l="en"}=e,{separatelimits:u="true"}=e,{clientstyling:c=""}=e,{clientstylingurl:d=""}=e,{translationurl:h=""}=e,m,p,f=(Object.keys(qn).forEach(e=>{zn(e,qn[e])}),!1),g=!1,y="",v=!1,w=0,b=0,_="",H=window.navigator.userAgent,R="PC"!==Nn(H),L=new Array(3).fill(0),x={},T=[],E=[],C=!1,M=[];const A={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let S=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],I=[{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"]}],B=[{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"]}],$=[{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 k=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),P=new Map([["Deposit Limit",I],["Time Limit",$],["Wagering Limit",D],["Loss Limit",B]]),Y=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},O=(i,e)=>{let n=JSON.parse(JSON.stringify(e));S.forEach(t=>{n.forEach(e=>{t.period==i.period&&("Custom"!==t.amount&&"No limit"!==t.amount?t.value=JSON.parse(t.amount):"No limit"===t.amount&&(t.value=0)),e.period===t.period&&(e.amount=t.value)})})},F=()=>{M.forEach(e=>{var t=e;E.forEach(e=>{t.period===e.period&&("Time Limit"===m&&(o(10,w=60),"Daily"===t.period?o(11,b=1440):"Weekly"==t.period?o(11,b=10080):o(11,b=43200)),-1<e.values.indexOf(t.amount))&&("No limit"===t.amount?t.amount=0:t.amount=JSON.parse(t.amount))})}),x.forEach(n=>{E.forEach(e=>{var t,i;n.period===e.period&&(e=e,t=n,i=S,e=e.values,t.amount&&"No limit"!==t.amount?e.includes(JSON.stringify(t.amount))?i.forEach(e=>{e.period===t.period&&(e.amount=JSON.stringify(t.amount),e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount="Custom",e.value=t.amount)}):i.forEach(e=>{e.period===t.period&&(e.amount=t.amount,e.value=0)}))})})},N=()=>{var e=l;W.set(e),e="Time Limit"===m?"time limit":"Deposit Limit"===m?"deposit limit":"Wagering Limit"===m?"wagering limit":"loss limit",o(12,_=i("editText.changeLimitsText",{values:{limit:e}})),o(16,M=JSON.parse(JSON.stringify(n))),o(14,x=JSON.parse(JSON.stringify(n))),E="Wagering Limit"===m?D:"Loss Limit"===m?B:"Deposit Limit"===m?I:"Time Limit"===m?$:[],F()},G=e=>{if(e.data)switch(e.data.type){case"EditPlayerLimit":o(6,m=e.data.name),o(9,y=i("editText."+m.charAt(0).toLowerCase()+m.substring(1).replace(/\s/g,""))),N(),o(8,g=!0);break;case"ClosePlayerAccountGamingLimitsPopup":o(7,f=!1);break;case"GamingLimitsConfirmChanges":(v=!0)&&("Time Limit"===m?S.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,minutes:t.value},T.push(e)):x.forEach(e=>{e.period===t.period&&(e.minutes=t.value)})}):S.forEach(t=>{var e;"true"==u?0!=t.value&&(e={period:t.period,amount:t.value,currency:s},T.push(e)):x.forEach(e=>{e.period===t.period&&(e.amount=t.value,e.currency=s)})}),t={},t="true"==u?{[k.get(m)]:[...T]}:{[k.get(m)]:[...x]},T.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:t,limitsCategory:k.get(m)},window.location.href),o(15,C=!1));break;case"CancelGamingLimitsChanges":o(8,g=!1),setTimeout(()=>{o(8,g=!0)},10),N(),o(15,C=!1),v=!1}var t};return ae(()=>(window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)})),t.$$set=e=>{"limitsdata"in e&&o(0,n=e.limitsdata),"showsuccessnotification"in e&&o(1,r=e.showsuccessnotification),"showdeletenotification"in e&&o(2,a=e.showdeletenotification),"playercurrency"in e&&o(3,s=e.playercurrency),"lang"in e&&o(4,l=e.lang),"separatelimits"in e&&o(25,u=e.separatelimits),"clientstyling"in e&&o(26,c=e.clientstyling),"clientstylingurl"in e&&o(27,d=e.clientstylingurl),"translationurl"in e&&o(28,h=e.translationurl)},t.$$.update=()=>{if(6&t.$$.dirty[0]&&r&&a&&N(),t.$$.dirty[0],67108896&t.$$.dirty[0]&&c&&p&&((e=document.createElement("style")).innerHTML=c,p.appendChild(e)),134217760&t.$$.dirty[0]&&d&&p){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{p.appendChild(t)},1)})}var e;268435456&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{zn(e,t[e])})}).catch(e=>{console.log(e)})},[n,r,a,s,l,p,m,f,g,y,w,b,_,L,x,C,M,S,i,R,P,()=>{o(7,f=!0)},()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},Y,(e,t,i,n)=>{var r;"Custom"===e.amount?"Time Limit"==m?(o(10,w=60),"Daily"===e.period?o(11,b=1440):"Weekly"==e.period?o(11,b=10080):o(11,b=43200),e.value&&A.time.test(e.value)&&e.value>w&&e.value<=b?(o(13,L[t]=0,L),r=n[t],e.period==r.period&&e.value==r.amount?(o(15,C=!1),O(e,n)):o(15,C=!0)):(o(13,L[t]=1,L),o(15,C=!1))):e.value&&A.amount.test(e.value)?(o(13,L[t]=0,L),e.period==n[t].period&&e.value==n[t].amount?(o(15,C=!!C),O(e,n)):o(15,C=!0),"true"!=u&&S.forEach(e=>{0==e.value&&o(15,C=!1)})):(o(13,L[t]=1,L),o(15,C=!1)):(e.period==n[t].period?(O(e,n),o(15,C=e.value!=n[t].amount)):o(15,C=!0),S.forEach(e=>{(0==e.value&&"true"!=u||"Custom"==e.amount&&!A.amount.test(e.value.toString()))&&o(15,C=!1)}))},u,c,d,h,function(e){S[e].amount=function(e){e=e.querySelector(":checked");return e&&e.__value}(this),o(17,S),o(20,P),o(6,m)},function(e){S[e].value=V(this.value),o(17,S),o(20,P),o(6,m)},function(e){S[e].value=V(this.value),o(17,S),o(20,P),o(6,m)},()=>Y(),function(e){U[e?"unshift":"push"](()=>{p=e,o(5,p)})}]}function Er(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Cr(e,t,i){e=e.slice();return e[41]=t[i],e[43]=i,e}function Mr(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w,b,_,L,x,T,E,C=(i[0]?i[15]("cardText."+i[1].charAt(0).toLowerCase()+i[1].substring(1).replace(/\s/g,"")):"")+"",M=i[15]("cardText.edit")+"";function A(e){return"Time Limit"===e[1]?Ir:Sr}let S=A(i),I=S(i),D=!i[9]&&!i[0].isModified&&i[14]&&jr(i),k=i[11]&&Vr(i);return{c(){n=J("div"),r=J("div"),o=J("div"),a=J("h5"),s=Q(C),l=ee(),u=J("div"),(c=J("span")).textContent="i",d=ee(),h=J("player-account-gaming-limits-popup"),p=ee(),f=J("div"),g=J("div"),y=J("div"),I.c(),v=ee(),w=J("div"),b=J("button"),_=Q(M),L=ee(),D&&D.c(),x=ee(),k&&k.c(),ie(c,"class","InfoCardIcon"),ie(c,"part","InfoCardIcon"),ne(h,"showpopup",m=i[8][0]),ne(h,"lang",i[3]),ne(h,"clientstyling",i[4]),ne(h,"clientstylingurl",i[5]),ie(u,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(u,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(o,"class","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),ie(o,"part","InfoCardHeader "+(i[16]?"InfoCardMobileHeader":"")),ie(y,"class","InfoCardTableRow"),ie(y,"part","InfoCardTableRow"),ie(g,"class","InfoCardTableWrapper"),ie(g,"part","InfoCardTableWrapper"),ie(b,"class","InfoCardEditButton"),ie(b,"part","InfoCardEditButton"),ie(w,"class","InfoCardControlArea"),ie(w,"part","InfoCardControlArea"),ie(f,"class","InfoCard"),ie(f,"part","InfoCard"),ie(r,"class","InfoCardWrapper"),ie(r,"part","InfoCardWrapper"),ie(n,"class","InfoCardSection"),ie(n,"part","InfoCardSection")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(o,l),Z(o,u),Z(u,c),Z(u,d),Z(u,h),Z(r,p),Z(r,f),Z(f,g),Z(g,y),I.m(y,null),Z(f,v),Z(f,w),Z(w,b),Z(b,_),Z(w,L),D&&D.m(w,null),Z(n,x),k&&k.m(n,null),T||(E=[te(c,"click",oe(i[23])),te(b,"click",i[26])],T=!0)},p(e,t){32771&t[0]&&C!==(C=(e[0]?e[15]("cardText."+e[1].charAt(0).toLowerCase()+e[1].substring(1).replace(/\s/g,"")):"")+"")&&re(s,C),256&t[0]&&m!==(m=e[8][0])&&ne(h,"showpopup",m),8&t[0]&&ne(h,"lang",e[3]),16&t[0]&&ne(h,"clientstyling",e[4]),32&t[0]&&ne(h,"clientstylingurl",e[5]),S===(S=A(e))&&I?I.p(e,t):(I.d(1),(I=S(e))&&(I.c(),I.m(y,null))),32768&t[0]&&M!==(M=e[15]("cardText.edit")+"")&&re(_,M),e[9]||e[0].isModified||!e[14]?D&&(D.d(1),D=null):D?D.p(e,t):((D=jr(e)).c(),D.m(w,null)),e[11]?k?k.p(e,t):((k=Vr(e)).c(),k.m(n,null)):k&&(k.d(1),k=null)},d(e){e&&K(n),I.d(),D&&D.d(),k&&k.d(),T=!1,q(E)}}}function Ar(e){let i;return{c(){ie(i=J("div"),"class","ModalLoader"),ie(i,"part","ModalLoader")},m(e,t){X(e,i,t)},p:z,d(e){e&&K(i)}}}function Sr(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Hr(Er(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=b()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);X(t,r,i)},p(t,i){if(3375423&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Er(t,o,e);a[e]?a[e].p(n,i):(a[e]=Hr(n),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){k(a,e),e&&K(r)}}}function Ir(t){let r,o=t[0],a=[];for(let e=0;e<o.length;e+=1)a[e]=Wr(Cr(t,o,e));return{c(){for(let e=0;e<a.length;e+=1)a[e].c();r=b()},m(t,i){for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(t,i);X(t,r,i)},p(t,i){if(3375419&i[0]){let e;for(o=t[0],e=0;e<o.length;e+=1){var n=Cr(t,o,e);a[e]?a[e].p(n,i):(a[e]=Wr(n),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){k(a,e),e&&K(r)}}}function Dr(e){let i,n,r=(e[41]?e[41].currency:"")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?e[41].currency:"")+"")&&re(n,r)},d(e){e&&K(i)}}}function kr(e){let i,n,r=e[15]("cardText.notAvailable")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.notAvailable")+"")&&re(n,r)},d(e){e&&K(i)}}}function Pr(e){let i,n,r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(n,r)},d(e){e&&K(i)}}}function Or(i){let n,r,o,a,s,l,u,c;function d(){return i[25](i[43])}return{c(){n=J("div"),(r=J("span")).textContent="i",o=ee(),a=J("player-account-gaming-limits-popup"),ie(r,"class","InfoCardIcon"),ie(r,"part","InfoCardIcon"),ne(a,"showpopup",s=i[8][i[43]+1]),ne(a,"iteminfoamount",l=i[41].updateAmount),ne(a,"playercurrency",i[2]),ne(a,"lang",i[3]),ne(a,"clientstyling",i[4]),ne(a,"clientstylingurl",i[5]),ie(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(n,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),u||(c=te(r,"click",oe(d)),u=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ne(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateAmount)&&ne(a,"iteminfoamount",l),4&t[0]&&ne(a,"playercurrency",i[2]),8&t[0]&&ne(a,"lang",i[3]),16&t[0]&&ne(a,"clientstyling",i[4]),32&t[0]&&ne(a,"clientstylingurl",i[5])},d(e){e&&K(n),u=!1,c()}}}function Nr(i){let n,r,o;return{c(){(n=J("div")).innerHTML="<span></span>",ie(n,"class","InfoCardRemoveIcon"),ie(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&K(n),r=!1,o()}}}function Hr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y,v,w=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",b=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"",_="No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"),L=e[15]("cardText.expirationDate")+"",x=_&&Dr(e);function T(e){return e[41].expiryDate?Pr:kr}let E=T(e),C=E(e);function M(e,t){return(y=null==(y=32769&t[0]?null:y)?!(e[41].amount===e[15]("cardText.noLimit")||"No limit"===e[41].amount||e[41].isModified):y)?Nr:"No limit"!=e[41].amount&&e[41].isModified?Or:void 0}let A=M(e,[-1,-1]),S=A&&A(e);return{c(){i=J("div"),n=J("div"),r=J("div"),o=J("div"),a=Q(w),s=ee(),l=J("div"),u=Q(b),c=ee(),x&&x.c(),d=ee(),h=J("div"),m=J("div"),p=Q(L),f=ee(),C.c(),g=ee(),S&&S.c(),v=ee(),ie(o,"class","InfoCardRowTitle"),ie(o,"part","InfoCardRowTitle"),ie(l,"class","InfoCardRowValue"),ie(l,"part","InfoCardRowValue"),ie(r,"class","InfoCardRow InfoMainRow"),ie(r,"part","InfoCardRow InfoMainRow"),ie(m,"class","InfoCardRowTitle"),ie(m,"part","InfoCardRowTitle"),ie(h,"class","InfoCardRow"),ie(h,"part","InfoCardRow"),ie(n,"class","InfoCardRowContainer"),ie(n,"part","InfoCardRowContainer"),ie(i,"class","InfoCardBox InfoCardMultipleItems"),ie(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),Z(l,u),Z(l,c),x&&x.m(l,null),Z(n,d),Z(n,h),Z(h,m),Z(m,p),Z(h,f),C.m(h,null),Z(i,g),S&&S.m(i,null),Z(i,v)},p(e,t){32769&t[0]&&w!==(w=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&re(a,w),32769&t[0]&&b!==(b=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"")&&re(u,b),(_=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"):_)?x?x.p(e,t):((x=Dr(e)).c(),x.m(l,null)):x&&(x.d(1),x=null),32768&t[0]&&L!==(L=e[15]("cardText.expirationDate")+"")&&re(p,L),E===(E=T(e))&&C?C.p(e,t):(C.d(1),(C=E(e))&&(C.c(),C.m(h,null))),A===(A=M(e,t))&&S?S.p(e,t):(S&&S.d(1),(S=A&&A(e))&&(S.c(),S.m(i,v)))},d(e){e&&K(i),x&&x.d(),C.d(),S&&S.d()}}}function Rr(e){let i,n,r=e[15]("cardText.noLimit")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.noLimit")+"")&&re(n,r)},d(e){e&&K(i)}}}function Br(e){let i,n,r,o=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"",a="No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"),s=a&&$r(e);return{c(){i=Q(o),n=ee(),s&&s.c(),r=b()},m(e,t){X(e,i,t),X(e,n,t),s&&s.m(e,t),X(e,r,t)},p(e,t){32769&t[0]&&o!==(o=(e[41]?"No limit"===e[41].amount?e[15]("cardText.noLimit"):e[41].amount:0)+"")&&re(i,o),(a=32769&t[0]?"No limit"!=e[41].amount&&e[41].amount!=e[15]("cardText.noLimit"):a)?s?s.p(e,t):((s=$r(e)).c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(e){e&&K(i),e&&K(n),s&&s.d(e),e&&K(r)}}}function $r(e){let i,n,r=e[15]("cardText.minutes")+"";return{c(){i=J("span"),n=Q(r),ie(i,"class","InfoCardCurrency"),ie(i,"part","InfoCardCurrency")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.minutes")+"")&&re(n,r)},d(e){e&&K(i)}}}function Yr(e){let i,n,r=e[15]("cardText.notAvailable")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){32768&t[0]&&r!==(r=e[15]("cardText.notAvailable")+"")&&re(n,r)},d(e){e&&K(i)}}}function Fr(e){let i,n,r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"";return{c(){i=J("div"),n=Q(r),ie(i,"class","InfoCardRowValue"),ie(i,"part","InfoCardRowValue")},m(e,t){X(e,i,t),Z(i,n)},p(e,t){1&t[0]&&r!==(r=(e[41]?(I(e[41].expiryDate).year()>e[17].year()+30?e[17].add(5,"years"):I(e[41].expiryDate)).format("D/M/YYYY - h:mm A"):"N/A")+"")&&re(n,r)},d(e){e&&K(i)}}}function Gr(i){let n,r,o,a,s,l,u,c,d;function h(){return i[24](i[43])}return{c(){n=J("div"),(r=J("span")).textContent="i",o=ee(),a=J("player-account-gaming-limits-popup"),ie(r,"class","InfoCardIcon"),ie(r,"part","InfoCardIcon"),ne(a,"showpopup",s=i[8][i[43]+1]),ne(a,"iteminfoamount",l=i[41].updateMinutes),ne(a,"playercurrency",u=i[15]("cardText.minutes")),ne(a,"lang",i[3]),ne(a,"clientstyling",i[4]),ne(a,"clientstylingurl",i[5]),ie(n,"class","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":"")),ie(n,"part","InfoCardIconWrapper "+(i[16]?"InfoCardIconMobileWrapper":""))},m(e,t){X(e,n,t),Z(n,r),Z(n,o),Z(n,a),c||(d=te(r,"click",oe(h)),c=!0)},p(e,t){i=e,256&t[0]&&s!==(s=i[8][i[43]+1])&&ne(a,"showpopup",s),1&t[0]&&l!==(l=i[41].updateMinutes)&&ne(a,"iteminfoamount",l),32768&t[0]&&u!==(u=i[15]("cardText.minutes"))&&ne(a,"playercurrency",u),8&t[0]&&ne(a,"lang",i[3]),16&t[0]&&ne(a,"clientstyling",i[4]),32&t[0]&&ne(a,"clientstylingurl",i[5])},d(e){e&&K(n),c=!1,d()}}}function Ur(i){let n,r,o;return{c(){(n=J("div")).innerHTML="<span></span>",ie(n,"class","InfoCardRemoveIcon"),ie(n,"part","InfoCardRemoveIcon")},m(e,t){X(e,n,t),r||(o=te(n,"click",function(){w(i[20](i[41],i[1]))&&i[20](i[41],i[1]).apply(this,arguments)}),r=!0)},p(e,t){i=e},d(e){e&&K(n),r=!1,o()}}}function Wr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f,g,y=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"",v=e[15]("cardText.expirationDate")+"";function w(e){return 0!==e[41].amount?Br:Rr}let b=w(e),_=b(e);function L(e){return e[41].expiryDate?Fr:Yr}let x=L(e),T=x(e);function E(e,t){return(f=null==(f=32769&t[0]?null:f)?!(e[41].amount===e[15]("cardText.noLimit")||"No limit"===e[41].amount||e[41].isModified):f)?Ur:"No limit"!=e[41].amount&&e[41].isModified?Gr:void 0}let C=E(e,[-1,-1]),M=C&&C(e);return{c(){i=J("div"),n=J("div"),r=J("div"),o=J("div"),a=Q(y),s=ee(),l=J("div"),_.c(),u=ee(),c=J("div"),d=J("div"),h=Q(v),m=ee(),T.c(),p=ee(),M&&M.c(),g=ee(),ie(o,"class","InfoCardRowTitle"),ie(o,"part","InfoCardRowTitle"),ie(l,"class","InfoCardRowValue"),ie(l,"part","InfoCardRowValue"),ie(r,"class","InfoCardRow InfoMainRow"),ie(r,"part","InfoCardRow InfoMainRow"),ie(d,"class","InfoCardRowTitle"),ie(d,"part","InfoCardRowTitle"),ie(c,"class","InfoCardRow"),ie(c,"part","InfoCardRow"),ie(n,"class","InfoCardRowContainer"),ie(n,"part","InfoCardRowContainer"),ie(i,"class","InfoCardBox InfoCardMultipleItems"),ie(i,"part","InfoCardBox InfoCardMultipleItems")},m(e,t){X(e,i,t),Z(i,n),Z(n,r),Z(r,o),Z(o,a),Z(r,s),Z(r,l),_.m(l,null),Z(n,u),Z(n,c),Z(c,d),Z(d,h),Z(c,m),T.m(c,null),Z(i,p),M&&M.m(i,null),Z(i,g)},p(e,t){32769&t[0]&&y!==(y=(e[41]?e[15]("cardText."+e[41].period.charAt(0).toLowerCase()+e[41].period.substring(1)):"")+"")&&re(a,y),b===(b=w(e))&&_?_.p(e,t):(_.d(1),(_=b(e))&&(_.c(),_.m(l,null))),32768&t[0]&&v!==(v=e[15]("cardText.expirationDate")+"")&&re(h,v),x===(x=L(e))&&T?T.p(e,t):(T.d(1),(T=x(e))&&(T.c(),T.m(c,null))),C===(C=E(e,t))&&M?M.p(e,t):(M&&M.d(1),(M=C&&C(e))&&(M.c(),M.m(i,g)))},d(e){e&&K(i),_.d(),T.d(),M&&M.d()}}}function jr(i){let n,r,o,a,s=i[15]("cardText.removeLimits")+"";return{c(){n=J("button"),r=Q(s),ie(n,"class","InfoCardRemoveButton"),ie(n,"part","InfoCardRemoveButton")},m(e,t){X(e,n,t),Z(n,r),o||(a=te(n,"click",i[27]),o=!0)},p(e,t){32768&t[0]&&s!==(s=e[15]("cardText.removeLimits")+"")&&re(r,s)},d(e){e&&K(n),o=!1,a()}}}function Vr(e){let i,n,r;return{c(){i=J("player-account-modal"),ne(n=J("player-account-gaming-limits-confirmation-modal"),"modaltext",r=e[10]?e[12]:e[13]),ne(n,"modalsource","infoCard"),ne(n,"lang",e[3]),ne(n,"clientstyling",e[4]),ne(n,"clientstylingurl",e[5]),ne(i,"clientstyling",e[4]),ne(i,"clientstylingurl",e[5])},m(e,t){X(e,i,t),Z(i,n)},p(e,t){13312&t[0]&&r!==(r=e[10]?e[12]:e[13])&&ne(n,"modaltext",r),8&t[0]&&ne(n,"lang",e[3]),16&t[0]&&ne(n,"clientstyling",e[4]),32&t[0]&&ne(n,"clientstylingurl",e[5]),16&t[0]&&ne(i,"clientstyling",e[4]),32&t[0]&&ne(i,"clientstylingurl",e[5])},d(e){e&&K(i)}}}function zr(i){let n;function r(e){return e[7]?Ar:Mr}let o=r(i),a=o(i);return{c(){n=J("div"),a.c(),this.c=z},m(e,t){X(e,n,t),a.m(n,null),i[28](n)},p(e,t){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:z,o:z,d(e){e&&K(n),a.d(),i[28](null)}}}function qr(n,e,r){let o,{limitsdata:a=[]}=(j(n,On,e=>r(15,o=e)),e),{limitname:s=""}=e,{playercurrency:t=""}=e,{lang:l="en"}=e,{clientstyling:u=""}=e,{clientstylingurl:c=""}=e,{translationurl:d=""}=e;Object.keys($n).forEach(e=>{Bn(e,$n[e])});let h,m=!0,i=new Array(5).fill(0),p=["Daily","Weekly","Monthly"],f=!0,g=!0,y=!1,v=window.navigator.userAgent,w="PC"!==Nn(v),b="",_="",L=!0,x=I();const T=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)},C=e=>{window.postMessage({type:"ClosePlayerAccountGamingLimitsPopup"},window.location.href),setTimeout(()=>{r(8,i[e]=!0,i)},50)},M=(e,t,i,n)=>{e.splice(t,0,"time"===n?{period:i,minutes:0,currency:"",isModified:!1,expiryDate:""}:{period:i,amount:"No limit",currency:"",isModified:!1,expiryDate:""})},A=(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,S=e=>{if(e.data)switch(e.data.type){case"ClosePlayerAccountGamingLimitsPopup":r(8,i=new Array(5).fill(0));break;case"ModalClosed":window.postMessage({type:"EnableScroll"},window.location.href),r(11,y=!1),r(10,g=!1)}};return ae(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})),n.$$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,u=e.clientstyling),"clientstylingurl"in e&&r(5,c=e.clientstylingurl),"translationurl"in e&&r(22,d=e.translationurl)},n.$$.update=()=>{if(11&n.$$.dirty[0]&&a&&s&&l){var e=l;W.set(e),e="Time Limit"===s?"time limit":"Deposit Limit"===s?"deposit limit":"Wagering Limit"===s?"wagering limit":"loss limit",r(12,b=o("cardText.removeLimitsText",{values:{limit:e}})),r(13,_=o("cardText.removeLimitText",{values:{limit:e}})),a.forEach(e=>{e.isModified&&r(14,L=!1)});{var i=a;const t=p;p.forEach((t,e)=>{i.find(e=>e.period===t)&&(p=p.filter(e=>e!==t)),i.forEach(e=>{e.period===t&&"No limit"!==e.amount&&r(9,f=!1)}),r(7,m=!1)}),p.forEach(e=>{"Time Limit"===i.name?M(i,t.indexOf(e),e,"time"):M(i,t.indexOf(e),e,"currency")})}a.sort(A)}if(80&n.$$.dirty[0]&&u&&h&&((e=document.createElement("style")).innerHTML=u,h.appendChild(e)),96&n.$$.dirty[0]&&c&&h){let e=new URL(c),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{h.appendChild(t)},1)})}4194304&n.$$.dirty[0]&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Bn(e,t[e])})}).catch(e=>{console.log(e)})},[a,s,t,l,u,c,h,m,i,f,g,y,b,_,L,o,w,x,T,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)},C,d,()=>C(0),e=>C(e+1),e=>C(e+1),()=>T(a),()=>E(a),function(e){U[e?"unshift":"push"](()=>{h=e,r(6,h)})}]}function Zr(e){let i;return{c(){ne(i=J("player-account-gaming-limits-group-edit"),"limitsdata",e[13]),ne(i,"limitname",e[14]),ne(i,"showsuccessnotification",e[7]),ne(i,"showdeletenotification",e[6]),ne(i,"playercurrency",e[5]),ne(i,"lang",e[0]),ne(i,"separatelimits",e[8]),ne(i,"clientstyling",e[9]),ne(i,"clientstylingurl",e[10])},m(e,t){X(e,i,t)},p(e,t){8192&t&&ne(i,"limitsdata",e[13]),16384&t&&ne(i,"limitname",e[14]),128&t&&ne(i,"showsuccessnotification",e[7]),64&t&&ne(i,"showdeletenotification",e[6]),32&t&&ne(i,"playercurrency",e[5]),1&t&&ne(i,"lang",e[0]),256&t&&ne(i,"separatelimits",e[8]),512&t&&ne(i,"clientstyling",e[9]),1024&t&&ne(i,"clientstylingurl",e[10])},d(e){e&&K(i)}}}function Xr(e){let i,n,r,o,a,s,l,u,c,d,h,m,p,f=e[16]("gamingLimits.gamingLimitsText")+"",g=e[17]&&function(i){let n,r,o,a,s,l,u,c,d,h,m,p,f,g=i[16]("gamingLimits.gamingLimitsText")+"";return{c(){n=J("div"),r=t("svg"),o=t("defs"),a=t("style"),s=Q(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=t("g"),u=t("g"),c=t("path"),d=ee(),h=J("h2"),m=Q(g),ie(c,"class","aaa"),ie(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ie(c,"transform","translate(15 15) rotate(180)"),ie(u,"transform","translate(20 158)"),ie(l,"transform","translate(-20 -158)"),ie(r,"xmlns","http://www.w3.org/2000/svg"),ie(r,"width","15"),ie(r,"height","15"),ie(r,"viewBox","0 0 15 15"),ie(h,"class","PlayerGamingLimitsTitleMobile"),ie(h,"part","PlayerGamingLimitsTitleMobile"),ie(n,"class","MenuReturnButton"),ie(n,"part","MenuReturnButton")},m(e,t){X(e,n,t),Z(n,r),Z(r,o),Z(o,a),Z(a,s),Z(r,l),Z(l,u),Z(u,c),Z(n,d),Z(n,h),Z(h,m),p||(f=te(n,"click",i[21]),p=!0)},p(e,t){65536&t&&g!==(g=e[16]("gamingLimits.gamingLimitsText")+"")&&re(m,g)},d(e){e&&K(n),p=!1,f()}}}(e);return{c(){i=J("div"),g&&g.c(),n=ee(),r=J("h2"),o=Q(f),a=ee(),s=J("div"),l=J("player-account-gaming-limits-info-card"),u=ee(),c=J("player-account-gaming-limits-info-card"),d=ee(),h=J("player-account-gaming-limits-info-card"),m=ee(),p=J("player-account-gaming-limits-info-card"),ie(r,"class","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ie(r,"part","PlayerGamingLimitsTitle "+(e[17]?"PlayerGamingLimitsTitleNone":"")),ne(l,"limitsdata",e[1]),ne(l,"limitname",Qr),ne(l,"playercurrency",e[5]),ne(l,"lang",e[0]),ne(l,"clientstyling",e[9]),ne(l,"clientstylingurl",e[10]),ne(c,"limitsdata",e[2]),ne(c,"limitname",eo),ne(c,"playercurrency",e[5]),ne(c,"lang",e[0]),ne(c,"clientstyling",e[9]),ne(c,"clientstylingurl",e[10]),ne(h,"limitsdata",e[3]),ne(h,"limitname",to),ne(h,"playercurrency",e[5]),ne(h,"lang",e[0]),ne(h,"clientstyling",e[9]),ne(h,"clientstylingurl",e[10]),ne(p,"limitsdata",e[4]),ne(p,"limitname",io),ne(p,"playercurrency",e[5]),ne(p,"lang",e[0]),ne(p,"clientstyling",e[9]),ne(p,"clientstylingurl",e[10]),ie(s,"class","PlayerAccountGamingLimitsContainer"),ie(s,"part","PlayerAccountGamingLimitsContainer"),ie(i,"class","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":"")),ie(i,"part","PlayerAccountGamingLimitsWrapper "+(e[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(e[18].matches&&e[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},m(e,t){X(e,i,t),g&&g.m(i,null),Z(i,n),Z(i,r),Z(r,o),Z(i,a),Z(i,s),Z(s,l),Z(s,u),Z(s,c),Z(s,d),Z(s,h),Z(s,m),Z(s,p)},p(e,t){e[17]&&g.p(e,t),65536&t&&f!==(f=e[16]("gamingLimits.gamingLimitsText")+"")&&re(o,f),2&t&&ne(l,"limitsdata",e[1]),32&t&&ne(l,"playercurrency",e[5]),1&t&&ne(l,"lang",e[0]),512&t&&ne(l,"clientstyling",e[9]),1024&t&&ne(l,"clientstylingurl",e[10]),4&t&&ne(c,"limitsdata",e[2]),32&t&&ne(c,"playercurrency",e[5]),1&t&&ne(c,"lang",e[0]),512&t&&ne(c,"clientstyling",e[9]),1024&t&&ne(c,"clientstylingurl",e[10]),8&t&&ne(h,"limitsdata",e[3]),32&t&&ne(h,"playercurrency",e[5]),1&t&&ne(h,"lang",e[0]),512&t&&ne(h,"clientstyling",e[9]),1024&t&&ne(h,"clientstylingurl",e[10]),16&t&&ne(p,"limitsdata",e[4]),32&t&&ne(p,"playercurrency",e[5]),1&t&&ne(p,"lang",e[0]),512&t&&ne(p,"clientstyling",e[9]),1024&t&&ne(p,"clientstylingurl",e[10])},d(e){e&&K(i),g&&g.d()}}}function Kr(e){let i;return{c(){ie(i=J("div"),"class","ModalLoader"),ie(i,"part","ModalLoader")},m(e,t){X(e,i,t)},p:z,d(e){e&&K(i)}}}function Jr(i){let n;function r(e){return e[12]?Kr:e[15]?Xr:Zr}let o=r(i),a=o(i);return{c(){n=J("div"),a.c(),this.c=z},m(e,t){X(e,n,t),a.m(n,null),i[22](n)},p(e,[t]){o===(o=r(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n,null)))},i:z,o:z,d(e){e&&K(n),a.d(),i[22](null)}}}customElements.get("player-account-gaming-limits-confirmation-modal")||customElements.define("player-account-gaming-limits-confirmation-modal",class extends _e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;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, #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-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;color:var(--emfe-w-color-secondary, #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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},rr,nr,T,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["modaltext","modalsource","lang","clientstyling","clientstylingurl","translationurl"]}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),h()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),h()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),h()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),h()}}),customElements.get("player-account-gaming-limits-group-edit")||customElements.define("player-account-gaming-limits-group-edit",class extends _e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emfe-w-color-primary, #D0046C)}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emfe-w-color-gray-300, #58586B);background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emfe-w-color-primary-50, #FBECF4);border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emfe-w-color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emfe-w-color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emfe-w-color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emfe-w-color-primary, #D0046C);cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emfe-w-color-error, #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),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},Tr,xr,T,{limitsdata:0,showsuccessnotification:1,showdeletenotification:2,playercurrency:3,lang:4,separatelimits:25,clientstyling:26,clientstylingurl:27,translationurl:28},null,[-1,-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["limitsdata","showsuccessnotification","showdeletenotification","playercurrency","lang","separatelimits","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),h()}get showsuccessnotification(){return this.$$.ctx[1]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),h()}get showdeletenotification(){return this.$$.ctx[2]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),h()}get playercurrency(){return this.$$.ctx[3]}set playercurrency(e){this.$$set({playercurrency:e}),h()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),h()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(e){this.$$set({separatelimits:e}),h()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[28]}set translationurl(e){this.$$set({translationurl:e}),h()}}),customElements.get("player-account-gaming-limits-info-card")||customElements.define("player-account-gaming-limits-info-card",class extends _e{constructor(e){super();var t=document.createElement("style");t.textContent='@charset "UTF-8";:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.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-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emfe-w-color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emfe-w-color-secondary, #FD2839);border:1px solid var(--emfe-w-color-secondary, #FD2839)}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emfe-w-color-secondary, #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-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color: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 var(--emfe-w-color-primary, #D0046C);align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},qr,zr,T,{limitsdata:0,limitname:1,playercurrency:2,lang:3,clientstyling:4,clientstylingurl:5,translationurl:22},null,[-1,-1]),e&&(e.target&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}static get observedAttributes(){return["limitsdata","limitname","playercurrency","lang","clientstyling","clientstylingurl","translationurl"]}get limitsdata(){return this.$$.ctx[0]}set limitsdata(e){this.$$set({limitsdata:e}),h()}get limitname(){return this.$$.ctx[1]}set limitname(e){this.$$set({limitname:e}),h()}get playercurrency(){return this.$$.ctx[2]}set playercurrency(e){this.$$set({playercurrency:e}),h()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),h()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[22]}set translationurl(e){this.$$set({translationurl:e}),h()}});let Qr="Deposit Limit",eo="Wagering Limit",to="Loss Limit",io="Time Limit";function no(t,e,i){let n,r=(j(t,On,e=>i(16,n=e)),e)["depositlimit"],o=e["wageringlimit"],a=e["losslimit"],s=e["timelimit"],{showdeletenotification:l=!1}=e,{showsuccessnotification:u=!1}=e,{lang:c="en"}=e,{playercurrency:d=""}=e,{separatelimits:h="true"}=e,{clientstyling:m=""}=e,{clientstylingurl:p=""}=e,{translationurl:f=""}=e,g;Object.keys(Rn).forEach(e=>{Hn(e,Rn[e])});let y,v=!0,w=window.navigator.userAgent,b="PC"!==Nn(w),_="",L=!0;const x=window.matchMedia("(min-width: 768px)"),T=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},E=e=>{if(e.data)switch(e.data.type){case"PlayerLimitsData":i(0,c=e.data.limits.lang),i(1,r=e.data.limits.depositlimit),i(2,o=e.data.limits.wageringlimit),i(3,a=e.data.limits.losslimit),i(4,s=e.data.limits.timelimit),i(12,v=!1);break;case"EditPlayerAccountGamingLimits":i(13,y=e.data.edit),i(14,_=e.data.name),i(15,L=!1),window.postMessage({type:"EditPlayerLimit",name:_},window.location.href);break;case"PlayerAccountBackToLimitsView":i(15,L=!0);break;case"ProfileDetailsData":var t=e.data.profileDetails;i(5,d=t.currency)}};return ae(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)})),t.$$set=e=>{"depositlimit"in e&&i(1,r=e.depositlimit),"wageringlimit"in e&&i(2,o=e.wageringlimit),"losslimit"in e&&i(3,a=e.losslimit),"timelimit"in e&&i(4,s=e.timelimit),"showdeletenotification"in e&&i(6,l=e.showdeletenotification),"showsuccessnotification"in e&&i(7,u=e.showsuccessnotification),"lang"in e&&i(0,c=e.lang),"playercurrency"in e&&i(5,d=e.playercurrency),"separatelimits"in e&&i(8,h=e.separatelimits),"clientstyling"in e&&i(9,m=e.clientstyling),"clientstylingurl"in e&&i(10,p=e.clientstylingurl),"translationurl"in e&&i(20,f=e.translationurl)},t.$$.update=()=>{if(1&t.$$.dirty&&c&&(e=c,W.set(e)),2560&t.$$.dirty&&m&&g&&((e=document.createElement("style")).innerHTML=m,g.appendChild(e)),3072&t.$$.dirty&&p&&g){let e=new URL(p),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=>{Hn(e,t[e])})}).catch(e=>{console.log(e)})},[c,r,o,a,s,d,l,u,h,m,p,g,v,y,_,L,n,b,x,T,f,()=>T(),function(e){U[e?"unshift":"push"](()=>{g=e,i(11,g)})}]}class ro extends _e{constructor(e){super();var t=document.createElement("style");t.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-color-primary, #D0046C);padding:50px;max-width:760px}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emfe-w-color-primary, #D0046C);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-color-primary, #D0046C)}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),be(this,{target:this.shadowRoot,props:N(this.attributes),customElement:!0},no,Jr,T,{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&&X(e.target,this,e.anchor),e.props)&&(this.$set(e.props),h())}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}),h()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(e){this.$$set({wageringlimit:e}),h()}get losslimit(){return this.$$.ctx[3]}set losslimit(e){this.$$set({losslimit:e}),h()}get timelimit(){return this.$$.ctx[4]}set timelimit(e){this.$$set({timelimit:e}),h()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(e){this.$$set({showdeletenotification:e}),h()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(e){this.$$set({showsuccessnotification:e}),h()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),h()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(e){this.$$set({playercurrency:e}),h()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(e){this.$$set({separatelimits:e}),h()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),h()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),h()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),h()}}return customElements.get("player-account-gaming-limits")||customElements.define("player-account-gaming-limits",ro),ro});
4
4
  //# sourceMappingURL=player-account-gaming-limits.js.map