@everymatrix/player-profile-info 0.0.243 → 0.0.247

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,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(e){"use strict";var t;(t=e)&&"object"==typeof t&&0 in t;function f(){}function p(e){return e()}function h(){return Object.create(null)}function xr(e){e.forEach(p)}function d(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function oe(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Sr(e,t){e.appendChild(t)}function Ir(e,t,r){e.insertBefore(t,r||null)}function Nr(e){e.parentNode.removeChild(e)}function Cr(e){return document.createElement(e)}function Or(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Lr(e){return document.createTextNode(e)}function Dr(){return Lr(" ")}function a(){return Lr("")}function Br(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Mr(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function kr(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Rr(e,t){e.value=null==t?"":t}function Fr(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let ae;function y(e){ae=e}const m=[],se=[],n=[],i=[],g=Promise.resolve();let b=!1;function Ur(e){n.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),xr(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ur))}}(t.$$)}for(y(null),m.length=0;se.length;)se.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,m.length);for(;i.length;)i.pop()();b=!1,o=!1,s.clear()}}const E=new Set;function l(n,e,t,r,i,o,a=[-1]){var s,l=ae;y(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),b||(b=!0,g.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,xr(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const n=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(n),n.forEach(Nr)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(E.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:a,after_update:s}=t.$$;i&&i.m(e,r),n||Ur(()=>{var e=o.map(p).filter(d);a?a.push(...e):xr(e),t.$$.on_mount=[]}),s.forEach(Ur)}(n,e.target,e.anchor,e.customElement),v()}y(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){xr(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(xr(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var c,P,w="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==w&&w,_="URLSearchParams"in w,T="Symbol"in w&&"iterator"in Symbol,A="FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(e){return!1}}(),x="FormData"in w,S="ArrayBuffer"in w;function I(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 N(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return T&&(e[Symbol.iterator]=function(){return e}),e}function O(t){this.map={},t instanceof O?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 L(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function D(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function B(e){var t=new FileReader,r=D(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function k(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:A&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:x&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():S&&A&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(e)||P(e))?this._bodyArrayBuffer=M(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):_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A&&(this.blob=function(){var e=L(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?L(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(B)}),this.text=function(){var e,t,r=L(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=D(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},x&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}S&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),O.prototype.append=function(e,t){e=I(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},O.prototype.delete=function(e){delete this.map[I(e)]},O.prototype.get=function(e){return e=I(e),this.has(e)?this.map[e]:null},O.prototype.has=function(e){return this.map.hasOwnProperty(I(e))},O.prototype.set=function(e,t){this.map[I(e)]=N(t)},O.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},O.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},O.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},O.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},T&&(O.prototype[Symbol.iterator]=O.prototype.entries);var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function F(e,t){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof F){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new O(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 O(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<R.indexOf(e)?e:r),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||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function U(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function G(e,t){if(!(this instanceof G))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 O(t.headers),this.url=t.url||"",this._initBody(e)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})},k.call(F.prototype),k.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new O(this.headers),url:this.url})},G.error=function(){var e=new G(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];G.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new G(null,{status:t,headers:{location:e}})};var $=w.DOMException;try{new $}catch(e){($=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),$.prototype.constructor=$}function z(n,a){return new Promise(function(i,e){var t=new F(n,a);if(t.signal&&t.signal.aborted)return e(new $("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new O,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new G(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 $("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&w.location.href?w.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&&(A?o.responseType="blob":S&&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 O?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,N(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}z.polyfill=!0,w.fetch||(w.fetch=z,w.Headers=O,w.Request=F,w.Response=G),self.fetch.bind(self);var W=function(e,t){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function X(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.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 H(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function Q(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function q(e){return"function"==typeof e}function K(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 Y=K(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 Z(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var J=(te.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=X(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(q(o))try{o()}catch(e){i=e instanceof Y?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=X(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{ne(c)}catch(e){i=null!=i?i:[],e instanceof Y?i=Q(Q([],H(i)),H(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Y(i)}},te.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ne(e);else{if(e instanceof te){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},te.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},te.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},te.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Z(t,e)},te.prototype.remove=function(e){var t=this._teardowns;t&&Z(t,e),e instanceof te&&e._removeParent(this)},te.EMPTY=((It=new te).closed=!0,It),te),ee=J.EMPTY;function te(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function re(e){return e instanceof J||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function ne(e){q(e)?e():e.unsubscribe()}var ie=void 0,le=!1,ue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Q([],H(e)))};function ce(){}function fe(e){e()}var pe,he,de=(V(ge,he=J),ge.create=function(e,t,r){return new ye(e,t,r)},ge.prototype.next=function(e){this.isStopped||this._next(e)},ge.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ge.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ge.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,he.prototype.unsubscribe.call(this),this.destination=null)},ge.prototype._next=function(e){this.destination.next(e)},ge.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ge.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ge),ye=(V(me,pe=de),me);function me(e,t,r){var n,i,o=pe.call(this)||this;return q(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&le?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?be(i):ce,error:be(null!=t?t:ve),complete:r?be(r):ce},o}function ge(e){var t=he.call(this)||this;return t.isStopped=!1,e?re(t.destination=e)&&e.add(t):t.destination=Ee,t}function be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Q([],H(e)))}catch(e){t=e,ue(function(){throw t})}}}function ve(e){throw e}var Ee={closed:!0,next:ce,error:ve,complete:ce},Pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(e){return e}var _e=(Te.prototype.lift=function(e){var t=new Te;return t.source=this,t.operator=e,t},Te.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof de||n&&q(n.next)&&q(n.error)&&q(n.complete)&&re(n)?e:new ye(e,t,r);return fe(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Te.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Te.prototype.forEach=function(n,e){var i=this;return new(e=Ae(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Te.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Te.prototype[Pe]=function(){return this},Te.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?we:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Te.prototype.toPromise=function(e){var n=this;return new(e=Ae(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Te.create=function(e){return new Te(e)},Te);function Te(e){e&&(this._subscribe=e)}function Ae(e){return null!==(e=null!=e?e:ie)&&void 0!==e?e:Promise}var xe,Se,Ie,Ne=K(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ce=(V(ke,Ie=_e),ke.prototype.lift=function(e){var t=new Oe(this,this);return t.operator=e,t},ke.prototype._throwIfClosed=function(){if(this.closed)throw new Ne},ke.prototype.next=function(o){var a=this;fe(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=X(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},ke.prototype.error=function(t){var r=this;fe(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},ke.prototype.complete=function(){var t=this;fe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},ke.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ke.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),ke.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ie.prototype._trySubscribe.call(this,e)},ke.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},ke.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ee:(n.push(e),new J(function(){return Z(n,e)}))},ke.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},ke.prototype.asObservable=function(){var e=new _e;return e.source=this,e},ke.create=function(e,t){return new Oe(e,t)},ke),Oe=(V(Me,Se=Ce),Me.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Me.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Me.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Me.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ee},Me),Le={now:function(){return(Le.delegate||Date).now()},delegate:void 0},De=(V(Be,xe=Ce),Be.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),xe.prototype.next.call(this,e)},Be.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Be.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},Be);function Be(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Le);var n=xe.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Me(e,t){var r=Se.call(this)||this;return r.destination=e,r.source=t,r}function ke(){var e=Ie.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Re=[],Fe={};const Ue=[];function Ge(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!Ue.length;for(let e=0;e<a.length;e+=1){const o=a[e];o[1](),Ue.push(o,n)}if(e){for(let e=0;e<Ue.length;e+=2)Ue[e][0](Ue[e+1]);Ue.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(o=i(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function je(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Ge(t,t=>{let r=!1;const n=[];let i=0,o=f;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),c?t(e):o=d(e)?e:f)},e=u.map((e,t)=>oe(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){xr(e),o()}}).subscribe}}var $e=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ze));var t},ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function We(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe(Array.isArray(e)?[]:{},e,t):e}function Ve(e,t,r){return e.concat(t).map(function(e){return We(e,r)})}function Xe(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function He(e,t){try{return t in e}catch(e){return!1}}function Qe(n,i,o){var a={};return o.isMergeableObject(n)&&Xe(n).forEach(function(e){a[e]=We(n[e],o)}),Xe(i).forEach(function(t){var e,r;(!He(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(He(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return qe;var e=o.customMerge(t);return"function"==typeof e?e:qe}()(n[t],i[t],o):a[t]=We(i[t],o))}),a}function qe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Ve,r.isMergeableObject=r.isMergeableObject||$e,r.cloneUnlessOtherwiseSpecified=We;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Qe(e,t,r):We(t,r)}qe.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return qe(e,t,r)},{})};var Ke=qe,Ye=function(e,t){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Je,et,tt,rt=function(){return(rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function nt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function it(e){return e.type===et.literal}function ot(e){return e.type===et.number}function at(e){return e.type===et.date}function st(e){return e.type===et.time}function lt(e){return e.type===et.select}function ut(e){return e.type===et.plural}function ct(e){return e.type===et.tag}function ft(e){return e&&"object"==typeof e&&e.type===tt.number}function pt(e){return e&&"object"==typeof e&&e.type===tt.dateTime}(Nt=Je=Je||{})[Nt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Nt[Nt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Nt[Nt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Nt[Nt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Nt[Nt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Nt[Nt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Nt[Nt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Nt[Nt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Nt[Nt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Nt[Nt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Nt[Nt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Nt[Nt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Nt[Nt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Nt[Nt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Nt[Nt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Nt[Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Nt[Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Nt[Nt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Nt[Nt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Nt[Nt.INVALID_TAG=23]="INVALID_TAG",Nt[Nt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Nt[Nt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Nt[Nt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ct=et=et||{})[Ct.literal=0]="literal",Ct[Ct.argument=1]="argument",Ct[Ct.number=2]="number",Ct[Ct.date=3]="date",Ct[Ct.time=4]="time",Ct[Ct.select=5]="select",Ct[Ct.plural=6]="plural",Ct[Ct.pound=7]="pound",Ct[Ct.tag=8]="tag",(Ot=tt=tt||{})[Ot.number=0]="number",Ot[Ot.dateTime=1]="dateTime";var ht=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,dt=/(?:[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 yt,mt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?$/g,vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Et=/^(0+)$/;function Pt(e){var n={};return e.replace(bt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function wt(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 _t(e){return wt(e)||{}}function Tt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.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=i.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=rt(rt(rt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return rt(rt({},e),_t(t))},{}));continue;case"engineering":a=rt(rt(rt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return rt(rt({},e),_t(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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(vt,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)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(Et.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(gt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gt,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),i.options.length&&(a=rt(rt({},a),Pt(i.options[0])))}else bt.test(i.stem)?a=rt(rt({},a),Pt(i.stem)):((n=wt(i.stem))&&(a=rt(rt({},a),n)),(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Et.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=rt(rt({},a),n)))}return a}var At=new RegExp("^"+ht.source+"*"),xt=new RegExp(ht.source+"*$");function St(e,t){return{start:e,end:t}}var It=!!String.prototype.startsWith,Pe=!!String.fromCodePoint,Ce=!!Object.fromEntries,Nt=!!String.prototype.codePointAt,Ct=!!String.prototype.trimStart,Ot=!!String.prototype.trimEnd,Lt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ht=!0;try{ht="a"===(null===(yt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===yt?void 0:yt[0])}catch(e){ht=!1}var Dt,Bt,Mt=It?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},kt=Pe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Rt=Ce?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Ft=Nt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Ut=Ct?function(e){return e.trimStart()}:function(e){return e.replace(At,"")},Gt=Ot?function(e){return e.trimEnd()}:function(e){return e.replace(xt,"")};function jt(e,t){return new RegExp(e,t)}Bt=ht?(Dt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Dt.lastIndex=t,null!==(e=Dt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Ft(e,t);if(void 0===i||Vt(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return kt.apply(void 0,n)};var $t=(zt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},zt.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Je.UNMATCHED_CLOSING_TAG,St(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Wt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:et.pound,location:St(o,this.clonePosition())})}}}return{val:n,err:null}},zt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:et.literal,value:"<"+n+"/>",location:St(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Wt(this.char()))return this.error(Je.INVALID_TAG,St(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(Je.UNMATCHED_CLOSING_TAG,St(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:et.tag,value:n,children:e,location:St(r,this.clonePosition())},err:null}:this.error(Je.INVALID_TAG,St(t,this.clonePosition())))}return this.error(Je.UNCLOSED_TAG,St(r,this.clonePosition()))}return this.error(Je.INVALID_TAG,St(r,this.clonePosition()))},zt.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())},zt.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=St(r,this.clonePosition());return{val:{type:et.literal,value:n,location:r},err:null}},zt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Wt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},zt.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return kt.apply(void 0,t)},zt.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),kt(r))},zt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Je.EMPTY_ARGUMENT,St(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Je.MALFORMED_ARGUMENT,St(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:et.argument,value:n,location:St(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Je.MALFORMED_ARGUMENT,St(r,this.clonePosition()))}},zt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Bt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:St(e,this.clonePosition())}},zt.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Je.EXPECT_ARGUMENT_TYPE,St(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===(f=Gt(p.val)).length)return this.error(Je.EXPECT_ARGUMENT_STYLE,St(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:St(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=St(n,this.clonePosition());if(l&&Mt(null==l?void 0:l.style,"::",0)){u=Ut(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:et.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(Je.EXPECT_DATE_TIME_SKELETON,c);var f={type:tt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(dt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.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":i.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""}),i):{}};return{val:{type:"date"===a?et.date:et.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?et.number:"date"===a?et.date:et.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Je.EXPECT_SELECT_ARGUMENT_OPTIONS,St(l,rt({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,St(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=St(n,this.clonePosition());return"select"===a?{val:{type:et.select,value:r,options:Rt(c.val),location:h},err:null}:{val:{type:et.plural,value:r,options:Rt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Je.INVALID_ARGUMENT_TYPE,St(o,s))}},zt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},zt.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,St(r,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}},zt.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(mt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Je.INVALID_NUMBER_SKELETON,t)}return{val:{type:tt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Tt(r):{}},err:null}},zt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!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(Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,Je.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=St(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Je.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,St(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;o.push([s,{value:c.val,location:St(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?Je.EXPECT_SELECT_ARGUMENT_SELECTOR:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,St(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Je.MISSING_OTHER_CLAUSE,St(this.clonePosition(),this.clonePosition())):{val:o,err:null}},zt.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=St(n,this.clonePosition());return i?Lt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},zt.prototype.offset=function(){return this.position.offset},zt.prototype.isEOF=function(){return this.offset()===this.message.length},zt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},zt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ft(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},zt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},zt.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))},zt.prototype.bumpIf=function(e){if(Mt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},zt.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},zt.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},zt.prototype.bumpSpace=function(){for(;!this.isEOF()&&Vt(this.char());)this.bump()},zt.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},zt);function zt(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Wt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Vt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Xt(e,t){t=rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new $t(e,t).parse();if(r.err){e=SyntaxError(Je[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,lt(e)||ut(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ot(e)&&ft(e.style)||(at(e)||st(e))&&pt(e.style)?delete e.style.location:ct(e)&&r(e.children)})}(r.val),r.val}function Ht(e,t){var r=t&&t.cache?t.cache:er,n=t&&t.serializer?t.serializer:Yt;return(t&&t.strategy?t.strategy:function(e,t){return Kt(e,this,1===e.length?Qt:qt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Qt(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function qt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Kt(e,t,r,n,i){return r.bind(t,e,n,i)}var Yt=function(){return JSON.stringify(arguments)};function Zt(){this.cache=Object.create(null)}Zt.prototype.has=function(e){return e in this.cache},Zt.prototype.get=function(e){return this.cache[e]},Zt.prototype.set=function(e,t){this.cache[e]=t};var Jt,er={create:function(){return new Zt}},tr={variadic:function(e,t){return Kt(e,this,qt,t.cache.create(),t.serializer)},monadic:function(e,t){return Kt(e,this,Qt,t.cache.create(),t.serializer)}};(ht=Jt=Jt||{}).MISSING_VALUE="MISSING_VALUE",ht.INVALID_VALUE="INVALID_VALUE",ht.MISSING_INTL_API="MISSING_INTL_API";var rr,nr,ir,or,ar,sr=(Ze(dr,ar=Error),dr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},dr),lr=(Ze(hr,or=sr),hr),ur=(Ze(pr,ir=sr),pr),cr=(Ze(fr,nr=sr),fr);function fr(e,t){return nr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Jt.MISSING_VALUE,t)||this}function pr(e,t,r){return ir.call(this,'Value for "'+e+'" must be of type '+t,Jt.INVALID_VALUE,r)||this}function hr(e,t,r,n){return or.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Jt.INVALID_VALUE,n)||this}function dr(e,t,r){e=ar.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function yr(e,t,r,n,i,o,a){if(1===e.length&&it(e[0]))return[{type:rr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(it(c))s.push({type:rr.literal,value:c.value});else if(c.type===et.pound)"number"==typeof o&&s.push({type:rr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new cr(f,a);var p=i[f];if(c.type===et.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?rr.literal:rr.object,value:p});else if(at(c)){var h="string"==typeof c.style?n.date[c.style]:pt(c.style)?c.style.parsedOptions:void 0;s.push({type:rr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(st(c))h="string"==typeof c.style?n.time[c.style]:pt(c.style)?c.style.parsedOptions:void 0,s.push({type:rr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(ot(c))(h="string"==typeof c.style?n.number[c.style]:ft(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:rr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ct(c)){var d=c.children,y=c.value,f=i[y];if("function"!=typeof f)throw new ur(y,"function",a);d=f(yr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?rr.literal:rr.object,value:e}}))}if(lt(c)){if(!(m=c.options[p]||c.options.other))throw new lr(c.value,p,Object.keys(c.options),a);s.push.apply(s,yr(m.value,t,r,n,i))}else if(ut(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new sr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Jt.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new lr(c.value,p,Object.keys(c.options),a);s.push.apply(s,yr(m.value,t,r,n,i,p-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===rr.literal&&t.type===rr.literal?r.value+=t.value:e.push(t),e},[])}function mr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(ht=rr=rr||{})[ht.literal=0]="literal",ht[ht.object=1]="object";var gr=(Object.defineProperty(br,"defaultLocale",{get:function(){return br.memoizedDefaultLocale||(br.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),br.memoizedDefaultLocale},enumerable:!1,configurable:!0}),br.memoizedDefaultLocale=null,br.__parse=Xt,br.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"}}},br);function br(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=br.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===rr.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 yr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!br.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=br.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=br.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?rt(rt(rt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=rt(rt({},r[t]),n[t]||{}),e},{})):r),e},rt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t)))},{cache:mr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:tr.variadic}),getDateTimeFormat:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t)))},{cache:mr(n.dateTime),strategy:tr.variadic}),getPluralRules:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t)))},{cache:mr(n.pluralRules),strategy:tr.variadic})}}const vr={},Er=(t,r)=>{if(null!=r){if(r in vr&&t in vr[r])return vr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,_r(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Pr[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in vr||(vr[i]={}),n in vr[i]||(vr[i][n]=a),a)}}};let Pr;const wr=Ge({});function _r(e){return e in Pr}function Tr(t,...r){delete vr[t],wr.update(e=>(e[t]=Ke.all([e[t]||{},...r]),e))}je([wr],([e])=>Object.keys(e)),wr.subscribe(e=>Pr=e);const Ar={};function Gr(e){return Ar[e]}function jr(e){return Kr(e).some(e=>{return null===(e=Gr(e))||void 0===e?void 0:e.size})}const $r={};function zr(e){if(!jr(e))return e in $r?$r[e]:void 0;const t=Kr(e).map(e=>{var t=Gr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return $r[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Ar[e].delete(t),0===Ar[e].size&&delete Ar[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Tr(t,...e))}(e))).then(()=>jr(e)?zr(e):void delete $r[e]),$r[e]}function Wr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Vr={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Xr=Ge(!1);let Hr;const Qr=Ge(null);function qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Vr.fallbackLocale){e=qr(e);return t?[...new Set([...e,...qr(t)])]:e}Qr.subscribe(e=>{Hr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Yr=Qr.set;Qr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if(_r(r))return r}}}(t)&&jr(t)){var{loadingDelay:r}=Vr;let e;return"undefined"!=typeof window&&null!=Hr&&r?e=window.setTimeout(()=>Xr.set(!0),r):Xr.set(!0),zr(t).then(()=>{Yr(t)}).finally(()=>{clearTimeout(e),Xr.set(!1)})}return Yr(t)},Qr.update=e=>Yr(e(Hr));const Zr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Jr=(e,t)=>{var{formats:r}=Vr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},en=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Jr("number",r)),new Intl.NumberFormat(t,e)}),tn=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Jr("date",r):0===Object.keys(e).length&&(e=Jr("date","short")),new Intl.DateTimeFormat(t,e)}),rn=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Jr("time",r):0===Object.keys(e).length&&(e=Jr("time","short")),new Intl.DateTimeFormat(t,e)}),nn=Zr((e,t=Hr)=>new gr(e,t,Vr.formats,{ignoreTag:Vr.ignoreTag})),on=je([Qr,wr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Hr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Er(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Vr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${jr(Hr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let a=o;try{a=nn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return tn(Object.assign({locale:t},e))})(t).format(e)),je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),je([Qr,wr],()=>(e,t=Hr)=>Er(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Re.indexOf(e)&&(t=new De(t),Fe[e]=t,Re.push(e)),Fe[e]}};const an={en:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 20 characters maximum.",userEmail:"Email:",securityQuestion:"Security Question:",securityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",firstName:"First name:",securityAnswer:"Security Answer:",securityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}},ro:{playerProfile:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 20 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"}},tr:{playerProfile:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"First name:",securityAnswer:"İlk adı:",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"}}};function sn(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t){var n=window.cstmNativeBridge.eventListeners[r];return window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],n&&n.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"!=typeof t)return console.error("Native Bridge `"+e+"` method is not defined"),!1;e=Array.prototype.slice.call(arguments,1);return t.apply(this,e),!0};var ln=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},un=function(e,...t){try{return sn(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},cn=function(e,t){try{return sn(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function fn(e,t,r){const n=e.slice();return n[93]=t[r],n}function pn(r){let i,n,o,a,s,l,u,c,f,p,h,d,y,m,g,b,v,E,P,w,_,T,A,x,e,S,I,N,C,O,L,D,B,M,k,R,F,U,G,j,$,z,W,V,X,H,Q,q,K,Y,Z,J,ee,te,re,ne,ie,oe,ae,se,le,ue,ce,fe,pe,he,de,ye,me,ge,be,ve,Ee,Pe,we,_e,Te,Ae,xe,Se,Ie,Ne,Ce,Oe,Le,De,Be,Me,ke,Re,Fe,Ue,Ge,je,$e,ze,We,Ve,Xe,He,Qe,qe,Ke,Ye,Ze,Je,et,tt,rt,nt,it,ot,at,st,lt,ut,ct,ft,pt,ht,dt,yt,mt,gt,bt,vt,Et,Pt,wt,_t,Tt,At,xt,St,It,Nt,Ct,Ot,Lt,Dt,Bt,Mt,kt,Rt,Ft,Ut,Gt,jt,$t,zt,Wt,Vt,Xt,Ht,Qt=r[34]("playerProfile.title")+"",qt=r[34]("playerProfile.personalDetails")+"",Kt=r[34]("playerProfile.userName")+"",Yt=r[34]("playerProfile.userPhone")+"",Zt=r[34]("playerProfile.securityQuestion")+"",Jt=r[34]("playerProfile.securityAnswer")+"",er=r[34]("playerProfile.userEmail")+"",tr=r[34]("playerProfile.dateOfBirth")+"",rr=r[34]("playerProfile.firstName")+"",nr=r[34]("playerProfile.lastName")+"",ir=r[34]("playerProfile.userTitle")+"",or=r[34]("playerProfile.currency")+"",ar=r[34]("playerProfile.locationDetails")+"",sr=r[34]("playerProfile.userCountry")+"",lr=r[34]("playerProfile.userCity")+"",ur=r[34]("playerProfile.userAddress")+"",cr=r[34]("playerProfile.userPostalCode")+"",fr=r[34]("playerProfile.userNotifications")+"",pr=r[34]("playerProfile.userSMSNotification")+"",hr=r[34]("playerProfile.userEmailNotification")+"",dr=r[34]("playerProfile.userProfileSaveChanges")+"",yr=r[35]&&function(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m=r[34]("playerProfile.title")+"";return{c(){n=Cr("div"),i=Or("svg"),o=Or("defs"),a=Or("style"),s=Lr(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=Or("g"),u=Or("g"),c=Or("path"),f=Dr(),p=Cr("h2"),h=Lr(m),Mr(c,"class","aaa"),Mr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),Mr(c,"transform","translate(15 15) rotate(180)"),Mr(u,"transform","translate(20 158)"),Mr(l,"transform","translate(-20 -158)"),Mr(i,"xmlns","http://www.w3.org/2000/svg"),Mr(i,"width","15"),Mr(i,"height","15"),Mr(i,"viewBox","0 0 15 15"),Mr(p,"class","MyAccountCategoryTitleMobile"),Mr(n,"class","MenuReturnButton")},m(e,t){Ir(e,n,t),Sr(n,i),Sr(i,o),Sr(o,a),Sr(a,s),Sr(i,l),Sr(l,u),Sr(u,c),Sr(n,f),Sr(n,p),Sr(p,h),d||(y=Br(n,"click",r[53]),d=!0)},p(e,t){8&t[1]&&m!==(m=e[34]("playerProfile.title")+"")&&kr(h,m)},d(e){e&&Nr(n),d=!1,y()}}}(r),mr=r[15],gr=[];for(let e=0;e<mr.length;e+=1)gr[e]=mn(fn(r,mr,e));let br=r[22]&&gn(r),vr=r[20]&&bn(r),Er=r[21]&&vn(r),Pr=r[17]&&En(r),wr=r[19]&&Pn(r),_r=r[18]&&wn(r),Tr=r[24]&&_n(r),Ar=r[23]&&Tn(r);return{c(){i=Cr("form"),yr&&yr.c(),n=Dr(),o=Cr("h2"),a=Lr(Qt),s=Dr(),l=Cr("div"),u=Cr("h3"),c=Lr(qt),f=Dr(),p=Cr("section"),h=Cr("div"),d=Cr("label"),y=Lr(Kt),m=Dr(),g=Cr("input"),b=Dr(),v=Cr("div"),E=Cr("label"),P=Lr(Yt),w=Dr(),_=Cr("div"),T=Cr("select");for(let e=0;e<gr.length;e+=1)gr[e].c();A=Dr(),x=Cr("input"),S=Dr(),br&&br.c(),N=Dr(),C=Cr("div"),O=Cr("label"),L=Lr(Zt),D=Dr(),B=Cr("input"),k=Dr(),vr&&vr.c(),F=Dr(),U=Cr("div"),G=Cr("label"),j=Lr(Jt),$=Dr(),z=Cr("input"),V=Dr(),Er&&Er.c(),H=Dr(),Q=Cr("div"),q=Cr("label"),K=Lr(er),Y=Dr(),Z=Cr("input"),J=Dr(),ee=Cr("div"),te=Cr("label"),re=Lr(tr),ne=Dr(),ie=Cr("input"),oe=Dr(),ae=Cr("div"),se=Cr("label"),le=Lr(rr),ue=Dr(),ce=Cr("input"),fe=Dr(),pe=Cr("div"),he=Cr("label"),de=Lr(nr),ye=Dr(),me=Cr("input"),ge=Dr(),be=Cr("div"),ve=Cr("label"),Ee=Lr(ir),Pe=Dr(),we=Cr("input"),_e=Dr(),Te=Cr("div"),Ae=Cr("label"),xe=Lr(or),Se=Dr(),Ie=Cr("input"),Ne=Dr(),Ce=Cr("div"),Oe=Cr("h3"),Le=Lr(ar),De=Dr(),Be=Cr("section"),Me=Cr("div"),ke=Cr("label"),Re=Lr(sr),Fe=Dr(),Ue=Cr("input"),je=Dr(),$e=Cr("div"),ze=Cr("label"),We=Lr(lr),Ve=Dr(),Xe=Cr("input"),qe=Dr(),Pr&&Pr.c(),Ye=Dr(),Ze=Cr("div"),Je=Cr("label"),et=Lr(ur),tt=Dr(),rt=Cr("input"),it=Dr(),wr&&wr.c(),at=Dr(),st=Cr("div"),lt=Cr("label"),ut=Lr(cr),ct=Dr(),ft=Cr("input"),dt=Dr(),_r&&_r.c(),mt=Dr(),gt=Cr("div"),bt=Cr("h3"),vt=Lr(fr),Et=Dr(),Pt=Cr("section"),wt=Cr("div"),_t=Cr("label"),Tt=Cr("input"),At=Dr(),xt=Cr("span"),St=Dr(),It=Cr("span"),Nt=Lr(pr),Ct=Dr(),Ot=Cr("div"),Lt=Cr("label"),Dt=Cr("input"),Bt=Dr(),Mt=Cr("span"),kt=Dr(),Rt=Cr("span"),Ft=Lr(hr),Ut=Dr(),Tr&&Tr.c(),Gt=Dr(),jt=Cr("section"),$t=Cr("div"),zt=Lr(dr),Vt=Dr(),Ar&&Ar.c(),Mr(o,"class","MyAccountCategoryTitle "+(r[35]?"MyAccountCategoryTitleNone":"")),Mr(l,"class","PlayerNotificationsHeader"),Mr(g,"type","text"),Mr(g,"class","FieldDisabled"),g.value=r[33],g.readOnly=!0,Mr(h,"class","PlayerInfoBox"),void 0===r[11]&&Ur(()=>r[54].call(T)),Mr(x,"type","text"),Mr(x,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Mr(x,"placeholder",e=r[2]?r[28].number:""),Mr(_,"class","PlayerPhoneNumber"),Mr(v,"class",I="PlayerInfoBox "+(r[22]?"InvalidField":"")),Mr(B,"type","text"),Mr(B,"placeholder",M=r[2]?r[41]:""),Mr(C,"class",R="PlayerInfoBox "+(r[20]?"InvalidField":"")),Mr(z,"type","text"),Mr(z,"placeholder",W=r[2]?r[40]:""),Mr(U,"class",X="PlayerInfoBox "+(r[21]?"InvalidField":"")),Mr(Z,"type","email"),Mr(Z,"class","FieldDisabled"),Z.value=r[29],Z.readOnly=!0,Mr(Q,"class","PlayerInfoBox"),Mr(ie,"type","text"),Mr(ie,"class","FieldDisabled"),ie.value=r[26],ie.readOnly=!0,Mr(ee,"class","PlayerInfoBox"),Mr(ce,"type","text"),Mr(ce,"class","FieldDisabled"),ce.value=r[30],ce.readOnly=!0,Mr(ae,"class","PlayerInfoBox"),Mr(me,"type","text"),Mr(me,"class","FieldDisabled"),me.value=r[32],me.readOnly=!0,Mr(pe,"class","PlayerInfoBox"),Mr(we,"type","text"),Mr(we,"class","FieldDisabled"),we.value=r[31],we.readOnly=!0,Mr(be,"class","PlayerInfoBox"),Mr(Ie,"type","text"),Mr(Ie,"class","FieldDisabled"),Ie.value=r[27],Ie.readOnly=!0,Mr(Te,"class","PlayerInfoBox"),Mr(p,"class","PlayerDetailsContent"),Mr(Ce,"class","PlayerLocationHeader"),Mr(Ue,"type","text"),Mr(Ue,"class","PlayerCountry FieldDisabled"),Mr(Ue,"placeholder",r[0]),Ue.value=Ge=r[14].Name,Ue.readOnly=!0,Mr(Me,"class","PlayerInfoBox"),Mr(Xe,"type","text"),Mr(Xe,"placeholder",He=r[2]?r[38]:""),Xe.value=Qe=r[2]?"":r[25].city,Mr($e,"class",Ke="PlayerInfoBox "+(r[17]?"InvalidField":"")),Mr(rt,"placeholder",r[37]),Mr(rt,"type","text"),rt.value=nt=r[2]?"":r[25].address,Mr(Ze,"class",ot="PlayerInfoBox "+(r[19]?"InvalidField":"")),Mr(ft,"type","number"),Mr(ft,"placeholder",pt=r[2]?r[39]:""),ft.value=ht=r[2]?"":r[25].postalCode,Mr(st,"class",yt="PlayerInfoBox "+(r[18]?"InvalidField":"")),Mr(Be,"class","PlayerLocationContent"),Mr(gt,"class","PlayerNotificationsHeader"),Mr(Tt,"type","checkbox"),Mr(Tt,"id","SMSNotification"),Mr(Tt,"name","Enable SMS notifications"),Mr(xt,"class","Checkmark"),Mr(_t,"for","SMSNotification"),Mr(wt,"class","PlayerNotificationBox"),Mr(Dt,"type","checkbox"),Mr(Dt,"id","EmailNotification"),Mr(Dt,"name","Enable Emails"),Mr(Mt,"class","Checkmark"),Mr(Lt,"for","EmailNotification"),Mr(Ot,"class","PlayerNotificationBox"),Mr(Pt,"class","PlayerNotificationsCheckboxArea"),Mr($t,"class",Wt="PlayerDetailsSaveButton "+(r[13]&&r[16]?"":"PlayerButtonDisabled")),Mr(jt,"class","PlayerDetailsButtonsArea "+(r[35]?"PlayerDetailsButtonsAreaMobile":"")),Mr(i,"class","PlayerInfoWrapper "+(r[35]?"PlayerInfoWrapperMobile":"")+" "+(r[36].matches&&r[35]?"PlayerInfoWrapperTablet":""))},m(e,t){Ir(e,i,t),yr&&yr.m(i,null),Sr(i,n),Sr(i,o),Sr(o,a),Sr(i,s),Sr(i,l),Sr(l,u),Sr(u,c),Sr(i,f),Sr(i,p),Sr(p,h),Sr(h,d),Sr(d,y),Sr(h,m),Sr(h,g),Sr(p,b),Sr(p,v),Sr(v,E),Sr(E,P),Sr(v,w),Sr(v,_),Sr(_,T);for(let e=0;e<gr.length;e+=1)gr[e].m(T,null);Fr(T,r[11]),Sr(_,A),Sr(_,x),Rr(x,r[12]),Sr(v,S),br&&br.m(v,null),Sr(p,N),Sr(p,C),Sr(C,O),Sr(O,L),Sr(C,D),Sr(C,B),Rr(B,r[9]),Sr(C,k),vr&&vr.m(C,null),Sr(p,F),Sr(p,U),Sr(U,G),Sr(G,j),Sr(U,$),Sr(U,z),Rr(z,r[10]),Sr(U,V),Er&&Er.m(U,null),Sr(p,H),Sr(p,Q),Sr(Q,q),Sr(q,K),Sr(Q,Y),Sr(Q,Z),Sr(p,J),Sr(p,ee),Sr(ee,te),Sr(te,re),Sr(ee,ne),Sr(ee,ie),Sr(p,oe),Sr(p,ae),Sr(ae,se),Sr(se,le),Sr(ae,ue),Sr(ae,ce),Sr(p,fe),Sr(p,pe),Sr(pe,he),Sr(he,de),Sr(pe,ye),Sr(pe,me),Sr(p,ge),Sr(p,be),Sr(be,ve),Sr(ve,Ee),Sr(be,Pe),Sr(be,we),Sr(p,_e),Sr(p,Te),Sr(Te,Ae),Sr(Ae,xe),Sr(Te,Se),Sr(Te,Ie),Sr(i,Ne),Sr(i,Ce),Sr(Ce,Oe),Sr(Oe,Le),Sr(i,De),Sr(i,Be),Sr(Be,Me),Sr(Me,ke),Sr(ke,Re),Sr(Me,Fe),Sr(Me,Ue),Sr(Be,je),Sr(Be,$e),Sr($e,ze),Sr(ze,We),Sr($e,Ve),Sr($e,Xe),r[62](Xe),Sr($e,qe),Pr&&Pr.m($e,null),Sr(Be,Ye),Sr(Be,Ze),Sr(Ze,Je),Sr(Je,et),Sr(Ze,tt),Sr(Ze,rt),r[64](rt),Sr(Ze,it),wr&&wr.m(Ze,null),Sr(Be,at),Sr(Be,st),Sr(st,lt),Sr(lt,ut),Sr(st,ct),Sr(st,ft),r[66](ft),Sr(st,dt),_r&&_r.m(st,null),Sr(i,mt),Sr(i,gt),Sr(gt,bt),Sr(bt,vt),Sr(i,Et),Sr(i,Pt),Sr(Pt,wt),Sr(wt,_t),Sr(_t,Tt),Tt.checked=r[6],Sr(_t,At),Sr(_t,xt),Sr(_t,St),Sr(_t,It),Sr(It,Nt),Sr(Pt,Ct),Sr(Pt,Ot),Sr(Ot,Lt),Sr(Lt,Dt),Dt.checked=r[7],Sr(Lt,Bt),Sr(Lt,Mt),Sr(Lt,kt),Sr(Lt,Rt),Sr(Rt,Ft),Sr(i,Ut),Tr&&Tr.m(i,null),Sr(i,Gt),Sr(i,jt),Sr(jt,$t),Sr($t,zt),Sr(i,Vt),Ar&&Ar.m(i,null),Xt||(Ht=[Br(T,"change",r[54]),Br(T,"change",r[55]),Br(x,"input",r[56]),Br(x,"keyup",r[42]),Br(x,"keyup",r[57]),Br(B,"input",r[58]),Br(B,"keyup",r[59]),Br(B,"blur",r[43]),Br(z,"input",r[60]),Br(z,"keyup",r[61]),Br(z,"blur",r[44]),Br(Xe,"blur",r[45]),Br(Xe,"keyup",r[63]),Br(rt,"blur",r[47]),Br(rt,"keyup",r[65]),Br(ft,"blur",r[46]),Br(ft,"keyup",r[67]),Br(Tt,"change",r[68]),Br(Tt,"change",r[50]),Br(Dt,"change",r[69]),Br(Dt,"change",r[50]),Br($t,"click",r[71])],Xt=!0)},p(t,r){if(t[35]&&yr.p(t,r),8&r[1]&&Qt!==(Qt=t[34]("playerProfile.title")+"")&&kr(a,Qt),8&r[1]&&qt!==(qt=t[34]("playerProfile.personalDetails")+"")&&kr(c,qt),8&r[1]&&Kt!==(Kt=t[34]("playerProfile.userName")+"")&&kr(y,Kt),4&r[1]&&g.value!==t[33]&&(g.value=t[33]),8&r[1]&&Yt!==(Yt=t[34]("playerProfile.userPhone")+"")&&kr(P,Yt),33587200&r[0]){let e;for(mr=t[15],e=0;e<mr.length;e+=1){var n=fn(t,mr,e);gr[e]?gr[e].p(n,r):(gr[e]=mn(n),gr[e].c(),gr[e].m(T,null))}for(;e<gr.length;e+=1)gr[e].d(1);gr.length=mr.length}34816&r[0]&&Fr(T,t[11]),268435460&r[0]&&e!==(e=t[2]?t[28].number:"")&&Mr(x,"placeholder",e),4096&r[0]&&x.value!==t[12]&&Rr(x,t[12]),t[22]?br?br.p(t,r):(br=gn(t),br.c(),br.m(v,null)):br&&(br.d(1),br=null),4194304&r[0]&&I!==(I="PlayerInfoBox "+(t[22]?"InvalidField":""))&&Mr(v,"class",I),8&r[1]&&Zt!==(Zt=t[34]("playerProfile.securityQuestion")+"")&&kr(L,Zt),4&r[0]&&M!==(M=t[2]?t[41]:"")&&Mr(B,"placeholder",M),512&r[0]&&B.value!==t[9]&&Rr(B,t[9]),t[20]?vr?vr.p(t,r):(vr=bn(t),vr.c(),vr.m(C,null)):vr&&(vr.d(1),vr=null),1048576&r[0]&&R!==(R="PlayerInfoBox "+(t[20]?"InvalidField":""))&&Mr(C,"class",R),8&r[1]&&Jt!==(Jt=t[34]("playerProfile.securityAnswer")+"")&&kr(j,Jt),4&r[0]&&W!==(W=t[2]?t[40]:"")&&Mr(z,"placeholder",W),1024&r[0]&&z.value!==t[10]&&Rr(z,t[10]),t[21]?Er?Er.p(t,r):(Er=vn(t),Er.c(),Er.m(U,null)):Er&&(Er.d(1),Er=null),2097152&r[0]&&X!==(X="PlayerInfoBox "+(t[21]?"InvalidField":""))&&Mr(U,"class",X),8&r[1]&&er!==(er=t[34]("playerProfile.userEmail")+"")&&kr(K,er),536870912&r[0]&&Z.value!==t[29]&&(Z.value=t[29]),8&r[1]&&tr!==(tr=t[34]("playerProfile.dateOfBirth")+"")&&kr(re,tr),67108864&r[0]&&ie.value!==t[26]&&(ie.value=t[26]),8&r[1]&&rr!==(rr=t[34]("playerProfile.firstName")+"")&&kr(le,rr),1073741824&r[0]&&ce.value!==t[30]&&(ce.value=t[30]),8&r[1]&&nr!==(nr=t[34]("playerProfile.lastName")+"")&&kr(de,nr),2&r[1]&&me.value!==t[32]&&(me.value=t[32]),8&r[1]&&ir!==(ir=t[34]("playerProfile.userTitle")+"")&&kr(Ee,ir),1&r[1]&&we.value!==t[31]&&(we.value=t[31]),8&r[1]&&or!==(or=t[34]("playerProfile.currency")+"")&&kr(xe,or),134217728&r[0]&&Ie.value!==t[27]&&(Ie.value=t[27]),8&r[1]&&ar!==(ar=t[34]("playerProfile.locationDetails")+"")&&kr(Le,ar),8&r[1]&&sr!==(sr=t[34]("playerProfile.userCountry")+"")&&kr(Re,sr),1&r[0]&&Mr(Ue,"placeholder",t[0]),16384&r[0]&&Ge!==(Ge=t[14].Name)&&Ue.value!==Ge&&(Ue.value=Ge),8&r[1]&&lr!==(lr=t[34]("playerProfile.userCity")+"")&&kr(We,lr),4&r[0]&&He!==(He=t[2]?t[38]:"")&&Mr(Xe,"placeholder",He),33554436&r[0]&&Qe!==(Qe=t[2]?"":t[25].city)&&Xe.value!==Qe&&(Xe.value=Qe),t[17]?Pr?Pr.p(t,r):(Pr=En(t),Pr.c(),Pr.m($e,null)):Pr&&(Pr.d(1),Pr=null),131072&r[0]&&Ke!==(Ke="PlayerInfoBox "+(t[17]?"InvalidField":""))&&Mr($e,"class",Ke),8&r[1]&&ur!==(ur=t[34]("playerProfile.userAddress")+"")&&kr(et,ur),33554436&r[0]&&nt!==(nt=t[2]?"":t[25].address)&&rt.value!==nt&&(rt.value=nt),t[19]?wr?wr.p(t,r):(wr=Pn(t),wr.c(),wr.m(Ze,null)):wr&&(wr.d(1),wr=null),524288&r[0]&&ot!==(ot="PlayerInfoBox "+(t[19]?"InvalidField":""))&&Mr(Ze,"class",ot),8&r[1]&&cr!==(cr=t[34]("playerProfile.userPostalCode")+"")&&kr(ut,cr),4&r[0]&&pt!==(pt=t[2]?t[39]:"")&&Mr(ft,"placeholder",pt),33554436&r[0]&&ht!==(ht=t[2]?"":t[25].postalCode)&&(ft.value=ht),t[18]?_r?_r.p(t,r):(_r=wn(t),_r.c(),_r.m(st,null)):_r&&(_r.d(1),_r=null),262144&r[0]&&yt!==(yt="PlayerInfoBox "+(t[18]?"InvalidField":""))&&Mr(st,"class",yt),8&r[1]&&fr!==(fr=t[34]("playerProfile.userNotifications")+"")&&kr(vt,fr),64&r[0]&&(Tt.checked=t[6]),8&r[1]&&pr!==(pr=t[34]("playerProfile.userSMSNotification")+"")&&kr(Nt,pr),128&r[0]&&(Dt.checked=t[7]),8&r[1]&&hr!==(hr=t[34]("playerProfile.userEmailNotification")+"")&&kr(Ft,hr),t[24]?Tr?Tr.p(t,r):(Tr=_n(t),Tr.c(),Tr.m(i,Gt)):Tr&&(Tr.d(1),Tr=null),8&r[1]&&dr!==(dr=t[34]("playerProfile.userProfileSaveChanges")+"")&&kr(zt,dr),73728&r[0]&&Wt!==(Wt="PlayerDetailsSaveButton "+(t[13]&&t[16]?"":"PlayerButtonDisabled"))&&Mr($t,"class",Wt),t[23]?Ar?Ar.p(t,r):(Ar=Tn(t),Ar.c(),Ar.m(i,null)):Ar&&(Ar.d(1),Ar=null)},d(e){e&&Nr(i),yr&&yr.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(gr,e),br&&br.d(),vr&&vr.d(),Er&&Er.d(),r[62](null),Pr&&Pr.d(),r[64](null),wr&&wr.d(),r[66](null),_r&&_r.d(),Tr&&Tr.d(),Ar&&Ar.d(),Xt=!1,xr(Ht)}}}function hn(e){let r;return{c(){r=Cr("div"),Mr(r,"class","ModalLoader")},m(e,t){Ir(e,r,t)},p:f,d(e){e&&Nr(r)}}}function dn(e){let r,n,i,o=e[93].Prefix+"";return{c(){r=Cr("option"),n=Lr(o),r.__value=i=e[93].Prefix,r.value=r.__value},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){32768&t[0]&&o!==(o=e[93].Prefix+"")&&kr(n,o),32768&t[0]&&i!==(i=e[93].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&Nr(r)}}}function yn(e){let r,n,i,o=e[93].Prefix+"";return{c(){r=Cr("option"),n=Lr(o),r.selected=!0,r.__value=i=e[93].Prefix,r.value=r.__value},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){32768&t[0]&&o!==(o=e[93].Prefix+"")&&kr(n,o),32768&t[0]&&i!==(i=e[93].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&Nr(r)}}}function mn(e){let r;function n(e){return e[93].Prefix===e[25].mobiePrefix?yn:dn}let i=n(e),o=i(e);return{c(){o.c(),r=a()},m(e,t){o.m(e,t),Ir(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&Nr(r)}}}function gn(e){let r,n,i=e[34]("playerProfile.userPhoneError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userPhoneError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function bn(e){let r,n,i=e[34]("playerProfile.securityQuestionError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.securityQuestionError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function vn(e){let r,n,i=e[34]("playerProfile.securityAnswerError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.securityAnswerError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function En(e){let r,n,i=e[34]("playerProfile.userCityError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userCityError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function Pn(e){let r,n,i=e[34]("playerProfile.userAddressError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userAddressError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function wn(e){let r,n,i=e[34]("playerProfile.userPostalCodeError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userPostalCodeError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function _n(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m,g,b=r[34]("playerProfile.userAppSettings")+"",v=r[34]("playerProfile.userBiometrics")+"";return{c(){n=Cr("div"),i=Cr("h3"),o=Lr(b),a=Dr(),s=Cr("section"),l=Cr("div"),u=Cr("label"),c=Cr("input"),f=Dr(),p=Cr("span"),h=Dr(),d=Cr("span"),y=Lr(v),Mr(n,"class","PlayerNotificationsHeader"),Mr(c,"type","checkbox"),Mr(c,"id","BiometricsEnabled"),Mr(c,"name","Biometric Enabled"),Mr(p,"class","Checkmark"),Mr(u,"for","Biometrics"),Mr(l,"class","PlayerNotificationBox"),Mr(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){Ir(e,n,t),Sr(n,i),Sr(i,o),Ir(e,a,t),Ir(e,s,t),Sr(s,l),Sr(l,u),Sr(u,c),c.checked=r[8],Sr(u,f),Sr(u,p),Sr(u,h),Sr(u,d),Sr(d,y),m||(g=[Br(c,"change",r[70]),Br(c,"change",r[50])],m=!0)},p(e,t){8&t[1]&&b!==(b=e[34]("playerProfile.userAppSettings")+"")&&kr(o,b),256&t[0]&&(c.checked=e[8]),8&t[1]&&v!==(v=e[34]("playerProfile.userBiometrics")+"")&&kr(y,v)},d(e){e&&Nr(n),e&&Nr(a),e&&Nr(s),m=!1,xr(g)}}}function Tn(e){let r,n,i,o=e[34]("playerProfile.userProfileConfirmationMessage")+"";return{c(){r=Cr("section"),n=Cr("p"),i=Lr(o),Mr(n,"class","PlayerDetailsConfirmSaveText"),Mr(r,"class","PlayerDetailsConfirmSave")},m(e,t){Ir(e,r,t),Sr(r,n),Sr(n,i)},p(e,t){8&t[1]&&o!==(o=e[34]("playerProfile.userProfileConfirmationMessage")+"")&&kr(i,o)},d(e){e&&Nr(r)}}}function An(e){let r;function n(e){return e[1]?hn:pn}let i=n(e),o=i(e);return{c(){o.c(),r=a(),this.c=f},m(e,t){o.m(e,t),Ir(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},i:f,o:f,d(e){o.d(e),e&&Nr(r)}}}function xn(t,e,r){let n;var i=on;t.$$.on_destroy.push(oe(i,e=>r(34,n=e)));let o,a,s,l,{endpoint:u=""}=e,{lang:c="en"}=e,{countrycode:f="IR"}=e,p=!0,h=window.navigator.userAgent,d="PC"!=((i=h).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),y=!0,m=!1,g=!1,b=!1,v="",E="",P="",w="",_=!1,T={Name:"I.e Ireland"},A=[],x=[],S=!1,I="",N="",C="",O=!1,L=!1,D=!1,B=!1;Object.keys(an).forEach(e=>{Tr(e,an[e])});e=window.matchMedia("(min-width: 768px)");let M={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},k={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},R={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:F,birth:U,city:G,currency:j,mobile:$,email:z,firstname:W,userTitles:V,language:X,lastname:H,postalCode:Q,securityAnswer:q,securityQuestion:K,username:Y}=R;const Z=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(2,y=!1),R=e.data.profileDetails,r(33,Y=R.username),r(28,$=R.mobile),r(29,z=R.email),r(30,W=R.firstname),r(32,H=R.lastname),X=R.language,r(26,U=R.birth.day+"/"+R.birth.month+"/"+R.birth.year),r(27,j=R.currency),r(31,V=R.title),r(6,m=R.consents.acceptSMSOffers),r(7,g=R.consents.acceptNewsEmail),r(9,v=R.securityQuestion),r(10,E=R.securityAnswer),r(11,P=R.mobile.prefix),r(12,w=R.mobile.number),r(25,k={address:R.address1,city:R.city,acceptNewsEmail:R.consents.acceptNewsEmail,acceptSMSOffers:R.consents.acceptSMSOffers,mobilePrefix:$.prefix,mobileNumber:$.number,postalCode:R.postalCode,securityAnswer:R.securityAnswer,securityQuestion:R.securityQuestion});break;case"ConfirmProfileInfoSave":B&&(cn("BIOMETRICS_ENABLED",e=>{e!==b&&r(8,b=e)}),un(b?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),r(13,_=!1),J()}},J=()=>{r(23,D=!0),setTimeout(()=>{r(23,D=!1)},3e3)},ee=()=>{r(16,S=!(O||L||I||C||N||l))},te=()=>{1==_&&1==S&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:M},window.location.href)},re=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},ne=()=>{M={acceptNewsEmail:g,acceptSMSOffers:m,address:a.value,city:s.value,mobileNumber:w,mobilePrefix:P,postalCode:o.value,securityAnswer:E,securityQuestion:v},ie(M,k),ee()},ie=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(13,_=!1):r(13,_=!0)};return i=()=>(window.addEventListener("message",Z,!1),r(24,B=!!ln(h)),B&&(cn("BIOMETRICS_ENABLED",e=>{r(8,b=!!e)}),un("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",Z)}),function(){if(!ae)throw new Error("Function called outside component initialization");return ae}().$$.on_mount.push(i),t.$$set=e=>{"endpoint"in e&&r(51,u=e.endpoint),"lang"in e&&r(52,c=e.lang),"countrycode"in e&&r(0,f=e.countrycode)},t.$$.update=()=>{var e;2097152&t.$$.dirty[1]&&c&&(e=c,Qr.set(e)),1&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&u&&f&&fetch(`${u}/player/countries`).then(e=>e.json()).then(e=>{x=e.countries,r(14,T=x.find(e=>e.Alpha2Code===f)||{Name:"I.E. Ireland"}),r(1,p=!1)}),1048576&t.$$.dirty[1]&&u&&fetch(`${u}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,A=e.phoneCodes)})},[f,p,y,o,a,s,m,g,b,v,E,P,w,_,T,A,S,I,N,C,O,L,l,D,B,k,U,j,$,z,W,V,H,Y,n,d,e,F,G,Q,q,K,()=>{r(22,l=!(w&&5<=w.length&&w.length<=30)),ee()},()=>{r(20,O=!(v&&v.length<=120)),ee()},()=>{r(21,L=!(E&&E.length<=120)),ee()},()=>{r(17,I=!(s.value&&s.value.length<=50)),ee()},()=>{r(18,N=!(o.value&&o.value.length<=20)),ee()},()=>{r(19,C=!(a.value&&a.value.length<=100)),ee()},te,re,ne,u,c,()=>re(),function(){P=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(11,P),r(15,A)},()=>ne(),function(){w=this.value,r(12,w)},()=>ne(),function(){v=this.value,r(9,v)},()=>ne(),function(){E=this.value,r(10,E)},()=>ne(),function(e){se[e?"unshift":"push"](()=>{s=e,r(5,s)})},()=>ne(),function(e){se[e?"unshift":"push"](()=>{a=e,r(4,a)})},()=>ne(),function(e){se[e?"unshift":"push"](()=>{o=e,r(3,o)})},()=>ne(),function(){m=this.checked,r(6,m)},function(){g=this.checked,r(7,g)},function(){b=this.checked,r(8,b)},()=>te()]}class Sn extends u{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'}.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}.PlayerInfoWrapper{color:var(--emfe-w-color-contrast, #07072A);background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-color-primary, #D0046C);text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-secondary, #FD2839);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-secondary, #FD2839)}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-secondary, #FD2839);font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-color-primary, #D0046C)}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-color-contrast, #07072A);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-color-primary-600, #99034F)}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-color-contrast, #07072A);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-color-white, #FFFFFF)}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-green, #48952a);color:var(--emfe-w-color-white, #FFFFFF);padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},xn,An,r,{endpoint:51,lang:52,countrycode:0},[-1,-1,-1,-1]),e&&(e.target&&Ir(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint","lang","countrycode"]}get endpoint(){return this.$$.ctx[51]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[52]}set lang(e){this.$set({lang:e}),v()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$set({countrycode:e}),v()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",Sn),Sn});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("fs")):"function"==typeof define&&define.amd?define(["fs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t(e.require$$0)}(this,function(e){"use strict";var t;(t=e)&&"object"==typeof t&&0 in t;function f(){}function p(e){return e()}function h(){return Object.create(null)}function xr(e){e.forEach(p)}function d(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function oe(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Sr(e,t){e.appendChild(t)}function Ir(e,t,r){e.insertBefore(t,r||null)}function Nr(e){e.parentNode.removeChild(e)}function Cr(e){return document.createElement(e)}function Or(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Lr(e){return document.createTextNode(e)}function Dr(){return Lr(" ")}function a(){return Lr("")}function Br(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Mr(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function kr(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function Rr(e,t){e.value=null==t?"":t}function Fr(t,r){for(let e=0;e<t.options.length;e+=1){const n=t.options[e];if(n.__value===r)return n.selected=!0,0}}let ae;function y(e){ae=e}const m=[],se=[],n=[],i=[],g=Promise.resolve();let b=!1;function Ur(e){n.push(e)}let o=!1;const s=new Set;function v(){if(!o){o=!0;do{for(let e=0;e<m.length;e+=1){var t=m[e];y(t),function(e){{var t;null!==e.fragment&&(e.update(),xr(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ur))}}(t.$$)}for(y(null),m.length=0;se.length;)se.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,m.length);for(;i.length;)i.pop()();b=!1,o=!1,s.clear()}}const E=new Set;function l(n,e,t,r,i,o,a=[-1]){var s,l=ae;y(n);const u=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:h(),dirty:a,skip_bound:!1};let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(m.push(e),b||(b=!0,g.then(v)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,xr(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){const n=(r=e.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(n),n.forEach(Nr)}else u.fragment&&u.fragment.c();e.intro&&(s=n.$$.fragment)&&s.i&&(E.delete(s),s.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:a,after_update:s}=t.$$;i&&i.m(e,r),n||Ur(()=>{var e=o.map(p).filter(d);a?a.push(...e):xr(e),t.$$.on_mount=[]}),s.forEach(Ur)}(n,e.target,e.anchor,e.customElement),v()}y(l)}let u;"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(p).filter(d);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){xr(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(xr(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var c,P,w="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==w&&w,_="URLSearchParams"in w,T="Symbol"in w&&"iterator"in Symbol,A="FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(e){return!1}}(),x="FormData"in w,S="ArrayBuffer"in w;function I(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 N(e){return e="string"!=typeof e?String(e):e}function C(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return T&&(e[Symbol.iterator]=function(){return e}),e}function O(t){this.map={},t instanceof O?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 L(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function D(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function B(e){var t=new FileReader,r=D(t);return t.readAsArrayBuffer(e),r}function M(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function k(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:A&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:x&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():S&&A&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=M(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S&&(ArrayBuffer.prototype.isPrototypeOf(e)||P(e))?this._bodyArrayBuffer=M(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):_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A&&(this.blob=function(){var e=L(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?L(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(B)}),this.text=function(){var e,t,r=L(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=D(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},x&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}S&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],P=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),O.prototype.append=function(e,t){e=I(e),t=N(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},O.prototype.delete=function(e){delete this.map[I(e)]},O.prototype.get=function(e){return e=I(e),this.has(e)?this.map[e]:null},O.prototype.has=function(e){return this.map.hasOwnProperty(I(e))},O.prototype.set=function(e,t){this.map[I(e)]=N(t)},O.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},O.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),C(r)},O.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),C(t)},O.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),C(r)},T&&(O.prototype[Symbol.iterator]=O.prototype.entries);var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function F(e,t){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof F){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new O(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 O(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<R.indexOf(e)?e:r),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||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function U(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function G(e,t){if(!(this instanceof G))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 O(t.headers),this.url=t.url||"",this._initBody(e)}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})},k.call(F.prototype),k.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new O(this.headers),url:this.url})},G.error=function(){var e=new G(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];G.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new G(null,{status:t,headers:{location:e}})};var $=w.DOMException;try{new $}catch(e){($=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),$.prototype.constructor=$}function z(n,a){return new Promise(function(i,e){var t=new F(n,a);if(t.signal&&t.signal.aborted)return e(new $("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new O,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new G(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 $("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&w.location.href?w.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&&(A?o.responseType="blob":S&&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 O?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(a.headers).forEach(function(e){o.setRequestHeader(e,N(a.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}z.polyfill=!0,w.fetch||(w.fetch=z,w.Headers=O,w.Request=F,w.Response=G),self.fetch.bind(self);var W=function(e,t){return(W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function X(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.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 H(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function Q(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function q(e){return"function"==typeof e}function K(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 Y=K(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 Z(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var J=(te.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=X(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(q(o))try{o()}catch(e){i=e instanceof Y?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=X(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{ne(c)}catch(e){i=null!=i?i:[],e instanceof Y?i=Q(Q([],H(i)),H(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Y(i)}},te.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)ne(e);else{if(e instanceof te){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},te.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},te.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},te.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Z(t,e)},te.prototype.remove=function(e){var t=this._teardowns;t&&Z(t,e),e instanceof te&&e._removeParent(this)},te.EMPTY=((It=new te).closed=!0,It),te),ee=J.EMPTY;function te(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function re(e){return e instanceof J||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function ne(e){q(e)?e():e.unsubscribe()}var ie=void 0,le=!1,ue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,Q([],H(e)))};function ce(){}function fe(e){e()}var pe,he,de=(V(ge,he=J),ge.create=function(e,t,r){return new ye(e,t,r)},ge.prototype.next=function(e){this.isStopped||this._next(e)},ge.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},ge.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},ge.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,he.prototype.unsubscribe.call(this),this.destination=null)},ge.prototype._next=function(e){this.destination.next(e)},ge.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},ge.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},ge),ye=(V(me,pe=de),me);function me(e,t,r){var n,i,o=pe.call(this)||this;return q(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&le?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?be(i):ce,error:be(null!=t?t:ve),complete:r?be(r):ce},o}function ge(e){var t=he.call(this)||this;return t.isStopped=!1,e?re(t.destination=e)&&e.add(t):t.destination=Ee,t}function be(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,Q([],H(e)))}catch(e){t=e,ue(function(){throw t})}}}function ve(e){throw e}var Ee={closed:!0,next:ce,error:ve,complete:ce},Pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function we(e){return e}var _e=(Te.prototype.lift=function(e){var t=new Te;return t.source=this,t.operator=e,t},Te.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof de||n&&q(n.next)&&q(n.error)&&q(n.complete)&&re(n)?e:new ye(e,t,r);return fe(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Te.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Te.prototype.forEach=function(n,e){var i=this;return new(e=Ae(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Te.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Te.prototype[Pe]=function(){return this},Te.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?we:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Te.prototype.toPromise=function(e){var n=this;return new(e=Ae(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Te.create=function(e){return new Te(e)},Te);function Te(e){e&&(this._subscribe=e)}function Ae(e){return null!==(e=null!=e?e:ie)&&void 0!==e?e:Promise}var xe,Se,Ie,Ne=K(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ce=(V(ke,Ie=_e),ke.prototype.lift=function(e){var t=new Oe(this,this);return t.operator=e,t},ke.prototype._throwIfClosed=function(){if(this.closed)throw new Ne},ke.prototype.next=function(o){var a=this;fe(function(){var t,e;if(a._throwIfClosed(),!a.isStopped){var r=a.observers.slice();try{for(var n=X(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},ke.prototype.error=function(t){var r=this;fe(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},ke.prototype.complete=function(){var t=this;fe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},ke.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(ke.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),ke.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ie.prototype._trySubscribe.call(this,e)},ke.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},ke.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?ee:(n.push(e),new J(function(){return Z(n,e)}))},ke.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},ke.prototype.asObservable=function(){var e=new _e;return e.source=this,e},ke.create=function(e,t){return new Oe(e,t)},ke),Oe=(V(Me,Se=Ce),Me.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Me.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Me.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Me.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:ee},Me),Le={now:function(){return(Le.delegate||Date).now()},delegate:void 0},De=(V(Be,xe=Ce),Be.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),xe.prototype.next.call(this,e)},Be.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},Be.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},Be);function Be(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=Le);var n=xe.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Me(e,t){var r=Se.call(this)||this;return r.destination=e,r.source=t,r}function ke(){var e=Ie.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Re=[],Fe={};const Ue=[];function Ge(n,i=f){let o;const a=[];function s(e){if(r(n,e)&&(n=e,o)){const e=!Ue.length;for(let e=0;e<a.length;e+=1){const o=a[e];o[1](),Ue.push(o,n)}if(e){for(let e=0;e<Ue.length;e+=2)Ue[e][0](Ue[e+1]);Ue.length=0}}}return{set:s,update:function(e){s(e(n))},subscribe:function(e,t=f){const r=[e,t];return a.push(r),1===a.length&&(o=i(s)||f),e(n),()=>{var e=a.indexOf(r);-1!==e&&a.splice(e,1),0===a.length&&(o(),o=null)}}}}function je(e,s,t){const l=!Array.isArray(e),u=l?[e]:e,c=s.length<2;return{subscribe:Ge(t,t=>{let r=!1;const n=[];let i=0,o=f;const a=()=>{var e;i||(o(),e=s(l?n[0]:n,t),c?t(e):o=d(e)?e:f)},e=u.map((e,t)=>oe(e,e=>{n[t]=e,i&=~(1<<t),r&&a()},()=>{i|=1<<t}));return r=!0,a(),function(){xr(e),o()}}).subscribe}}var $e=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===ze));var t},ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function We(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe(Array.isArray(e)?[]:{},e,t):e}function Ve(e,t,r){return e.concat(t).map(function(e){return We(e,r)})}function Xe(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function He(e,t){try{return t in e}catch(e){return!1}}function Qe(n,i,o){var a={};return o.isMergeableObject(n)&&Xe(n).forEach(function(e){a[e]=We(n[e],o)}),Xe(i).forEach(function(t){var e,r;(!He(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(He(n,t)&&o.isMergeableObject(i[t])?a[t]=function(){if(!o.customMerge)return qe;var e=o.customMerge(t);return"function"==typeof e?e:qe}()(n[t],i[t],o):a[t]=We(i[t],o))}),a}function qe(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||Ve,r.isMergeableObject=r.isMergeableObject||$e,r.cloneUnlessOtherwiseSpecified=We;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Qe(e,t,r):We(t,r)}qe.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return qe(e,t,r)},{})};var Ke=qe,Ye=function(e,t){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ye(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Je,et,tt,rt=function(){return(rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function nt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function it(e){return e.type===et.literal}function ot(e){return e.type===et.number}function at(e){return e.type===et.date}function st(e){return e.type===et.time}function lt(e){return e.type===et.select}function ut(e){return e.type===et.plural}function ct(e){return e.type===et.tag}function ft(e){return e&&"object"==typeof e&&e.type===tt.number}function pt(e){return e&&"object"==typeof e&&e.type===tt.dateTime}(Nt=Je=Je||{})[Nt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Nt[Nt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Nt[Nt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Nt[Nt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Nt[Nt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Nt[Nt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Nt[Nt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Nt[Nt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Nt[Nt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Nt[Nt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Nt[Nt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Nt[Nt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Nt[Nt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Nt[Nt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Nt[Nt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Nt[Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Nt[Nt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Nt[Nt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Nt[Nt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Nt[Nt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Nt[Nt.INVALID_TAG=23]="INVALID_TAG",Nt[Nt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Nt[Nt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Nt[Nt.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ct=et=et||{})[Ct.literal=0]="literal",Ct[Ct.argument=1]="argument",Ct[Ct.number=2]="number",Ct[Ct.date=3]="date",Ct[Ct.time=4]="time",Ct[Ct.select=5]="select",Ct[Ct.plural=6]="plural",Ct[Ct.pound=7]="pound",Ct[Ct.tag=8]="tag",(Ot=tt=tt||{})[Ot.number=0]="number",Ot[Ot.dateTime=1]="dateTime";var ht=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,dt=/(?:[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 yt,mt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bt=/^(@+)?(\+|#+)?$/g,vt=/(\*)(0+)|(#+)(0+)|(0+)/g,Et=/^(0+)$/;function Pt(e){var n={};return e.replace(bt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function wt(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 _t(e){return wt(e)||{}}function Tt(e){for(var a={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=i.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=i.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=rt(rt(rt({},a),{notation:"scientific"}),i.options.reduce(function(e,t){return rt(rt({},e),_t(t))},{}));continue;case"engineering":a=rt(rt(rt({},a),{notation:"engineering"}),i.options.reduce(function(e,t){return rt(rt({},e),_t(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(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(vt,function(e,t,r,n,i,o){if(t)a.minimumIntegerDigits=r.length;else{if(n&&i)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(Et.test(i.stem))a.minimumIntegerDigits=i.stem.length;else if(gt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gt,function(e,t,r,n,i,o){return"*"===r?a.minimumFractionDigits=t.length:n&&"#"===n[0]?a.maximumFractionDigits=n.length:i&&o?(a.minimumFractionDigits=i.length,a.maximumFractionDigits=i.length+o.length):(a.minimumFractionDigits=t.length,a.maximumFractionDigits=t.length),""}),i.options.length&&(a=rt(rt({},a),Pt(i.options[0])))}else bt.test(i.stem)?a=rt(rt({},a),Pt(i.stem)):((n=wt(i.stem))&&(a=rt(rt({},a),n)),(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Et.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(a=rt(rt({},a),n)))}return a}var At=new RegExp("^"+ht.source+"*"),xt=new RegExp(ht.source+"*$");function St(e,t){return{start:e,end:t}}var It=!!String.prototype.startsWith,Pe=!!String.fromCodePoint,Ce=!!Object.fromEntries,Nt=!!String.prototype.codePointAt,Ct=!!String.prototype.trimStart,Ot=!!String.prototype.trimEnd,Lt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ht=!0;try{ht="a"===(null===(yt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===yt?void 0:yt[0])}catch(e){ht=!1}var Dt,Bt,Mt=It?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},kt=Pe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Rt=Ce?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Ft=Nt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Ut=Ct?function(e){return e.trimStart()}:function(e){return e.replace(At,"")},Gt=Ot?function(e){return e.trimEnd()}:function(e){return e.replace(xt,"")};function jt(e,t){return new RegExp(e,t)}Bt=ht?(Dt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Dt.lastIndex=t,null!==(e=Dt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Ft(e,t);if(void 0===i||Vt(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return kt.apply(void 0,n)};var $t=(zt.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},zt.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Je.UNMATCHED_CLOSING_TAG,St(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Wt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:et.pound,location:St(o,this.clonePosition())})}}}return{val:n,err:null}},zt.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:et.literal,value:"<"+n+"/>",location:St(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Wt(this.char()))return this.error(Je.INVALID_TAG,St(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(Je.UNMATCHED_CLOSING_TAG,St(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:et.tag,value:n,children:e,location:St(r,this.clonePosition())},err:null}:this.error(Je.INVALID_TAG,St(t,this.clonePosition())))}return this.error(Je.UNCLOSED_TAG,St(r,this.clonePosition()))}return this.error(Je.INVALID_TAG,St(r,this.clonePosition()))},zt.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())},zt.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=St(r,this.clonePosition());return{val:{type:et.literal,value:n,location:r},err:null}},zt.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Wt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},zt.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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return kt.apply(void 0,t)},zt.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),kt(r))},zt.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Je.EMPTY_ARGUMENT,St(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Je.MALFORMED_ARGUMENT,St(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:et.argument,value:n,location:St(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Je.MALFORMED_ARGUMENT,St(r,this.clonePosition()))}},zt.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Bt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:St(e,this.clonePosition())}},zt.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Je.EXPECT_ARGUMENT_TYPE,St(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===(f=Gt(p.val)).length)return this.error(Je.EXPECT_ARGUMENT_STYLE,St(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:St(u,this.clonePosition())}}if((h=this.tryParseArgumentClose(n)).err)return h;var c=St(n,this.clonePosition());if(l&&Mt(null==l?void 0:l.style,"::",0)){u=Ut(l.style.slice(2));if("number"===a)return(p=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?p:{val:{type:et.number,value:r,location:c,style:p.val},err:null};if(0===u.length)return this.error(Je.EXPECT_DATE_TIME_SKELETON,c);var f={type:tt.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},u.replace(dt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.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":i.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":i.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":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.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":i.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""}),i):{}};return{val:{type:"date"===a?et.date:et.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===a?et.number:"date"===a?et.date:et.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Je.EXPECT_SELECT_ARGUMENT_OPTIONS,St(l,rt({},l)));this.bumpSpace();var p,c=this.parseIdentifierIfPossible(),l=0;if("select"!==a&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,St(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(p=this.tryParseDecimalInteger(Je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return p;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=p.val}c=this.tryParsePluralOrSelectOptions(e,a,t,c);if(c.err)return c;if((h=this.tryParseArgumentClose(n)).err)return h;var h=St(n,this.clonePosition());return"select"===a?{val:{type:et.select,value:r,options:Rt(c.val),location:h},err:null}:{val:{type:et.plural,value:r,options:Rt(c.val),offset:l,pluralType:"plural"===a?"cardinal":"ordinal",location:h},err:null};default:return this.error(Je.INVALID_ARGUMENT_TYPE,St(o,s))}},zt.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Je.EXPECT_ARGUMENT_CLOSING_BRACE,St(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},zt.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,St(r,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}},zt.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(mt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),a=0,s=i;a<s.length;a++)if(0===s[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(Je.INVALID_NUMBER_SKELETON,t)}return{val:{type:tt.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Tt(r):{}},err:null}},zt.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!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(Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,Je.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=St(u,this.clonePosition()),s=this.message.slice(u.offset,this.offset())}if(a.has(s))return this.error("select"===t?Je.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,St(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;o.push([s,{value:c.val,location:St(f,this.clonePosition())}]),a.add(s),this.bumpSpace(),s=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?Je.EXPECT_SELECT_ARGUMENT_SELECTOR:Je.EXPECT_PLURAL_ARGUMENT_SELECTOR,St(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Je.MISSING_OTHER_CLAUSE,St(this.clonePosition(),this.clonePosition())):{val:o,err:null}},zt.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(48<=a&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}n=St(n,this.clonePosition());return i?Lt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},zt.prototype.offset=function(){return this.position.offset},zt.prototype.isEOF=function(){return this.offset()===this.message.length},zt.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},zt.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ft(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},zt.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},zt.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))},zt.prototype.bumpIf=function(e){if(Mt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},zt.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},zt.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},zt.prototype.bumpSpace=function(){for(;!this.isEOF()&&Vt(this.char());)this.bump()},zt.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},zt);function zt(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Wt(e){return 97<=e&&e<=122||65<=e&&e<=90}function Vt(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Xt(e,t){t=rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new $t(e,t).parse();if(r.err){e=SyntaxError(Je[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,lt(e)||ut(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ot(e)&&ft(e.style)||(at(e)||st(e))&&pt(e.style)?delete e.style.location:ct(e)&&r(e.children)})}(r.val),r.val}function Ht(e,t){var r=t&&t.cache?t.cache:er,n=t&&t.serializer?t.serializer:Yt;return(t&&t.strategy?t.strategy:function(e,t){return Kt(e,this,1===e.length?Qt:qt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function Qt(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function qt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function Kt(e,t,r,n,i){return r.bind(t,e,n,i)}var Yt=function(){return JSON.stringify(arguments)};function Zt(){this.cache=Object.create(null)}Zt.prototype.has=function(e){return e in this.cache},Zt.prototype.get=function(e){return this.cache[e]},Zt.prototype.set=function(e,t){this.cache[e]=t};var Jt,er={create:function(){return new Zt}},tr={variadic:function(e,t){return Kt(e,this,qt,t.cache.create(),t.serializer)},monadic:function(e,t){return Kt(e,this,Qt,t.cache.create(),t.serializer)}};(ht=Jt=Jt||{}).MISSING_VALUE="MISSING_VALUE",ht.INVALID_VALUE="INVALID_VALUE",ht.MISSING_INTL_API="MISSING_INTL_API";var rr,nr,ir,or,ar,sr=(Ze(dr,ar=Error),dr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},dr),lr=(Ze(hr,or=sr),hr),ur=(Ze(pr,ir=sr),pr),cr=(Ze(fr,nr=sr),fr);function fr(e,t){return nr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',Jt.MISSING_VALUE,t)||this}function pr(e,t,r){return ir.call(this,'Value for "'+e+'" must be of type '+t,Jt.INVALID_VALUE,r)||this}function hr(e,t,r,n){return or.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',Jt.INVALID_VALUE,n)||this}function dr(e,t,r){e=ar.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function yr(e,t,r,n,i,o,a){if(1===e.length&&it(e[0]))return[{type:rr.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(it(c))s.push({type:rr.literal,value:c.value});else if(c.type===et.pound)"number"==typeof o&&s.push({type:rr.literal,value:r.getNumberFormat(t).format(o)});else{var f=c.value;if(!(i&&f in i))throw new cr(f,a);var p=i[f];if(c.type===et.argument)p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?rr.literal:rr.object,value:p});else if(at(c)){var h="string"==typeof c.style?n.date[c.style]:pt(c.style)?c.style.parsedOptions:void 0;s.push({type:rr.literal,value:r.getDateTimeFormat(t,h).format(p)})}else if(st(c))h="string"==typeof c.style?n.time[c.style]:pt(c.style)?c.style.parsedOptions:void 0,s.push({type:rr.literal,value:r.getDateTimeFormat(t,h).format(p)});else if(ot(c))(h="string"==typeof c.style?n.number[c.style]:ft(c.style)?c.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:rr.literal,value:r.getNumberFormat(t,h).format(p)});else{if(ct(c)){var d=c.children,y=c.value,f=i[y];if("function"!=typeof f)throw new ur(y,"function",a);d=f(yr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?rr.literal:rr.object,value:e}}))}if(lt(c)){if(!(m=c.options[p]||c.options.other))throw new lr(c.value,p,Object.keys(c.options),a);s.push.apply(s,yr(m.value,t,r,n,i))}else if(ut(c)){if(!(m=c.options["="+p])){if(!Intl.PluralRules)throw new sr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Jt.MISSING_INTL_API,a);var d=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0)),m=c.options[d]||c.options.other}if(!m)throw new lr(c.value,p,Object.keys(c.options),a);s.push.apply(s,yr(m.value,t,r,n,i,p-(c.offset||0)))}}}}return s.length<2?s:s.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===rr.literal&&t.type===rr.literal?r.value+=t.value:e.push(t),e},[])}function mr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(ht=rr=rr||{})[ht.literal=0]="literal",ht[ht.object=1]="object";var gr=(Object.defineProperty(br,"defaultLocale",{get:function(){return br.memoizedDefaultLocale||(br.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),br.memoizedDefaultLocale},enumerable:!1,configurable:!0}),br.memoizedDefaultLocale=null,br.__parse=Xt,br.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"}}},br);function br(e,t,r,n){var i,o,a=this;if(void 0===t&&(t=br.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===rr.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 yr(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof e){if(this.message=e,!br.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=br.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=br.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?rt(rt(rt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=rt(rt({},r[t]),n[t]||{}),e},{})):r),e},rt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,nt([void 0],t)))},{cache:mr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:tr.variadic}),getDateTimeFormat:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,nt([void 0],t)))},{cache:mr(n.dateTime),strategy:tr.variadic}),getPluralRules:Ht(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,nt([void 0],t)))},{cache:mr(n.pluralRules),strategy:tr.variadic})}}const vr={},Er=(t,r)=>{if(null!=r){if(r in vr&&t in vr[r])return vr[r][t];var n,i,o=Kr(r);for(let e=0;e<o.length;e++){var a=(n=o[e],i=t,_r(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Pr[e]||null}(n),i):null);if(a)return n=t,i=r,(a=a)&&(i in vr||(vr[i]={}),n in vr[i]||(vr[i][n]=a),a)}}};let Pr;const wr=Ge({});function _r(e){return e in Pr}function Tr(t,...r){delete vr[t],wr.update(e=>(e[t]=Ke.all([e[t]||{},...r]),e))}je([wr],([e])=>Object.keys(e)),wr.subscribe(e=>Pr=e);const Ar={};function Gr(e){return Ar[e]}function jr(e){return Kr(e).some(e=>{return null===(e=Gr(e))||void 0===e?void 0:e.size})}const $r={};function zr(e){if(!jr(e))return e in $r?$r[e]:void 0;const t=Kr(e).map(e=>{var t=Gr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return $r[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Ar[e].delete(t),0===Ar[e].size&&delete Ar[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Tr(t,...e))}(e))).then(()=>jr(e)?zr(e):void delete $r[e]),$r[e]}function Wr(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Vr={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Xr=Ge(!1);let Hr;const Qr=Ge(null);function qr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function Kr(e,t=Vr.fallbackLocale){e=qr(e);return t?[...new Set([...e,...qr(t)])]:e}Qr.subscribe(e=>{Hr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Yr=Qr.set;Qr.set=t=>{if(function(e){if(null!=e){var t=Kr(e);for(let e=0;e<t.length;e++){var r=t[e];if(_r(r))return r}}}(t)&&jr(t)){var{loadingDelay:r}=Vr;let e;return"undefined"!=typeof window&&null!=Hr&&r?e=window.setTimeout(()=>Xr.set(!0),r):Xr.set(!0),zr(t).then(()=>{Yr(t)}).finally(()=>{clearTimeout(e),Xr.set(!1)})}return Yr(t)},Qr.update=e=>Yr(e(Hr));const Zr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Jr=(e,t)=>{var{formats:r}=Vr;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},en=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Jr("number",r)),new Intl.NumberFormat(t,e)}),tn=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Jr("date",r):0===Object.keys(e).length&&(e=Jr("date","short")),new Intl.DateTimeFormat(t,e)}),rn=Zr(e=>{var{locale:t,format:r}=e,e=Wr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Jr("time",r):0===Object.keys(e).length&&(e=Jr("time","short")),new Intl.DateTimeFormat(t,e)}),nn=Zr((e,t=Hr)=>new gr(e,t,Vr.formats,{ignoreTag:Vr.ignoreTag})),on=je([Qr,wr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Hr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Er(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Vr.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Kr(n).join('", "')}".${jr(Hr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let a=o;try{a=nn(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return a});je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return rn(Object.assign({locale:t},e))})(t).format(e)),je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return tn(Object.assign({locale:t},e))})(t).format(e)),je([Qr],()=>(e,t)=>((e={})=>{var{locale:t=Hr}=e,e=Wr(e,["locale"]);return en(Object.assign({locale:t},e))})(t).format(e)),je([Qr,wr],()=>(e,t=Hr)=>Er(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Re.indexOf(e)&&(t=new De(t),Fe[e]=t,Re.push(e)),Fe[e]}};const an={en:{playerProfile:{title:"Profile Info",personalDetails:"Personal Details",userName:"User name:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 20 characters maximum.",userEmail:"Email:",securityQuestion:"Security Question:",securityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",firstName:"First name:",securityAnswer:"Security Answer:",securityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",lastName:"Last Name:",dateOfBirth:"Date of birth:",currency:"Currency:",userTitle:"Title:",locationDetails:"Location Details",userCountry:"Country:",userCity:"City:",userCityError:"City must be at least 1 character long and 50 characters maximum.",userAddress:"Address:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Postal Code:",userPostalCodeError:"Postal Code must be at least 1 character long and 20 characters maximum.",userNotifications:"Notifications",userAppSettings:"Biometrics",userSMSNotification:"Enable SMS notifications",userBiometrics:"Enable biometrics",userEmailNotification:"Enable Emails",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!"}},ro:{playerProfile:{title:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 20 de caractere.",userEmail:"E-mail:",securityQuestion:"Întrebare securitate:",securityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",firstName:"Prenume:",securityAnswer:"Răspuns securitate:",securityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",userTitle:"Titlu:",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userCity:"Oraș:",userAddress:"Adresă:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",userSMSNotification:"Activează notificări prin SMS",userEmailNotification:"Activează notificări prin E-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!"}},tr:{playerProfile:{title:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userEmail:"E-posta:",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",firstName:"First name:",securityAnswer:"İlk adı:",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",lastName:"Soyadı:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",userTitle:"Başlık:",locationDetails:"Konum Ayrıntıları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter uzunluğunda ve en fazla 50 karakter olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve en fazla 100 karakter olmalıdır.",userPostalCode:"Posta kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve en fazla 20 karakter olmalıdır.",userNotifications:"Bildirimler",userSMSNotification:"SMS bildirimlerini etkinleştir",userEmailNotification:"E-postaları Etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!"}}};function sn(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var r=window.cstmNativeBridge.EVENTS[e];if(r){if("function"==typeof t){var n=window.cstmNativeBridge.eventListeners[r];return window.cstmNativeBridge.eventListeners[r]=function(){delete window.cstmNativeBridge.eventListeners[r],n&&n.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"!=typeof t)return console.error("Native Bridge `"+e+"` method is not defined"),!1;e=Array.prototype.slice.call(arguments,1);return t.apply(this,e),!0};var ln=function(e){return/(CustomNative:)(\\?|[\w.].+)/gi.exec(e.toLowerCase())},un=function(e,...t){try{return sn(),window.cstmNativeBridge.call(e,...t)}catch(e){return console.error("Native Bridge not defined:",e),!1}},cn=function(e,t){try{return sn(),window.cstmNativeBridge.registerEventListener(e,t)}catch(e){return console.error("Native Bridge not defined:",e),!1}};function fn(e,t,r){const n=e.slice();return n[93]=t[r],n}function pn(r){let i,n,o,a,s,l,u,c,f,p,h,d,y,m,g,b,v,E,P,w,_,T,A,x,e,S,I,N,C,O,L,D,B,M,k,R,F,U,G,j,$,z,W,V,X,H,Q,q,K,Y,Z,J,ee,te,re,ne,ie,oe,ae,se,le,ue,ce,fe,pe,he,de,ye,me,ge,be,ve,Ee,Pe,we,_e,Te,Ae,xe,Se,Ie,Ne,Ce,Oe,Le,De,Be,Me,ke,Re,Fe,Ue,Ge,je,$e,ze,We,Ve,Xe,He,Qe,qe,Ke,Ye,Ze,Je,et,tt,rt,nt,it,ot,at,st,lt,ut,ct,ft,pt,ht,dt,yt,mt,gt,bt,vt,Et,Pt,wt,_t,Tt,At,xt,St,It,Nt,Ct,Ot,Lt,Dt,Bt,Mt,kt,Rt,Ft,Ut,Gt,jt,$t,zt,Wt,Vt,Xt,Ht,Qt=r[34]("playerProfile.title")+"",qt=r[34]("playerProfile.personalDetails")+"",Kt=r[34]("playerProfile.userName")+"",Yt=r[34]("playerProfile.userPhone")+"",Zt=r[34]("playerProfile.securityQuestion")+"",Jt=r[34]("playerProfile.securityAnswer")+"",er=r[34]("playerProfile.userEmail")+"",tr=r[34]("playerProfile.dateOfBirth")+"",rr=r[34]("playerProfile.firstName")+"",nr=r[34]("playerProfile.lastName")+"",ir=r[34]("playerProfile.userTitle")+"",or=r[34]("playerProfile.currency")+"",ar=r[34]("playerProfile.locationDetails")+"",sr=r[34]("playerProfile.userCountry")+"",lr=r[34]("playerProfile.userCity")+"",ur=r[34]("playerProfile.userAddress")+"",cr=r[34]("playerProfile.userPostalCode")+"",fr=r[34]("playerProfile.userNotifications")+"",pr=r[34]("playerProfile.userSMSNotification")+"",hr=r[34]("playerProfile.userEmailNotification")+"",dr=r[34]("playerProfile.userProfileSaveChanges")+"",yr=r[35]&&function(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m=r[34]("playerProfile.title")+"";return{c(){n=Cr("div"),i=Or("svg"),o=Or("defs"),a=Or("style"),s=Lr(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=Or("g"),u=Or("g"),c=Or("path"),f=Dr(),p=Cr("h2"),h=Lr(m),Mr(c,"class","aaa"),Mr(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),Mr(c,"transform","translate(15 15) rotate(180)"),Mr(u,"transform","translate(20 158)"),Mr(l,"transform","translate(-20 -158)"),Mr(i,"xmlns","http://www.w3.org/2000/svg"),Mr(i,"width","15"),Mr(i,"height","15"),Mr(i,"viewBox","0 0 15 15"),Mr(p,"class","MyAccountCategoryTitleMobile"),Mr(n,"class","MenuReturnButton")},m(e,t){Ir(e,n,t),Sr(n,i),Sr(i,o),Sr(o,a),Sr(a,s),Sr(i,l),Sr(l,u),Sr(u,c),Sr(n,f),Sr(n,p),Sr(p,h),d||(y=Br(n,"click",r[53]),d=!0)},p(e,t){8&t[1]&&m!==(m=e[34]("playerProfile.title")+"")&&kr(h,m)},d(e){e&&Nr(n),d=!1,y()}}}(r),mr=r[15],gr=[];for(let e=0;e<mr.length;e+=1)gr[e]=mn(fn(r,mr,e));let br=r[22]&&gn(r),vr=r[20]&&bn(r),Er=r[21]&&vn(r),Pr=r[17]&&En(r),wr=r[19]&&Pn(r),_r=r[18]&&wn(r),Tr=r[24]&&_n(r),Ar=r[23]&&Tn(r);return{c(){i=Cr("form"),yr&&yr.c(),n=Dr(),o=Cr("h2"),a=Lr(Qt),s=Dr(),l=Cr("div"),u=Cr("h3"),c=Lr(qt),f=Dr(),p=Cr("section"),h=Cr("div"),d=Cr("label"),y=Lr(Kt),m=Dr(),g=Cr("input"),b=Dr(),v=Cr("div"),E=Cr("label"),P=Lr(Yt),w=Dr(),_=Cr("div"),T=Cr("select");for(let e=0;e<gr.length;e+=1)gr[e].c();A=Dr(),x=Cr("input"),S=Dr(),br&&br.c(),N=Dr(),C=Cr("div"),O=Cr("label"),L=Lr(Zt),D=Dr(),B=Cr("input"),k=Dr(),vr&&vr.c(),F=Dr(),U=Cr("div"),G=Cr("label"),j=Lr(Jt),$=Dr(),z=Cr("input"),V=Dr(),Er&&Er.c(),H=Dr(),Q=Cr("div"),q=Cr("label"),K=Lr(er),Y=Dr(),Z=Cr("input"),J=Dr(),ee=Cr("div"),te=Cr("label"),re=Lr(tr),ne=Dr(),ie=Cr("input"),oe=Dr(),ae=Cr("div"),se=Cr("label"),le=Lr(rr),ue=Dr(),ce=Cr("input"),fe=Dr(),pe=Cr("div"),he=Cr("label"),de=Lr(nr),ye=Dr(),me=Cr("input"),ge=Dr(),be=Cr("div"),ve=Cr("label"),Ee=Lr(ir),Pe=Dr(),we=Cr("input"),_e=Dr(),Te=Cr("div"),Ae=Cr("label"),xe=Lr(or),Se=Dr(),Ie=Cr("input"),Ne=Dr(),Ce=Cr("div"),Oe=Cr("h3"),Le=Lr(ar),De=Dr(),Be=Cr("section"),Me=Cr("div"),ke=Cr("label"),Re=Lr(sr),Fe=Dr(),Ue=Cr("input"),je=Dr(),$e=Cr("div"),ze=Cr("label"),We=Lr(lr),Ve=Dr(),Xe=Cr("input"),qe=Dr(),Pr&&Pr.c(),Ye=Dr(),Ze=Cr("div"),Je=Cr("label"),et=Lr(ur),tt=Dr(),rt=Cr("input"),it=Dr(),wr&&wr.c(),at=Dr(),st=Cr("div"),lt=Cr("label"),ut=Lr(cr),ct=Dr(),ft=Cr("input"),dt=Dr(),_r&&_r.c(),mt=Dr(),gt=Cr("div"),bt=Cr("h3"),vt=Lr(fr),Et=Dr(),Pt=Cr("section"),wt=Cr("div"),_t=Cr("label"),Tt=Cr("input"),At=Dr(),xt=Cr("span"),St=Dr(),It=Cr("span"),Nt=Lr(pr),Ct=Dr(),Ot=Cr("div"),Lt=Cr("label"),Dt=Cr("input"),Bt=Dr(),Mt=Cr("span"),kt=Dr(),Rt=Cr("span"),Ft=Lr(hr),Ut=Dr(),Tr&&Tr.c(),Gt=Dr(),jt=Cr("section"),$t=Cr("div"),zt=Lr(dr),Vt=Dr(),Ar&&Ar.c(),Mr(o,"class","MyAccountCategoryTitle "+(r[35]?"MyAccountCategoryTitleNone":"")),Mr(l,"class","PlayerNotificationsHeader"),Mr(g,"type","text"),Mr(g,"class","FieldDisabled"),g.value=r[33],g.readOnly=!0,Mr(h,"class","PlayerInfoBox"),void 0===r[11]&&Ur(()=>r[54].call(T)),Mr(x,"type","text"),Mr(x,"oninput","this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');"),Mr(x,"placeholder",e=r[2]?r[28].number:""),Mr(_,"class","PlayerPhoneNumber"),Mr(v,"class",I="PlayerInfoBox "+(r[22]?"InvalidField":"")),Mr(B,"type","text"),Mr(B,"placeholder",M=r[2]?r[41]:""),Mr(C,"class",R="PlayerInfoBox "+(r[20]?"InvalidField":"")),Mr(z,"type","text"),Mr(z,"placeholder",W=r[2]?r[40]:""),Mr(U,"class",X="PlayerInfoBox "+(r[21]?"InvalidField":"")),Mr(Z,"type","email"),Mr(Z,"class","FieldDisabled"),Z.value=r[29],Z.readOnly=!0,Mr(Q,"class","PlayerInfoBox"),Mr(ie,"type","text"),Mr(ie,"class","FieldDisabled"),ie.value=r[26],ie.readOnly=!0,Mr(ee,"class","PlayerInfoBox"),Mr(ce,"type","text"),Mr(ce,"class","FieldDisabled"),ce.value=r[30],ce.readOnly=!0,Mr(ae,"class","PlayerInfoBox"),Mr(me,"type","text"),Mr(me,"class","FieldDisabled"),me.value=r[32],me.readOnly=!0,Mr(pe,"class","PlayerInfoBox"),Mr(we,"type","text"),Mr(we,"class","FieldDisabled"),we.value=r[31],we.readOnly=!0,Mr(be,"class","PlayerInfoBox"),Mr(Ie,"type","text"),Mr(Ie,"class","FieldDisabled"),Ie.value=r[27],Ie.readOnly=!0,Mr(Te,"class","PlayerInfoBox"),Mr(p,"class","PlayerDetailsContent"),Mr(Ce,"class","PlayerLocationHeader"),Mr(Ue,"type","text"),Mr(Ue,"class","PlayerCountry FieldDisabled"),Mr(Ue,"placeholder",r[0]),Ue.value=Ge=r[14].Name,Ue.readOnly=!0,Mr(Me,"class","PlayerInfoBox"),Mr(Xe,"type","text"),Mr(Xe,"placeholder",He=r[2]?r[38]:""),Xe.value=Qe=r[2]?"":r[25].city,Mr($e,"class",Ke="PlayerInfoBox "+(r[17]?"InvalidField":"")),Mr(rt,"placeholder",r[37]),Mr(rt,"type","text"),rt.value=nt=r[2]?"":r[25].address,Mr(Ze,"class",ot="PlayerInfoBox "+(r[19]?"InvalidField":"")),Mr(ft,"type","number"),Mr(ft,"placeholder",pt=r[2]?r[39]:""),ft.value=ht=r[2]?"":r[25].postalCode,Mr(st,"class",yt="PlayerInfoBox "+(r[18]?"InvalidField":"")),Mr(Be,"class","PlayerLocationContent"),Mr(gt,"class","PlayerNotificationsHeader"),Mr(Tt,"type","checkbox"),Mr(Tt,"id","SMSNotification"),Mr(Tt,"name","Enable SMS notifications"),Mr(xt,"class","Checkmark"),Mr(_t,"for","SMSNotification"),Mr(wt,"class","PlayerNotificationBox"),Mr(Dt,"type","checkbox"),Mr(Dt,"id","EmailNotification"),Mr(Dt,"name","Enable Emails"),Mr(Mt,"class","Checkmark"),Mr(Lt,"for","EmailNotification"),Mr(Ot,"class","PlayerNotificationBox"),Mr(Pt,"class","PlayerNotificationsCheckboxArea"),Mr($t,"class",Wt="PlayerDetailsSaveButton "+(r[13]&&r[16]?"":"PlayerButtonDisabled")),Mr(jt,"class","PlayerDetailsButtonsArea "+(r[35]?"PlayerDetailsButtonsAreaMobile":"")),Mr(i,"class","PlayerInfoWrapper "+(r[35]?"PlayerInfoWrapperMobile":"")+" "+(r[36].matches&&r[35]?"PlayerInfoWrapperTablet":""))},m(e,t){Ir(e,i,t),yr&&yr.m(i,null),Sr(i,n),Sr(i,o),Sr(o,a),Sr(i,s),Sr(i,l),Sr(l,u),Sr(u,c),Sr(i,f),Sr(i,p),Sr(p,h),Sr(h,d),Sr(d,y),Sr(h,m),Sr(h,g),Sr(p,b),Sr(p,v),Sr(v,E),Sr(E,P),Sr(v,w),Sr(v,_),Sr(_,T);for(let e=0;e<gr.length;e+=1)gr[e].m(T,null);Fr(T,r[11]),Sr(_,A),Sr(_,x),Rr(x,r[12]),Sr(v,S),br&&br.m(v,null),Sr(p,N),Sr(p,C),Sr(C,O),Sr(O,L),Sr(C,D),Sr(C,B),Rr(B,r[9]),Sr(C,k),vr&&vr.m(C,null),Sr(p,F),Sr(p,U),Sr(U,G),Sr(G,j),Sr(U,$),Sr(U,z),Rr(z,r[10]),Sr(U,V),Er&&Er.m(U,null),Sr(p,H),Sr(p,Q),Sr(Q,q),Sr(q,K),Sr(Q,Y),Sr(Q,Z),Sr(p,J),Sr(p,ee),Sr(ee,te),Sr(te,re),Sr(ee,ne),Sr(ee,ie),Sr(p,oe),Sr(p,ae),Sr(ae,se),Sr(se,le),Sr(ae,ue),Sr(ae,ce),Sr(p,fe),Sr(p,pe),Sr(pe,he),Sr(he,de),Sr(pe,ye),Sr(pe,me),Sr(p,ge),Sr(p,be),Sr(be,ve),Sr(ve,Ee),Sr(be,Pe),Sr(be,we),Sr(p,_e),Sr(p,Te),Sr(Te,Ae),Sr(Ae,xe),Sr(Te,Se),Sr(Te,Ie),Sr(i,Ne),Sr(i,Ce),Sr(Ce,Oe),Sr(Oe,Le),Sr(i,De),Sr(i,Be),Sr(Be,Me),Sr(Me,ke),Sr(ke,Re),Sr(Me,Fe),Sr(Me,Ue),Sr(Be,je),Sr(Be,$e),Sr($e,ze),Sr(ze,We),Sr($e,Ve),Sr($e,Xe),r[62](Xe),Sr($e,qe),Pr&&Pr.m($e,null),Sr(Be,Ye),Sr(Be,Ze),Sr(Ze,Je),Sr(Je,et),Sr(Ze,tt),Sr(Ze,rt),r[64](rt),Sr(Ze,it),wr&&wr.m(Ze,null),Sr(Be,at),Sr(Be,st),Sr(st,lt),Sr(lt,ut),Sr(st,ct),Sr(st,ft),r[66](ft),Sr(st,dt),_r&&_r.m(st,null),Sr(i,mt),Sr(i,gt),Sr(gt,bt),Sr(bt,vt),Sr(i,Et),Sr(i,Pt),Sr(Pt,wt),Sr(wt,_t),Sr(_t,Tt),Tt.checked=r[6],Sr(_t,At),Sr(_t,xt),Sr(_t,St),Sr(_t,It),Sr(It,Nt),Sr(Pt,Ct),Sr(Pt,Ot),Sr(Ot,Lt),Sr(Lt,Dt),Dt.checked=r[7],Sr(Lt,Bt),Sr(Lt,Mt),Sr(Lt,kt),Sr(Lt,Rt),Sr(Rt,Ft),Sr(i,Ut),Tr&&Tr.m(i,null),Sr(i,Gt),Sr(i,jt),Sr(jt,$t),Sr($t,zt),Sr(i,Vt),Ar&&Ar.m(i,null),Xt||(Ht=[Br(T,"change",r[54]),Br(T,"change",r[55]),Br(x,"input",r[56]),Br(x,"keyup",r[42]),Br(x,"keyup",r[57]),Br(B,"input",r[58]),Br(B,"keyup",r[59]),Br(B,"blur",r[43]),Br(z,"input",r[60]),Br(z,"keyup",r[61]),Br(z,"blur",r[44]),Br(Xe,"blur",r[45]),Br(Xe,"keyup",r[63]),Br(rt,"blur",r[47]),Br(rt,"keyup",r[65]),Br(ft,"blur",r[46]),Br(ft,"keyup",r[67]),Br(Tt,"change",r[68]),Br(Tt,"change",r[50]),Br(Dt,"change",r[69]),Br(Dt,"change",r[50]),Br($t,"click",r[71])],Xt=!0)},p(t,r){if(t[35]&&yr.p(t,r),8&r[1]&&Qt!==(Qt=t[34]("playerProfile.title")+"")&&kr(a,Qt),8&r[1]&&qt!==(qt=t[34]("playerProfile.personalDetails")+"")&&kr(c,qt),8&r[1]&&Kt!==(Kt=t[34]("playerProfile.userName")+"")&&kr(y,Kt),4&r[1]&&g.value!==t[33]&&(g.value=t[33]),8&r[1]&&Yt!==(Yt=t[34]("playerProfile.userPhone")+"")&&kr(P,Yt),33587200&r[0]){let e;for(mr=t[15],e=0;e<mr.length;e+=1){var n=fn(t,mr,e);gr[e]?gr[e].p(n,r):(gr[e]=mn(n),gr[e].c(),gr[e].m(T,null))}for(;e<gr.length;e+=1)gr[e].d(1);gr.length=mr.length}34816&r[0]&&Fr(T,t[11]),268435460&r[0]&&e!==(e=t[2]?t[28].number:"")&&Mr(x,"placeholder",e),4096&r[0]&&x.value!==t[12]&&Rr(x,t[12]),t[22]?br?br.p(t,r):(br=gn(t),br.c(),br.m(v,null)):br&&(br.d(1),br=null),4194304&r[0]&&I!==(I="PlayerInfoBox "+(t[22]?"InvalidField":""))&&Mr(v,"class",I),8&r[1]&&Zt!==(Zt=t[34]("playerProfile.securityQuestion")+"")&&kr(L,Zt),4&r[0]&&M!==(M=t[2]?t[41]:"")&&Mr(B,"placeholder",M),512&r[0]&&B.value!==t[9]&&Rr(B,t[9]),t[20]?vr?vr.p(t,r):(vr=bn(t),vr.c(),vr.m(C,null)):vr&&(vr.d(1),vr=null),1048576&r[0]&&R!==(R="PlayerInfoBox "+(t[20]?"InvalidField":""))&&Mr(C,"class",R),8&r[1]&&Jt!==(Jt=t[34]("playerProfile.securityAnswer")+"")&&kr(j,Jt),4&r[0]&&W!==(W=t[2]?t[40]:"")&&Mr(z,"placeholder",W),1024&r[0]&&z.value!==t[10]&&Rr(z,t[10]),t[21]?Er?Er.p(t,r):(Er=vn(t),Er.c(),Er.m(U,null)):Er&&(Er.d(1),Er=null),2097152&r[0]&&X!==(X="PlayerInfoBox "+(t[21]?"InvalidField":""))&&Mr(U,"class",X),8&r[1]&&er!==(er=t[34]("playerProfile.userEmail")+"")&&kr(K,er),536870912&r[0]&&Z.value!==t[29]&&(Z.value=t[29]),8&r[1]&&tr!==(tr=t[34]("playerProfile.dateOfBirth")+"")&&kr(re,tr),67108864&r[0]&&ie.value!==t[26]&&(ie.value=t[26]),8&r[1]&&rr!==(rr=t[34]("playerProfile.firstName")+"")&&kr(le,rr),1073741824&r[0]&&ce.value!==t[30]&&(ce.value=t[30]),8&r[1]&&nr!==(nr=t[34]("playerProfile.lastName")+"")&&kr(de,nr),2&r[1]&&me.value!==t[32]&&(me.value=t[32]),8&r[1]&&ir!==(ir=t[34]("playerProfile.userTitle")+"")&&kr(Ee,ir),1&r[1]&&we.value!==t[31]&&(we.value=t[31]),8&r[1]&&or!==(or=t[34]("playerProfile.currency")+"")&&kr(xe,or),134217728&r[0]&&Ie.value!==t[27]&&(Ie.value=t[27]),8&r[1]&&ar!==(ar=t[34]("playerProfile.locationDetails")+"")&&kr(Le,ar),8&r[1]&&sr!==(sr=t[34]("playerProfile.userCountry")+"")&&kr(Re,sr),1&r[0]&&Mr(Ue,"placeholder",t[0]),16384&r[0]&&Ge!==(Ge=t[14].Name)&&Ue.value!==Ge&&(Ue.value=Ge),8&r[1]&&lr!==(lr=t[34]("playerProfile.userCity")+"")&&kr(We,lr),4&r[0]&&He!==(He=t[2]?t[38]:"")&&Mr(Xe,"placeholder",He),33554436&r[0]&&Qe!==(Qe=t[2]?"":t[25].city)&&Xe.value!==Qe&&(Xe.value=Qe),t[17]?Pr?Pr.p(t,r):(Pr=En(t),Pr.c(),Pr.m($e,null)):Pr&&(Pr.d(1),Pr=null),131072&r[0]&&Ke!==(Ke="PlayerInfoBox "+(t[17]?"InvalidField":""))&&Mr($e,"class",Ke),8&r[1]&&ur!==(ur=t[34]("playerProfile.userAddress")+"")&&kr(et,ur),33554436&r[0]&&nt!==(nt=t[2]?"":t[25].address)&&rt.value!==nt&&(rt.value=nt),t[19]?wr?wr.p(t,r):(wr=Pn(t),wr.c(),wr.m(Ze,null)):wr&&(wr.d(1),wr=null),524288&r[0]&&ot!==(ot="PlayerInfoBox "+(t[19]?"InvalidField":""))&&Mr(Ze,"class",ot),8&r[1]&&cr!==(cr=t[34]("playerProfile.userPostalCode")+"")&&kr(ut,cr),4&r[0]&&pt!==(pt=t[2]?t[39]:"")&&Mr(ft,"placeholder",pt),33554436&r[0]&&ht!==(ht=t[2]?"":t[25].postalCode)&&(ft.value=ht),t[18]?_r?_r.p(t,r):(_r=wn(t),_r.c(),_r.m(st,null)):_r&&(_r.d(1),_r=null),262144&r[0]&&yt!==(yt="PlayerInfoBox "+(t[18]?"InvalidField":""))&&Mr(st,"class",yt),8&r[1]&&fr!==(fr=t[34]("playerProfile.userNotifications")+"")&&kr(vt,fr),64&r[0]&&(Tt.checked=t[6]),8&r[1]&&pr!==(pr=t[34]("playerProfile.userSMSNotification")+"")&&kr(Nt,pr),128&r[0]&&(Dt.checked=t[7]),8&r[1]&&hr!==(hr=t[34]("playerProfile.userEmailNotification")+"")&&kr(Ft,hr),t[24]?Tr?Tr.p(t,r):(Tr=_n(t),Tr.c(),Tr.m(i,Gt)):Tr&&(Tr.d(1),Tr=null),8&r[1]&&dr!==(dr=t[34]("playerProfile.userProfileSaveChanges")+"")&&kr(zt,dr),73728&r[0]&&Wt!==(Wt="PlayerDetailsSaveButton "+(t[13]&&t[16]?"":"PlayerButtonDisabled"))&&Mr($t,"class",Wt),t[23]?Ar?Ar.p(t,r):(Ar=Tn(t),Ar.c(),Ar.m(i,null)):Ar&&(Ar.d(1),Ar=null)},d(e){e&&Nr(i),yr&&yr.d(),function(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}(gr,e),br&&br.d(),vr&&vr.d(),Er&&Er.d(),r[62](null),Pr&&Pr.d(),r[64](null),wr&&wr.d(),r[66](null),_r&&_r.d(),Tr&&Tr.d(),Ar&&Ar.d(),Xt=!1,xr(Ht)}}}function hn(e){let r;return{c(){r=Cr("div"),Mr(r,"class","ModalLoader")},m(e,t){Ir(e,r,t)},p:f,d(e){e&&Nr(r)}}}function dn(e){let r,n,i,o=e[93].Prefix+"";return{c(){r=Cr("option"),n=Lr(o),r.__value=i=e[93].Prefix,r.value=r.__value},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){32768&t[0]&&o!==(o=e[93].Prefix+"")&&kr(n,o),32768&t[0]&&i!==(i=e[93].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&Nr(r)}}}function yn(e){let r,n,i,o=e[93].Prefix+"";return{c(){r=Cr("option"),n=Lr(o),r.selected=!0,r.__value=i=e[93].Prefix,r.value=r.__value},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){32768&t[0]&&o!==(o=e[93].Prefix+"")&&kr(n,o),32768&t[0]&&i!==(i=e[93].Prefix)&&(r.__value=i,r.value=r.__value)},d(e){e&&Nr(r)}}}function mn(e){let r;function n(e){return e[93].Prefix===e[25].mobiePrefix?yn:dn}let i=n(e),o=i(e);return{c(){o.c(),r=a()},m(e,t){o.m(e,t),Ir(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o.d(e),e&&Nr(r)}}}function gn(e){let r,n,i=e[34]("playerProfile.userPhoneError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userPhoneError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function bn(e){let r,n,i=e[34]("playerProfile.securityQuestionError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.securityQuestionError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function vn(e){let r,n,i=e[34]("playerProfile.securityAnswerError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.securityAnswerError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function En(e){let r,n,i=e[34]("playerProfile.userCityError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userCityError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function Pn(e){let r,n,i=e[34]("playerProfile.userAddressError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userAddressError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function wn(e){let r,n,i=e[34]("playerProfile.userPostalCodeError")+"";return{c(){r=Cr("p"),n=Lr(i),Mr(r,"class","InvalidInput")},m(e,t){Ir(e,r,t),Sr(r,n)},p(e,t){8&t[1]&&i!==(i=e[34]("playerProfile.userPostalCodeError")+"")&&kr(n,i)},d(e){e&&Nr(r)}}}function _n(r){let n,i,o,a,s,l,u,c,f,p,h,d,y,m,g,b=r[34]("playerProfile.userAppSettings")+"",v=r[34]("playerProfile.userBiometrics")+"";return{c(){n=Cr("div"),i=Cr("h3"),o=Lr(b),a=Dr(),s=Cr("section"),l=Cr("div"),u=Cr("label"),c=Cr("input"),f=Dr(),p=Cr("span"),h=Dr(),d=Cr("span"),y=Lr(v),Mr(n,"class","PlayerNotificationsHeader"),Mr(c,"type","checkbox"),Mr(c,"id","BiometricsEnabled"),Mr(c,"name","Biometric Enabled"),Mr(p,"class","Checkmark"),Mr(u,"for","Biometrics"),Mr(l,"class","PlayerNotificationBox"),Mr(s,"class","PlayerNotificationsCheckboxArea")},m(e,t){Ir(e,n,t),Sr(n,i),Sr(i,o),Ir(e,a,t),Ir(e,s,t),Sr(s,l),Sr(l,u),Sr(u,c),c.checked=r[8],Sr(u,f),Sr(u,p),Sr(u,h),Sr(u,d),Sr(d,y),m||(g=[Br(c,"change",r[70]),Br(c,"change",r[50])],m=!0)},p(e,t){8&t[1]&&b!==(b=e[34]("playerProfile.userAppSettings")+"")&&kr(o,b),256&t[0]&&(c.checked=e[8]),8&t[1]&&v!==(v=e[34]("playerProfile.userBiometrics")+"")&&kr(y,v)},d(e){e&&Nr(n),e&&Nr(a),e&&Nr(s),m=!1,xr(g)}}}function Tn(e){let r,n,i,o=e[34]("playerProfile.userProfileConfirmationMessage")+"";return{c(){r=Cr("section"),n=Cr("p"),i=Lr(o),Mr(n,"class","PlayerDetailsConfirmSaveText"),Mr(r,"class","PlayerDetailsConfirmSave")},m(e,t){Ir(e,r,t),Sr(r,n),Sr(n,i)},p(e,t){8&t[1]&&o!==(o=e[34]("playerProfile.userProfileConfirmationMessage")+"")&&kr(i,o)},d(e){e&&Nr(r)}}}function An(e){let r;function n(e){return e[1]?hn:pn}let i=n(e),o=i(e);return{c(){o.c(),r=a(),this.c=f},m(e,t){o.m(e,t),Ir(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},i:f,o:f,d(e){o.d(e),e&&Nr(r)}}}function xn(t,e,r){let n;var i=on;t.$$.on_destroy.push(oe(i,e=>r(34,n=e)));let o,a,s,l,{endpoint:u=""}=e,{lang:c="en"}=e,{countrycode:f="IR"}=e,p=!0,h=window.navigator.userAgent,d="PC"!=((i=h).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),y=!0,m=!1,g=!1,b=!1,v="",E="",P="",w="",_=!1,T={Name:"I.e Ireland"},A=[],x=[],S=!1,I="",N="",C="",O=!1,L=!1,D=!1,B=!1;Object.keys(an).forEach(e=>{Tr(e,an[e])});e=window.matchMedia("(min-width: 768px)");let M={address1:"",address2:"",city:"",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"",mobile:{prefix:"",number:""},postalCode:"",securityAnswer:"",securityQuestion:""},k={acceptNewsEmail:!1,acceptSMSOffers:!1,address:"",city:"",mobileNumber:"",mobilePrefix:"",postalCode:"",securityAnswer:"",securityQuestion:""},R={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",consents:{acceptNewsEmail:!1,acceptSMSOffers:!1},country:"i.e.: Ireland",currency:"EUR",email:"email@here.com",firstname:"Joe",userTitles:"M",lastname:"Johnson",mobile:{prefix:"+00",number:"00000000"},postalCode:"i.e.: 465531",securityAnswer:"i.e.: Jerry",securityQuestion:"i.e.: Pet name?",title:"",username:"Username"},{address1:F,birth:U,city:G,currency:j,mobile:$,email:z,firstname:W,userTitles:V,language:X,lastname:H,postalCode:Q,securityAnswer:q,securityQuestion:K,username:Y}=R;const Z=e=>{if(e.data)switch(e.data.type){case"ProfileDetailsData":r(2,y=!1),R=e.data.profileDetails,r(33,Y=R.username),r(28,$=R.mobile),r(29,z=R.email),r(30,W=R.firstname),r(32,H=R.lastname),X=R.language,r(26,U=R.birth.day+"/"+R.birth.month+"/"+R.birth.year),r(27,j=R.currency),r(31,V=R.title),r(6,m=R.consents.acceptSMSOffers),r(7,g=R.consents.acceptNewsEmail),r(9,v=R.securityQuestion),r(10,E=R.securityAnswer),r(11,P=R.mobile.prefix),r(12,w=R.mobile.number),r(25,k={address:R.address1,city:R.city,acceptNewsEmail:R.consents.acceptNewsEmail,acceptSMSOffers:R.consents.acceptSMSOffers,mobilePrefix:$.prefix,mobileNumber:$.number,postalCode:R.postalCode,securityAnswer:R.securityAnswer,securityQuestion:R.securityQuestion});break;case"ConfirmProfileInfoSave":B&&(cn("BIOMETRICS_ENABLED",e=>{e!==b&&r(8,b=e)}),un(b?"ENABLE_BIOMETRICS":"DISABLE_BIOMETRICS")),r(13,_=!1),J()}},J=()=>{r(23,D=!0),setTimeout(()=>{r(23,D=!1)},3e3)},ee=()=>{r(16,S=!(O||L||I||C||N||l))},te=()=>{1==_&&1==S&&window.postMessage({type:"UpdatePlayerInfo",provisionalArray:M},window.location.href)},re=()=>{window.postMessage({type:"ReturnToMenu"},window.location.href)},ne=()=>{M={acceptNewsEmail:g,acceptSMSOffers:m,address:a.value,city:s.value,mobileNumber:w,mobilePrefix:P,postalCode:o.value,securityAnswer:E,securityQuestion:v},ie(M,k),ee()},ie=(e,t)=>{JSON.stringify(e)===JSON.stringify(t)?r(13,_=!1):r(13,_=!0)};return i=()=>(window.addEventListener("message",Z,!1),r(24,B=!!ln(h)),B&&(cn("BIOMETRICS_ENABLED",e=>{r(8,b=!!e)}),un("BIOMETRICS_ENABLED")),()=>{window.removeEventListener("message",Z)}),function(){if(!ae)throw new Error("Function called outside component initialization");return ae}().$$.on_mount.push(i),t.$$set=e=>{"endpoint"in e&&r(51,u=e.endpoint),"lang"in e&&r(52,c=e.lang),"countrycode"in e&&r(0,f=e.countrycode)},t.$$.update=()=>{var e;2097152&t.$$.dirty[1]&&c&&(e=c,Qr.set(e)),1&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&u&&f&&fetch(`${u}/player/countries`).then(e=>e.json()).then(e=>{x=e.countries,r(14,T=x.find(e=>e.Alpha2Code===f)||{Name:"I.E. Ireland"}),r(1,p=!1)}),1048576&t.$$.dirty[1]&&u&&fetch(`${u}/player/phonecodes`).then(e=>e.json()).then(e=>{r(15,A=e.phoneCodes)})},[f,p,y,o,a,s,m,g,b,v,E,P,w,_,T,A,S,I,N,C,O,L,l,D,B,k,U,j,$,z,W,V,H,Y,n,d,e,F,G,Q,q,K,()=>{r(22,l=!(w&&5<=w.length&&w.length<=30)),ee()},()=>{r(20,O=!(v&&v.length<=120)),ee()},()=>{r(21,L=!(E&&E.length<=120)),ee()},()=>{r(17,I=!(s.value&&s.value.length<=50)),ee()},()=>{r(18,N=!(o.value&&o.value.length<=20)),ee()},()=>{r(19,C=!(a.value&&a.value.length<=100)),ee()},te,re,ne,u,c,()=>re(),function(){P=function(e){e=e.querySelector(":checked")||e.options[0];return e&&e.__value}(this),r(11,P),r(15,A)},()=>ne(),function(){w=this.value,r(12,w)},()=>ne(),function(){v=this.value,r(9,v)},()=>ne(),function(){E=this.value,r(10,E)},()=>ne(),function(e){se[e?"unshift":"push"](()=>{s=e,r(5,s)})},()=>ne(),function(e){se[e?"unshift":"push"](()=>{a=e,r(4,a)})},()=>ne(),function(e){se[e?"unshift":"push"](()=>{o=e,r(3,o)})},()=>ne(),function(){m=this.checked,r(6,m)},function(){g=this.checked,r(7,g)},function(){b=this.checked,r(8,b)},()=>te()]}class Sn extends u{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'}.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}.PlayerInfoWrapper{color:var(--emfe-w-color-contrast, #07072A);background:var(--emfe-w-color-gray-50, #F9F8F8);padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerLocationHeader h3{font-size:16px;color:var(--emfe-w-color-primary, #D0046C);text-transform:capitalize;font-weight:400}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:var(--emfe-w-color-contrast, #07072A);padding:10px;line-height:16px;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.PlayerInfoBox.InvalidField input{border:1px solid var(--emfe-w-color-error, #FD2839);background:var(--emfe-w-color-primary-50, #FBECF4);color:var(--emfe-w-color-error, #FD2839)}.PlayerInfoBox .InvalidInput{color:var(--emfe-w-color-error, #FD2839);font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(\"data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>\") no-repeat var(--emfe-w-color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid var(--emfe-w-color-primary, #D0046C);box-shadow:0 0 0 1pt var(--emfe-w-color-primary, #D0046C)}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emfe-w-color-primary, #D0046C)}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--emfe-w-color-contrast, #07072A);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emfe-w-color-primary-600, #99034F)}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-gray-50, #F9F8F8);max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:var(--emfe-w-color-primary, #D0046C);font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emfe-w-color-gray-300, #58586B);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emfe-w-color-contrast, #07072A);font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton{font-size:12px;height:40px;color:var(--emfe-w-color-white, #FFFFFF)}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:16px;bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emfe-w-color-white, #FFFFFF)}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emfe-w-color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emfe-w-color-green, #48952a);color:var(--emfe-w-color-white, #FFFFFF);padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>",l(this,{target:this.shadowRoot,props:function(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},xn,An,r,{endpoint:51,lang:52,countrycode:0},[-1,-1,-1,-1]),e&&(e.target&&Ir(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["endpoint","lang","countrycode"]}get endpoint(){return this.$$.ctx[51]}set endpoint(e){this.$set({endpoint:e}),v()}get lang(){return this.$$.ctx[52]}set lang(e){this.$set({lang:e}),v()}get countrycode(){return this.$$.ctx[0]}set countrycode(e){this.$set({countrycode:e}),v()}}return customElements.get("player-profile-info")||customElements.define("player-profile-info",Sn),Sn});
2
2
  //# sourceMappingURL=player-profile-info.js.map