@everymatrix/player-profile-info 1.59.2 → 1.59.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerProfileInfo-DmZjlaCA.cjs → PlayerProfileInfo-CDPkraxN.cjs} +4 -4
- package/components/{PlayerProfileInfo-54_Yh3aJ.js → PlayerProfileInfo-DL2-cwoZ.js} +610 -632
- package/components/{PlayerProfileInfo-DiTttSSm.js → PlayerProfileInfo-Dzv5wgq4.js} +592 -614
- package/es2015/player-profile-info.cjs +1 -1
- package/es2015/player-profile-info.js +1 -1
- package/esnext/player-profile-info.js +1 -1
- package/package.json +2 -2
- package/stencil/index-ae04a8b1-BxaX26xW.js +516 -0
- package/stencil/index-ae04a8b1-D7qYBP-T.js +532 -0
- package/stencil/index-ae04a8b1-Dk7mk6oB.cjs +1 -0
- package/stencil/{ui-skeleton-C5gPr5Xv.js → ui-skeleton-DFpfaKvi.js} +2 -2
- package/stencil/{ui-skeleton-C1buDKbo.cjs → ui-skeleton-IHMCRYEX.cjs} +1 -1
- package/stencil/{ui-skeleton-M7HNQCk1.js → ui-skeleton-UUT_AJxa.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-DO34s50a.cjs → ui-skeleton-a642cced-5nW6b8_l.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-BFJMszWG.js → ui-skeleton-a642cced-BNXFvvk_.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-p8tGooXk.js → ui-skeleton-a642cced-DdY2eEM0.js} +1 -1
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +0 -1
- package/stencil/index-ae04a8b1-DRAR7dln.js +0 -532
- package/stencil/index-ae04a8b1-eSktas_K.js +0 -516
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var mo=Object.defineProperty,bo=Object.defineProperties;var yo=Object.getOwnPropertyDescriptors;var zn=Object.getOwnPropertySymbols;var vo=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable;var Vr=(e,t,r)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wn=(e,t)=>{for(var r in t||(t={}))vo.call(t,r)&&Vr(e,r,t[r]);if(zn)for(var r of zn(t))go.call(t,r)&&Vr(e,r,t[r]);return e},Qn=(e,t)=>bo(e,yo(t));var be=(e,t,r)=>(Vr(e,typeof t!="symbol"?t+"":t,r),r);var kt=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{l(r.next(c))}catch(u){i(u)}},a=c=>{try{l(r.throw(c))}catch(u){i(u)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);l((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-IHMCRYEX.cjs");function fe(){}function Ni(e){return e()}function Vn(){return Object.create(null)}function ze(e){e.forEach(Ni)}function Cr(e){return typeof e=="function"}function Hi(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function _o(e){return Object.keys(e).length===0}function Mi(e,...t){if(e==null){for(const n of t)n(void 0);return fe}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Eo(e,t,r){e.$$.on_destroy.push(Mi(t,r))}function s(e,t){e.appendChild(t)}function Po(e,t,r){const n=xo(e);if(!n.getElementById(t)){const i=p("style");i.id=t,i.textContent=r,wo(n,i)}}function xo(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function wo(e,t){return s(e.head||e,t),t.sheet}function L(e,t,r){e.insertBefore(t,r||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function Ht(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function p(e){return document.createElement(e)}function lt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function S(e){return document.createTextNode(e)}function _(){return S(" ")}function Oi(){return S("")}function G(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function f(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function So(e){return Array.from(e.childNodes)}function N(e,t){t=""+t,e.data!==t&&(e.data=t)}function $(e,t){e.value=t==null?"":t}function $n(e,t,r){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===t){i.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Co(e){const t=e.querySelector(":checked");return t&&t.__value}function Ao(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let Ot;function Mt(e){Ot=e}function Bo(){if(!Ot)throw new Error("Function called outside component initialization");return Ot}function Io(e){Bo().$$.on_mount.push(e)}const ft=[],en=[];let ht=[];const Xn=[],To=Promise.resolve();let tn=!1;function ko(){tn||(tn=!0,To.then(_e))}function xr(e){ht.push(e)}const $r=new Set;let ut=0;function _e(){if(ut!==0)return;const e=Ot;do{try{for(;ut<ft.length;){const t=ft[ut];ut++,Mt(t),No(t.$$)}}catch(t){throw ft.length=0,ut=0,t}for(Mt(null),ft.length=0,ut=0;en.length;)en.pop()();for(let t=0;t<ht.length;t+=1){const r=ht[t];$r.has(r)||($r.add(r),r())}ht.length=0}while(ft.length);for(;Xn.length;)Xn.pop()();tn=!1,$r.clear(),Mt(e)}function No(e){if(e.fragment!==null){e.update(),ze(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(xr)}}function Ho(e){const t=[],r=[];ht.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),ht=t}const Mo=new Set;function Oo(e,t){e&&e.i&&(Mo.delete(e),e.i(t))}function Xe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Do(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),xr(()=>{const o=e.$$.on_mount.map(Ni).filter(Cr);e.$$.on_destroy?e.$$.on_destroy.push(...o):ze(o),e.$$.on_mount=[]}),i.forEach(xr)}function Lo(e,t){const r=e.$$;r.fragment!==null&&(Ho(r.after_update),ze(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Fo(e,t){e.$$.dirty[0]===-1&&(ft.push(e),ko(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ro(e,t,r,n,i,o,a=null,l=[-1]){const c=Ot;Mt(e);const u=e.$$={fragment:null,ctx:[],props:o,update:fe,not_equal:i,bound:Vn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Vn(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};a&&a(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(d,y,...b)=>{const x=b.length?b[0]:y;return u.ctx&&i(u.ctx[d],u.ctx[d]=x)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](x),h&&Fo(e,d)),y}):[],u.update(),h=!0,ze(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const d=So(t.target);u.fragment&&u.fragment.l(d),d.forEach(D)}else u.fragment&&u.fragment.c();t.intro&&Oo(e.$$.fragment),Do(e,t.target,t.anchor),_e()}Mt(c)}let Di;typeof HTMLElement=="function"&&(Di=class extends HTMLElement{constructor(t,r,n){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return kt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=p("slot"),o!=="default"&&f(a,"name",o)},m:function(u,h){L(u,a,h)},d:function(u){u&&D(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Ao(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=gr(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Qn(Wn({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=gr(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const l=this.$$c.$on(o,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=gr(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function gr(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Uo(e,t,r,n,i,o){let a=class extends Di{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){var u;c=gr(l,c,t),this.$$d[l]=c,(u=this.$$c)==null||u.$set({[l]:c})}})}),n.forEach(l=>{Object.defineProperty(a.prototype,l,{get(){var c;return(c=this.$$c)==null?void 0:c[l]}})}),e.element=a,a}class jo{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){Lo(this,1),this.$destroy=fe}$on(t,r){if(!Cr(r))return fe;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!_o(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Go="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Go);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
11
11
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */var
|
|
14
|
+
***************************************************************************** */var rn=function(e,t){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},rn(e,t)};function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var k=function(){return k=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},k.apply(this,arguments)};function zo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function nn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function on(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function pt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function Oe(e){return typeof e=="function"}function Li(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Xr=Li(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
15
15
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function sn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ar=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=on(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(P){t={error:P}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(De(h))try{h()}catch(P){o=P instanceof Xr?P.errors:[P]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var y=on(d),b=y.next();!b.done;b=y.next()){var x=b.value;try{Yn(x)}catch(P){o=o!=null?o:[],P instanceof Xr?o=pt(pt([],an(o)),an(P.errors)):o.push(P)}}}catch(P){n={error:P}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}}if(o)throw new Xr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Yn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&sn(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&sn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ji=Ar.EMPTY;function Gi(e){return e instanceof Ar||e&&"closed"in e&&De(e.remove)&&De(e.add)&&De(e.unsubscribe)}function Yn(e){De(e)?e():e.unsubscribe()}var zi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xo={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,pt([e,t],an(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Zo(e){Xo.setTimeout(function(){throw e})}function Kn(){}function _r(e){e()}var Wi=function(e){Oe(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Gi(r)&&r.add(n)):n.destination=Ko,n}return t.create=function(r,n,i){return new ln(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ar),qo=Function.prototype.bind;function Zr(e,t){return qo.call(e,t)}var Jo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){yr(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){yr(n)}else yr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){yr(r)}},e}(),ln=function(e){Oe(t,e);function t(r,n,i){var o=e.call(this)||this,a;if(De(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0};else{var l;o&&zi.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return o.unsubscribe()},a={next:r.next&&Zr(r.next,l),error:r.error&&Zr(r.error,l),complete:r.complete&&Zr(r.complete,l)}):a=r}return o.destination=new Jo(a),o}return t}(Wi);function yr(e){Zo(e)}function Yo(e){throw e}var Ko={closed:!0,next:Kn,error:Yo,complete:Kn},ea=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ta(e){return e}function ra(e){return e.length===0?ta:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var ei=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=ia(t)?t:new ln(t,r,n);return _r(function(){var a=i,l=a.operator,c=a.source;o.add(l?l.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=ti(r),new r(function(i,o){var a=new ln({next:function(l){try{t(l)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[ea]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return ra(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ti(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function ti(e){var t;return(t=e!=null?e:zi.Promise)!==null&&t!==void 0?t:Promise}function na(e){return e&&De(e.next)&&De(e.error)&&De(e.complete)}function ia(e){return e&&e instanceof Wi||na(e)&&Gi(e)}var oa=Ui(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qi=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new ri(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new oa},t.prototype.next=function(r){var n=this;_r(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=on(n.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(r)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;_r(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;_r(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,l=i.observers;return o||a?ji:(this.currentObservers=null,l.push(r),new Ar(function(){n.currentObservers=null,sn(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new ei;return r.source=this,r},t.create=function(r,n){return new ri(r,n)},t}(ei),ri=function(e){Oe(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:ji},t}(Qi),Vi={now:function(){return(Vi.delegate||Date).now()},delegate:void 0},aa=function(e){Oe(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Vi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,c=n._windowTime;i||(o.push(r),!a&&o.push(l.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,a=i._buffer,l=a.slice(),c=0;c<l.length&&!r.closed;c+=o?1:2)r.next(l[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<o.length&&o.splice(0,o.length-l),!a){for(var c=i.now(),u=0,h=1;h<o.length&&o[h]<=c;h+=2)u=h;u&&o.splice(0,u+1)}},t}(Qi);const ni=[],ii={},sa=(e,t=0)=>{if(ni.indexOf(e)==-1){const r=new aa(t);ii[e]=r,ni.push(e)}return ii[e]},ct=[];function la(e,t){return{subscribe:Br(e,t).subscribe}}function Br(e,t=fe){let r;const n=new Set;function i(l){if(Oi(e,l)&&(e=l,r)){const c=!ct.length;for(const u of n)u[1](),ct.push(u,e);if(c){for(let u=0;u<ct.length;u+=2)ct[u][0](ct[u+1]);ct.length=0}}}function o(l){i(l(e))}function a(l,c=fe){const u=[l,c];return n.add(u),n.size===1&&(r=t(i,o)||fe),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:a}}function vt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return la(r,(a,l)=>{let c=!1;const u=[];let h=0,d=fe;const y=()=>{if(h)return;d();const x=t(n?u[0]:u,a,l);o?a(x):d=Cr(x)?x:fe},b=i.map((x,P)=>Li(x,T=>{u[P]=T,h&=~(1<<P),c&&y()},()=>{h|=1<<P}));return c=!0,y(),function(){ze(b),d(),c=!1}})}function ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ca=function(t){return fa(t)&&!ha(t)};function fa(e){return!!e&&typeof e=="object"}function ha(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ma(e)}var pa=typeof Symbol=="function"&&Symbol.for,da=pa?Symbol.for("react.element"):60103;function ma(e){return e.$$typeof===da}function ba(e){return Array.isArray(e)?[]:{}}function Ot(e,t){return t.clone!==!1&&t.isMergeableObject(e)?dt(ba(e),e,t):e}function ya(e,t,r){return e.concat(t).map(function(n){return Ot(n,r)})}function va(e,t){if(!t.customMerge)return dt;var r=t.customMerge(e);return typeof r=="function"?r:dt}function ga(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function oi(e){return Object.keys(e).concat(ga(e))}function $i(e,t){try{return t in e}catch(r){return!1}}function _a(e,t){return $i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ea(e,t,r){var n={};return r.isMergeableObject(e)&&oi(e).forEach(function(i){n[i]=Ot(e[i],r)}),oi(t).forEach(function(i){_a(e,i)||($i(e,i)&&r.isMergeableObject(t[i])?n[i]=va(i,r)(e[i],t[i],r):n[i]=Ot(t[i],r))}),n}function dt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ya,r.isMergeableObject=r.isMergeableObject||ca,r.cloneUnlessOtherwiseSpecified=Ot;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Ea(e,t,r):Ot(t,r)}dt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return dt(n,i,r)},{})};var Pa=dt,xa=Pa;const wa=ua(xa);function qr(e,t){var r=t&&t.cache?t.cache:Ta,n=t&&t.serializer?t.serializer:Ia,i=t&&t.strategy?t.strategy:Ca;return i(e,{cache:r,serializer:n})}function Sa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xi(e,t,r,n){var i=Sa(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Zi(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function yn(e,t,r,n,i){return r.bind(t,e,n,i)}function Ca(e,t){var r=e.length===1?Xi:Zi;return yn(e,this,r,t.cache.create(),t.serializer)}function Aa(e,t){return yn(e,this,Zi,t.cache.create(),t.serializer)}function Ba(e,t){return yn(e,this,Xi,t.cache.create(),t.serializer)}var Ia=function(){return JSON.stringify(arguments)};function vn(){this.cache=Object.create(null)}vn.prototype.get=function(e){return this.cache[e]};vn.prototype.set=function(e,t){this.cache[e]=t};var Ta={create:function(){return new vn}},Jr={variadic:Aa,monadic:Ba},B;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(B||(B={}));var F;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(F||(F={}));var mt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(mt||(mt={}));function ai(e){return e.type===F.literal}function ka(e){return e.type===F.argument}function qi(e){return e.type===F.number}function Ji(e){return e.type===F.date}function Yi(e){return e.type===F.time}function Ki(e){return e.type===F.select}function eo(e){return e.type===F.plural}function Na(e){return e.type===F.pound}function to(e){return e.type===F.tag}function ro(e){return!!(e&&typeof e=="object"&&e.type===mt.number)}function un(e){return!!(e&&typeof e=="object"&&e.type===mt.dateTime)}var no=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ha=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ma(e){var t={};return e.replace(Ha,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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""}),t}var Da=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Oa(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Da).filter(function(y){return y.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],c=a.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function La(e){return e.replace(/^(.*?)-/,"")}var si=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,io=/^(@+)?(\+|#+)?[rs]?$/g,Fa=/(\*)(0+)|(#+)(0+)|(0+)/g,oo=/^(0+)$/;function li(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(io,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function ao(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 Ra(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!oo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ui(e){var t={},r=ao(e);return r||t}function Ua(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=La(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return k(k({},c),ui(u))},{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return k(k({},c),ui(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Fa,function(c,u,h,d,y,b){if(u)t.minimumIntegerDigits=h.length;else{if(d&&y)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(oo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(si.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(si,function(c,u,h,d,y,b){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:y&&b?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+b.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=k(k({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=k(k({},t),li(o)));continue}if(io.test(i.stem)){t=k(k({},t),li(i.stem));continue}var a=ao(i.stem);a&&(t=k(k({},t),a));var l=Ra(i.stem);l&&(t=k(k({},t),l))}return t}var vr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ja(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),l=o<2?1:3+(o>>1),c="a",u=Ga(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=c;for(;a-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function Ga(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=vr[n||""]||vr[r||""]||vr["".concat(r,"-001")]||vr["001"];return i[0]}var Yr,za=new RegExp("^".concat(no.source,"*")),Wa=new RegExp("".concat(no.source,"*$"));function I(e,t){return{start:e,end:t}}var Qa=!!String.prototype.startsWith&&"_a".startsWith("a",1),Va=!!String.fromCodePoint,$a=!!Object.fromEntries,Xa=!!String.prototype.codePointAt,Za=!!String.prototype.trimStart,qa=!!String.prototype.trimEnd,Ja=!!Number.isSafeInteger,Ya=Ja?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var Ka=lo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((Yr=Ka.exec("a"))===null||Yr===void 0?void 0:Yr[0])==="a"}catch(e){cn=!1}var ci=Qa?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},fn=Va?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},fi=$a?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],l=o[1];r[a]=l}return r},so=Xa?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},es=Za?function(t){return t.trimStart()}:function(t){return t.replace(za,"")},ts=qa?function(t){return t.trimEnd()}:function(t){return t.replace(Wa,"")};function lo(e,t){return new RegExp(e,t)}var hn;if(cn){var hi=lo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hn=function(t,r){var n;hi.lastIndex=r;var i=hi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else hn=function(t,r){for(var n=[];;){var i=so(t,r);if(i===void 0||uo(i)||os(i))break;n.push(i),r+=i>=65536?2:1}return fn.apply(void 0,n)};var rs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:F.pound,location:I(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(B.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&pn(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<".concat(i,"/>"),location:I(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pn(this.char()))return this.error(B.INVALID_TAG,I(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(B.UNMATCHED_CLOSING_TAG,I(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:i,children:a,location:I(n,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,I(l,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,I(n,this.clonePosition()))}else return this.error(B.INVALID_TAG,I(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&is(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=I(n,this.clonePosition());return{val:{type:F.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ns(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return fn.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),fn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,I(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:i,location:I(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=hn(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=I(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(B.EXPECT_ARGUMENT_TYPE,I(a,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var y=ts(d.val);if(y.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var b=I(h,this.clonePosition());u={style:y,styleLocation:b}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var P=I(i,this.clonePosition());if(u&&ci(u==null?void 0:u.style,"::",0)){var T=es(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(T,u.styleLocation);return d.err?d:{val:{type:F.number,value:n,location:P,style:d.val},err:null}}else{if(T.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,P);var z=T;this.locale&&(z=ja(T,this.locale));var y={type:mt.dateTime,pattern:z,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Ma(z):{}},w=l==="date"?F.date:F.time;return{val:{type:w,value:n,location:P,style:y},err:null}}}return{val:{type:l==="number"?F.number:l==="date"?F.date:F.time,value:n,location:P,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,I(M,k({},M)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),V=0;if(l!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),j=this.parseIdentifierIfPossible(),V=d.val}var m=this.tryParsePluralOrSelectOptions(t,l,r,j);if(m.err)return m;var x=this.tryParseArgumentClose(i);if(x.err)return x;var C=I(i,this.clonePosition());return l==="select"?{val:{type:F.select,value:n,options:fi(m.val),location:C},err:null}:{val:{type:F.plural,value:n,options:fi(m.val),offset:V,pluralType:l==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,I(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Oa(t)}catch(i){return this.error(B.INVALID_NUMBER_SKELETON,r)}return{val:{type:mt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ua(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,l=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;h=I(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(r==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(a=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,r,n);if(x.err)return x;var P=this.tryParseArgumentClose(b);if(P.err)return P;l.push([u,{value:x.val,location:I(b,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return l.length===0?this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(B.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,a=a*10+(l-48),this.bump();else break}var c=I(i,this.clonePosition());return o?(a*=n,Ya(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=so(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ci(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&uo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function pn(e){return e>=97&&e<=122||e>=65&&e<=90}function ns(e){return pn(e)||e===47}function is(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function uo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function os(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function dn(e){e.forEach(function(t){if(delete t.location,Ki(t)||eo(t))for(var r in t.options)delete t.options[r].location,dn(t.options[r].value);else qi(t)&&ro(t.style)||(Ji(t)||Yi(t))&&un(t.style)?delete t.style.location:to(t)&&dn(t.children)})}function as(e,t){t===void 0&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new rs(e,t).parse();if(r.err){var n=SyntaxError(B[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||dn(r.val),r.val}var bt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(bt||(bt={}));var Ir=function(e){Oe(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),pi=function(e){Oe(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),bt.INVALID_VALUE,o)||this}return t}(Ir),ss=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),bt.INVALID_VALUE,i)||this}return t}(Ir),ls=function(e){Oe(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),bt.MISSING_VALUE,n)||this}return t}(Ir),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function us(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Y.literal||r.type!==Y.literal?t.push(r):n.value+=r.value,t},[])}function cs(e){return typeof e=="function"}function Er(e,t,r,n,i,o,a){if(e.length===1&&ai(e[0]))return[{type:Y.literal,value:e[0].value}];for(var l=[],c=0,u=e;c<u.length;c++){var h=u[c];if(ai(h)){l.push({type:Y.literal,value:h.value});continue}if(Na(h)){typeof o=="number"&&l.push({type:Y.literal,value:r.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new ls(d,a);var y=i[d];if(ka(h)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),l.push({type:typeof y=="string"?Y.literal:Y.object,value:y});continue}if(Ji(h)){var b=typeof h.style=="string"?n.date[h.style]:un(h.style)?h.style.parsedOptions:void 0;l.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(y)});continue}if(Yi(h)){var b=typeof h.style=="string"?n.time[h.style]:un(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(y)});continue}if(qi(h)){var b=typeof h.style=="string"?n.number[h.style]:ro(h.style)?h.style.parsedOptions:void 0;b&&b.scale&&(y=y*(b.scale||1)),l.push({type:Y.literal,value:r.getNumberFormat(t,b).format(y)});continue}if(to(h)){var x=h.children,P=h.value,T=i[P];if(!cs(T))throw new ss(P,"function",a);var z=Er(x,t,r,n,i,o),w=T(z.map(function(V){return V.value}));Array.isArray(w)||(w=[w]),l.push.apply(l,w.map(function(V){return{type:typeof V=="string"?Y.literal:Y.object,value:V}}))}if(Ki(h)){var M=h.options[y]||h.options.other;if(!M)throw new pi(h.value,y,Object.keys(h.options),a);l.push.apply(l,Er(M.value,t,r,n,i));continue}if(eo(h)){var M=h.options["=".concat(y)];if(!M){if(!Intl.PluralRules)throw new Ir(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function an(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ar=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=nn(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(P){t={error:P}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(Oe(h))try{h()}catch(P){o=P instanceof Xr?P.errors:[P]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var y=nn(d),b=y.next();!b.done;b=y.next()){var x=b.value;try{Zn(x)}catch(P){o=o!=null?o:[],P instanceof Xr?o=pt(pt([],on(o)),on(P.errors)):o.push(P)}}}catch(P){n={error:P}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}}if(o)throw new Xr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Zn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&an(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&an(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Fi=Ar.EMPTY;function Ri(e){return e instanceof Ar||e&&"closed"in e&&Oe(e.remove)&&Oe(e.add)&&Oe(e.unsubscribe)}function Zn(e){Oe(e)?e():e.unsubscribe()}var Wo={Promise:void 0},Qo={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,pt([e,t],on(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Vo(e){Qo.setTimeout(function(){throw e})}function qn(){}function _r(e){e()}var Ui=function(e){De(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ri(r)&&r.add(n)):n.destination=Zo,n}return t.create=function(r,n,i){return new sn(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ar),$o=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){yr(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){yr(n)}else yr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){yr(r)}},e}(),sn=function(e){De(t,e);function t(r,n,i){var o=e.call(this)||this,a;return Oe(r)||!r?a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:a=r,o.destination=new $o(a),o}return t}(Ui);function yr(e){Vo(e)}function Xo(e){throw e}var Zo={closed:!0,next:qn,error:Xo,complete:qn},qo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jo(e){return e}function Yo(e){return e.length===0?Jo:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Jn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=ea(t)?t:new sn(t,r,n);return _r(function(){var a=i,l=a.operator,c=a.source;o.add(l?l.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Yn(r),new r(function(i,o){var a=new sn({next:function(l){try{t(l)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[qo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Yo(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Yn(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Yn(e){var t;return(t=e!=null?e:Wo.Promise)!==null&&t!==void 0?t:Promise}function Ko(e){return e&&Oe(e.next)&&Oe(e.error)&&Oe(e.complete)}function ea(e){return e&&e instanceof Ui||Ko(e)&&Ri(e)}var ta=Li(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ji=function(e){De(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Kn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ta},t.prototype.next=function(r){var n=this;_r(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=nn(n.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(r)}}catch(u){i={error:u}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;_r(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;_r(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,l=i.observers;return o||a?Fi:(this.currentObservers=null,l.push(r),new Ar(function(){n.currentObservers=null,an(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new Jn;return r.source=this,r},t.create=function(r,n){return new Kn(r,n)},t}(Jn),Kn=function(e){De(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Fi},t}(ji),Gi={now:function(){return(Gi.delegate||Date).now()},delegate:void 0},ra=function(e){De(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Gi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,c=n._windowTime;i||(o.push(r),!a&&o.push(l.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,a=i._buffer,l=a.slice(),c=0;c<l.length&&!r.closed;c+=o?1:2)r.next(l[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<o.length&&o.splice(0,o.length-l),!a){for(var c=i.now(),u=0,h=1;h<o.length&&o[h]<=c;h+=2)u=h;u&&o.splice(0,u+1)}},t}(ji);const ei=[],ti={},na=(e,t=0)=>{if(ei.indexOf(e)==-1){const r=new ra(t);ti[e]=r,ei.push(e)}return ti[e]},ct=[];function ia(e,t){return{subscribe:Br(e,t).subscribe}}function Br(e,t=fe){let r;const n=new Set;function i(l){if(Hi(e,l)&&(e=l,r)){const c=!ct.length;for(const u of n)u[1](),ct.push(u,e);if(c){for(let u=0;u<ct.length;u+=2)ct[u][0](ct[u+1]);ct.length=0}}}function o(l){i(l(e))}function a(l,c=fe){const u=[l,c];return n.add(u),n.size===1&&(r=t(i,o)||fe),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:a}}function vt(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ia(r,(a,l)=>{let c=!1;const u=[];let h=0,d=fe;const y=()=>{if(h)return;d();const x=t(n?u[0]:u,a,l);o?a(x):d=Cr(x)?x:fe},b=i.map((x,P)=>Mi(x,T=>{u[P]=T,h&=~(1<<P),c&&y()},()=>{h|=1<<P}));return c=!0,y(),function(){ze(b),d(),c=!1}})}function oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aa=function(t){return sa(t)&&!la(t)};function sa(e){return!!e&&typeof e=="object"}function la(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fa(e)}var ua=typeof Symbol=="function"&&Symbol.for,ca=ua?Symbol.for("react.element"):60103;function fa(e){return e.$$typeof===ca}function ha(e){return Array.isArray(e)?[]:{}}function Dt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?dt(ha(e),e,t):e}function pa(e,t,r){return e.concat(t).map(function(n){return Dt(n,r)})}function da(e,t){if(!t.customMerge)return dt;var r=t.customMerge(e);return typeof r=="function"?r:dt}function ma(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ri(e){return Object.keys(e).concat(ma(e))}function zi(e,t){try{return t in e}catch(r){return!1}}function ba(e,t){return zi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ya(e,t,r){var n={};return r.isMergeableObject(e)&&ri(e).forEach(function(i){n[i]=Dt(e[i],r)}),ri(t).forEach(function(i){ba(e,i)||(zi(e,i)&&r.isMergeableObject(t[i])?n[i]=da(i,r)(e[i],t[i],r):n[i]=Dt(t[i],r))}),n}function dt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||pa,r.isMergeableObject=r.isMergeableObject||aa,r.cloneUnlessOtherwiseSpecified=Dt;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):ya(e,t,r):Dt(t,r)}dt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return dt(n,i,r)},{})};var va=dt,ga=va;const _a=oa(ga);function Zr(e,t){var r=t&&t.cache?t.cache:Aa,n=t&&t.serializer?t.serializer:Sa,i=t&&t.strategy?t.strategy:xa;return i(e,{cache:r,serializer:n})}function Ea(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Pa(e,t,r,n){var i=Ea(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Wi(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Qi(e,t,r,n,i){return r.bind(t,e,n,i)}function xa(e,t){var r=e.length===1?Pa:Wi;return Qi(e,this,r,t.cache.create(),t.serializer)}function wa(e,t){return Qi(e,this,Wi,t.cache.create(),t.serializer)}var Sa=function(){return JSON.stringify(arguments)},Ca=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Aa={create:function(){return new Ca}},qr={variadic:wa},B;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(B||(B={}));var F;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(F||(F={}));var mt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(mt||(mt={}));function ni(e){return e.type===F.literal}function Ba(e){return e.type===F.argument}function Vi(e){return e.type===F.number}function $i(e){return e.type===F.date}function Xi(e){return e.type===F.time}function Zi(e){return e.type===F.select}function qi(e){return e.type===F.plural}function Ia(e){return e.type===F.pound}function Ji(e){return e.type===F.tag}function Yi(e){return!!(e&&typeof e=="object"&&e.type===mt.number)}function ln(e){return!!(e&&typeof e=="object"&&e.type===mt.dateTime)}var Ki=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ta=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ka(e){var t={};return e.replace(Ta,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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""}),t}var Na=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ha(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Na).filter(function(y){return y.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],c=a.slice(1),u=0,h=c;u<h.length;u++){var d=h[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function Ma(e){return e.replace(/^(.*?)-/,"")}var ii=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,eo=/^(@+)?(\+|#+)?[rs]?$/g,Oa=/(\*)(0+)|(#+)(0+)|(0+)/g,to=/^(0+)$/;function oi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(eo,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function ro(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 Da(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!to.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ai(e){var t={},r=ro(e);return r||t}function La(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ma(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return k(k({},c),ai(u))},{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return k(k({},c),ai(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Oa,function(c,u,h,d,y,b){if(u)t.minimumIntegerDigits=h.length;else{if(d&&y)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(to.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ii.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ii,function(c,u,h,d,y,b){return h==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:y&&b?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+b.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=k(k({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=k(k({},t),oi(o)));continue}if(eo.test(i.stem)){t=k(k({},t),oi(i.stem));continue}var a=ro(i.stem);a&&(t=k(k({},t),a));var l=Da(i.stem);l&&(t=k(k({},t),l))}return t}var vr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Fa(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),l=o<2?1:3+(o>>1),c="a",u=Ra(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=c;for(;a-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function Ra(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=vr[n||""]||vr[r||""]||vr["".concat(r,"-001")]||vr["001"];return i[0]}var Jr,Ua=new RegExp("^".concat(Ki.source,"*")),ja=new RegExp("".concat(Ki.source,"*$"));function I(e,t){return{start:e,end:t}}var Ga=!!String.prototype.startsWith&&"_a".startsWith("a",1),za=!!String.fromCodePoint,Wa=!!Object.fromEntries,Qa=!!String.prototype.codePointAt,Va=!!String.prototype.trimStart,$a=!!String.prototype.trimEnd,Xa=!!Number.isSafeInteger,Za=Xa?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},un=!0;try{var qa=io("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");un=((Jr=qa.exec("a"))===null||Jr===void 0?void 0:Jr[0])==="a"}catch(e){un=!1}var si=Ga?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},cn=za?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},li=Wa?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],l=o[1];r[a]=l}return r},no=Qa?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Ja=Va?function(t){return t.trimStart()}:function(t){return t.replace(Ua,"")},Ya=$a?function(t){return t.trimEnd()}:function(t){return t.replace(ja,"")};function io(e,t){return new RegExp(e,t)}var fn;if(un){var ui=io("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fn=function(t,r){var n;ui.lastIndex=r;var i=ui.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else fn=function(t,r){for(var n=[];;){var i=no(t,r);if(i===void 0||oo(i)||rs(i))break;n.push(i),r+=i>=65536?2:1}return cn.apply(void 0,n)};var Ka=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:F.pound,location:I(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(B.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hn(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<".concat(i,"/>"),location:I(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hn(this.char()))return this.error(B.INVALID_TAG,I(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(B.UNMATCHED_CLOSING_TAG,I(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:i,children:a,location:I(n,this.clonePosition())},err:null}:this.error(B.INVALID_TAG,I(l,this.clonePosition())))}else return this.error(B.UNCLOSED_TAG,I(n,this.clonePosition()))}else return this.error(B.INVALID_TAG,I(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ts(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=I(n,this.clonePosition());return{val:{type:F.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!es(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return cn.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),cn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(B.EMPTY_ARGUMENT,I(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:i,location:I(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(B.MALFORMED_ARGUMENT,I(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=fn(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=I(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(B.EXPECT_ARGUMENT_TYPE,I(a,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var y=Ya(d.val);if(y.length===0)return this.error(B.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var b=I(h,this.clonePosition());u={style:y,styleLocation:b}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var P=I(i,this.clonePosition());if(u&&si(u==null?void 0:u.style,"::",0)){var T=Ja(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(T,u.styleLocation);return d.err?d:{val:{type:F.number,value:n,location:P,style:d.val},err:null}}else{if(T.length===0)return this.error(B.EXPECT_DATE_TIME_SKELETON,P);var z=T;this.locale&&(z=Fa(T,this.locale));var y={type:mt.dateTime,pattern:z,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ka(z):{}},w=l==="date"?F.date:F.time;return{val:{type:w,value:n,location:P,style:y},err:null}}}return{val:{type:l==="number"?F.number:l==="date"?F.date:F.time,value:n,location:P,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,I(M,k({},M)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),V=0;if(l!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),j=this.parseIdentifierIfPossible(),V=d.val}var m=this.tryParsePluralOrSelectOptions(t,l,r,j);if(m.err)return m;var x=this.tryParseArgumentClose(i);if(x.err)return x;var C=I(i,this.clonePosition());return l==="select"?{val:{type:F.select,value:n,options:li(m.val),location:C},err:null}:{val:{type:F.plural,value:n,options:li(m.val),offset:V,pluralType:l==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(B.INVALID_ARGUMENT_TYPE,I(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,I(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Ha(t)}catch(i){return this.error(B.INVALID_NUMBER_SKELETON,r)}return{val:{type:mt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?La(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,l=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR,B.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;h=I(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(c.has(u))return this.error(r==="select"?B.DUPLICATE_SELECT_ARGUMENT_SELECTOR:B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(a=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,r,n);if(x.err)return x;var P=this.tryParseArgumentClose(b);if(P.err)return P;l.push([u,{value:x.val,location:I(b,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return l.length===0?this.error(r==="select"?B.EXPECT_SELECT_ARGUMENT_SELECTOR:B.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(B.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,a=a*10+(l-48),this.bump();else break}var c=I(i,this.clonePosition());return o?(a*=n,Za(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=no(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(si(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function hn(e){return e>=97&&e<=122||e>=65&&e<=90}function es(e){return hn(e)||e===47}function ts(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function oo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function rs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pn(e){e.forEach(function(t){if(delete t.location,Zi(t)||qi(t))for(var r in t.options)delete t.options[r].location,pn(t.options[r].value);else Vi(t)&&Yi(t.style)||($i(t)||Xi(t))&&ln(t.style)?delete t.style.location:Ji(t)&&pn(t.children)})}function ns(e,t){t===void 0&&(t={}),t=k({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ka(e,t).parse();if(r.err){var n=SyntaxError(B[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||pn(r.val),r.val}var bt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(bt||(bt={}));var Ir=function(e){De(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ci=function(e){De(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),bt.INVALID_VALUE,o)||this}return t}(Ir),is=function(e){De(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),bt.INVALID_VALUE,i)||this}return t}(Ir),os=function(e){De(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),bt.MISSING_VALUE,n)||this}return t}(Ir),Y;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Y||(Y={}));function as(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Y.literal||r.type!==Y.literal?t.push(r):n.value+=r.value,t},[])}function ss(e){return typeof e=="function"}function Er(e,t,r,n,i,o,a){if(e.length===1&&ni(e[0]))return[{type:Y.literal,value:e[0].value}];for(var l=[],c=0,u=e;c<u.length;c++){var h=u[c];if(ni(h)){l.push({type:Y.literal,value:h.value});continue}if(Ia(h)){typeof o=="number"&&l.push({type:Y.literal,value:r.getNumberFormat(t).format(o)});continue}var d=h.value;if(!(i&&d in i))throw new os(d,a);var y=i[d];if(Ba(h)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),l.push({type:typeof y=="string"?Y.literal:Y.object,value:y});continue}if($i(h)){var b=typeof h.style=="string"?n.date[h.style]:ln(h.style)?h.style.parsedOptions:void 0;l.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(y)});continue}if(Xi(h)){var b=typeof h.style=="string"?n.time[h.style]:ln(h.style)?h.style.parsedOptions:n.time.medium;l.push({type:Y.literal,value:r.getDateTimeFormat(t,b).format(y)});continue}if(Vi(h)){var b=typeof h.style=="string"?n.number[h.style]:Yi(h.style)?h.style.parsedOptions:void 0;b&&b.scale&&(y=y*(b.scale||1)),l.push({type:Y.literal,value:r.getNumberFormat(t,b).format(y)});continue}if(Ji(h)){var x=h.children,P=h.value,T=i[P];if(!ss(T))throw new is(P,"function",a);var z=Er(x,t,r,n,i,o),w=T(z.map(function(V){return V.value}));Array.isArray(w)||(w=[w]),l.push.apply(l,w.map(function(V){return{type:typeof V=="string"?Y.literal:Y.object,value:V}}))}if(Zi(h)){var M=h.options[y]||h.options.other;if(!M)throw new ci(h.value,y,Object.keys(h.options),a);l.push.apply(l,Er(M.value,t,r,n,i));continue}if(qi(h)){var M=h.options["=".concat(y)];if(!M){if(!Intl.PluralRules)throw new Ir(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,bt.MISSING_INTL_API,a);var j=r.getPluralRules(t,{type:h.pluralType}).select(y-(h.offset||0));M=h.options[j]||h.options.other}if(!M)throw new pi(h.value,y,Object.keys(h.options),a);l.push.apply(l,Er(M.value,t,r,n,i,y-(h.offset||0)));continue}}return us(l)}function fs(e,t){return t?k(k(k({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=k(k({},e[n]),t[n]||{}),r},{})):e}function hs(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fs(e[n],t[n]),r},k({},e)):e}function Kr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ps(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:qr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pt([void 0],r,!1)))},{cache:Kr(e.number),strategy:Jr.variadic}),getDateTimeFormat:qr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pt([void 0],r,!1)))},{cache:Kr(e.dateTime),strategy:Jr.variadic}),getPluralRules:qr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pt([void 0],r,!1)))},{cache:Kr(e.pluralRules),strategy:Jr.variadic})}}var ds=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(d,y){return!d.length||y.type!==Y.literal||typeof d[d.length-1]!="string"?d.push(y.value):d[d.length-1]+=y.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return Er(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var l=$o(a,["formatters"]);this.ast=e.__parse(t,k(k({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hs(e.formats,n),this.formatters=i&&i.formatters||ps(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=as,e.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"}}},e}();function ms(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const Ge={},bs=(e,t,r)=>r&&(t in Ge||(Ge[t]={}),e in Ge[t]||(Ge[t][e]=r),r),co=(e,t)=>{if(t==null)return;if(t in Ge&&e in Ge[t])return Ge[t][e];const r=Tr(t);for(let n=0;n<r.length;n++){const i=r[n],o=vs(i,e);if(o)return bs(e,t,o)}};let gn;const Ft=Br({});function ys(e){return gn[e]||null}function fo(e){return e in gn}function vs(e,t){if(!fo(e))return null;const r=ys(e);return ms(r,t)}function gs(e){if(e==null)return;const t=Tr(e);for(let r=0;r<t.length;r++){const n=t[r];if(fo(n))return n}}function ho(e,...t){delete Ge[e],Ft.update(r=>(r[e]=wa.all([r[e]||{},...t]),r))}vt([Ft],([e])=>Object.keys(e));Ft.subscribe(e=>gn=e);const Pr={};function _s(e,t){Pr[e].delete(t),Pr[e].size===0&&delete Pr[e]}function po(e){return Pr[e]}function Es(e){return Tr(e).map(t=>{const r=po(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function mn(e){return e==null?!1:Tr(e).some(t=>{var r;return(r=po(t))==null?void 0:r.size})}function Ps(e,t){return Promise.all(t.map(n=>(_s(e,n),n().then(i=>i.default||i)))).then(n=>ho(e,...n))}const Nt={};function mo(e){if(!mn(e))return e in Nt?Nt[e]:Promise.resolve();const t=Es(e);return Nt[e]=Promise.all(t.map(([r,n])=>Ps(r,n))).then(()=>{if(mn(e))return mo(e);delete Nt[e]}),Nt[e]}const xs={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"}}},ws={fallbackLocale:null,loadingDelay:200,formats:xs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ss=ws;function yt(){return Ss}const en=Br(!1);var Cs=Object.defineProperty,As=Object.defineProperties,Bs=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,mi=(e,t,r)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ks=(e,t)=>{for(var r in t||(t={}))Is.call(t,r)&&mi(e,r,t[r]);if(di)for(var r of di(t))Ts.call(t,r)&&mi(e,r,t[r]);return e},Ns=(e,t)=>As(e,Bs(t));let bn;const wr=Br(null);function bi(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Tr(e,t=yt().fallbackLocale){const r=bi(e);return t?[...new Set([...r,...bi(t)])]:r}function Ze(){return bn!=null?bn:void 0}wr.subscribe(e=>{bn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Hs=e=>{if(e&&gs(e)&&mn(e)){const{loadingDelay:t}=yt();let r;return typeof window!="undefined"&&Ze()!=null&&t?r=window.setTimeout(()=>en.set(!0),t):en.set(!0),mo(e).then(()=>{wr.set(e)}).finally(()=>{clearTimeout(r),en.set(!1)})}return wr.set(e)},gt=Ns(ks({},wr),{set:Hs}),kr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Ms=Object.defineProperty,Sr=Object.getOwnPropertySymbols,bo=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,yi=(e,t,r)=>t in e?Ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_n=(e,t)=>{for(var r in t||(t={}))bo.call(t,r)&&yi(e,r,t[r]);if(Sr)for(var r of Sr(t))yo.call(t,r)&&yi(e,r,t[r]);return e},_t=(e,t)=>{var r={};for(var n in e)bo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sr)for(var n of Sr(e))t.indexOf(n)<0&&yo.call(e,n)&&(r[n]=e[n]);return r};const Lt=(e,t)=>{const{formats:r}=yt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ds=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Lt("number",n)),new Intl.NumberFormat(r,i)}),Os=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Lt("date",n):Object.keys(i).length===0&&(i=Lt("date","short")),new Intl.DateTimeFormat(r,i)}),Ls=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Lt("time",n):Object.keys(i).length===0&&(i=Lt("time","short")),new Intl.DateTimeFormat(r,i)}),Fs=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Ds(_n({locale:r},n))},Rs=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Os(_n({locale:r},n))},Us=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Ls(_n({locale:r},n))},js=kr((e,t=Ze())=>new ds(e,t,yt().formats,{ignoreTag:yt().ignoreTag})),Gs=(e,t={})=>{var r,n,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:c=Ze(),default:u}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=co(e,c);if(!h)h=(o=(i=(n=(r=yt()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let d=h;try{d=js(h,c).format(l)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return d},zs=(e,t)=>Us(t).format(e),Ws=(e,t)=>Rs(t).format(e),Qs=(e,t)=>Fs(t).format(e),Vs=(e,t=Ze())=>co(e,t),$s=vt([gt,Ft],()=>Gs);vt([gt],()=>zs);vt([gt],()=>Ws);vt([gt],()=>Qs);vt([gt,Ft],()=>Vs);window.emWidgets={topic:sa};const Xs=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function vi(e,t){ho(e,t)}function Zs(e){gt.set(e)}const gi={en:{titleProfileInfo:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",iban:"IBAN:",userTitle:"Title:","Mr.":"Mr.","Mrs.":"Mrs.",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",smsConsent:"Enable SMS notifications",emailmarketingConsent:"Enable Emails",phonecallConsent:"Enable phone call notifications",postConsent:"Enable post notifications","3rdpartyConsent":"Enable third-party notifications",smsandemailConsent:"Enable SMS and email notifications",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!",userProfileUpdateError:"An error has occured when attempting to update the profile information"},"zh-hk":{titleProfileInfo:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",profileSecurityQuestion:"安全問題",profileSecurityQuestion2:"文檔類型(DNI、外國身份證、護照)",profileSecurityQuestionError:"安全問題長度必須至少1個字符,最多120個字符。",profileSecurityQuestionError2:"僅接受字母和數字。",firstName:"名:",profileSecurityAnswer:"安全答案",profileSecurityAnswer2:"文件號碼:",profileSecurityAnswerError:"安全答案長度必須至少1個字符,最多120個字符。",profileSecurityAnswerError2:"僅接受字母和數字。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",iban:"銀行網",userTitle:"標題:","Mr.":"先生","Mrs.":"太太",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",smsConsent:"啟用短信通知",emailmarketingConsent:"啟用電子郵件",phonecallConsent:"啟用電話通知",postConsent:"啟用郵件通知","3rdpartyConsent":"啟用第三方通知",smsandemailConsent:"啟用短信和電子郵件通知",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!",userProfileUpdateError:"嘗試更新個人資料時出現錯誤"},fr:{titleProfileInfo:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",profileSecurityQuestion:"Question de sécurité",profileSecurityQuestion2:"Type de document (DNI, carte d'identité étrangère, passeport)",profileSecurityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",profileSecurityQuestionError2:"Seuls les lettres et les chiffres sont acceptés.",firstName:"Prénom:",profileSecurityAnswer:"Réponse de sécurité",profileSecurityAnswer2:"Numéro de document :",profileSecurityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",profileSecurityAnswerError2:"Seuls les lettres et les chiffres sont acceptés.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",iban:"IBAN:",userTitle:"Titre:","Mr.":"M.","Mrs.":"Mme",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",smsConsent:"Activer les notifications par sms",emailmarketingConsent:"Activer les e-mails",phonecallConsent:"Activer les notifications d'appel téléphonique",postConsent:"Activer les notifications par courrier","3rdpartyConsent":"Activer les notifications de tiers",smsandemailConsent:"Activer les notifications par SMS et e-mail",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!",userProfileUpdateError:"Une erreur s'est produite lors de la tentative de mise à jour des informations du profil"},ro:{titleProfileInfo:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",profileSecurityQuestion:"Întrebare de securitate",profileSecurityQuestion2:"Tip de document (DNI, carte de identitate străină, pașaport)",profileSecurityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",profileSecurityQuestionError2:"Sunt acceptate doar litere și cifre.",firstName:"Prenume:",profileSecurityAnswer:"Răspuns de securitate",profileSecurityAnswer2:"Număr document:",profileSecurityAnswerError:"Răspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",profileSecurityAnswerError2:"Sunt acceptate doar litere și cifre.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",iban:"IBAN:",userTitle:"Titlu:","Mr.":"Dl.","Mrs.":"Dna.",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCity:"Oraș:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",smsConsent:"Activează notificări prin SMS",emailmarketingConsent:"Activează notificări prin E-mail",phonecallConsent:"Activează notificările prin apel telefonic",postConsent:"Activează notificările prin poștă","3rdpartyConsent":"Activează notificările de la parte terță",smsandemailConsent:"Activează notificările prin SMS și e-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!",userProfileUpdateError:"A apărut o eroare la încercarea de a actualiza informațiile profilului"},tr:{titleProfileInfo:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",userEmail:"E-posta:",profileSecurityQuestion:"Güvenlik Sorusu",profileSecurityQuestion2:"Belge Türü (DNI, Yabancı Kimlik Kartı, Pasaport)",profileSecurityQuestionError:"Güvenlik sorusu en az 1 karakter uzunluğunda, en fazla 120 karakter uzunluğunda olmalıdır.",profileSecurityQuestionError2:"Yalnızca harf ve rakamlar kabul edilir.",firstName:"İlk adı:",profileSecurityAnswer:"Güvenlik cevabı",profileSecurityAnswer2:"Belge Numarası:",profileSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",profileSecurityAnswerError2:"Yalnızca harf ve rakamlar kabul edilir.",lastName:"Soy isim:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",iban:"IBAN:",userTitle:"Başlık:","Mr.":"Bay","Mrs.":"Bayan",locationDetails:"Konum Detayları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",userPostalCode:"Posta Kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",userNotifications:"Bildirimler",smsConsent:"SMS bildirimlerini etkinleştir",emailmarketingConsent:"E-postaları Etkinleştir",phonecallConsent:"Telefon araması bildirimlerini etkinleştir",postConsent:"Posta bildirimlerini etkinleştir","3rdpartyConsent":"Üçüncü taraf bildirimlerini etkinleştir",smsandemailConsent:"SMS ve e-posta bildirimlerini etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",userProfileUpdateError:"Profil bilgilerini güncellemeye çalışırken bir hata oluştu"},es:{titleProfileInfo:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",profileSecurityQuestion:"Pregunta de Seguridad",profileSecurityQuestion2:"Tipo de Documento (DNI, Carnet de identidad extranjero, Pasaporte)",profileSecurityQuestionError:"La pregunta de seguridad debe tener al menos 1 caracter y como máximo 120 caracteres.",profileSecurityQuestionError2:"Solo se aceptan letras y números.",firstName:"Nombre",profileSecurityAnswer:"Respuesta de Seguridad",profileSecurityAnswer2:"Número de Documento:",profileSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 caracter y como máximo 120 caracteres.",profileSecurityAnswerError2:"Solo se aceptan letras y números.",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",smsConsent:"Habilitar notificaciones SMS",emailmarketingConsent:"Habilitar Emails",phonecallConsent:"Habilitar notificaciones de llamadas telefónicas",postConsent:"Habilitar notificaciones por correo","3rdpartyConsent":"Habilitar notificaciones de terceros",smsandemailConsent:"Habilitar notificaciones por SMS y correo electrónico",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!",userProfileUpdateError:"Se ha producido un error al intentar actualizar la información del perfil"},pt:{titleProfileInfo:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",profileSecurityQuestion:"Pergunta de Segurança",profileSecurityQuestion2:"Tipo de Documento (DNI, Cartão de Identificação Estrangeiro, Passaporte)",profileSecurityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityQuestionError2:"Somente letras e números são aceitos.",firstName:"Primeiro nome:",profileSecurityAnswer:"Resposta de Segurança",profileSecurityAnswer2:"Número do Documento:",profileSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityAnswerError2:"Somente letras e números são aceitos.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",smsConsent:"Ativar notificações por SMS",emailmarketingConsent:"Ativar notificações por e-mail",phonecallConsent:"Ativar notificações de chamadas telefónicas",postConsent:"Ativar notificações de correio","3rdpartyConsent":"Ativar notificações de terceiros",smsandemailConsent:"Ativar notificações por SMS e e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!",userProfileUpdateError:"Ocorreu um erro ao tentar atualizar as informações do perfil"},hr:{titleProfileInfo:"Informacije o profilu",personalDetails:"Osobni podatci",userName:"Korisničko ime:",userPhone:"Telefon:",userPhoneError:"Broj telefona mora imati najmanje 5 znakova i najviše 12 znakova.",userEmail:"E-mail:",profileSecurityQuestion:"Sigurnosno pitanje",profileSecurityQuestion2:"Vrsta dokumenta",profileSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",firstName:"Ime",profileSecurityAnswer:"Sigurnosni odgovor",profileSecurityAnswer2:"Broj dokumenta:",profileSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",lastName:"Prezime",dateOfBirth:"Datum rođenja:",currency:"Valuta:",iban:"IBAN:",userTitle:"Titula:","Mr.":"Gosp.","Mrs.":"Gđa.",locationDetails:"Detalji lokacije",userCountry:"Zemlja:",userCity:"Grad:",userCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",userAddress:"Adresa:",userAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",userPostalCode:"Poštanski broj:",userPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",userNotifications:"Obavijesti",smsConsent:"Omogućite SMS obavijesti",emailmarketingConsent:"Omogući e-mail",phonecallConsent:"Omogući obavijesti o telefonskim pozivima",postConsent:"Omogući obavijesti o pošti","3rdpartyConsent":"Omogući obavijesti od trećih strana",smsandemailConsent:"Omogući obavijesti putem SMS-a i e-pošte",userProfileSaveChanges:"Spremi promjene",userProfileConfirmationMessage:"Vaše izmjene su spremljene!",userProfileUpdateError:"Došlo je do pogreške prilikom pokušaja ažuriranja podataka profila"},"pt-br":{titleProfileInfo:"Informação do Perfil",personalDetails:"Detalhes pessoais",userName:"Do utilizador:",userPhone:"Telefone:",userPhoneError:"O número do celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres",userEmail:"Correio eletrônico:",profileSecurityQuestion:"Pergunta de segurança:",profileSecurityQuestion2:"Tipo de documento de identidade (Documento de identidade nacional,identidade estrangeira, Pasaporte)",profileSecurityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres",profileSecurityQuestionError2:"Somente letras e números são aceitos",firstName:"Nome:",profileSecurityAnswer:"Pergunta de segurança:",profileSecurityAnswer2:"Número do documento:",profileSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityAnswerError2:"Somente letras e números são aceitos",lastName:"Sobrenome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",iban:"IBAN:",userTitle:"Qualificação:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalhes da localização:",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres",userAddress:"Endereço:",userAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres",userPostalCode:"Código postal:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres",userNotifications:"Notificações",smsConsent:"Habilitar notificações por SMS",emailmarketingConsent:"Ativar e-mail",phonecallConsent:"Ativar notificações de chamadas telefônicas",postConsent:"Ativar notificações de correio","3rdpartyConsent":"Ativar notificações de terceiros",smsandemailConsent:"Ativar notificações por SMS e e-mail",userProfileSaveChanges:"Guardar mudanças",userProfileConfirmationMessage:"Suas alterações foram salvas!",userProfileUpdateError:"Ocorreu um erro ao tentar atualizar as informações do perfil"},"es-mx":{titleProfileInfo:"Información de Perfil",personalDetails:"Detalles personales",userName:"Usuario:",userPhone:"Teléfono:",userPhoneError:"Número de Móvl debe tener al menos 5 caracteres de largo y 12 caracteres máximo",userEmail:"Correo electrónico:",profileSecurityQuestion:"Pregunta de Seguridad:",profileSecurityQuestion2:"Tipo de documento de identificación (Documento de identidad nacional, Identificación extranjera, Pasaporte)",profileSecurityQuestionError:"La pregunta de seguridad debe tener al menos 1 caracter de largo y máximo 120 caracteres",profileSecurityQuestionError2:"Solo letras y números son aceptados",firstName:"Nombre:",profileSecurityAnswer:"Pregunta de seguridad:",profileSecurityAnswer2:"Número de documento:",profileSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 carácter de largo y máximo 120 caracteres.",profileSecurityAnswerError2:"Solo letras y números son aceptados",lastName:"Apellido:",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalles de ubicación:",userCountry:"País:",userCity:"Ciudad:",userCityError:"Ciudad debe tener al menos 1 carácter de largo y 50 caracteres máximo",userAddress:"Dirección:",userAddressError:"Dirección debe tener al menos 1 carácter de largo y 100 caracteres máximo",userPostalCode:"Código Postal:",userPostalCodeError:"Código Postal debe tener al menos 1 carácter de largo y 20 caracteres máximo",userNotifications:"Notificaciones",smsConsent:"Habilitar notificaciones de SMS",emailmarketingConsent:"Habilitar correo electrónico",phonecallConsent:"Habilitar notificaciones de llamadas telefónicas",postConsent:"Habilitar notificaciones por correo","3rdpartyConsent":"Habilitar notificaciones de terceros",smsandemailConsent:"Habilitar notificaciones por SMS y correo electrónico",userProfileSaveChanges:"Guardar cambios",userProfileConfirmationMessage:"¡Sus cambios han sido guardados!",userProfileUpdateError:"Se ha producido un error al intentar actualizar la información del perfil"}};function qs(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Js(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ys(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Ks(e){Co(e,"svelte-18ne4rw",`button{font-family:var(--emw--button-typography)}.Hidden{display:none}input,select,option{font-family:inherit}.MyAccountCategoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-semibold, 500)}.MyAccountCategoryTitleMobile{font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));background:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;border-radius:20px}.PlayerInfoWrapper .PlayerFadeInWarapper{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerNotificationsHeader h3,.PlayerDetailsHeader h3,.PlayerLocationHeader h3{font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emw--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:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:10px}.PlayerInfoBox input{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);outline:none;transition-duration:0.3s;border:1px solid var(--emw--color-gray-100, #353535);border-radius:10px}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-red, #FD2839));background:var(--emw--color-pale, #FBECF4);color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding:10px;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border:1px solid var(--emw--color-gray-100, #353535);border-radius:10px;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(--emw--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(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield;appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox{margin-top:5px;margin-bottom:5px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 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(--emw--color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;max-width:400px;min-width:200px}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton.PlayerButtonDisabled{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsCancelButton{height:40px;font-size:var(--emw--size-x-small, 12px)}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emw--color-gray-50, #F9F8F8);max-width:unset;border-radius:0}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:ar(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400)}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-light, 300)}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-light, 300)}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton.PlayerButtonDisabled{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{color:var(--emw--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:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:var(--emw--font-size-large, 20px);line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerInfoBox .TogglePasswordVisibility{width:30px;top:26px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:var(--emw--size-standard, 16px);bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:var(--emw--size-standard, 16px);bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{font-family:var(--emw--button-typography);grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsCancelButton{font-size:var(--emw--font-size-large, 20px);height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emw--color-valid, var(--emw--color-green, #48952a));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}.skeletonContainer{max-width:unset;container-type:inline-size}.skeletonContainer .skeletonWrapper{background:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;border-radius:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.skeletonContainer .skeletonWrapper .skeletonHeaderText{width:200px;margin:25px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionText{width:150px;margin:16px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer{display:grid;grid-column-gap:50px;grid-row-gap:23px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:25px;margin-top:15px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer{display:flex;flex-direction:column}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer .skletonInputText{width:70px;margin:0px 0px 11px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer .skeletonInputField{border-radius:10px;overflow:hidden}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer{display:flex;flex-direction:column;justify-content:flex-start;padding-bottom:30px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer .skletonInputCircle{margin:5px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer .skletonInputText{width:150px}.skeletonContainer .skeletonWrapper .skeletonButton{width:400px;border-radius:var(--emw--button-border-radius, 50px);overflow:hidden;margin-top:10px}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{padding:20px 15px;width:auto;max-width:unset;border-radius:0px}.skeletonContainer .skeletonWrapper .skeletonHeaderText{margin:10px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionText{margin-top:31px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer{grid-template-columns:1fr;margin-top:13px;grid-row-gap:18px}.skeletonContainer .skeletonWrapper .skeletonButton{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`)}function _i(e,t,r){const n=e.slice();return n[63]=t[r],n[64]=t,n[65]=r,n}function Ei(e,t,r){const n=e.slice();return n[66]=t[r],n}function el(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function tl(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function rl(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function nl(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <div class="skeletonInputText"><ui-skeleton structure="text" width="auto" height="35px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&O(t)}}}function il(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <div class="skeletonInputField"><ui-skeleton structure="text" width="auto" height="35px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&O(t)}}}function ol(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputCircle"><ui-skeleton structure="circle" size="20px" height="10px"></ui-skeleton></div> <div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&O(t)}}}function Pi(e){let t,r,n,i,o=e[15]("titleProfileInfo")+"",a,l,c,u,h=e[15]("personalDetails")+"",d,y,b,x,P,T=e[15]("userName")+"",z,w,M,j,V,m,C,K=e[15]("userPhone")+"",he,X,D,E,ee,H,Le,Ee,We,te,Te,qe=(e[0]=="true"?e[15]("profileSecurityQuestion2"):e[15]("profileSecurityQuestion"))+"",Pe,Rt,Fe,Et,pe,Ut,Je,Pt,de,Re,Qe=(e[0]=="true"?e[15]("profileSecurityAnswer2"):e[15]("profileSecurityAnswer"))+"",xt,jt,Ue,wt,me,Gt,Ye,zt,je,Ke,et=e[15]("userEmail")+"",St,Wt,ye,Ve,Qt,v,A,U=e[15]("dateOfBirth")+"",R,ve,W,Z,En,tt,Vt,$t=e[15]("firstName")+"",Nr,Pn,ke,Ct,xn,rt,Xt,Zt=e[15]("lastName")+"",Hr,wn,Ne,At,Sn,nt,qt,Jt=e[15]("userTitle")+"",Mr,Cn,He,Bt,An,it,Yt,Kt=e[15]("currency")+"",Dr,Bn,Me,It,In,Tn,er,Or,tr=e[15]("locationDetails")+"",Lr,kn,xe,ot,rr,nr=e[15]("userCountry")+"",Fr,Nn,ge,Tt,ir,Hn,we,or,ar=e[15]("userCity")+"",Rr,Mn,Se,Dn,sr,On,Ce,lr,ur=e[15]("userAddress")+"",Ur,Ln,Ae,Fn,cr,Rn,Be,fr,hr=e[15]("userPostalCode")+"",jr,Un,Ie,jn,pr,Gn,Gr=Object.keys(e[4].consents).length>0,zr,dr,at,mr=e[15]("userProfileSaveChanges")+"",Wr,br,zn,Qr,Wn,$e=e[16]&&al(e),st=Xe(e[3]),q=[];for(let J=0;J<st.length;J+=1)q[J]=xi(Ei(e,st,J));let re=!e[13]&&wi(e),ne=!e[11]&&Si(e),ie=!e[12]&&Ci(e),oe=e[5].iban&&Ai(e),ae=!e[8]&&Bi(e),se=!e[10]&&Ii(e),le=!e[9]&&Ti(e),ue=Gr&&ki(e),ce=e[14]&&Mi(e);return{c(){t=p("form"),r=p("div"),$e&&$e.c(),n=_(),i=p("h2"),a=S(o),l=_(),c=p("div"),u=p("h3"),d=S(h),y=_(),b=p("section"),x=p("div"),P=p("label"),z=S(T),w=_(),M=p("input"),V=_(),m=p("div"),C=p("label"),he=S(K),X=_(),D=p("div"),E=p("select");for(let J=0;J<q.length;J+=1)q[J].c();ee=_(),H=p("input"),Le=_(),re&&re.c(),We=_(),te=p("div"),Te=p("label"),Pe=S(qe),Rt=S(":"),Fe=p("span"),Fe.textContent="*",Et=_(),pe=p("input"),Ut=_(),ne&&ne.c(),Pt=_(),de=p("div"),Re=p("label"),xt=S(Qe),jt=S(":"),Ue=p("span"),Ue.textContent="*",wt=_(),me=p("input"),Gt=_(),ie&&ie.c(),zt=_(),je=p("div"),Ke=p("label"),St=S(et),Wt=_(),ye=p("input"),Qt=_(),v=p("div"),A=p("label"),R=S(U),ve=_(),W=p("input"),En=_(),tt=p("div"),Vt=p("label"),Nr=S($t),Pn=_(),ke=p("input"),xn=_(),rt=p("div"),Xt=p("label"),Hr=S(Zt),wn=_(),Ne=p("input"),Sn=_(),nt=p("div"),qt=p("label"),Mr=S(Jt),Cn=_(),He=p("input"),An=_(),it=p("div"),Yt=p("label"),Dr=S(Kt),Bn=_(),Me=p("input"),In=_(),oe&&oe.c(),Tn=_(),er=p("div"),Or=p("h3"),Lr=S(tr),kn=_(),xe=p("section"),ot=p("div"),rr=p("label"),Fr=S(nr),Nn=_(),ge=p("input"),Hn=_(),we=p("div"),or=p("label"),Rr=S(ar),Mn=_(),Se=p("input"),Dn=_(),ae&&ae.c(),On=_(),Ce=p("div"),lr=p("label"),Ur=S(ur),Ln=_(),Ae=p("input"),Fn=_(),se&&se.c(),Rn=_(),Be=p("div"),fr=p("label"),jr=S(hr),Un=_(),Ie=p("input"),jn=_(),le&&le.c(),Gn=_(),ue&&ue.c(),zr=_(),dr=p("section"),at=p("button"),Wr=S(mr),zn=_(),ce&&ce.c(),f(i,"class","MyAccountCategoryTitle "+(e[16]?"MyAccountCategoryTitleNone":"")),f(c,"class","PlayerNotificationsHeader"),f(M,"type","text"),f(M,"class","FieldDisabled"),M.value=j=e[5].username,M.readOnly=!0,f(x,"class","PlayerInfoBox"),e[4].mobile.prefix===void 0&&xr(()=>e[34].call(E)),f(H,"type","text"),f(H,"placeholder",e[17].mobile.number),f(D,"class","PlayerPhoneNumber"),f(m,"class",Ee="PlayerInfoBox "+(e[13]?"":"InvalidField")),f(Fe,"class","FormRequired"),f(Te,"for","SecurityQuestion"),f(pe,"id","SecurityQuestion"),f(pe,"type","text"),f(pe,"placeholder",e[17].securityQuestion),f(te,"class",Je="PlayerInfoBox "+(e[11]?"":"InvalidField")),f(Ue,"class","FormRequired"),f(Re,"for","SecurityAnswer"),f(me,"id","SecurityAnswer"),f(me,"type","text"),f(me,"placeholder",e[17].securityAnswer),f(de,"class",Ye="PlayerInfoBox "+(e[12]?"":"InvalidField")),f(Ke,"for","UserEmail"),f(ye,"id","UserEmail"),f(ye,"type","email"),f(ye,"class","FieldDisabled"),ye.value=Ve=e[5].email,ye.readOnly=!0,f(je,"class","PlayerInfoBox"),f(A,"for","DateOfBirth"),f(W,"id","DateOfBirth"),f(W,"type","text"),f(W,"class","FieldDisabled"),W.value=Z=e[5].birth,W.readOnly=!0,f(v,"class","PlayerInfoBox"),f(Vt,"for","FirstName"),f(ke,"id","FirstName"),f(ke,"type","text"),f(ke,"class","FieldDisabled"),ke.value=Ct=e[5].firstname,ke.readOnly=!0,f(tt,"class","PlayerInfoBox"),f(Xt,"for","LastName"),f(Ne,"id","LastName"),f(Ne,"type","text"),f(Ne,"class","FieldDisabled"),Ne.value=At=e[5].lastname,Ne.readOnly=!0,f(rt,"class","PlayerInfoBox"),f(qt,"for","UserTitle"),f(He,"id","UserTitle"),f(He,"type","text"),f(He,"class","FieldDisabled"),He.value=Bt=e[15](e[5].userTitles),He.readOnly=!0,f(nt,"class","PlayerInfoBox"),f(Yt,"for","Currrency"),f(Me,"id","Currency"),f(Me,"type","text"),f(Me,"class","FieldDisabled"),Me.value=It=e[5].currency,Me.readOnly=!0,f(it,"class","PlayerInfoBox"),f(b,"class","PlayerDetailsContent"),f(er,"class","PlayerLocationHeader"),f(rr,"for","UserCountry"),f(ge,"id","UserCountry"),f(ge,"type","text"),f(ge,"class","PlayerCountry FieldDisabled"),ge.value=Tt=e[5].countryName,f(ge,"placeholder",ir=e[5].countryCode),ge.readOnly=!0,f(ot,"class","PlayerInfoBox"),f(or,"for","UserCity"),f(Se,"id","UserCity"),f(Se,"type","text"),f(Se,"placeholder",e[17].city),f(we,"class",sr="PlayerInfoBox "+(e[8]?"":"InvalidField")),f(lr,"for","UserAdress"),f(Ae,"id","UserAdress"),f(Ae,"type","text"),f(Ae,"placeholder",e[17].adress),f(Ce,"class",cr="PlayerInfoBox "+(e[10]?"":"InvalidField")),f(fr,"for","UserPostalCode"),f(Ie,"id","UserPostalCode"),f(Ie,"type","text"),f(Ie,"placeholder",e[17].postalCode),f(Be,"class",pr="PlayerInfoBox "+(e[9]?"":"InvalidField")),f(xe,"class","PlayerLocationContent"),f(at,"class",br="PlayerDetailsSaveButton "+(e[6]&&e[7]?"":"PlayerButtonDisabled")),f(dr,"class","PlayerDetailsButtonsArea "+(e[16]?"PlayerDetailsButtonsAreaMobile":"")),f(r,"class","PlayerFadeInWarapper"),f(t,"class","PlayerInfoWrapper "+(e[16]?"PlayerInfoWrapperMobile":"")+" "+(e[18].matches&&e[16]?"PlayerInfoWrapperTablet":""))},m(J,g){L(J,t,g),s(t,r),$e&&$e.m(r,null),s(r,n),s(r,i),s(i,a),s(r,l),s(r,c),s(c,u),s(u,d),s(r,y),s(r,b),s(b,x),s(x,P),s(P,z),s(x,w),s(x,M),s(b,V),s(b,m),s(m,C),s(C,he),s(m,X),s(m,D),s(D,E);for(let Q=0;Q<q.length;Q+=1)q[Q]&&q[Q].m(E,null);qn(E,e[4].mobile.prefix,!0),s(D,ee),s(D,H),$(H,e[4].mobile.number),s(m,Le),re&&re.m(m,null),s(b,We),s(b,te),s(te,Te),s(Te,Pe),s(Te,Rt),s(Te,Fe),s(te,Et),s(te,pe),$(pe,e[4].securityQuestion),s(te,Ut),ne&&ne.m(te,null),s(b,Pt),s(b,de),s(de,Re),s(Re,xt),s(Re,jt),s(Re,Ue),s(de,wt),s(de,me),$(me,e[4].securityAnswer),s(de,Gt),ie&&ie.m(de,null),s(b,zt),s(b,je),s(je,Ke),s(Ke,St),s(je,Wt),s(je,ye),s(b,Qt),s(b,v),s(v,A),s(A,R),s(v,ve),s(v,W),s(b,En),s(b,tt),s(tt,Vt),s(Vt,Nr),s(tt,Pn),s(tt,ke),s(b,xn),s(b,rt),s(rt,Xt),s(Xt,Hr),s(rt,wn),s(rt,Ne),s(b,Sn),s(b,nt),s(nt,qt),s(qt,Mr),s(nt,Cn),s(nt,He),s(b,An),s(b,it),s(it,Yt),s(Yt,Dr),s(it,Bn),s(it,Me),s(b,In),oe&&oe.m(b,null),s(r,Tn),s(r,er),s(er,Or),s(Or,Lr),s(r,kn),s(r,xe),s(xe,ot),s(ot,rr),s(rr,Fr),s(ot,Nn),s(ot,ge),s(xe,Hn),s(xe,we),s(we,or),s(or,Rr),s(we,Mn),s(we,Se),$(Se,e[4].city),s(we,Dn),ae&&ae.m(we,null),s(xe,On),s(xe,Ce),s(Ce,lr),s(lr,Ur),s(Ce,Ln),s(Ce,Ae),$(Ae,e[4].address1),s(Ce,Fn),se&&se.m(Ce,null),s(xe,Rn),s(xe,Be),s(Be,fr),s(fr,jr),s(Be,Un),s(Be,Ie),$(Ie,e[4].postalCode),s(Be,jn),le&&le.m(Be,null),s(r,Gn),ue&&ue.m(r,null),s(r,zr),s(r,dr),s(dr,at),s(at,Wr),s(r,zn),ce&&ce.m(r,null),Qr||(Wn=[G(E,"change",e[34]),G(E,"change",e[19]),G(H,"input",e[35]),G(H,"keyup",e[20]("mobileNumber")),G(H,"input",function(){Cr(e[4].mobile.number=e[4].mobile.number.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1"))&&(e[4].mobile.number=e[4].mobile.number.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1")).apply(this,arguments)}),G(pe,"input",e[36]),G(pe,"keyup",e[20]("securityQuestion")),G(me,"input",e[37]),G(me,"keyup",e[20]("securityAnswer")),G(Se,"input",e[38]),G(Se,"keyup",e[20]("city")),G(Ae,"input",e[39]),G(Ae,"keyup",e[20]("address")),G(Ie,"input",e[40]),G(Ie,"keyup",e[20]("postalCode")),G(at,"click",e[21])],Qr=!0)},p(J,g){if(e=J,e[16]&&$e.p(e,g),g[0]&32768&&o!==(o=e[15]("titleProfileInfo")+"")&&N(a,o),g[0]&32768&&h!==(h=e[15]("personalDetails")+"")&&N(d,h),g[0]&32768&&T!==(T=e[15]("userName")+"")&&N(z,T),g[0]&32&&j!==(j=e[5].username)&&M.value!==j&&(M.value=j),g[0]&32768&&K!==(K=e[15]("userPhone")+"")&&N(he,K),g[0]&24){st=Xe(e[3]);let Q;for(Q=0;Q<st.length;Q+=1){const Qn=Ei(e,st,Q);q[Q]?q[Q].p(Qn,g):(q[Q]=xi(Qn),q[Q].c(),q[Q].m(E,null))}for(;Q<q.length;Q+=1)q[Q].d(1);q.length=st.length}g[0]&24&&qn(E,e[4].mobile.prefix),g[0]&24&&H.value!==e[4].mobile.number&&$(H,e[4].mobile.number),e[13]?re&&(re.d(1),re=null):re?re.p(e,g):(re=wi(e),re.c(),re.m(m,null)),g[0]&8192&&Ee!==(Ee="PlayerInfoBox "+(e[13]?"":"InvalidField"))&&f(m,"class",Ee),g[0]&32769&&qe!==(qe=(e[0]=="true"?e[15]("profileSecurityQuestion2"):e[15]("profileSecurityQuestion"))+"")&&N(Pe,qe),g[0]&24&&pe.value!==e[4].securityQuestion&&$(pe,e[4].securityQuestion),e[11]?ne&&(ne.d(1),ne=null):ne?ne.p(e,g):(ne=Si(e),ne.c(),ne.m(te,null)),g[0]&2048&&Je!==(Je="PlayerInfoBox "+(e[11]?"":"InvalidField"))&&f(te,"class",Je),g[0]&32769&&Qe!==(Qe=(e[0]=="true"?e[15]("profileSecurityAnswer2"):e[15]("profileSecurityAnswer"))+"")&&N(xt,Qe),g[0]&24&&me.value!==e[4].securityAnswer&&$(me,e[4].securityAnswer),e[12]?ie&&(ie.d(1),ie=null):ie?ie.p(e,g):(ie=Ci(e),ie.c(),ie.m(de,null)),g[0]&4096&&Ye!==(Ye="PlayerInfoBox "+(e[12]?"":"InvalidField"))&&f(de,"class",Ye),g[0]&32768&&et!==(et=e[15]("userEmail")+"")&&N(St,et),g[0]&32&&Ve!==(Ve=e[5].email)&&ye.value!==Ve&&(ye.value=Ve),g[0]&32768&&U!==(U=e[15]("dateOfBirth")+"")&&N(R,U),g[0]&32&&Z!==(Z=e[5].birth)&&W.value!==Z&&(W.value=Z),g[0]&32768&&$t!==($t=e[15]("firstName")+"")&&N(Nr,$t),g[0]&32&&Ct!==(Ct=e[5].firstname)&&ke.value!==Ct&&(ke.value=Ct),g[0]&32768&&Zt!==(Zt=e[15]("lastName")+"")&&N(Hr,Zt),g[0]&32&&At!==(At=e[5].lastname)&&Ne.value!==At&&(Ne.value=At),g[0]&32768&&Jt!==(Jt=e[15]("userTitle")+"")&&N(Mr,Jt),g[0]&32800&&Bt!==(Bt=e[15](e[5].userTitles))&&He.value!==Bt&&(He.value=Bt),g[0]&32768&&Kt!==(Kt=e[15]("currency")+"")&&N(Dr,Kt),g[0]&32&&It!==(It=e[5].currency)&&Me.value!==It&&(Me.value=It),e[5].iban?oe?oe.p(e,g):(oe=Ai(e),oe.c(),oe.m(b,null)):oe&&(oe.d(1),oe=null),g[0]&32768&&tr!==(tr=e[15]("locationDetails")+"")&&N(Lr,tr),g[0]&32768&&nr!==(nr=e[15]("userCountry")+"")&&N(Fr,nr),g[0]&32&&Tt!==(Tt=e[5].countryName)&&ge.value!==Tt&&(ge.value=Tt),g[0]&32&&ir!==(ir=e[5].countryCode)&&f(ge,"placeholder",ir),g[0]&32768&&ar!==(ar=e[15]("userCity")+"")&&N(Rr,ar),g[0]&24&&Se.value!==e[4].city&&$(Se,e[4].city),e[8]?ae&&(ae.d(1),ae=null):ae?ae.p(e,g):(ae=Bi(e),ae.c(),ae.m(we,null)),g[0]&256&&sr!==(sr="PlayerInfoBox "+(e[8]?"":"InvalidField"))&&f(we,"class",sr),g[0]&32768&&ur!==(ur=e[15]("userAddress")+"")&&N(Ur,ur),g[0]&24&&Ae.value!==e[4].address1&&$(Ae,e[4].address1),e[10]?se&&(se.d(1),se=null):se?se.p(e,g):(se=Ii(e),se.c(),se.m(Ce,null)),g[0]&1024&&cr!==(cr="PlayerInfoBox "+(e[10]?"":"InvalidField"))&&f(Ce,"class",cr),g[0]&32768&&hr!==(hr=e[15]("userPostalCode")+"")&&N(jr,hr),g[0]&24&&Ie.value!==e[4].postalCode&&$(Ie,e[4].postalCode),e[9]?le&&(le.d(1),le=null):le?le.p(e,g):(le=Ti(e),le.c(),le.m(Be,null)),g[0]&512&&pr!==(pr="PlayerInfoBox "+(e[9]?"":"InvalidField"))&&f(Be,"class",pr),g[0]&16&&(Gr=Object.keys(e[4].consents).length>0),Gr?ue?ue.p(e,g):(ue=ki(e),ue.c(),ue.m(r,zr)):ue&&(ue.d(1),ue=null),g[0]&32768&&mr!==(mr=e[15]("userProfileSaveChanges")+"")&&N(Wr,mr),g[0]&192&&br!==(br="PlayerDetailsSaveButton "+(e[6]&&e[7]?"":"PlayerButtonDisabled"))&&f(at,"class",br),e[14]?ce?ce.p(e,g):(ce=Mi(e),ce.c(),ce.m(r,null)):ce&&(ce.d(1),ce=null)},d(J){J&&O(t),$e&&$e.d(),Ht(q,J),re&&re.d(),ne&&ne.d(),ie&&ie.d(),oe&&oe.d(),ae&&ae.d(),se&&se.d(),le&&le.d(),ue&&ue.d(),ce&&ce.d(),Qr=!1,ze(Wn)}}}function al(e){let t,r,n,i,o,a,l,c,u,h,d=e[15]("titleProfileInfo")+"",y,b,x;return{c(){t=p("div"),r=lt("svg"),n=lt("defs"),i=lt("style"),o=S(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),a=lt("g"),l=lt("g"),c=lt("path"),u=_(),h=p("h2"),y=S(d),f(c,"class","aaa"),f(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),f(c,"transform","translate(15 15) rotate(180)"),f(l,"transform","translate(20 158)"),f(a,"transform","translate(-20 -158)"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(r,"width","15"),f(r,"height","15"),f(r,"viewBox","0 0 15 15"),f(h,"class","MyAccountCategoryTitleMobile"),f(t,"class","MenuReturnButton")},m(P,T){L(P,t,T),s(t,r),s(r,n),s(n,i),s(i,o),s(r,a),s(a,l),s(l,c),s(t,u),s(t,h),s(h,y),b||(x=[G(t,"click",e[22]),G(t,"keyup",null)],b=!0)},p(P,T){T[0]&32768&&d!==(d=P[15]("titleProfileInfo")+"")&&N(y,d)},d(P){P&&O(t),b=!1,ze(x)}}}function sl(e){let t,r=e[66].Prefix+"",n,i;return{c(){t=p("option"),n=S(r),t.__value=i=e[66].Prefix,$(t,t.__value)},m(o,a){L(o,t,a),s(t,n)},p(o,a){a[0]&8&&r!==(r=o[66].Prefix+"")&&N(n,r),a[0]&8&&i!==(i=o[66].Prefix)&&(t.__value=i,$(t,t.__value))},d(o){o&&O(t)}}}function ll(e){let t,r=e[66].Prefix+"",n,i;return{c(){t=p("option"),n=S(r),t.selected=!0,t.__value=i=e[66].Prefix,$(t,t.__value)},m(o,a){L(o,t,a),s(t,n)},p(o,a){a[0]&8&&r!==(r=o[66].Prefix+"")&&N(n,r),a[0]&8&&i!==(i=o[66].Prefix)&&(t.__value=i,$(t,t.__value))},d(o){o&&O(t)}}}function xi(e){let t;function r(o,a){return o[66].Prefix===o[4].mobile.prefix?ll:sl}let n=r(e),i=n(e);return{c(){i.c(),t=Fi()},m(o,a){i.m(o,a),L(o,t,a)},p(o,a){n===(n=r(o))&&i?i.p(o,a):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&O(t),i.d(o)}}}function wi(e){let t,r=e[15]("userPhoneError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userPhoneError")+"")&&N(n,r)},d(i){i&&O(t)}}}function Si(e){let t,r=(e[0]=="true"?e[15]("profileSecurityQuestionError2"):e[15]("profileSecurityQuestionError"))+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32769&&r!==(r=(i[0]=="true"?i[15]("profileSecurityQuestionError2"):i[15]("profileSecurityQuestionError"))+"")&&N(n,r)},d(i){i&&O(t)}}}function Ci(e){let t,r=(e[0]=="true"?e[15]("profileSecurityAnswerError2"):e[15]("profileSecurityAnswerError"))+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32769&&r!==(r=(i[0]=="true"?i[15]("profileSecurityAnswerError2"):i[15]("profileSecurityAnswerError"))+"")&&N(n,r)},d(i){i&&O(t)}}}function Ai(e){let t,r,n=e[15]("iban")+"",i,o,a,l;return{c(){t=p("div"),r=p("label"),i=S(n),o=_(),a=p("input"),f(r,"for","Iban"),f(a,"id","Iban"),f(a,"type","text"),f(a,"class","FieldDisabled"),a.value=l=e[5].iban,a.readOnly=!0,f(t,"class","PlayerInfoBox")},m(c,u){L(c,t,u),s(t,r),s(r,i),s(t,o),s(t,a)},p(c,u){u[0]&32768&&n!==(n=c[15]("iban")+"")&&N(i,n),u[0]&32&&l!==(l=c[5].iban)&&a.value!==l&&(a.value=l)},d(c){c&&O(t)}}}function Bi(e){let t,r=e[15]("userCityError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userCityError")+"")&&N(n,r)},d(i){i&&O(t)}}}function Ii(e){let t,r=e[15]("userAddressError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userAddressError")+"")&&N(n,r)},d(i){i&&O(t)}}}function Ti(e){let t,r=e[15]("userPostalCodeError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userPostalCodeError")+"")&&N(n,r)},d(i){i&&O(t)}}}function ki(e){let t,r,n=e[15]("userNotifications")+"",i,o,a,l=Xe(Object.keys(e[4].consents)),c=[];for(let u=0;u<l.length;u+=1)c[u]=Hi(_i(e,l,u));return{c(){t=p("div"),r=p("h3"),i=S(n),o=_(),a=p("section");for(let u=0;u<c.length;u+=1)c[u].c();f(t,"class","PlayerNotificationsHeader"),f(a,"class","PlayerNotificationsCheckboxArea")},m(u,h){L(u,t,h),s(t,r),s(r,i),L(u,o,h),L(u,a,h);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(a,null)},p(u,h){if(h[0]&32768&&n!==(n=u[15]("userNotifications")+"")&&N(i,n),h[0]&1081360){l=Xe(Object.keys(u[4].consents));let d;for(d=0;d<l.length;d+=1){const y=_i(u,l,d);c[d]?c[d].p(y,h):(c[d]=Hi(y),c[d].c(),c[d].m(a,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=l.length}},d(u){u&&(O(t),O(o),O(a)),Ht(c,u)}}}function Ni(e){let t,r,n,i,o,a,l,c=e[15](`${e[63]}Consent`)+"",u,h,d,y;function b(){e[41].call(n,e[63])}return{c(){t=p("div"),r=p("label"),n=p("input"),i=_(),o=p("span"),a=_(),l=p("span"),u=S(c),h=_(),f(n,"type","checkbox"),f(o,"class","Checkmark"),f(t,"class","PlayerNotificationBox")},m(x,P){L(x,t,P),s(t,r),s(r,n),n.checked=e[4].consents[e[63]],s(r,i),s(r,o),s(r,a),s(r,l),s(l,u),s(t,h),d||(y=[G(n,"change",b),G(n,"change",e[20]("consents"))],d=!0)},p(x,P){e=x,P[0]&24&&(n.checked=e[4].consents[e[63]]),P[0]&32784&&c!==(c=e[15](`${e[63]}Consent`)+"")&&N(u,c)},d(x){x&&O(t),d=!1,ze(y)}}}function Hi(e){let t,r=e[63]!==void 0&&Ni(e);return{c(){r&&r.c(),t=Fi()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[63]!==void 0?r?r.p(n,i):(r=Ni(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&O(t),r&&r.d(n)}}}function Mi(e){let t,r,n=e[15]("userProfileConfirmationMessage")+"",i;return{c(){t=p("section"),r=p("p"),i=S(n),f(r,"class","PlayerDetailsConfirmSaveText"),f(t,"class","PlayerDetailsConfirmSave")},m(o,a){L(o,t,a),s(t,r),s(r,i)},p(o,a){a[0]&32768&&n!==(n=o[15]("userProfileConfirmationMessage")+"")&&N(i,n)},d(o){o&&O(t)}}}function ul(e){let t,r,n,i,o,a,l,c,u,h,d,y,b,x,P,T,z,w,M,j,V=Xe({length:10}),m=[];for(let E=0;E<V.length;E+=1)m[E]=nl(rl(e,V,E));let C=Xe({length:4}),K=[];for(let E=0;E<C.length;E+=1)K[E]=il(tl(e,C,E));let he=Xe({length:4}),X=[];for(let E=0;E<he.length;E+=1)X[E]=ol(el(e,he,E));let D=!e[2]&&Pi(e);return{c(){t=p("div"),r=p("div"),n=p("div"),n.innerHTML='<ui-skeleton structure="title" width="auto" height="25px"></ui-skeleton>',i=_(),o=p("div"),o.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',a=_(),l=p("div");for(let E=0;E<m.length;E+=1)m[E].c();c=_(),u=p("div"),u.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',h=_(),d=p("div");for(let E=0;E<K.length;E+=1)K[E].c();y=_(),b=p("div"),b.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',x=_(),P=p("div");for(let E=0;E<X.length;E+=1)X[E].c();T=_(),z=p("div"),z.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="45px"></ui-skeleton>',M=_(),j=p("div"),D&&D.c(),f(n,"class","skeletonHeaderText"),f(o,"class","skeletonSectionText"),f(l,"class","skeletonSectionContainer"),f(u,"class","skeletonSectionText"),f(d,"class","skeletonSectionContainer"),f(b,"class","skeletonSectionText"),f(P,"class","skeletonConsentsContainer"),f(z,"class","skeletonButton"),f(r,"class","skeletonWrapper"),f(t,"class",w="skeletonContainer "+(e[2]?"":"Hidden"))},m(E,ee){L(E,t,ee),s(t,r),s(r,n),s(r,i),s(r,o),s(r,a),s(r,l);for(let H=0;H<m.length;H+=1)m[H]&&m[H].m(l,null);s(r,c),s(r,u),s(r,h),s(r,d);for(let H=0;H<K.length;H+=1)K[H]&&K[H].m(d,null);s(r,y),s(r,b),s(r,x),s(r,P);for(let H=0;H<X.length;H+=1)X[H]&&X[H].m(P,null);s(r,T),s(r,z),L(E,M,ee),L(E,j,ee),D&&D.m(j,null),e[42](j)},p(E,ee){ee[0]&4&&w!==(w="skeletonContainer "+(E[2]?"":"Hidden"))&&f(t,"class",w),E[2]?D&&(D.d(1),D=null):D?D.p(E,ee):(D=Pi(E),D.c(),D.m(j,null))},i:fe,o:fe,d(E){E&&(O(t),O(M),O(j)),Ht(m,E),Ht(K,E),Ht(X,E),D&&D.d(),e[42](null)}}}function cl(e,t,r){let n;So(e,$s,v=>r(15,n=v));let{userid:i}=t,{sessionid:o}=t,{endpoint:a}=t,{lang:l="en"}=t,{clientstyling:c}=t,{clientstylingurl:u}=t,{mbsource:h}=t,{translationurl:d}=t,{custominputtextswitch:y="false"}=t,b,x=!0;const P=Xs(window.navigator.userAgent)!=="PC";let T=null,z=null,w=null,M=null,j,V;const m={},C={},K={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",currency:"EUR",iban:"",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"};let he=!1,X=!1,D=!0,E=!0,ee=!0,H=!0,Le=!0,Ee=!0,We=!0,te=!1;const Te={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/},qe=window.matchMedia("(min-width: 768px)"),Pe=v=>{try{return JSON.stringify(v)}catch(A){return null}},Rt=()=>{var v,A,U,R,ve,W;r(5,C.username=w.username,C),r(5,C.mobile=w.mobile,C),r(5,C.email=w.email,C),r(5,C.firstname=w.firstname,C),r(5,C.lastname=w.lastname,C),r(5,C.language=w.language,C),r(5,C.birth=((v=w.birth)==null?void 0:v.day)+"/"+((A=w.birth)==null?void 0:A.month)+"/"+((U=w.birth)==null?void 0:U.year),C),r(5,C.currency=w.currency,C),r(5,C.iban=w.iban,C),r(5,C.userTitles=w.title,C),r(5,C.countryCode=w.country,C),r(5,C.countryName=((R=z.find(Z=>Z.Alpha2Code===w.country))==null?void 0:R.Name)||"I.E. Ireland",C),r(4,m.address1=w.address1,m),r(4,m.city=w.city,m),r(4,m.mobile={},m),r(4,m.mobile.prefix=(ve=w.mobile)==null?void 0:ve.prefix,m),r(4,m.mobile.number=(W=w.mobile)==null?void 0:W.number,m),r(4,m.postalCode=w.postalCode,m),r(4,m.securityAnswer=w.securityAnswer,m),r(4,m.securityQuestion=w.securityQuestion,m),Array.isArray(M)&&(r(4,m.consents={},m),M.forEach(Z=>{Z.tagCode!=="termsandconditions"&&Z.tagCode!=="privacypolicy"&&Z.tagCode!=="pepconsent"&&r(4,m.consents[Z.tagCode]=Z.status==="Accepted",m)})),V=Pe(m),j=Pe(m.consents),r(2,x=!1)},Fe=()=>{const v=new URL(`${a}/v1/player/${i}/profile`),A=new Headers;A.append("X-SessionID",o);const U={method:"GET",headers:A};fetch(v.href,U).then(R=>R.json()).then(R=>{r(32,w=R)},R=>{console.error(R)})},Et=()=>{const v=new URL(`${a}/v1/player/${i}/consent`),A=new Headers;A.append("X-SessionID",o);const U={method:"GET",headers:A};fetch(v.href,U).then(R=>R.json()).then(R=>{r(33,M=R.items)},R=>{console.error(R)})},pe=()=>kt(this,null,function*(){try{const v=yield fetch(`${a}/v1/player/countries`);if(!v.ok)throw new Error("Error while fetching the countries");const A=yield v.json();r(31,z=A.countries)}catch(v){console.error(v)}}),Ut=()=>{fetch(`${a}/v1/player/phonecodes`).then(v=>v.json()).then(v=>{r(3,T=v.phoneCodes)})},Je=()=>{r(7,D=!1),Le&&Ee&&E&&H&&ee&&We&&r(7,D=!0)},Pt=()=>{r(6,he=Pe(m)!==V)},de=()=>{X=Pe(m.consents)!==j},Re=v=>()=>{switch(v){case"mobileNumber":r(13,We=!1),m.mobile.number&&m.mobile.number.length>=5&&m.mobile.number.length<=12&&r(13,We=!0);break;case"city":r(8,E=!1),m.city&&m.city.length<=50&&r(8,E=!0);break;case"postalCode":r(9,ee=!1),m.postalCode&&m.postalCode.length<=20&&r(9,ee=!0);break;case"address":r(10,H=!1),m.address1&&m.address1.length<=100&&r(10,H=!0);break;case"securityQuestion":if(r(11,Le=!1),m.securityQuestion)switch(y){case"true":Te.document.test(m.securityQuestion)&&m.securityQuestion.length<=50&&r(11,Le=!0);break;case"false":m.securityQuestion&&m.securityQuestion.length<=120&&r(11,Le=!0);break}break;case"securityAnswer":if(r(12,Ee=!1),m.securityAnswer)switch(y){case"true":Te.document.test(m.securityAnswer)&&m.securityAnswer.length<=50&&r(12,Ee=!0);break;case"false":m.securityAnswer&&m.securityAnswer.length<=120&&r(12,Ee=!0);break}break;case"consents":de();break}Pt(),Je()},Qe=()=>{r(14,te=!0),setTimeout(()=>{r(14,te=!1)},3e3),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("profileUpdateSuccess")}},window.location.href)},xt=()=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("userProfileUpdateError")}},window.location.href)},jt=v=>{if(v.preventDefault(),he&&!X&&D){Ue().then(A=>{A&&(Fe(),Qe())});return}if(he&&X&&D){Ue(),wt(),Promise.all([Ue(),wt()]).then(A=>{A[0]&&A[1]?(Fe(),Et(),Qe(),r(6,he=!1),X=!1):xt()});return}},Ue=()=>kt(this,null,function*(){const v=new URL(`${a}/v1/player/${i}/profile`),A=new Headers;A.append("X-SessionID",o),A.append("Content-Type","application/json"),A.append("Accept","application/json");const U=Pe(m);if(U===null)return!1;let R={method:"POST",headers:A,body:U};return yield fetch(v.href,R).then(ve=>ve.status==200,ve=>(console.error(ve),!1))}),wt=()=>kt(this,null,function*(){const v=[...Object.entries(m.consents).map(([W,Z])=>({tagCode:W,status:Z?"Accepted":"Denied"}))],A=new URL(`${a}/v1/player/${i}/consent`),U=new Headers;U.append("X-SessionID",o),U.append("Content-Type","application/json"),U.append("Accept","application/json");const R=Pe({items:v});if(R===null)return!1;const ve={method:"POST",headers:U,body:R};return yield fetch(A.href,ve).then(W=>W.status==200,W=>(console.error(W),!1))}),me=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},Gt=()=>{Zs(l)},Ye=()=>{fetch(d).then(A=>A.json()).then(A=>{Object.keys(A).forEach(U=>{vi(U,A[U])})}).catch(A=>{console.log(A)})};Object.keys(gi).forEach(v=>{vi(v,gi[v])}),Ho(()=>()=>{});function zt(){m.mobile.prefix=To(this),r(4,m),r(3,T)}function je(){m.mobile.number=this.value,r(4,m),r(3,T)}function Ke(){m.securityQuestion=this.value,r(4,m),r(3,T)}function et(){m.securityAnswer=this.value,r(4,m),r(3,T)}function St(){m.city=this.value,r(4,m),r(3,T)}function Wt(){m.address1=this.value,r(4,m),r(3,T)}function ye(){m.postalCode=this.value,r(4,m),r(3,T)}function Ve(v){m.consents[v]=this.checked,r(4,m),r(3,T)}function Qt(v){tn[v?"unshift":"push"](()=>{b=v,r(1,b)})}return e.$$set=v=>{"userid"in v&&r(23,i=v.userid),"sessionid"in v&&r(24,o=v.sessionid),"endpoint"in v&&r(25,a=v.endpoint),"lang"in v&&r(26,l=v.lang),"clientstyling"in v&&r(27,c=v.clientstyling),"clientstylingurl"in v&&r(28,u=v.clientstylingurl),"mbsource"in v&&r(29,h=v.mbsource),"translationurl"in v&&r(30,d=v.translationurl),"custominputtextswitch"in v&&r(0,y=v.custominputtextswitch)},e.$$.update=()=>{e.$$.dirty[0]&58720256&&a&&i&&o&&Fe(),e.$$.dirty[0]&58720256&&a&&i&&o&&Et(),e.$$.dirty[0]&33554432&&a&&pe(),e.$$.dirty[0]&33554432&&a&&Ut(),e.$$.dirty[1]&7&&w&&M&&z&&Rt(),e.$$.dirty[0]&67108864&&l&&Gt(),e.$$.dirty[0]&134217730&&c&&b&&qs(b,c),e.$$.dirty[0]&268435458&&u&&b&&Js(b,u),e.$$.dirty[0]&536870914&&h&&b&&Ys(b,`${h}.Style`),e.$$.dirty[0]&1073741824&&d&&Ye()},[y,b,x,T,m,C,he,D,E,ee,H,Le,Ee,We,te,n,P,K,qe,Pt,Re,jt,me,i,o,a,l,c,u,h,d,z,w,M,zt,je,Ke,et,St,Wt,ye,Ve,Qt]}class vo extends Qo{constructor(t){super(),zo(this,t,cl,ul,Oi,{userid:23,sessionid:24,endpoint:25,lang:26,clientstyling:27,clientstylingurl:28,mbsource:29,translationurl:30,custominputtextswitch:0},Ks,[-1,-1,-1])}get userid(){return this.$$.ctx[23]}set userid(t){this.$$set({userid:t}),_e()}get sessionid(){return this.$$.ctx[24]}set sessionid(t){this.$$set({sessionid:t}),_e()}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),_e()}get lang(){return this.$$.ctx[26]}set lang(t){this.$$set({lang:t}),_e()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}get mbsource(){return this.$$.ctx[29]}set mbsource(t){this.$$set({mbsource:t}),_e()}get translationurl(){return this.$$.ctx[30]}set translationurl(t){this.$$set({translationurl:t}),_e()}get custominputtextswitch(){return this.$$.ctx[0]}set custominputtextswitch(t){this.$$set({custominputtextswitch:t}),_e()}}Wo(vo,{userid:{},sessionid:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},custominputtextswitch:{}},[],[],!0);exports.default=vo;
|
|
18
|
+
`,bt.MISSING_INTL_API,a);var j=r.getPluralRules(t,{type:h.pluralType}).select(y-(h.offset||0));M=h.options[j]||h.options.other}if(!M)throw new ci(h.value,y,Object.keys(h.options),a);l.push.apply(l,Er(M.value,t,r,n,i,y-(h.offset||0)));continue}}return as(l)}function ls(e,t){return t?k(k(k({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=k(k({},e[n]),t[n]||{}),r},{})):e}function us(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ls(e[n],t[n]),r},k({},e)):e}function Yr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function cs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Zr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,pt([void 0],r,!1)))},{cache:Yr(e.number),strategy:qr.variadic}),getDateTimeFormat:Zr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,pt([void 0],r,!1)))},{cache:Yr(e.dateTime),strategy:qr.variadic}),getPluralRules:Zr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,pt([void 0],r,!1)))},{cache:Yr(e.pluralRules),strategy:qr.variadic})}}var fs=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(d,y){return!d.length||y.type!==Y.literal||typeof d[d.length-1]!="string"?d.push(y.value):d[d.length-1]+=y.value,d},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return Er(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var l=zo(a,["formatters"]);this.ast=e.__parse(t,k(k({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=us(e.formats,n),this.formatters=i&&i.formatters||cs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ns,e.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"}}},e}();function hs(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const Ge={},ps=(e,t,r)=>r&&(t in Ge||(Ge[t]={}),e in Ge[t]||(Ge[t][e]=r),r),ao=(e,t)=>{if(t==null)return;if(t in Ge&&e in Ge[t])return Ge[t][e];const r=Tr(t);for(let n=0;n<r.length;n++){const i=r[n],o=ms(i,e);if(o)return ps(e,t,o)}};let bn;const Ft=Br({});function ds(e){return bn[e]||null}function so(e){return e in bn}function ms(e,t){if(!so(e))return null;const r=ds(e);return hs(r,t)}function bs(e){if(e==null)return;const t=Tr(e);for(let r=0;r<t.length;r++){const n=t[r];if(so(n))return n}}function lo(e,...t){delete Ge[e],Ft.update(r=>(r[e]=_a.all([r[e]||{},...t]),r))}vt([Ft],([e])=>Object.keys(e));Ft.subscribe(e=>bn=e);const Pr={};function ys(e,t){Pr[e].delete(t),Pr[e].size===0&&delete Pr[e]}function uo(e){return Pr[e]}function vs(e){return Tr(e).map(t=>{const r=uo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function dn(e){return e==null?!1:Tr(e).some(t=>{var r;return(r=uo(t))==null?void 0:r.size})}function gs(e,t){return Promise.all(t.map(n=>(ys(e,n),n().then(i=>i.default||i)))).then(n=>lo(e,...n))}const Nt={};function co(e){if(!dn(e))return e in Nt?Nt[e]:Promise.resolve();const t=vs(e);return Nt[e]=Promise.all(t.map(([r,n])=>gs(r,n))).then(()=>{if(dn(e))return co(e);delete Nt[e]}),Nt[e]}const _s={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"}}},Es={fallbackLocale:null,loadingDelay:200,formats:_s,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ps=Es;function yt(){return Ps}const Kr=Br(!1);var xs=Object.defineProperty,ws=Object.defineProperties,Ss=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,hi=(e,t,r)=>t in e?xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bs=(e,t)=>{for(var r in t||(t={}))Cs.call(t,r)&&hi(e,r,t[r]);if(fi)for(var r of fi(t))As.call(t,r)&&hi(e,r,t[r]);return e},Is=(e,t)=>ws(e,Ss(t));let mn;const wr=Br(null);function pi(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Tr(e,t=yt().fallbackLocale){const r=pi(e);return t?[...new Set([...r,...pi(t)])]:r}function Ze(){return mn!=null?mn:void 0}wr.subscribe(e=>{mn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ts=e=>{if(e&&bs(e)&&dn(e)){const{loadingDelay:t}=yt();let r;return typeof window!="undefined"&&Ze()!=null&&t?r=window.setTimeout(()=>Kr.set(!0),t):Kr.set(!0),co(e).then(()=>{wr.set(e)}).finally(()=>{clearTimeout(r),Kr.set(!1)})}return wr.set(e)},gt=Is(Bs({},wr),{set:Ts}),kr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var ks=Object.defineProperty,Sr=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,di=(e,t,r)=>t in e?ks(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yn=(e,t)=>{for(var r in t||(t={}))fo.call(t,r)&&di(e,r,t[r]);if(Sr)for(var r of Sr(t))ho.call(t,r)&&di(e,r,t[r]);return e},_t=(e,t)=>{var r={};for(var n in e)fo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sr)for(var n of Sr(e))t.indexOf(n)<0&&ho.call(e,n)&&(r[n]=e[n]);return r};const Lt=(e,t)=>{const{formats:r}=yt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ns=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Lt("number",n)),new Intl.NumberFormat(r,i)}),Hs=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Lt("date",n):Object.keys(i).length===0&&(i=Lt("date","short")),new Intl.DateTimeFormat(r,i)}),Ms=kr(e=>{var t=e,{locale:r,format:n}=t,i=_t(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Lt("time",n):Object.keys(i).length===0&&(i=Lt("time","short")),new Intl.DateTimeFormat(r,i)}),Os=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Ns(yn({locale:r},n))},Ds=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Hs(yn({locale:r},n))},Ls=(e={})=>{var t=e,{locale:r=Ze()}=t,n=_t(t,["locale"]);return Ms(yn({locale:r},n))},Fs=kr((e,t=Ze())=>new fs(e,t,yt().formats,{ignoreTag:yt().ignoreTag})),Rs=(e,t={})=>{var r,n,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:c=Ze(),default:u}=a;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=ao(e,c);if(!h)h=(o=(i=(n=(r=yt()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!l)return h;let d=h;try{d=Fs(h,c).format(l)}catch(y){y instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,y.message)}return d},Us=(e,t)=>Ls(t).format(e),js=(e,t)=>Ds(t).format(e),Gs=(e,t)=>Os(t).format(e),zs=(e,t=Ze())=>ao(e,t),Ws=vt([gt,Ft],()=>Rs);vt([gt],()=>Us);vt([gt],()=>js);vt([gt],()=>Gs);vt([gt,Ft],()=>zs);window.emWidgets={topic:na};const Qs=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function mi(e,t){lo(e,t)}function Vs(e){gt.set(e)}const bi={en:{titleProfileInfo:"Profile Info",personalDetails:"Personal Details",userName:"Username:",userPhone:"Phone:",userPhoneError:"Mobile must be at least 5 character long and 12 characters maximum.",userEmail:"Email:",profileSecurityQuestion:"Security Question",profileSecurityQuestion2:"Document Type (DNI, Foreign ID Card, Passport)",profileSecurityQuestionError:"Security question must be at least 1 character long and maximum 120 characters.",profileSecurityQuestionError2:"Only letters and numbers are accepted.",firstName:"First Name:",profileSecurityAnswer:"Security Answer",profileSecurityAnswer2:"Document Number:",profileSecurityAnswerError:"Security answer must be at least 1 character long and maximum 120 characters.",profileSecurityAnswerError2:"Only letters and numbers are accepted.",lastName:"Last Name:",dateOfBirth:"Date of Birth:",currency:"Currency:",iban:"IBAN:",userTitle:"Title:","Mr.":"Mr.","Mrs.":"Mrs.",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",smsConsent:"Enable SMS notifications",emailmarketingConsent:"Enable Emails",phonecallConsent:"Enable phone call notifications",postConsent:"Enable post notifications","3rdpartyConsent":"Enable third-party notifications",smsandemailConsent:"Enable SMS and email notifications",userProfileSaveChanges:"Save Changes",userProfileConfirmationMessage:"Your changes have been saved!",userProfileUpdateError:"An error has occured when attempting to update the profile information"},"zh-hk":{titleProfileInfo:"資料信息",personalDetails:"個人資料",userName:"用戶名:",userPhone:"電話:",userPhoneError:"移動設備的長度必須至少為 5 個字符,最多 12 個字符。",userEmail:"電子郵件:",profileSecurityQuestion:"安全問題",profileSecurityQuestion2:"文檔類型(DNI、外國身份證、護照)",profileSecurityQuestionError:"安全問題長度必須至少1個字符,最多120個字符。",profileSecurityQuestionError2:"僅接受字母和數字。",firstName:"名:",profileSecurityAnswer:"安全答案",profileSecurityAnswer2:"文件號碼:",profileSecurityAnswerError:"安全答案長度必須至少1個字符,最多120個字符。",profileSecurityAnswerError2:"僅接受字母和數字。",lastName:"姓:",dateOfBirth:"出生日期:",currency:"貨幣:",iban:"銀行網",userTitle:"標題:","Mr.":"先生","Mrs.":"太太",locationDetails:"位置詳情",userCountry:"國家:",userCity:"城市:",userCityError:"城市必須至少 1 個字符長,最多 50 個字符。",userAddress:"地址:",userAddressError:"地址必須至少 1 個字符長,最多 100 個字符。",userPostalCode:"郵政編碼:",userPostalCodeError:"郵政編碼必須至少 1 個字符長,最多 20 個字符。",userNotifications:"通知",smsConsent:"啟用短信通知",emailmarketingConsent:"啟用電子郵件",phonecallConsent:"啟用電話通知",postConsent:"啟用郵件通知","3rdpartyConsent":"啟用第三方通知",smsandemailConsent:"啟用短信和電子郵件通知",userProfileSaveChanges:"保存更改",userProfileConfirmationMessage:"你的修改已被保存!",userProfileUpdateError:"嘗試更新個人資料時出現錯誤"},fr:{titleProfileInfo:"Information sur le profil",personalDetails:"Détail personnel",userName:"Nom d'utilisateur:",userPhone:"Téléphone:",userPhoneError:"Le mobile doit comporter au moins 5 caractères et 12 caractères maximum.",userEmail:"Email:",profileSecurityQuestion:"Question de sécurité",profileSecurityQuestion2:"Type de document (DNI, carte d'identité étrangère, passeport)",profileSecurityQuestionError:"La question de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",profileSecurityQuestionError2:"Seuls les lettres et les chiffres sont acceptés.",firstName:"Prénom:",profileSecurityAnswer:"Réponse de sécurité",profileSecurityAnswer2:"Numéro de document :",profileSecurityAnswerError:"La réponse de sécurité doit comporter au moins 1 caractère et au maximum 120 caractères.",profileSecurityAnswerError2:"Seuls les lettres et les chiffres sont acceptés.",lastName:"Nom de famille:",dateOfBirth:"Date de naissance:",currency:"Monnaie:",iban:"IBAN:",userTitle:"Titre:","Mr.":"M.","Mrs.":"Mme",locationDetails:"Détails de l'emplacement",userCountry:"Pays:",userCity:"Ville:",userCityError:"La ville doit comporter au moins 1 caractère et 50 caractères au maximum.",userAddress:"Adresse:",userAddressError:"L'adresse doit comporter au moins 1 caractère et 100 caractères au maximum.",userPostalCode:"Code postal:",userPostalCodeError:"Le code postal doit comporter au moins 1 caractère et 20 caractères au maximum.",userNotifications:"Notifications",smsConsent:"Activer les notifications par sms",emailmarketingConsent:"Activer les e-mails",phonecallConsent:"Activer les notifications d'appel téléphonique",postConsent:"Activer les notifications par courrier","3rdpartyConsent":"Activer les notifications de tiers",smsandemailConsent:"Activer les notifications par SMS et e-mail",userProfileSaveChanges:"Sauvegarder les changements",userProfileConfirmationMessage:"Vos modifications ont été enregistrées!",userProfileUpdateError:"Une erreur s'est produite lors de la tentative de mise à jour des informations du profil"},ro:{titleProfileInfo:"Informații profil",personalDetails:"Detalii Personale",userName:"Nume utilizator:",userPhone:"Telefon:",userPhoneError:"Telefon-ul trebuie să aibă cel puțin 5 caractere și maximum 12 de caractere.",userEmail:"E-mail:",profileSecurityQuestion:"Întrebare de securitate",profileSecurityQuestion2:"Tip de document (DNI, carte de identitate străină, pașaport)",profileSecurityQuestionError:"Întrebarea de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",profileSecurityQuestionError2:"Sunt acceptate doar litere și cifre.",firstName:"Prenume:",profileSecurityAnswer:"Răspuns de securitate",profileSecurityAnswer2:"Număr document:",profileSecurityAnswerError:"Răspunsul de securitate trebuie să aibă cel puțin 1 caracter și maximum 120 de caractere.",profileSecurityAnswerError2:"Sunt acceptate doar litere și cifre.",lastName:"Nume:",dateOfBirth:"Data nașterii:",currency:"Monedă:",iban:"IBAN:",userTitle:"Titlu:","Mr.":"Dl.","Mrs.":"Dna.",locationDetails:"Detalii de Localizare",userCountry:"Țară:",userCity:"Oraș:",userCityError:"Orașul trebuie să aibă cel puțin 1 caracter și maximum 50 de caractere.",userAddress:"Adresă:",userAddressError:"Adresa trebuie sa fie cuprinsa intre 1 si 100 de caractere.",userPostalCode:"Cod poștal:",userPostalCodeError:"Codul poștal trebuie să aibă cel puțin 1 caracter și maximum 20 de caractere.",userNotifications:"Notificări",smsConsent:"Activează notificări prin SMS",emailmarketingConsent:"Activează notificări prin E-mail",phonecallConsent:"Activează notificările prin apel telefonic",postConsent:"Activează notificările prin poștă","3rdpartyConsent":"Activează notificările de la parte terță",smsandemailConsent:"Activează notificările prin SMS și e-mail",userProfileSaveChanges:"Salvează",userProfileConfirmationMessage:"Modificările au fost salvate!",userProfileUpdateError:"A apărut o eroare la încercarea de a actualiza informațiile profilului"},tr:{titleProfileInfo:"Profil bilgisi",personalDetails:"Kişisel detaylar",userName:"Kullanıcı adı:",userPhone:"Telefon:",userPhoneError:"Mobil en az 5 karakter uzunluğunda ve maksimum 12 karakter olmalıdır.",userEmail:"E-posta:",profileSecurityQuestion:"Güvenlik Sorusu",profileSecurityQuestion2:"Belge Türü (DNI, Yabancı Kimlik Kartı, Pasaport)",profileSecurityQuestionError:"Güvenlik sorusu en az 1 karakter uzunluğunda, en fazla 120 karakter uzunluğunda olmalıdır.",profileSecurityQuestionError2:"Yalnızca harf ve rakamlar kabul edilir.",firstName:"İlk adı:",profileSecurityAnswer:"Güvenlik cevabı",profileSecurityAnswer2:"Belge Numarası:",profileSecurityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",profileSecurityAnswerError2:"Yalnızca harf ve rakamlar kabul edilir.",lastName:"Soy isim:",dateOfBirth:"Doğum tarihi:",currency:"Para birimi:",iban:"IBAN:",userTitle:"Başlık:","Mr.":"Bay","Mrs.":"Bayan",locationDetails:"Konum Detayları",userCountry:"Ülke:",userCity:"Şehir:",userCityError:"Şehir en az 1 karakter, maksimum 50 karakter uzunluğunda olmalıdır.",userAddress:"Adres:",userAddressError:"Adres en az 1 karakter uzunluğunda ve maksimum 100 karakter olmalıdır.",userPostalCode:"Posta Kodu:",userPostalCodeError:"Posta Kodu en az 1 karakter uzunluğunda ve maksimum 20 karakter uzunluğunda olmalıdır.",userNotifications:"Bildirimler",smsConsent:"SMS bildirimlerini etkinleştir",emailmarketingConsent:"E-postaları Etkinleştir",phonecallConsent:"Telefon araması bildirimlerini etkinleştir",postConsent:"Posta bildirimlerini etkinleştir","3rdpartyConsent":"Üçüncü taraf bildirimlerini etkinleştir",smsandemailConsent:"SMS ve e-posta bildirimlerini etkinleştir",userProfileSaveChanges:"Değişiklikleri Kaydet",userProfileConfirmationMessage:"Değişiklikleriniz kaydedildi!",securityQuestion:"Güvenlik Sorusu:",securityQuestionError:"Güvenlik sorusu en az 1, en fazla 120 karakter uzunluğunda olmalıdır.",securityAnswer:"Güvenlik cevabı",securityAnswerError:"Güvenlik cevabı en az 1 karakter uzunluğunda ve en fazla 120 karakter olmalıdır.",userProfileUpdateError:"Profil bilgilerini güncellemeye çalışırken bir hata oluştu"},es:{titleProfileInfo:"Información de Perfil",personalDetails:"Detalles Personales",userName:"Usuario",userPhone:"Celular / Número / Número Celular",userPhoneError:"Número celular debe tener al menos 5 caracteres y un máximo de 20 caracteres",userEmail:"Email:",profileSecurityQuestion:"Pregunta de Seguridad",profileSecurityQuestion2:"Tipo de Documento (DNI, Carnet de identidad extranjero, Pasaporte)",profileSecurityQuestionError:"La pregunta de seguridad debe tener al menos 1 caracter y como máximo 120 caracteres.",profileSecurityQuestionError2:"Solo se aceptan letras y números.",firstName:"Nombre",profileSecurityAnswer:"Respuesta de Seguridad",profileSecurityAnswer2:"Número de Documento:",profileSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 caracter y como máximo 120 caracteres.",profileSecurityAnswerError2:"Solo se aceptan letras y números.",lastName:"Apellido",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalles de ubicación",userCountry:"País:",userCity:"Ciudad:",userCityError:"La ciudad debe tener al menos 1 carácter y un máximo de 50 caracteres.",userAddress:"Dirección:",userAddressError:"La dirección debe tener al menos 1 carácter y un máximo de 100 caracteres.",userPostalCode:"Código Postal:",userPostalCodeError:"El código postal debe tener al menos 1 carácter y un máximo de 20 caracteres.",userNotifications:"Notificaciones",smsConsent:"Habilitar notificaciones SMS",emailmarketingConsent:"Habilitar Emails",phonecallConsent:"Habilitar notificaciones de llamadas telefónicas",postConsent:"Habilitar notificaciones por correo","3rdpartyConsent":"Habilitar notificaciones de terceros",smsandemailConsent:"Habilitar notificaciones por SMS y correo electrónico",userProfileSaveChanges:"Cambios Guardados",userProfileConfirmationMessage:"Sus cambios han sido guardados!",userProfileUpdateError:"Se ha producido un error al intentar actualizar la información del perfil"},pt:{titleProfileInfo:"Informações do perfil",personalDetails:"Detalhes pessoais",userName:"Nome do usuário:",userPhone:"Celular:",userPhoneError:"O celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres.",userEmail:"E-mail:",profileSecurityQuestion:"Pergunta de Segurança",profileSecurityQuestion2:"Tipo de Documento (DNI, Cartão de Identificação Estrangeiro, Passaporte)",profileSecurityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityQuestionError2:"Somente letras e números são aceitos.",firstName:"Primeiro nome:",profileSecurityAnswer:"Resposta de Segurança",profileSecurityAnswer2:"Número do Documento:",profileSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityAnswerError2:"Somente letras e números são aceitos.",lastName:"Último nome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalhes do local",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres.",userAddress:"Endereço:",userAddressError:"Address must be at least 1 character long and 100 characters maximum.",userPostalCode:"CEP:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres.",userNotifications:"Notificações",smsConsent:"Ativar notificações por SMS",emailmarketingConsent:"Ativar notificações por e-mail",phonecallConsent:"Ativar notificações de chamadas telefónicas",postConsent:"Ativar notificações de correio","3rdpartyConsent":"Ativar notificações de terceiros",smsandemailConsent:"Ativar notificações por SMS e e-mail",userProfileSaveChanges:"Salvar alterações",userProfileConfirmationMessage:"Suas alterações foram salvas!",userProfileUpdateError:"Ocorreu um erro ao tentar atualizar as informações do perfil"},hr:{titleProfileInfo:"Informacije o profilu",personalDetails:"Osobni podatci",userName:"Korisničko ime:",userPhone:"Telefon:",userPhoneError:"Broj telefona mora imati najmanje 5 znakova i najviše 12 znakova.",userEmail:"E-mail:",profileSecurityQuestion:"Sigurnosno pitanje",profileSecurityQuestion2:"Vrsta dokumenta",profileSecurityQuestionError:"Sigurnosno pitanje mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityQuestionError2:"Prihvaćaju se samo slova i brojke.",firstName:"Ime",profileSecurityAnswer:"Sigurnosni odgovor",profileSecurityAnswer2:"Broj dokumenta:",profileSecurityAnswerError:"Sigurnosni odgovor mora imati najmanje 1 znak i najviše 120 znakova.",profileSecurityAnswerError2:"Prihvaćaju se samo slova i brojke.",lastName:"Prezime",dateOfBirth:"Datum rođenja:",currency:"Valuta:",iban:"IBAN:",userTitle:"Titula:","Mr.":"Gosp.","Mrs.":"Gđa.",locationDetails:"Detalji lokacije",userCountry:"Zemlja:",userCity:"Grad:",userCityError:"Grad mora imati najmanje 1 znak i najviše 50 znakova.",userAddress:"Adresa:",userAddressError:"Adresa mora imati najmanje 1 znak i najviše 100 znakova.",userPostalCode:"Poštanski broj:",userPostalCodeError:"Poštanski broj mora imati najmanje 1 znak i najviše 20 znakova.",userNotifications:"Obavijesti",smsConsent:"Omogućite SMS obavijesti",emailmarketingConsent:"Omogući e-mail",phonecallConsent:"Omogući obavijesti o telefonskim pozivima",postConsent:"Omogući obavijesti o pošti","3rdpartyConsent":"Omogući obavijesti od trećih strana",smsandemailConsent:"Omogući obavijesti putem SMS-a i e-pošte",userProfileSaveChanges:"Spremi promjene",userProfileConfirmationMessage:"Vaše izmjene su spremljene!",userProfileUpdateError:"Došlo je do pogreške prilikom pokušaja ažuriranja podataka profila"},"pt-br":{titleProfileInfo:"Informação do Perfil",personalDetails:"Detalhes pessoais",userName:"Do utilizador:",userPhone:"Telefone:",userPhoneError:"O número do celular deve ter pelo menos 5 caracteres e no máximo 12 caracteres",userEmail:"Correio eletrônico:",profileSecurityQuestion:"Pergunta de segurança:",profileSecurityQuestion2:"Tipo de documento de identidade (Documento de identidade nacional,identidade estrangeira, Pasaporte)",profileSecurityQuestionError:"A pergunta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres",profileSecurityQuestionError2:"Somente letras e números são aceitos",firstName:"Nome:",profileSecurityAnswer:"Pergunta de segurança:",profileSecurityAnswer2:"Número do documento:",profileSecurityAnswerError:"A resposta de segurança deve ter pelo menos 1 caractere e no máximo 120 caracteres.",profileSecurityAnswerError2:"Somente letras e números são aceitos",lastName:"Sobrenome:",dateOfBirth:"Data de nascimento:",currency:"Moeda:",iban:"IBAN:",userTitle:"Qualificação:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalhes da localização:",userCountry:"País:",userCity:"Cidade:",userCityError:"A cidade deve ter pelo menos 1 caractere e no máximo 50 caracteres",userAddress:"Endereço:",userAddressError:"O endereço deve ter pelo menos 1 caractere e no máximo 100 caracteres",userPostalCode:"Código postal:",userPostalCodeError:"O código postal deve ter pelo menos 1 caractere e no máximo 20 caracteres",userNotifications:"Notificações",smsConsent:"Habilitar notificações por SMS",emailmarketingConsent:"Ativar e-mail",phonecallConsent:"Ativar notificações de chamadas telefônicas",postConsent:"Ativar notificações de correio","3rdpartyConsent":"Ativar notificações de terceiros",smsandemailConsent:"Ativar notificações por SMS e e-mail",userProfileSaveChanges:"Guardar mudanças",userProfileConfirmationMessage:"Suas alterações foram salvas!",userProfileUpdateError:"Ocorreu um erro ao tentar atualizar as informações do perfil"},"es-mx":{titleProfileInfo:"Información de Perfil",personalDetails:"Detalles personales",userName:"Usuario:",userPhone:"Teléfono:",userPhoneError:"Número de Móvl debe tener al menos 5 caracteres de largo y 12 caracteres máximo",userEmail:"Correo electrónico:",profileSecurityQuestion:"Pregunta de Seguridad:",profileSecurityQuestion2:"Tipo de documento de identificación (Documento de identidad nacional, Identificación extranjera, Pasaporte)",profileSecurityQuestionError:"La pregunta de seguridad debe tener al menos 1 caracter de largo y máximo 120 caracteres",profileSecurityQuestionError2:"Solo letras y números son aceptados",firstName:"Nombre:",profileSecurityAnswer:"Pregunta de seguridad:",profileSecurityAnswer2:"Número de documento:",profileSecurityAnswerError:"La respuesta de seguridad debe tener al menos 1 carácter de largo y máximo 120 caracteres.",profileSecurityAnswerError2:"Solo letras y números son aceptados",lastName:"Apellido:",dateOfBirth:"Fecha de nacimiento:",currency:"Moneda:",iban:"IBAN:",userTitle:"Título:","Mr.":"Sr.","Mrs.":"Sra.",locationDetails:"Detalles de ubicación:",userCountry:"País:",userCity:"Ciudad:",userCityError:"Ciudad debe tener al menos 1 carácter de largo y 50 caracteres máximo",userAddress:"Dirección:",userAddressError:"Dirección debe tener al menos 1 carácter de largo y 100 caracteres máximo",userPostalCode:"Código Postal:",userPostalCodeError:"Código Postal debe tener al menos 1 carácter de largo y 20 caracteres máximo",userNotifications:"Notificaciones",smsConsent:"Habilitar notificaciones de SMS",emailmarketingConsent:"Habilitar correo electrónico",phonecallConsent:"Habilitar notificaciones de llamadas telefónicas",postConsent:"Habilitar notificaciones por correo","3rdpartyConsent":"Habilitar notificaciones de terceros",smsandemailConsent:"Habilitar notificaciones por SMS y correo electrónico",userProfileSaveChanges:"Guardar cambios",userProfileConfirmationMessage:"¡Sus cambios han sido guardados!",userProfileUpdateError:"Se ha producido un error al intentar actualizar la información del perfil"}};function $s(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Xs(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Zs(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function qs(e){Po(e,"svelte-18ne4rw",`button{font-family:var(--emw--button-typography)}.Hidden{display:none}input,select,option{font-family:inherit}.MyAccountCategoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-semibold, 500)}.MyAccountCategoryTitleMobile{font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none}.PlayerInfoWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));background:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;border-radius:20px}.PlayerInfoWrapper .PlayerFadeInWarapper{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerNotificationsHeader h3,.PlayerDetailsHeader h3,.PlayerLocationHeader h3{font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:var(--emw--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:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:10px}.PlayerInfoBox input{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);outline:none;transition-duration:0.3s;border:1px solid var(--emw--color-gray-100, #353535);border-radius:10px}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerInfoBox.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-red, #FD2839));background:var(--emw--color-pale, #FBECF4);color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.PlayerInfoBox .InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;line-height:10px}.PlayerInfoBox .FieldDisabled{opacity:0.5}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:2fr 4fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding:10px;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border:1px solid var(--emw--color-gray-100, #353535);border-radius:10px;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(--emw--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(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield;appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:24px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox{margin-top:5px;margin-bottom:5px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-light, 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(--emw--color-gray-100, #E6E6E6);cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerNotificationBox label .Checkmark{left:10px;top:7px;width:4px;height:8px;border:solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--size-standard, 16px);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;max-width:400px;min-width:200px}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{opacity:0.3;cursor:not-allowed}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton.PlayerButtonDisabled{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsCancelButton{height:40px;font-size:var(--emw--size-x-small, 12px)}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:var(--emw--color-gray-50, #F9F8F8);max-width:unset;border-radius:0}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:ar(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400)}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:var(--emw--color-gray-300, #58586B);font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-light, 300)}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));font-size:var(--emw--size-x-small, 12px);font-weight:var(--emw--font-weight-light, 300)}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton.PlayerButtonDisabled{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{color:var(--emw--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:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:var(--emw--font-size-large, 20px);line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerInfoBox .TogglePasswordVisibility{width:30px;top:26px}.PlayerInfoWrapperTablet .PlayerInfoBox .InvalidInput{font-size:var(--emw--size-standard, 16px);bottom:-50px}.PlayerInfoWrapperTablet .PlayerInfoBox:last-child .InvalidInput{font-size:var(--emw--size-standard, 16px);bottom:-50px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{font-family:var(--emw--button-typography);grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsCancelButton{font-size:var(--emw--font-size-large, 20px);height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:var(--emw--color-gray-300, #58586B)}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:var(--emw--font-size-large, 20px)}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:var(--emw--color-valid, var(--emw--color-green, #48952a));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}.skeletonContainer{max-width:unset;container-type:inline-size}.skeletonContainer .skeletonWrapper{background:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;border-radius:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.skeletonContainer .skeletonWrapper .skeletonHeaderText{width:200px;margin:25px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionText{width:150px;margin:16px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer{display:grid;grid-column-gap:50px;grid-row-gap:23px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:25px;margin-top:15px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer{display:flex;flex-direction:column}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer .skletonInputText{width:70px;margin:0px 0px 11px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer .skeletonInputContainer .skeletonInputField{border-radius:10px;overflow:hidden}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer{display:flex;flex-direction:column;justify-content:flex-start;padding-bottom:30px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer .skletonInputCircle{margin:5px}.skeletonContainer .skeletonWrapper .skeletonConsentsContainer .skeletonInputContainer .skletonInputText{width:150px}.skeletonContainer .skeletonWrapper .skeletonButton{width:400px;border-radius:var(--emw--button-border-radius, 50px);overflow:hidden;margin-top:10px}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{padding:20px 15px;width:auto;max-width:unset;border-radius:0px}.skeletonContainer .skeletonWrapper .skeletonHeaderText{margin:10px 0px}.skeletonContainer .skeletonWrapper .skeletonSectionText{margin-top:31px}.skeletonContainer .skeletonWrapper .skeletonSectionContainer{grid-template-columns:1fr;margin-top:13px;grid-row-gap:18px}.skeletonContainer .skeletonWrapper .skeletonButton{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`)}function yi(e,t,r){const n=e.slice();return n[63]=t[r],n[64]=t,n[65]=r,n}function vi(e,t,r){const n=e.slice();return n[66]=t[r],n}function Js(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function Ys(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function Ks(e,t,r){const n=e.slice();return n[69]=t[r],n[71]=r,n}function el(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <div class="skeletonInputText"><ui-skeleton structure="text" width="auto" height="35px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&D(t)}}}function tl(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <div class="skeletonInputField"><ui-skeleton structure="text" width="auto" height="35px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&D(t)}}}function rl(e){let t;return{c(){t=p("div"),t.innerHTML='<div class="skletonInputCircle"><ui-skeleton structure="circle" size="20px" height="10px"></ui-skeleton></div> <div class="skletonInputText"><ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton></div> ',f(t,"class","skeletonInputContainer")},m(r,n){L(r,t,n)},p:fe,d(r){r&&D(t)}}}function gi(e){let t,r,n,i,o=e[15]("titleProfileInfo")+"",a,l,c,u,h=e[15]("personalDetails")+"",d,y,b,x,P,T=e[15]("userName")+"",z,w,M,j,V,m,C,K=e[15]("userPhone")+"",he,X,O,E,ee,H,Le,Ee,We,te,Te,qe=(e[0]=="true"?e[15]("profileSecurityQuestion2"):e[15]("profileSecurityQuestion"))+"",Pe,Rt,Fe,Et,pe,Ut,Je,Pt,de,Re,Qe=(e[0]=="true"?e[15]("profileSecurityAnswer2"):e[15]("profileSecurityAnswer"))+"",xt,jt,Ue,wt,me,Gt,Ye,zt,je,Ke,et=e[15]("userEmail")+"",St,Wt,ye,Ve,Qt,v,A,U=e[15]("dateOfBirth")+"",R,ve,W,Z,vn,tt,Vt,$t=e[15]("firstName")+"",Nr,gn,ke,Ct,_n,rt,Xt,Zt=e[15]("lastName")+"",Hr,En,Ne,At,Pn,nt,qt,Jt=e[15]("userTitle")+"",Mr,xn,He,Bt,wn,it,Yt,Kt=e[15]("currency")+"",Or,Sn,Me,It,Cn,An,er,Dr,tr=e[15]("locationDetails")+"",Lr,Bn,xe,ot,rr,nr=e[15]("userCountry")+"",Fr,In,ge,Tt,ir,Tn,we,or,ar=e[15]("userCity")+"",Rr,kn,Se,Nn,sr,Hn,Ce,lr,ur=e[15]("userAddress")+"",Ur,Mn,Ae,On,cr,Dn,Be,fr,hr=e[15]("userPostalCode")+"",jr,Ln,Ie,Fn,pr,Rn,Gr=Object.keys(e[4].consents).length>0,zr,dr,at,mr=e[15]("userProfileSaveChanges")+"",Wr,br,Un,Qr,jn,$e=e[16]&&nl(e),st=Xe(e[3]),q=[];for(let J=0;J<st.length;J+=1)q[J]=_i(vi(e,st,J));let re=!e[13]&&Ei(e),ne=!e[11]&&Pi(e),ie=!e[12]&&xi(e),oe=e[5].iban&&wi(e),ae=!e[8]&&Si(e),se=!e[10]&&Ci(e),le=!e[9]&&Ai(e),ue=Gr&&Bi(e),ce=e[14]&&ki(e);return{c(){t=p("form"),r=p("div"),$e&&$e.c(),n=_(),i=p("h2"),a=S(o),l=_(),c=p("div"),u=p("h3"),d=S(h),y=_(),b=p("section"),x=p("div"),P=p("label"),z=S(T),w=_(),M=p("input"),V=_(),m=p("div"),C=p("label"),he=S(K),X=_(),O=p("div"),E=p("select");for(let J=0;J<q.length;J+=1)q[J].c();ee=_(),H=p("input"),Le=_(),re&&re.c(),We=_(),te=p("div"),Te=p("label"),Pe=S(qe),Rt=S(":"),Fe=p("span"),Fe.textContent="*",Et=_(),pe=p("input"),Ut=_(),ne&&ne.c(),Pt=_(),de=p("div"),Re=p("label"),xt=S(Qe),jt=S(":"),Ue=p("span"),Ue.textContent="*",wt=_(),me=p("input"),Gt=_(),ie&&ie.c(),zt=_(),je=p("div"),Ke=p("label"),St=S(et),Wt=_(),ye=p("input"),Qt=_(),v=p("div"),A=p("label"),R=S(U),ve=_(),W=p("input"),vn=_(),tt=p("div"),Vt=p("label"),Nr=S($t),gn=_(),ke=p("input"),_n=_(),rt=p("div"),Xt=p("label"),Hr=S(Zt),En=_(),Ne=p("input"),Pn=_(),nt=p("div"),qt=p("label"),Mr=S(Jt),xn=_(),He=p("input"),wn=_(),it=p("div"),Yt=p("label"),Or=S(Kt),Sn=_(),Me=p("input"),Cn=_(),oe&&oe.c(),An=_(),er=p("div"),Dr=p("h3"),Lr=S(tr),Bn=_(),xe=p("section"),ot=p("div"),rr=p("label"),Fr=S(nr),In=_(),ge=p("input"),Tn=_(),we=p("div"),or=p("label"),Rr=S(ar),kn=_(),Se=p("input"),Nn=_(),ae&&ae.c(),Hn=_(),Ce=p("div"),lr=p("label"),Ur=S(ur),Mn=_(),Ae=p("input"),On=_(),se&&se.c(),Dn=_(),Be=p("div"),fr=p("label"),jr=S(hr),Ln=_(),Ie=p("input"),Fn=_(),le&&le.c(),Rn=_(),ue&&ue.c(),zr=_(),dr=p("section"),at=p("button"),Wr=S(mr),Un=_(),ce&&ce.c(),f(i,"class","MyAccountCategoryTitle "+(e[16]?"MyAccountCategoryTitleNone":"")),f(c,"class","PlayerNotificationsHeader"),f(M,"type","text"),f(M,"class","FieldDisabled"),M.value=j=e[5].username,M.readOnly=!0,f(x,"class","PlayerInfoBox"),e[4].mobile.prefix===void 0&&xr(()=>e[34].call(E)),f(H,"type","text"),f(H,"placeholder",e[17].mobile.number),f(O,"class","PlayerPhoneNumber"),f(m,"class",Ee="PlayerInfoBox "+(e[13]?"":"InvalidField")),f(Fe,"class","FormRequired"),f(Te,"for","SecurityQuestion"),f(pe,"id","SecurityQuestion"),f(pe,"type","text"),f(pe,"placeholder",e[17].securityQuestion),f(te,"class",Je="PlayerInfoBox "+(e[11]?"":"InvalidField")),f(Ue,"class","FormRequired"),f(Re,"for","SecurityAnswer"),f(me,"id","SecurityAnswer"),f(me,"type","text"),f(me,"placeholder",e[17].securityAnswer),f(de,"class",Ye="PlayerInfoBox "+(e[12]?"":"InvalidField")),f(Ke,"for","UserEmail"),f(ye,"id","UserEmail"),f(ye,"type","email"),f(ye,"class","FieldDisabled"),ye.value=Ve=e[5].email,ye.readOnly=!0,f(je,"class","PlayerInfoBox"),f(A,"for","DateOfBirth"),f(W,"id","DateOfBirth"),f(W,"type","text"),f(W,"class","FieldDisabled"),W.value=Z=e[5].birth,W.readOnly=!0,f(v,"class","PlayerInfoBox"),f(Vt,"for","FirstName"),f(ke,"id","FirstName"),f(ke,"type","text"),f(ke,"class","FieldDisabled"),ke.value=Ct=e[5].firstname,ke.readOnly=!0,f(tt,"class","PlayerInfoBox"),f(Xt,"for","LastName"),f(Ne,"id","LastName"),f(Ne,"type","text"),f(Ne,"class","FieldDisabled"),Ne.value=At=e[5].lastname,Ne.readOnly=!0,f(rt,"class","PlayerInfoBox"),f(qt,"for","UserTitle"),f(He,"id","UserTitle"),f(He,"type","text"),f(He,"class","FieldDisabled"),He.value=Bt=e[15](e[5].userTitles),He.readOnly=!0,f(nt,"class","PlayerInfoBox"),f(Yt,"for","Currrency"),f(Me,"id","Currency"),f(Me,"type","text"),f(Me,"class","FieldDisabled"),Me.value=It=e[5].currency,Me.readOnly=!0,f(it,"class","PlayerInfoBox"),f(b,"class","PlayerDetailsContent"),f(er,"class","PlayerLocationHeader"),f(rr,"for","UserCountry"),f(ge,"id","UserCountry"),f(ge,"type","text"),f(ge,"class","PlayerCountry FieldDisabled"),ge.value=Tt=e[5].countryName,f(ge,"placeholder",ir=e[5].countryCode),ge.readOnly=!0,f(ot,"class","PlayerInfoBox"),f(or,"for","UserCity"),f(Se,"id","UserCity"),f(Se,"type","text"),f(Se,"placeholder",e[17].city),f(we,"class",sr="PlayerInfoBox "+(e[8]?"":"InvalidField")),f(lr,"for","UserAdress"),f(Ae,"id","UserAdress"),f(Ae,"type","text"),f(Ae,"placeholder",e[17].adress),f(Ce,"class",cr="PlayerInfoBox "+(e[10]?"":"InvalidField")),f(fr,"for","UserPostalCode"),f(Ie,"id","UserPostalCode"),f(Ie,"type","text"),f(Ie,"placeholder",e[17].postalCode),f(Be,"class",pr="PlayerInfoBox "+(e[9]?"":"InvalidField")),f(xe,"class","PlayerLocationContent"),f(at,"class",br="PlayerDetailsSaveButton "+(e[6]&&e[7]?"":"PlayerButtonDisabled")),f(dr,"class","PlayerDetailsButtonsArea "+(e[16]?"PlayerDetailsButtonsAreaMobile":"")),f(r,"class","PlayerFadeInWarapper"),f(t,"class","PlayerInfoWrapper "+(e[16]?"PlayerInfoWrapperMobile":"")+" "+(e[18].matches&&e[16]?"PlayerInfoWrapperTablet":""))},m(J,g){L(J,t,g),s(t,r),$e&&$e.m(r,null),s(r,n),s(r,i),s(i,a),s(r,l),s(r,c),s(c,u),s(u,d),s(r,y),s(r,b),s(b,x),s(x,P),s(P,z),s(x,w),s(x,M),s(b,V),s(b,m),s(m,C),s(C,he),s(m,X),s(m,O),s(O,E);for(let Q=0;Q<q.length;Q+=1)q[Q]&&q[Q].m(E,null);$n(E,e[4].mobile.prefix,!0),s(O,ee),s(O,H),$(H,e[4].mobile.number),s(m,Le),re&&re.m(m,null),s(b,We),s(b,te),s(te,Te),s(Te,Pe),s(Te,Rt),s(Te,Fe),s(te,Et),s(te,pe),$(pe,e[4].securityQuestion),s(te,Ut),ne&&ne.m(te,null),s(b,Pt),s(b,de),s(de,Re),s(Re,xt),s(Re,jt),s(Re,Ue),s(de,wt),s(de,me),$(me,e[4].securityAnswer),s(de,Gt),ie&&ie.m(de,null),s(b,zt),s(b,je),s(je,Ke),s(Ke,St),s(je,Wt),s(je,ye),s(b,Qt),s(b,v),s(v,A),s(A,R),s(v,ve),s(v,W),s(b,vn),s(b,tt),s(tt,Vt),s(Vt,Nr),s(tt,gn),s(tt,ke),s(b,_n),s(b,rt),s(rt,Xt),s(Xt,Hr),s(rt,En),s(rt,Ne),s(b,Pn),s(b,nt),s(nt,qt),s(qt,Mr),s(nt,xn),s(nt,He),s(b,wn),s(b,it),s(it,Yt),s(Yt,Or),s(it,Sn),s(it,Me),s(b,Cn),oe&&oe.m(b,null),s(r,An),s(r,er),s(er,Dr),s(Dr,Lr),s(r,Bn),s(r,xe),s(xe,ot),s(ot,rr),s(rr,Fr),s(ot,In),s(ot,ge),s(xe,Tn),s(xe,we),s(we,or),s(or,Rr),s(we,kn),s(we,Se),$(Se,e[4].city),s(we,Nn),ae&&ae.m(we,null),s(xe,Hn),s(xe,Ce),s(Ce,lr),s(lr,Ur),s(Ce,Mn),s(Ce,Ae),$(Ae,e[4].address1),s(Ce,On),se&&se.m(Ce,null),s(xe,Dn),s(xe,Be),s(Be,fr),s(fr,jr),s(Be,Ln),s(Be,Ie),$(Ie,e[4].postalCode),s(Be,Fn),le&&le.m(Be,null),s(r,Rn),ue&&ue.m(r,null),s(r,zr),s(r,dr),s(dr,at),s(at,Wr),s(r,Un),ce&&ce.m(r,null),Qr||(jn=[G(E,"change",e[34]),G(E,"change",e[19]),G(H,"input",e[35]),G(H,"keyup",e[20]("mobileNumber")),G(H,"input",function(){Cr(e[4].mobile.number=e[4].mobile.number.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1"))&&(e[4].mobile.number=e[4].mobile.number.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1")).apply(this,arguments)}),G(pe,"input",e[36]),G(pe,"keyup",e[20]("securityQuestion")),G(me,"input",e[37]),G(me,"keyup",e[20]("securityAnswer")),G(Se,"input",e[38]),G(Se,"keyup",e[20]("city")),G(Ae,"input",e[39]),G(Ae,"keyup",e[20]("address")),G(Ie,"input",e[40]),G(Ie,"keyup",e[20]("postalCode")),G(at,"click",e[21])],Qr=!0)},p(J,g){if(e=J,e[16]&&$e.p(e,g),g[0]&32768&&o!==(o=e[15]("titleProfileInfo")+"")&&N(a,o),g[0]&32768&&h!==(h=e[15]("personalDetails")+"")&&N(d,h),g[0]&32768&&T!==(T=e[15]("userName")+"")&&N(z,T),g[0]&32&&j!==(j=e[5].username)&&M.value!==j&&(M.value=j),g[0]&32768&&K!==(K=e[15]("userPhone")+"")&&N(he,K),g[0]&24){st=Xe(e[3]);let Q;for(Q=0;Q<st.length;Q+=1){const Gn=vi(e,st,Q);q[Q]?q[Q].p(Gn,g):(q[Q]=_i(Gn),q[Q].c(),q[Q].m(E,null))}for(;Q<q.length;Q+=1)q[Q].d(1);q.length=st.length}g[0]&24&&$n(E,e[4].mobile.prefix),g[0]&24&&H.value!==e[4].mobile.number&&$(H,e[4].mobile.number),e[13]?re&&(re.d(1),re=null):re?re.p(e,g):(re=Ei(e),re.c(),re.m(m,null)),g[0]&8192&&Ee!==(Ee="PlayerInfoBox "+(e[13]?"":"InvalidField"))&&f(m,"class",Ee),g[0]&32769&&qe!==(qe=(e[0]=="true"?e[15]("profileSecurityQuestion2"):e[15]("profileSecurityQuestion"))+"")&&N(Pe,qe),g[0]&24&&pe.value!==e[4].securityQuestion&&$(pe,e[4].securityQuestion),e[11]?ne&&(ne.d(1),ne=null):ne?ne.p(e,g):(ne=Pi(e),ne.c(),ne.m(te,null)),g[0]&2048&&Je!==(Je="PlayerInfoBox "+(e[11]?"":"InvalidField"))&&f(te,"class",Je),g[0]&32769&&Qe!==(Qe=(e[0]=="true"?e[15]("profileSecurityAnswer2"):e[15]("profileSecurityAnswer"))+"")&&N(xt,Qe),g[0]&24&&me.value!==e[4].securityAnswer&&$(me,e[4].securityAnswer),e[12]?ie&&(ie.d(1),ie=null):ie?ie.p(e,g):(ie=xi(e),ie.c(),ie.m(de,null)),g[0]&4096&&Ye!==(Ye="PlayerInfoBox "+(e[12]?"":"InvalidField"))&&f(de,"class",Ye),g[0]&32768&&et!==(et=e[15]("userEmail")+"")&&N(St,et),g[0]&32&&Ve!==(Ve=e[5].email)&&ye.value!==Ve&&(ye.value=Ve),g[0]&32768&&U!==(U=e[15]("dateOfBirth")+"")&&N(R,U),g[0]&32&&Z!==(Z=e[5].birth)&&W.value!==Z&&(W.value=Z),g[0]&32768&&$t!==($t=e[15]("firstName")+"")&&N(Nr,$t),g[0]&32&&Ct!==(Ct=e[5].firstname)&&ke.value!==Ct&&(ke.value=Ct),g[0]&32768&&Zt!==(Zt=e[15]("lastName")+"")&&N(Hr,Zt),g[0]&32&&At!==(At=e[5].lastname)&&Ne.value!==At&&(Ne.value=At),g[0]&32768&&Jt!==(Jt=e[15]("userTitle")+"")&&N(Mr,Jt),g[0]&32800&&Bt!==(Bt=e[15](e[5].userTitles))&&He.value!==Bt&&(He.value=Bt),g[0]&32768&&Kt!==(Kt=e[15]("currency")+"")&&N(Or,Kt),g[0]&32&&It!==(It=e[5].currency)&&Me.value!==It&&(Me.value=It),e[5].iban?oe?oe.p(e,g):(oe=wi(e),oe.c(),oe.m(b,null)):oe&&(oe.d(1),oe=null),g[0]&32768&&tr!==(tr=e[15]("locationDetails")+"")&&N(Lr,tr),g[0]&32768&&nr!==(nr=e[15]("userCountry")+"")&&N(Fr,nr),g[0]&32&&Tt!==(Tt=e[5].countryName)&&ge.value!==Tt&&(ge.value=Tt),g[0]&32&&ir!==(ir=e[5].countryCode)&&f(ge,"placeholder",ir),g[0]&32768&&ar!==(ar=e[15]("userCity")+"")&&N(Rr,ar),g[0]&24&&Se.value!==e[4].city&&$(Se,e[4].city),e[8]?ae&&(ae.d(1),ae=null):ae?ae.p(e,g):(ae=Si(e),ae.c(),ae.m(we,null)),g[0]&256&&sr!==(sr="PlayerInfoBox "+(e[8]?"":"InvalidField"))&&f(we,"class",sr),g[0]&32768&&ur!==(ur=e[15]("userAddress")+"")&&N(Ur,ur),g[0]&24&&Ae.value!==e[4].address1&&$(Ae,e[4].address1),e[10]?se&&(se.d(1),se=null):se?se.p(e,g):(se=Ci(e),se.c(),se.m(Ce,null)),g[0]&1024&&cr!==(cr="PlayerInfoBox "+(e[10]?"":"InvalidField"))&&f(Ce,"class",cr),g[0]&32768&&hr!==(hr=e[15]("userPostalCode")+"")&&N(jr,hr),g[0]&24&&Ie.value!==e[4].postalCode&&$(Ie,e[4].postalCode),e[9]?le&&(le.d(1),le=null):le?le.p(e,g):(le=Ai(e),le.c(),le.m(Be,null)),g[0]&512&&pr!==(pr="PlayerInfoBox "+(e[9]?"":"InvalidField"))&&f(Be,"class",pr),g[0]&16&&(Gr=Object.keys(e[4].consents).length>0),Gr?ue?ue.p(e,g):(ue=Bi(e),ue.c(),ue.m(r,zr)):ue&&(ue.d(1),ue=null),g[0]&32768&&mr!==(mr=e[15]("userProfileSaveChanges")+"")&&N(Wr,mr),g[0]&192&&br!==(br="PlayerDetailsSaveButton "+(e[6]&&e[7]?"":"PlayerButtonDisabled"))&&f(at,"class",br),e[14]?ce?ce.p(e,g):(ce=ki(e),ce.c(),ce.m(r,null)):ce&&(ce.d(1),ce=null)},d(J){J&&D(t),$e&&$e.d(),Ht(q,J),re&&re.d(),ne&&ne.d(),ie&&ie.d(),oe&&oe.d(),ae&&ae.d(),se&&se.d(),le&&le.d(),ue&&ue.d(),ce&&ce.d(),Qr=!1,ze(jn)}}}function nl(e){let t,r,n,i,o,a,l,c,u,h,d=e[15]("titleProfileInfo")+"",y,b,x;return{c(){t=p("div"),r=lt("svg"),n=lt("defs"),i=lt("style"),o=S(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),a=lt("g"),l=lt("g"),c=lt("path"),u=_(),h=p("h2"),y=S(d),f(c,"class","aaa"),f(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),f(c,"transform","translate(15 15) rotate(180)"),f(l,"transform","translate(20 158)"),f(a,"transform","translate(-20 -158)"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(r,"width","15"),f(r,"height","15"),f(r,"viewBox","0 0 15 15"),f(h,"class","MyAccountCategoryTitleMobile"),f(t,"class","MenuReturnButton")},m(P,T){L(P,t,T),s(t,r),s(r,n),s(n,i),s(i,o),s(r,a),s(a,l),s(l,c),s(t,u),s(t,h),s(h,y),b||(x=[G(t,"click",e[22]),G(t,"keyup",null)],b=!0)},p(P,T){T[0]&32768&&d!==(d=P[15]("titleProfileInfo")+"")&&N(y,d)},d(P){P&&D(t),b=!1,ze(x)}}}function il(e){let t,r=e[66].Prefix+"",n,i;return{c(){t=p("option"),n=S(r),t.__value=i=e[66].Prefix,$(t,t.__value)},m(o,a){L(o,t,a),s(t,n)},p(o,a){a[0]&8&&r!==(r=o[66].Prefix+"")&&N(n,r),a[0]&8&&i!==(i=o[66].Prefix)&&(t.__value=i,$(t,t.__value))},d(o){o&&D(t)}}}function ol(e){let t,r=e[66].Prefix+"",n,i;return{c(){t=p("option"),n=S(r),t.selected=!0,t.__value=i=e[66].Prefix,$(t,t.__value)},m(o,a){L(o,t,a),s(t,n)},p(o,a){a[0]&8&&r!==(r=o[66].Prefix+"")&&N(n,r),a[0]&8&&i!==(i=o[66].Prefix)&&(t.__value=i,$(t,t.__value))},d(o){o&&D(t)}}}function _i(e){let t;function r(o,a){return o[66].Prefix===o[4].mobile.prefix?ol:il}let n=r(e),i=n(e);return{c(){i.c(),t=Oi()},m(o,a){i.m(o,a),L(o,t,a)},p(o,a){n===(n=r(o))&&i?i.p(o,a):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&D(t),i.d(o)}}}function Ei(e){let t,r=e[15]("userPhoneError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userPhoneError")+"")&&N(n,r)},d(i){i&&D(t)}}}function Pi(e){let t,r=(e[0]=="true"?e[15]("profileSecurityQuestionError2"):e[15]("profileSecurityQuestionError"))+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32769&&r!==(r=(i[0]=="true"?i[15]("profileSecurityQuestionError2"):i[15]("profileSecurityQuestionError"))+"")&&N(n,r)},d(i){i&&D(t)}}}function xi(e){let t,r=(e[0]=="true"?e[15]("profileSecurityAnswerError2"):e[15]("profileSecurityAnswerError"))+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32769&&r!==(r=(i[0]=="true"?i[15]("profileSecurityAnswerError2"):i[15]("profileSecurityAnswerError"))+"")&&N(n,r)},d(i){i&&D(t)}}}function wi(e){let t,r,n=e[15]("iban")+"",i,o,a,l;return{c(){t=p("div"),r=p("label"),i=S(n),o=_(),a=p("input"),f(r,"for","Iban"),f(a,"id","Iban"),f(a,"type","text"),f(a,"class","FieldDisabled"),a.value=l=e[5].iban,a.readOnly=!0,f(t,"class","PlayerInfoBox")},m(c,u){L(c,t,u),s(t,r),s(r,i),s(t,o),s(t,a)},p(c,u){u[0]&32768&&n!==(n=c[15]("iban")+"")&&N(i,n),u[0]&32&&l!==(l=c[5].iban)&&a.value!==l&&(a.value=l)},d(c){c&&D(t)}}}function Si(e){let t,r=e[15]("userCityError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userCityError")+"")&&N(n,r)},d(i){i&&D(t)}}}function Ci(e){let t,r=e[15]("userAddressError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userAddressError")+"")&&N(n,r)},d(i){i&&D(t)}}}function Ai(e){let t,r=e[15]("userPostalCodeError")+"",n;return{c(){t=p("p"),n=S(r),f(t,"class","InvalidInput")},m(i,o){L(i,t,o),s(t,n)},p(i,o){o[0]&32768&&r!==(r=i[15]("userPostalCodeError")+"")&&N(n,r)},d(i){i&&D(t)}}}function Bi(e){let t,r,n=e[15]("userNotifications")+"",i,o,a,l=Xe(Object.keys(e[4].consents)),c=[];for(let u=0;u<l.length;u+=1)c[u]=Ti(yi(e,l,u));return{c(){t=p("div"),r=p("h3"),i=S(n),o=_(),a=p("section");for(let u=0;u<c.length;u+=1)c[u].c();f(t,"class","PlayerNotificationsHeader"),f(a,"class","PlayerNotificationsCheckboxArea")},m(u,h){L(u,t,h),s(t,r),s(r,i),L(u,o,h),L(u,a,h);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(a,null)},p(u,h){if(h[0]&32768&&n!==(n=u[15]("userNotifications")+"")&&N(i,n),h[0]&1081360){l=Xe(Object.keys(u[4].consents));let d;for(d=0;d<l.length;d+=1){const y=yi(u,l,d);c[d]?c[d].p(y,h):(c[d]=Ti(y),c[d].c(),c[d].m(a,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=l.length}},d(u){u&&(D(t),D(o),D(a)),Ht(c,u)}}}function Ii(e){let t,r,n,i,o,a,l,c=e[15](`${e[63]}Consent`)+"",u,h,d,y;function b(){e[41].call(n,e[63])}return{c(){t=p("div"),r=p("label"),n=p("input"),i=_(),o=p("span"),a=_(),l=p("span"),u=S(c),h=_(),f(n,"type","checkbox"),f(o,"class","Checkmark"),f(t,"class","PlayerNotificationBox")},m(x,P){L(x,t,P),s(t,r),s(r,n),n.checked=e[4].consents[e[63]],s(r,i),s(r,o),s(r,a),s(r,l),s(l,u),s(t,h),d||(y=[G(n,"change",b),G(n,"change",e[20]("consents"))],d=!0)},p(x,P){e=x,P[0]&24&&(n.checked=e[4].consents[e[63]]),P[0]&32784&&c!==(c=e[15](`${e[63]}Consent`)+"")&&N(u,c)},d(x){x&&D(t),d=!1,ze(y)}}}function Ti(e){let t,r=e[63]!==void 0&&Ii(e);return{c(){r&&r.c(),t=Oi()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[63]!==void 0?r?r.p(n,i):(r=Ii(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&D(t),r&&r.d(n)}}}function ki(e){let t,r,n=e[15]("userProfileConfirmationMessage")+"",i;return{c(){t=p("section"),r=p("p"),i=S(n),f(r,"class","PlayerDetailsConfirmSaveText"),f(t,"class","PlayerDetailsConfirmSave")},m(o,a){L(o,t,a),s(t,r),s(r,i)},p(o,a){a[0]&32768&&n!==(n=o[15]("userProfileConfirmationMessage")+"")&&N(i,n)},d(o){o&&D(t)}}}function al(e){let t,r,n,i,o,a,l,c,u,h,d,y,b,x,P,T,z,w,M,j,V=Xe({length:10}),m=[];for(let E=0;E<V.length;E+=1)m[E]=el(Ks(e,V,E));let C=Xe({length:4}),K=[];for(let E=0;E<C.length;E+=1)K[E]=tl(Ys(e,C,E));let he=Xe({length:4}),X=[];for(let E=0;E<he.length;E+=1)X[E]=rl(Js(e,he,E));let O=!e[2]&&gi(e);return{c(){t=p("div"),r=p("div"),n=p("div"),n.innerHTML='<ui-skeleton structure="title" width="auto" height="25px"></ui-skeleton>',i=_(),o=p("div"),o.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',a=_(),l=p("div");for(let E=0;E<m.length;E+=1)m[E].c();c=_(),u=p("div"),u.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',h=_(),d=p("div");for(let E=0;E<K.length;E+=1)K[E].c();y=_(),b=p("div"),b.innerHTML='<ui-skeleton structure="text" width="auto" height="15px"></ui-skeleton>',x=_(),P=p("div");for(let E=0;E<X.length;E+=1)X[E].c();T=_(),z=p("div"),z.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="45px"></ui-skeleton>',M=_(),j=p("div"),O&&O.c(),f(n,"class","skeletonHeaderText"),f(o,"class","skeletonSectionText"),f(l,"class","skeletonSectionContainer"),f(u,"class","skeletonSectionText"),f(d,"class","skeletonSectionContainer"),f(b,"class","skeletonSectionText"),f(P,"class","skeletonConsentsContainer"),f(z,"class","skeletonButton"),f(r,"class","skeletonWrapper"),f(t,"class",w="skeletonContainer "+(e[2]?"":"Hidden"))},m(E,ee){L(E,t,ee),s(t,r),s(r,n),s(r,i),s(r,o),s(r,a),s(r,l);for(let H=0;H<m.length;H+=1)m[H]&&m[H].m(l,null);s(r,c),s(r,u),s(r,h),s(r,d);for(let H=0;H<K.length;H+=1)K[H]&&K[H].m(d,null);s(r,y),s(r,b),s(r,x),s(r,P);for(let H=0;H<X.length;H+=1)X[H]&&X[H].m(P,null);s(r,T),s(r,z),L(E,M,ee),L(E,j,ee),O&&O.m(j,null),e[42](j)},p(E,ee){ee[0]&4&&w!==(w="skeletonContainer "+(E[2]?"":"Hidden"))&&f(t,"class",w),E[2]?O&&(O.d(1),O=null):O?O.p(E,ee):(O=gi(E),O.c(),O.m(j,null))},i:fe,o:fe,d(E){E&&(D(t),D(M),D(j)),Ht(m,E),Ht(K,E),Ht(X,E),O&&O.d(),e[42](null)}}}function sl(e,t,r){let n;Eo(e,Ws,v=>r(15,n=v));let{userid:i}=t,{sessionid:o}=t,{endpoint:a}=t,{lang:l="en"}=t,{clientstyling:c}=t,{clientstylingurl:u}=t,{mbsource:h}=t,{translationurl:d}=t,{custominputtextswitch:y="false"}=t,b,x=!0;const P=Qs(window.navigator.userAgent)!=="PC";let T=null,z=null,w=null,M=null,j,V;const m={},C={},K={address1:"i.e.: Glanmire Rd.",birth:"01/01/1990",city:"i.e.: Cork",currency:"EUR",iban:"",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"};let he=!1,X=!1,O=!0,E=!0,ee=!0,H=!0,Le=!0,Ee=!0,We=!0,te=!1;const Te={document:/^(?=.*[a-zA-Z0-9])[a-zA-Z0-9\s]+$/},qe=window.matchMedia("(min-width: 768px)"),Pe=v=>{try{return JSON.stringify(v)}catch(A){return null}},Rt=()=>{var v,A,U,R,ve,W;r(5,C.username=w.username,C),r(5,C.mobile=w.mobile,C),r(5,C.email=w.email,C),r(5,C.firstname=w.firstname,C),r(5,C.lastname=w.lastname,C),r(5,C.language=w.language,C),r(5,C.birth=((v=w.birth)==null?void 0:v.day)+"/"+((A=w.birth)==null?void 0:A.month)+"/"+((U=w.birth)==null?void 0:U.year),C),r(5,C.currency=w.currency,C),r(5,C.iban=w.iban,C),r(5,C.userTitles=w.title,C),r(5,C.countryCode=w.country,C),r(5,C.countryName=((R=z.find(Z=>Z.Alpha2Code===w.country))==null?void 0:R.Name)||"I.E. Ireland",C),r(4,m.address1=w.address1,m),r(4,m.city=w.city,m),r(4,m.mobile={},m),r(4,m.mobile.prefix=(ve=w.mobile)==null?void 0:ve.prefix,m),r(4,m.mobile.number=(W=w.mobile)==null?void 0:W.number,m),r(4,m.postalCode=w.postalCode,m),r(4,m.securityAnswer=w.securityAnswer,m),r(4,m.securityQuestion=w.securityQuestion,m),Array.isArray(M)&&(r(4,m.consents={},m),M.forEach(Z=>{Z.tagCode!=="termsandconditions"&&Z.tagCode!=="privacypolicy"&&Z.tagCode!=="pepconsent"&&r(4,m.consents[Z.tagCode]=Z.status==="Accepted",m)})),V=Pe(m),j=Pe(m.consents),r(2,x=!1)},Fe=()=>{const v=new URL(`${a}/v1/player/${i}/profile`),A=new Headers;A.append("X-SessionID",o);const U={method:"GET",headers:A};fetch(v.href,U).then(R=>R.json()).then(R=>{r(32,w=R)},R=>{console.error(R)})},Et=()=>{const v=new URL(`${a}/v1/player/${i}/consent`),A=new Headers;A.append("X-SessionID",o);const U={method:"GET",headers:A};fetch(v.href,U).then(R=>R.json()).then(R=>{r(33,M=R.items)},R=>{console.error(R)})},pe=()=>kt(this,null,function*(){try{const v=yield fetch(`${a}/v1/player/countries`);if(!v.ok)throw new Error("Error while fetching the countries");const A=yield v.json();r(31,z=A.countries)}catch(v){console.error(v)}}),Ut=()=>{fetch(`${a}/v1/player/phonecodes`).then(v=>v.json()).then(v=>{r(3,T=v.phoneCodes)})},Je=()=>{r(7,O=!1),Le&&Ee&&E&&H&&ee&&We&&r(7,O=!0)},Pt=()=>{r(6,he=Pe(m)!==V)},de=()=>{X=Pe(m.consents)!==j},Re=v=>()=>{switch(v){case"mobileNumber":r(13,We=!1),m.mobile.number&&m.mobile.number.length>=5&&m.mobile.number.length<=12&&r(13,We=!0);break;case"city":r(8,E=!1),m.city&&m.city.length<=50&&r(8,E=!0);break;case"postalCode":r(9,ee=!1),m.postalCode&&m.postalCode.length<=20&&r(9,ee=!0);break;case"address":r(10,H=!1),m.address1&&m.address1.length<=100&&r(10,H=!0);break;case"securityQuestion":if(r(11,Le=!1),m.securityQuestion)switch(y){case"true":Te.document.test(m.securityQuestion)&&m.securityQuestion.length<=50&&r(11,Le=!0);break;case"false":m.securityQuestion&&m.securityQuestion.length<=120&&r(11,Le=!0);break}break;case"securityAnswer":if(r(12,Ee=!1),m.securityAnswer)switch(y){case"true":Te.document.test(m.securityAnswer)&&m.securityAnswer.length<=50&&r(12,Ee=!0);break;case"false":m.securityAnswer&&m.securityAnswer.length<=120&&r(12,Ee=!0);break}break;case"consents":de();break}Pt(),Je()},Qe=()=>{r(14,te=!0),setTimeout(()=>{r(14,te=!1)},3e3),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("profileUpdateSuccess")}},window.location.href)},xt=()=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:n("userProfileUpdateError")}},window.location.href)},jt=v=>{if(v.preventDefault(),he&&!X&&O){Ue().then(A=>{A&&(Fe(),Qe())});return}if(he&&X&&O){Ue(),wt(),Promise.all([Ue(),wt()]).then(A=>{A[0]&&A[1]?(Fe(),Et(),Qe(),r(6,he=!1),X=!1):xt()});return}},Ue=()=>kt(this,null,function*(){const v=new URL(`${a}/v1/player/${i}/profile`),A=new Headers;A.append("X-SessionID",o),A.append("Content-Type","application/json"),A.append("Accept","application/json");const U=Pe(m);if(U===null)return!1;let R={method:"POST",headers:A,body:U};return yield fetch(v.href,R).then(ve=>ve.status==200,ve=>(console.error(ve),!1))}),wt=()=>kt(this,null,function*(){const v=[...Object.entries(m.consents).map(([W,Z])=>({tagCode:W,status:Z?"Accepted":"Denied"}))],A=new URL(`${a}/v1/player/${i}/consent`),U=new Headers;U.append("X-SessionID",o),U.append("Content-Type","application/json"),U.append("Accept","application/json");const R=Pe({items:v});if(R===null)return!1;const ve={method:"POST",headers:U,body:R};return yield fetch(A.href,ve).then(W=>W.status==200,W=>(console.error(W),!1))}),me=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},Gt=()=>{Vs(l)},Ye=()=>{fetch(d).then(A=>A.json()).then(A=>{Object.keys(A).forEach(U=>{mi(U,A[U])})}).catch(A=>{console.log(A)})};Object.keys(bi).forEach(v=>{mi(v,bi[v])}),Io(()=>()=>{});function zt(){m.mobile.prefix=Co(this),r(4,m),r(3,T)}function je(){m.mobile.number=this.value,r(4,m),r(3,T)}function Ke(){m.securityQuestion=this.value,r(4,m),r(3,T)}function et(){m.securityAnswer=this.value,r(4,m),r(3,T)}function St(){m.city=this.value,r(4,m),r(3,T)}function Wt(){m.address1=this.value,r(4,m),r(3,T)}function ye(){m.postalCode=this.value,r(4,m),r(3,T)}function Ve(v){m.consents[v]=this.checked,r(4,m),r(3,T)}function Qt(v){en[v?"unshift":"push"](()=>{b=v,r(1,b)})}return e.$$set=v=>{"userid"in v&&r(23,i=v.userid),"sessionid"in v&&r(24,o=v.sessionid),"endpoint"in v&&r(25,a=v.endpoint),"lang"in v&&r(26,l=v.lang),"clientstyling"in v&&r(27,c=v.clientstyling),"clientstylingurl"in v&&r(28,u=v.clientstylingurl),"mbsource"in v&&r(29,h=v.mbsource),"translationurl"in v&&r(30,d=v.translationurl),"custominputtextswitch"in v&&r(0,y=v.custominputtextswitch)},e.$$.update=()=>{e.$$.dirty[0]&58720256&&a&&i&&o&&Fe(),e.$$.dirty[0]&58720256&&a&&i&&o&&Et(),e.$$.dirty[0]&33554432&&a&&pe(),e.$$.dirty[0]&33554432&&a&&Ut(),e.$$.dirty[1]&7&&w&&M&&z&&Rt(),e.$$.dirty[0]&67108864&&l&&Gt(),e.$$.dirty[0]&134217730&&c&&b&&$s(b,c),e.$$.dirty[0]&268435458&&u&&b&&Xs(b,u),e.$$.dirty[0]&536870914&&h&&b&&Zs(b,`${h}.Style`),e.$$.dirty[0]&1073741824&&d&&Ye()},[y,b,x,T,m,C,he,O,E,ee,H,Le,Ee,We,te,n,P,K,qe,Pt,Re,jt,me,i,o,a,l,c,u,h,d,z,w,M,zt,je,Ke,et,St,Wt,ye,Ve,Qt]}class po extends jo{constructor(t){super(),Ro(this,t,sl,al,Hi,{userid:23,sessionid:24,endpoint:25,lang:26,clientstyling:27,clientstylingurl:28,mbsource:29,translationurl:30,custominputtextswitch:0},qs,[-1,-1,-1])}get userid(){return this.$$.ctx[23]}set userid(t){this.$$set({userid:t}),_e()}get sessionid(){return this.$$.ctx[24]}set sessionid(t){this.$$set({sessionid:t}),_e()}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),_e()}get lang(){return this.$$.ctx[26]}set lang(t){this.$$set({lang:t}),_e()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),_e()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_e()}get mbsource(){return this.$$.ctx[29]}set mbsource(t){this.$$set({mbsource:t}),_e()}get translationurl(){return this.$$.ctx[30]}set translationurl(t){this.$$set({translationurl:t}),_e()}get custominputtextswitch(){return this.$$.ctx[0]}set custominputtextswitch(t){this.$$set({custominputtextswitch:t}),_e()}}Uo(po,{userid:{},sessionid:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},custominputtextswitch:{}},[],[],!0);exports.default=po;
|