@everymatrix/player-account-menu 0.0.201 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function m(){}function p(t){return t()}function h(){return Object.create(null)}function f(t){t.forEach(p)}function d(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function v(t,...e){if(null==t)return m;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function E(t,e){t.appendChild(e)}function _(t,e,n){t.insertBefore(e,n||null)}function A(t){t.parentNode.removeChild(t)}function w(t){return document.createElement(t)}function t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function P(){return T(" ")}function e(){return T("")}function g(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function M(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function x(t,e,n){e in t?t[e]=n:M(t,e,n)}function I(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function y(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let S;function b(t){S=t}const L=[],o=[],i=[],s=[],O=Promise.resolve();let C=!1;function N(t){i.push(t)}let a=!1;const c=new Set;function R(){if(!a){a=!0;do{for(let t=0;t<L.length;t+=1){var e=L[t];b(e),function(t){{var e;null!==t.fragment&&(t.update(),f(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N))}}(e.$$)}for(b(null),L.length=0;o.length;)o.pop()();for(let t=0;t<i.length;t+=1){const n=i[t];c.has(n)||(c.add(n),n())}}while(i.length=0,L.length);for(;s.length;)s.pop()();C=!1,a=!1,c.clear()}}const U=new Set;function u(r,t,e,n,o,i,s=[-1]){var a,c=S;b(r);const u=r.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),l&&(n=t,-1===(t=r).$$.dirty[0]&&(L.push(t),C||(C=!0,O.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),l=!0,f(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const m=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(m),m.forEach(A)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(U.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,n),r||N(()=>{var t=i.map(p).filter(d);s?s.push(...t):f(t),e.$$.on_mount=[]}),a.forEach(N)}(r,t.target,t.anchor,t.customElement),R()}b(c)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(p).filter(d);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){f(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(f(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var D,k,F="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==F&&F,G="URLSearchParams"in F,$="Symbol"in F&&"iterator"in Symbol,j="FileReader"in F&&"Blob"in F&&function(){try{return new Blob,!0}catch(t){return!1}}(),B="FormData"in F,V="ArrayBuffer"in F;function X(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function z(t){return t="string"!=typeof t?String(t):t}function H(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return $&&(t[Symbol.iterator]=function(){return t}),t}function W(e){this.map={},e instanceof W?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function q(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function K(t){var e=new FileReader,n=q(e);return e.readAsArrayBuffer(t),n}function Z(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:j&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:B&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:G&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():V&&j&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Z(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(t)||k(t))?this._bodyArrayBuffer=Z(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j&&(this.blob=function(){var t=Y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(K)}),this.text=function(){var t,e,n=Y(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=q(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},B&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}V&&(D=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],k=ArrayBuffer.isView||function(t){return t&&-1<D.indexOf(Object.prototype.toString.call(t))}),W.prototype.append=function(t,e){t=X(t),e=z(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},W.prototype.delete=function(t){delete this.map[X(t)]},W.prototype.get=function(t){return t=X(t),this.has(t)?this.map[t]:null},W.prototype.has=function(t){return this.map.hasOwnProperty(X(t))},W.prototype.set=function(t,e){this.map[X(t)]=z(e)},W.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},W.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),H(n)},W.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),H(e)},W.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),H(n)},$&&(W.prototype[Symbol.iterator]=W.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tt(t,e){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof tt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new W(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new W(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<J.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function et(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function nt(t,e){if(!(this instanceof nt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new W(e.headers),this.url=e.url||"",this._initBody(t)}tt.prototype.clone=function(){return new tt(this,{body:this._bodyInit})},Q.call(tt.prototype),Q.call(nt.prototype),nt.prototype.clone=function(){return new nt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},nt.error=function(){var t=new nt(null,{status:0,statusText:""});return t.type="error",t};var rt=[301,302,303,307,308];nt.redirect=function(t,e){if(-1===rt.indexOf(e))throw new RangeError("Invalid status code");return new nt(null,{status:e,headers:{location:t}})};var ot=F.DOMException;try{new ot}catch(m){(ot=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ot.prototype.constructor=ot}function it(r,s){return new Promise(function(o,t){var e=new tt(r,s);if(e.signal&&e.signal.aborted)return t(new ot("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,n,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",n=new W,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout(function(){o(new nt(r,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new ot("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&F.location.href?F.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(j?i.responseType="blob":V&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof W?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,z(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}it.polyfill=!0,F.fetch||(F.fetch=it,F.Headers=W,F.Request=tt,F.Response=nt),self.fetch.bind(self);var st=function(t,e){return(st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function at(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function lt(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function pt(t){return"function"==typeof t}function ht(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var ft=ht(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function dt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var mt=(gt.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ct(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(pt(i))try{i()}catch(t){o=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var c=ct(i),u=c.next();!u.done;u=c.next()){var l=u.value;try{Et(l)}catch(t){o=null!=o?o:[],t instanceof ft?o=lt(lt([],ut(o)),ut(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(o)throw new ft(o)}},gt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Et(t);else{if(t instanceof gt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},gt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},gt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},gt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},gt.prototype.remove=function(t){var e=this._teardowns;e&&dt(e,t),t instanceof gt&&t._removeParent(this)},gt.EMPTY=((je=new gt).closed=!0,je),gt),yt=mt.EMPTY;function gt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function bt(t){return t instanceof mt||t&&"closed"in t&&pt(t.remove)&&pt(t.add)&&pt(t.unsubscribe)}function Et(t){pt(t)?t():t.unsubscribe()}var vt=void 0,_t=!1,At=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],ut(t)))};function wt(){}function Tt(t){t()}var Pt,Mt,xt=(at(Lt,Mt=mt),Lt.create=function(t,e,n){return new It(t,e,n)},Lt.prototype.next=function(t){this.isStopped||this._next(t)},Lt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Lt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Lt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Mt.prototype.unsubscribe.call(this),this.destination=null)},Lt.prototype._next=function(t){this.destination.next(t)},Lt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Lt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Lt),It=(at(St,Pt=xt),St);function St(t,e,n){var r,o,i=Pt.call(this)||this;return pt(t)?o=t:t&&(o=t.next,e=t.error,n=t.complete,i&&_t?(r=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:r=t,o=null==o?void 0:o.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),i.destination={next:o?Ot(o):wt,error:Ot(null!=e?e:Ct),complete:n?Ot(n):wt},i}function Lt(t){var e=Mt.call(this)||this;return e.isStopped=!1,t?bt(e.destination=t)&&t.add(e):e.destination=Nt,e}function Ot(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,lt([],ut(t)))}catch(t){e=t,At(function(){throw e})}}}function Ct(t){throw t}var Nt={closed:!0,next:wt,error:Ct,complete:wt},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ut(t){return t}var Dt=(kt.prototype.lift=function(t){var e=new kt;return e.source=this,e.operator=t,e},kt.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof xt||r&&pt(r.next)&&pt(r.error)&&pt(r.complete)&&bt(r)?t:new It(t,e,n);return Tt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},kt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},kt.prototype.forEach=function(r,t){var o=this;return new(t=Ft(t))(function(t,e){var n=o.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},kt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},kt.prototype[Rt]=function(){return this},kt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ut:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},kt.prototype.toPromise=function(t){var r=this;return new(t=Ft(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},kt.create=function(t){return new kt(t)},kt);function kt(t){t&&(this._subscribe=t)}function Ft(t){return null!==(t=null!=t?t:vt)&&void 0!==t?t:Promise}var Gt,$t,jt,Bt=ht(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vt=(at(qt,jt=Dt),qt.prototype.lift=function(t){var e=new Xt(this,this);return e.operator=t,e},qt.prototype._throwIfClosed=function(){if(this.closed)throw new Bt},qt.prototype.next=function(i){var s=this;Tt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=ct(n),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},qt.prototype.error=function(e){var n=this;Tt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},qt.prototype.complete=function(){var e=this;Tt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},qt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(qt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),qt.prototype._trySubscribe=function(t){return this._throwIfClosed(),jt.prototype._trySubscribe.call(this,t)},qt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},qt.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?yt:(r.push(t),new mt(function(){return dt(r,t)}))},qt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},qt.prototype.asObservable=function(){var t=new Dt;return t.source=this,t},qt.create=function(t,e){return new Xt(t,e)},qt),Xt=(at(Yt,$t=Vt),Yt.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},Yt.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},Yt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},Yt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:yt},Yt),zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0},Ht=(at(Wt,Gt=Vt),Wt.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;n||(r.push(t),o||r.push(i.now()+e)),this._trimBuffer(),Gt.prototype.next.call(this,t)},Wt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},Wt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=e.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},Wt);function Wt(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=zt);var r=Gt.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function Yt(t,e){var n=$t.call(this)||this;return n.destination=t,n.source=e,n}function qt(){var t=jt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Kt=[],Zt={};const Qt=[];function Jt(r,o=m){let i;const s=[];function a(t){if(n(r,t)&&(r=t,i)){const t=!Qt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Qt.push(e,r)}if(t){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=m){const n=[t,e];return s.push(n),1===s.length&&(i=o(a)||m),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function te(t,a,e){const c=!Array.isArray(t),u=c?[t]:t,l=a.length<2;return{subscribe:Jt(e,e=>{let n=!1;const r=[];let o=0,i=m;const s=()=>{var t;o||(i(),t=a(c?r[0]:r,e),l?e(t):i=d(t)?t:m)},t=u.map((t,e)=>v(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){f(t),i()}}).subscribe}}var ee=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ne));var e},ne="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function re(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ce(Array.isArray(t)?[]:{},t,e):t}function oe(t,e,n){return t.concat(e).map(function(t){return re(t,n)})}function ie(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function se(t,e){try{return e in t}catch(t){return!1}}function ae(r,o,i){var s={};return i.isMergeableObject(r)&&ie(r).forEach(function(t){s[t]=re(r[t],i)}),ie(o).forEach(function(e){var t,n;(!se(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(se(r,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return ce;var t=i.customMerge(e);return"function"==typeof t?t:ce}()(r[e],o[e],i):s[e]=re(o[e],i))}),s}function ce(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||oe,n.isMergeableObject=n.isMergeableObject||ee,n.cloneUnlessOtherwiseSpecified=re;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):ae(t,e,n):re(e,n)}ce.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ce(t,e,n)},{})};var ue=ce,le=function(t,e){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var he,fe,de,me=function(){return(me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function ye(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function ge(t){return t.type===fe.literal}function be(t){return t.type===fe.number}function Ee(t){return t.type===fe.date}function ve(t){return t.type===fe.time}function _e(t){return t.type===fe.select}function Ae(t){return t.type===fe.plural}function we(t){return t.type===fe.tag}function Te(t){return t&&"object"==typeof t&&t.type===de.number}function Pe(t){return t&&"object"==typeof t&&t.type===de.dateTime}(Be=he=he||{})[Be.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Be[Be.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Be[Be.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Be[Be.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Be[Be.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Be[Be.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Be[Be.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Be[Be.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Be[Be.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Be[Be.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Be[Be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Be[Be.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Be[Be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Be[Be.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Be[Be.INVALID_TAG=23]="INVALID_TAG",Be[Be.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Be[Be.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Be[Be.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ve=fe=fe||{})[Ve.literal=0]="literal",Ve[Ve.argument=1]="argument",Ve[Ve.number=2]="number",Ve[Ve.date=3]="date",Ve[Ve.time=4]="time",Ve[Ve.select=5]="select",Ve[Ve.plural=6]="plural",Ve[Ve.pound=7]="pound",Ve[Ve.tag=8]="tag",(Xe=de=de||{})[Xe.number=0]="number",Xe[Xe.dateTime=1]="dateTime";var Me=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Ie,Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oe=/^(@+)?(\+|#+)?$/g,Ce=/(\*)(0+)|(#+)(0+)|(0+)/g,Ne=/^(0+)$/;function Re(t){var r={};return t.replace(Oe,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function Ue(t){switch(t){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 De(t){return Ue(t)||{}}function ke(t){for(var s={},e=0,n=t;e<n.length;e++){var r,o=n[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=me(me(me({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return me(me({},t),De(e))},{}));continue;case"engineering":s=me(me(me({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return me(me({},t),De(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ce,function(t,e,n,r,o,i){if(e)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ne.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,function(t,e,n,r,o,i){return"*"===n?s.minimumFractionDigits=e.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=me(me({},s),Re(o.options[0])))}else Oe.test(o.stem)?s=me(me({},s),Re(o.stem)):((r=Ue(o.stem))&&(s=me(me({},s),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ne.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=me(me({},s),r)))}return s}var Fe=new RegExp("^"+Me.source+"*"),Ge=new RegExp(Me.source+"*$");function $e(t,e){return{start:t,end:e}}var je=!!String.prototype.startsWith,Rt=!!String.fromCodePoint,Vt=!!Object.fromEntries,Be=!!String.prototype.codePointAt,Ve=!!String.prototype.trimStart,Xe=!!String.prototype.trimEnd,ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Me=!0;try{Me="a"===(null===(Ie=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ie?void 0:Ie[0])}catch(m){Me=!1}var He,We,Ye=je?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},qe=Rt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;i<o;){if(1114111<(n=t[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ke=Vt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],o=o[1];e[i]=o}return e},Ze=Be?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,o=t.charCodeAt(e);return o<55296||56319<o||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},Qe=Ve?function(t){return t.trimStart()}:function(t){return t.replace(Fe,"")},Je=Xe?function(t){return t.trimEnd()}:function(t){return t.replace(Ge,"")};function tn(t,e){return new RegExp(t,e)}We=Me?(He=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return He.lastIndex=e,null!==(t=He.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var o=Ze(t,e);if(void 0===o||on(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),e+=65536<=o?2:1}return qe.apply(void 0,r)};var en=(nn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},nn.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(he.UNMATCHED_CLOSING_TAG,$e(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&rn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:fe.pound,location:$e(i,this.clonePosition())})}}}return{val:r,err:null}},nn.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+r+"/>",location:$e(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rn(this.char()))return this.error(he.INVALID_TAG,$e(e,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(he.UNMATCHED_CLOSING_TAG,$e(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:r,children:t,location:$e(n,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,$e(e,this.clonePosition())))}return this.error(he.UNCLOSED_TAG,$e(n,this.clonePosition()))}return this.error(he.INVALID_TAG,$e(n,this.clonePosition()))},nn.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},nn.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{o=this.tryParseUnquoted(t,e);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=$e(n,this.clonePosition());return{val:{type:fe.literal,value:r,location:n},err:null}},nn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},nn.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return qe.apply(void 0,e)},nn.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),qe(n))},nn.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(he.EMPTY_ARGUMENT,$e(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(he.MALFORMED_ARGUMENT,$e(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:r,location:$e(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(he.MALFORMED_ARGUMENT,$e(n,this.clonePosition()))}},nn.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=We(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:$e(t,this.clonePosition())}},nn.prototype.parseArgumentOptions=function(t,e,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,$e(i,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Je(h.val)).length)return this.error(he.EXPECT_ARGUMENT_STYLE,$e(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:$e(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var l=$e(r,this.clonePosition());if(c&&Ye(null==c?void 0:c.style,"::",0)){u=Qe(c.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?h:{val:{type:fe.number,value:n,location:l,style:h.val},err:null};if(0===u.length)return this.error(he.EXPECT_DATE_TIME_SKELETON,l);var p={type:de.dateTime,pattern:u,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(xe,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"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":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-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":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<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""}),o):{}};return{val:{type:"date"===s?fe.date:fe.time,value:n,location:l,style:p},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:n,location:l,style:null!==(l=null==c?void 0:c.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,$e(c,me({},c)));this.bumpSpace();var h,l=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),l=this.parseIdentifierIfPossible(),c=h.val}l=this.tryParsePluralOrSelectOptions(t,s,e,l);if(l.err)return l;if((f=this.tryParseArgumentClose(r)).err)return f;var f=$e(r,this.clonePosition());return"select"===s?{val:{type:fe.select,value:n,options:Ke(l.val),location:f},err:null}:{val:{type:fe.plural,value:n,options:Ke(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(he.INVALID_ARGUMENT_TYPE,$e(i,a))}},nn.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},nn.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$e(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},nn.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(Se).filter(function(t){return 0<t.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(he.INVALID_NUMBER_SKELETON,e)}return{val:{type:de.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?ke(n):{}},err:null}},nn.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var o=!1,i=[],s=new Set,a=r.value,c=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=$e(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===a&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$e(this.clonePosition(),this.clonePosition()));l=this.parseMessage(t+1,e,n);if(l.err)return l;u=this.tryParseArgumentClose(p);if(u.err)return u;i.push([a,{value:l.val,location:$e(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,c=p.location}return 0===i.length?this.error("select"===e?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(he.MISSING_OTHER_CLAUSE,$e(this.clonePosition(),this.clonePosition())):{val:i,err:null}},nn.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=$e(r,this.clonePosition());return o?ze(i*=n)?{val:i,err:null}:this.error(e,r):this.error(t,r)},nn.prototype.offset=function(){return this.position.offset},nn.prototype.isEOF=function(){return this.offset()===this.message.length},nn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},nn.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ze(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},nn.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},nn.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},nn.prototype.bumpIf=function(t){if(Ye(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},nn.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},nn.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},nn.prototype.bumpSpace=function(){for(;!this.isEOF()&&on(this.char());)this.bump()},nn.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},nn);function nn(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function rn(t){return 97<=t&&t<=122||65<=t&&t<=90}function on(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function sn(t,e){e=me({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new en(t,e).parse();if(n.err){t=SyntaxError(he[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,_e(t)||Ae(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else be(t)&&Te(t.style)||(Ee(t)||ve(t))&&Pe(t.style)?delete t.style.location:we(t)&&n(t.children)})}(n.val),n.val}function an(t,e){var n=e&&e.cache?e.cache:dn,r=e&&e.serializer?e.serializer:pn;return(e&&e.strategy?e.strategy:function(t,e){return ln(t,this,1===t.length?cn:un,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function cn(t,e,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(o);return void 0===n&&(n=t.call(this,r),e.set(o,n)),n}function un(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=e.get(o);return void 0===n&&(n=t.apply(this,r),e.set(o,n)),n}function ln(t,e,n,r,o){return n.bind(e,t,r,o)}var pn=function(){return JSON.stringify(arguments)};function hn(){this.cache=Object.create(null)}hn.prototype.has=function(t){return t in this.cache},hn.prototype.get=function(t){return this.cache[t]},hn.prototype.set=function(t,e){this.cache[t]=e};var fn,dn={create:function(){return new hn}},mn={variadic:function(t,e){return ln(t,this,un,e.cache.create(),e.serializer)},monadic:function(t,e){return ln(t,this,cn,e.cache.create(),e.serializer)}};(Me=fn=fn||{}).MISSING_VALUE="MISSING_VALUE",Me.INVALID_VALUE="INVALID_VALUE",Me.MISSING_INTL_API="MISSING_INTL_API";var yn,gn,bn,En,vn,_n=(pe(In,vn=Error),In.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},In),An=(pe(xn,En=_n),xn),wn=(pe(Mn,bn=_n),Mn),Tn=(pe(Pn,gn=_n),Pn);function Pn(t,e){return gn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',fn.MISSING_VALUE,e)||this}function Mn(t,e,n){return bn.call(this,'Value for "'+t+'" must be of type '+e,fn.INVALID_VALUE,n)||this}function xn(t,e,n,r){return En.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',fn.INVALID_VALUE,r)||this}function In(t,e,n){t=vn.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function Sn(t,e,n,r,o,i,s){if(1===t.length&&ge(t[0]))return[{type:yn.literal,value:t[0].value}];for(var a=[],c=0,u=t;c<u.length;c++){var l=u[c];if(ge(l))a.push({type:yn.literal,value:l.value});else if(l.type===fe.pound)"number"==typeof i&&a.push({type:yn.literal,value:n.getNumberFormat(e).format(i)});else{var p=l.value;if(!(o&&p in o))throw new Tn(p,s);var h=o[p];if(l.type===fe.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yn.literal:yn.object,value:h});else if(Ee(l)){var f="string"==typeof l.style?r.date[l.style]:Pe(l.style)?l.style.parsedOptions:void 0;a.push({type:yn.literal,value:n.getDateTimeFormat(e,f).format(h)})}else if(ve(l))f="string"==typeof l.style?r.time[l.style]:Pe(l.style)?l.style.parsedOptions:void 0,a.push({type:yn.literal,value:n.getDateTimeFormat(e,f).format(h)});else if(be(l))(f="string"==typeof l.style?r.number[l.style]:Te(l.style)?l.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:yn.literal,value:n.getNumberFormat(e,f).format(h)});else{if(we(l)){var d=l.children,m=l.value,p=o[m];if("function"!=typeof p)throw new wn(m,"function",s);d=p(Sn(d,e,n,r,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?yn.literal:yn.object,value:t}}))}if(_e(l)){if(!(y=l.options[h]||l.options.other))throw new An(l.value,h,Object.keys(l.options),s);a.push.apply(a,Sn(y.value,e,n,r,o))}else if(Ae(l)){if(!(y=l.options["="+h])){if(!Intl.PluralRules)throw new _n('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fn.MISSING_INTL_API,s);var d=n.getPluralRules(e,{type:l.pluralType}).select(h-(l.offset||0)),y=l.options[d]||l.options.other}if(!y)throw new An(l.value,h,Object.keys(l.options),s);a.push.apply(a,Sn(y.value,e,n,r,o,h-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===yn.literal&&e.type===yn.literal?n.value+=e.value:t.push(e),t},[])}function Ln(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Me=yn=yn||{})[Me.literal=0]="literal",Me[Me.object=1]="object";var On=(Object.defineProperty(Cn,"defaultLocale",{get:function(){return Cn.memoizedDefaultLocale||(Cn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cn.memoizedDefaultLocale=null,Cn.__parse=sn,Cn.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"}}},Cn);function Cn(t,e,n,r){var o,i,s=this;if(void 0===e&&(e=Cn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===yn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Sn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Cn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cn.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Cn.formats,(i=n)?Object.keys(o).reduce(function(t,e){var n,r;return t[e]=(n=o[e],(r=i[e])?me(me(me({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=me(me({},n[e]),r[e]||{}),t},{})):n),t},me({},o)):o),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ye([void 0],e)))},{cache:Ln((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:mn.variadic}),getDateTimeFormat:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ye([void 0],e)))},{cache:Ln(r.dateTime),strategy:mn.variadic}),getPluralRules:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ye([void 0],e)))},{cache:Ln(r.pluralRules),strategy:mn.variadic})}}const Nn={},Rn=(e,n)=>{if(null!=n){if(n in Nn&&e in Nn[n])return Nn[n][e];var r,o,i=Kn(n);for(let t=0;t<i.length;t++){var s=(r=i[t],o=e,kn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return Un[t]||null}(r),o):null);if(s)return r=e,o=n,(s=s)&&(o in Nn||(Nn[o]={}),r in Nn[o]||(Nn[o][r]=s),s)}}};let Un;const Dn=Jt({});function kn(t){return t in Un}function Fn(e,...n){delete Nn[e],Dn.update(t=>(t[e]=ue.all([t[e]||{},...n]),t))}te([Dn],([t])=>Object.keys(t)),Dn.subscribe(t=>Un=t);const Gn={};function $n(t){return Gn[t]}function jn(t){return Kn(t).some(t=>{return null===(t=$n(t))||void 0===t?void 0:t.size})}const Bn={};function Vn(t){if(!jn(t))return t in Bn?Bn[t]:void 0;const e=Kn(t).map(t=>{var e=$n(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Bn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Gn[t].delete(e),0===Gn[t].size&&delete Gn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Fn(e,...t))}(t))).then(()=>jn(t)?Vn(t):void delete Bn[t]),Bn[t]}function Xn(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}const zn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Hn=Jt(!1);let Wn;const Yn=Jt(null);function qn(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function Kn(t,e=zn.fallbackLocale){t=qn(t);return e?[...new Set([...t,...qn(e)])]:t}Yn.subscribe(t=>{Wn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Zn=Yn.set;Yn.set=e=>{if(function(t){if(null!=t){var e=Kn(t);for(let t=0;t<e.length;t++){var n=e[t];if(kn(n))return n}}}(e)&&jn(e)){var{loadingDelay:n}=zn;let t;return"undefined"!=typeof window&&null!=Wn&&n?t=window.setTimeout(()=>Hn.set(!0),n):Hn.set(!0),Vn(e).then(()=>{Zn(e)}).finally(()=>{clearTimeout(t),Hn.set(!1)})}return Zn(e)},Yn.update=t=>Zn(t(Wn));const Qn=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},Jn=(t,e)=>{var{formats:n}=zn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},tr=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=Jn("number",n)),new Intl.NumberFormat(e,t)}),er=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=Jn("date",n):0===Object.keys(t).length&&(t=Jn("date","short")),new Intl.DateTimeFormat(e,t)}),nr=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=Jn("time",n):0===Object.keys(t).length&&(t=Jn("time","short")),new Intl.DateTimeFormat(e,t)}),rr=Qn((t,e=Wn)=>new On(t,e,zn.formats,{ignoreTag:zn.ignoreTag})),or=te([Yn,Dn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=Wn,default:o}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Rn(t,r);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else zn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Kn(r).join('", "')}".${jn(Wn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!n)return i;let s=i;try{s=rr(i,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return nr(Object.assign({locale:e},t))})(e).format(t)),te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return er(Object.assign({locale:e},t))})(e).format(t)),te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return tr(Object.assign({locale:e},t))})(e).format(t)),te([Yn,Dn],()=>(t,e=Wn)=>Rn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Kt.indexOf(t)&&(e=new Ht(e),Zt[t]=e,Kt.push(t)),Zt[t]}};const ir=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",sr='<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 1280.000000 1216.000000"\npreserveAspectRatio="xMidYMid meet">\n<g transform="translate(0.000000,1216.000000) scale(0.100000,-0.100000)" fill="#fff" stroke="none">\n<path d="M6177 12145 c-48 -8 -350 -84 -670 -170 l-582 -155 -610 0 c-679 0-725 -3 -920 -65 -264 -82 -511 -256 -677 -475 l-49 -65 -287 -76 c-1001 -267\n-1397 -375 -1472 -401 -388 -136 -713 -468 -839 -856 -51 -158 -66 -258 -65-437 1 -112 6 -196 17 -245 8 -41 77 -304 152 -585 267 -998 355 -1327 505\n-1885 83 -311 200 -747 260 -970 60 -223 168 -625 240 -895 72 -269 180 -672 240 -895 60 -223 177 -659 260 -970 83 -311 209 -781 280 -1045 71 -264 160\n-597 199 -740 38 -143 81 -291 95 -329 119 -316 375 -594 681 -742 124 -59 230 -95 355 -121 107 -22 373 -24 475 -4 65 12 684 176 2078 549 l557 150 143\n-38 c78 -22 464 -125 857 -230 393 -105 899 -241 1125 -301 526 -142 533 -143 735 -143 241 0 387 33 605 138 254 122 478 338 608 585 86 163 30 -33 607\n2121 60 223 177 659 260 970 83 311 200 747 260 970 318 1187 597 2228 755 2815 303 1132 415 1555 427 1620 7 39 13 142 13 230 0 221 -36 383 -130 581\n-152 324 -439 583 -775 702 -72 25 -568 160 -1546 421 l-211 56 -61 76 c-183 231 -403 383 -679 469 -183 56 -237 60 -909 60 l-610 0 -545 146 c-299 80\n-584 155 -634 165 -122 27 -396 34 -518 14z m-1127 -1167 c0 -10 -70 -274 -314 -1183 -124 -463 -364 -1358 -517 -1930 -233 -869 -374 -1393 -498 -1857\n-71 -266 -173 -645 -226 -843 -53 -198 -98 -364 -100 -370 -2 -5 -3 1122 -2 2505 l2 2515 22 90 c63 265 185 487 368 670 231 232 511 367 835 404 120 13\n430 13 430 -1z m2140 -127 c47 -10 202 -51 345 -90 224 -60 1099 -295 2790 -747 475 -128 514 -140 632 -194 398 -185 684 -558 769 -1005 23 -122 23 -350\n0 -469 -9 -49 -49 -206 -87 -350 -124 -463 -367 -1368 -499 -1861 -71 -264 -197 -734 -280 -1045 -83 -311 -200 -747 -260 -970 -497 -1855 -508 -1897\n-537 -1970 -126 -317 -382 -592 -686 -735 -182 -86 -331 -123 -528 -132 -239 -10 -190 -21 -1424 310 -776 208 -1457 391 -2045 548 -493 132 -625 176 -750\n249 -407 238 -665 661 -686 1125 -11 228 -11 229 250 1200 76 281 205 762 287 1070 83 308 200 745 260 970 61 226 168 626 239 890 71 264 197 734 280 1045\n83 311 191 714 240 895 48 182 99 359 113 395 35 94 102 223 160 310 63 95 259 290 357 355 159 105 354 185 540 219 119 22 402 15 520 -13z m-4750 -3698\nc0 -1697 -3 -3084 -6 -3081 -3 3 -32 106 -65 229 -133 496 -367 1367 -469 1749 -221 825 -375 1398 -507 1890 -200 743 -185 672 -187 900 -1 156 3 212\n18 279 112 511 459 894 946 1044 119 37 249 75 263 76 4 1 7 -1388 7 -3086z"/>\n<path d="M8960 9889 c-40 -111 -149 -350 -236 -518 -430 -831 -1050 -1573 -1649 -1976 -303 -203 -564 -310 -862 -350 -250 -35 -420 -122 -600 -308 -179\n-185 -305 -425 -369 -702 -27 -113 -27 -404 0 -525 117 -536 530 -939 1063 -1036 115 -20 339 -20 458 1 176 31 368 111 522 217 43 29 124 98 179 154\nl101 100 -55 -105 c-300 -573 -638 -1052 -1021 -1443 -63 -65 -113 -120 -110 -122 2 -2 347 -96 767 -208 536 -144 762 -200 762 -191 0 7 -11 55 -25 106\n-76 289 -135 658 -166 1047 -12 164 -13 753 0 845 5 33 9 47 10 30 2 -56 50 -223 90 -314 182 -424 547 -711 1000 -786 123 -21 364 -16 476 8 461 103 835\n434 979 867 115 346 99 745 -42 1025 -72 144 -133 214 -302 351 -216 172 -367 359 -514 636 -201 378 -351 874 -431 1431 -46 319 -59 516 -59 892 -1 355 8\n505 45 784 10 80 17 146 15 148 -2 2 -13 -24 -26 -58z"/>\n</g>\n</svg>',ar={en:{myAccount:{title:"My Account"}},ro:{myAccount:{title:"My Account"}}};function cr(n){let r,o,i,s;return{c(){r=w("div"),o=w("button"),o.innerHTML="<span>Logout</span>",M(r,"class","GeneralLogout")},m(t,e){_(t,r,e),E(r,o),i||(s=g(o,"click",n[7]),i=!0)},p:m,d(t){t&&A(r),i=!1,s()}}}function ur(n){let r,o,i,s,a,c,u,l,p,h,f,d=!n[1]&&function(){let n;return{c(){n=w("span"),n.textContent="Logout",M(n,"class","PlayerLogoutText")},m(t,e){_(t,n,e)},d(t){t&&A(n)}}}();return{c(){r=w("p"),o=w("span"),i=t("svg"),s=t("defs"),a=t("style"),c=T(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:#fff;}"),u=t("path"),l=t("path"),p=P(),d&&d.c(),M(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(u,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),M(l,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(l,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),M(i,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),M(i,"data-name","Layer 1"),M(i,"xmlns","http://www.w3.org/2000/svg"),M(i,"viewBox","0 0 150 150"),y(o,"width",n[1]?n[2].matches?"50px":"24px":"20px"),M(r,"class","PlayerAccountMenuItemBox "+(n[1]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[2].matches&&n[1]?"PlayerAccountMenuItemBoxTablet":""))},m(t,e){_(t,r,e),E(r,o),E(o,i),E(i,s),E(s,a),E(a,c),E(i,u),E(i,l),E(r,p),d&&d.m(r,null),h||(f=g(r,"click",n[6]),h=!0)},p:m,d(t){t&&A(r),d&&d.d(),h=!1,f()}}}function lr(t){let n;function r(t){return"PlayerAccountMenu"===t[0]?ur:cr}let o=r(t),i=o(t);return{c(){i.c(),n=e(),this.c=m},m(t,e){i.m(t,e),_(t,n,e)},p(t,[e]){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:m,o:m,d(t){i.d(t),t&&A(n)}}}function pr(t,e,n){let{endpoint:r=""}=e,{session:o=""}=e,{buttonlocation:i=""}=e,s=!1,a=window.navigator.userAgent,c="PC"!==ir(a);const u=window.matchMedia("(min-width: 768px)"),l=()=>{let t=new Headers;t.append("Content-type","application/json"),t.append("X-SessionID",o),fetch(`${r}/player/session/player`,{method:"DELETE",headers:t}).then(t=>{window.postMessage({type:"LogoutSuccessfull"})})};return t.$$set=t=>{"endpoint"in t&&n(4,r=t.endpoint),"session"in t&&n(5,o=t.session),"buttonlocation"in t&&n(0,i=t.buttonlocation)},t.$$.update=()=>{49&t.$$.dirty&&r&&o&&i&&(r||(error="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",s=!0,console.error(error)),o||(error="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",s=!0,console.error(error)))},[i,c,u,l,r,o,()=>l(),()=>l()]}function hr(t,e,n){const r=t.slice();return r[22]=e[n],r}function fr(e){let n,r,o,i,s,a,c,u,l,p,h,f,d=e[8]&&function(){let n,r,o=e[7]("myAccount.title")+"";return{c(){n=w("h3"),r=T(o),M(n,"class","PlayerAccountMenuCategoryTitle")},m(t,e){_(t,n,e),E(n,r)},p(t,e){128&e&&o!==(o=t[7]("myAccount.title")+"")&&I(r,o)},d(t){t&&A(n)}}}(),m=e[8]&&function(t){let n,r;return{c(){n=w("div"),r=w("general-logout"),x(r,"endpoint",t[1]),x(r,"session",t[0]),x(r,"buttonlocation","PlayerAccountMenu"),M(n,"class","PlayerAccountLogOutArea")},m(t,e){_(t,n,e),E(n,r)},p(t,e){2&e&&x(r,"endpoint",t[1]),1&e&&x(r,"session",t[0])},d(t){t&&A(n)}}}(e),y=e[2],g=[];for(let t=0;t<y.length;t+=1)g[t]=yr(hr(e,y,t));let b=!e[8]&&function(t){let n,r;return{c(){n=w("div"),r=w("general-logout"),x(r,"endpoint",t[1]),x(r,"session",t[0]),x(r,"buttonlocation","PlayerAccountMenu"),M(n,"class","PlayerAccountLogOutArea")},m(t,e){_(t,n,e),E(n,r)},p(t,e){2&e&&x(r,"endpoint",t[1]),1&e&&x(r,"session",t[0])},d(t){t&&A(n)}}}(e);return{c(){n=w("div"),r=w("div"),d&&d.c(),o=P(),i=w("p"),s=T(e[5]),a=P(),c=w("p"),u=T(e[6]),l=P(),m&&m.c(),p=P(),h=w("div");for(let t=0;t<g.length;t+=1)g[t].c();f=P(),b&&b.c(),M(i,"class","PlayerAccountMenuUser"),M(c,"class","PlayerAccountMenuEmail"),M(r,"class","PlayerAccountMenuHeader"),M(h,"class","PlayerAccountMenuList"),M(n,"class","PlayerAccountMenuContainer "+(e[8]?"PlayerAccountMobileContainer":"")+" "+(e[9].matches&&e[8]?"PlayerAccountTabletContainer":""))},m(t,e){_(t,n,e),E(n,r),d&&d.m(r,null),E(r,o),E(r,i),E(i,s),E(r,a),E(r,c),E(c,u),E(r,l),m&&m.m(r,null),E(n,p),E(n,h);for(let t=0;t<g.length;t+=1)g[t].m(h,null);E(n,f),b&&b.m(n,null)},p(e,n){if(e[8]&&d.p(e,n),32&n&&I(s,e[5]),64&n&&I(u,e[6]),e[8]&&m.p(e,n),1820&n){let t;for(y=e[2],t=0;t<y.length;t+=1){var r=hr(e,y,t);g[t]?g[t].p(r,n):(g[t]=yr(r),g[t].c(),g[t].m(h,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=y.length}e[8]||b.p(e,n)},d(t){t&&A(n),d&&d.d(),m&&m.d(),function(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}(g,t),b&&b.d()}}}function dr(t){let n,r;return{c(){n=w("img"),M(n,"class","PlayerAccountMenuItemIcon "+(t[8]?"PlayerAccountMenuItemIconMobile":"")),n.src!==(r=t[22].menu_item_icon)&&M(n,"src",r)},m(t,e){_(t,n,e)},p(t,e){4&e&&n.src!==(r=t[22].menu_item_icon)&&M(n,"src",r)},d(t){t&&A(n)}}}function mr(t){let n,r=t[22].menu_item_icon+"";return{c(){n=w("span"),y(n,"width",t[8]?t[9].matches?"80px":"30px":"20px"),y(n,"height",t[8]?t[9].matches?"80px":"40px":"20px")},m(t,e){_(t,n,e),n.innerHTML=r},p(t,e){4&e&&r!==(r=t[22].menu_item_icon+"")&&(n.innerHTML=r)},d(t){t&&A(n)}}}function yr(n){let r,o,i,s,a,c,u,l,p,h=n[22].title+"";function f(t){return t[4]?mr:dr}let d=f(n),m=d(n);function y(){return n[13](n[22])}return{c(){r=w("div"),o=w("p"),m.c(),i=P(),s=w("span"),a=T(h),c=P(),M(s,"class","PlayerAccountMenuItemTitle"),M(o,"class","PlayerAccountMenuItemWrapper"),M(r,"class",u="PlayerAccountMenuItemBox "+(n[3]!==n[22].ID||n[8]?"":"PlayerAccountMenuActiveItemBox"))},m(t,e){_(t,r,e),E(r,o),m.m(o,null),E(o,i),E(o,s),E(s,a),E(r,c),l||(p=g(r,"click",y),l=!0)},p(t,e){d===(d=f(n=t))&&m?m.p(n,e):(m.d(1),m=d(n),m&&(m.c(),m.m(o,i))),4&e&&h!==(h=n[22].title+"")&&I(a,h),12&e&&u!==(u="PlayerAccountMenuItemBox "+(n[3]!==n[22].ID||n[8]?"":"PlayerAccountMenuActiveItemBox"))&&M(r,"class",u)},d(t){t&&A(r),m.d(),l=!1,p()}}}function gr(t){let n,r=fr(t);return{c(){r.c(),n=e(),this.c=m},m(t,e){r.m(t,e),_(t,n,e)},p(t,[e]){r.p(t,e)},i:m,o:m,d(t){r.d(t),t&&A(n)}}}function br(e,t,n){let r;var o=or;e.$$.on_destroy.push(v(o,t=>n(7,r=t)));let{endpoint:i=""}=t,{session:s=""}=t,{playerid:a=""}=t,{lang:c="en"}=t,u=[],l=0,p=window.navigator.userAgent,h="PC"!==ir(p),f=[],d=!0,m="",y="";o=window.matchMedia("(min-width: 768px)");Object.keys(ar).forEach(t=>{Fn(t,ar[t])}),t=()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t);const g=t=>{if(t.data)switch(t.data.type){case"AccountMenuDetails":n(2,u=t.data.accountMenuInfo),n(3,l=u[0].ID),b();break;case"UserSessionID":n(0,s=t.data.session)}},b=()=>{u.length?n(4,d=!1):(n(2,u=f),n(4,d=!0))},E=t=>{window.postMessage({type:"ChangeAccountPage",page:t},window.location.href),n(3,l=t.ID)};return e.$$set=t=>{"endpoint"in t&&n(1,i=t.endpoint),"session"in t&&n(0,s=t.session),"playerid"in t&&n(11,a=t.playerid),"lang"in t&&n(12,c=t.lang)},e.$$.update=()=>{var t;6147&e.$$.dirty&&i&&s&&a&&c&&(t=c,Yn.set(t),f=[{ID:0,title:"Profile Info",menu_item_icon:sr},{ID:1,title:"Account Security",menu_item_icon:sr},{ID:2,title:"Deposit",menu_item_icon:sr},{ID:3,title:"Withdrawal",menu_item_icon:sr},{ID:4,title:"Active Bonuses",menu_item_icon:sr},{ID:5,title:"Self-Exclusion",menu_item_icon:sr},{ID:6,title:"Account Closure",menu_item_icon:sr}],fetch(`${i}/player/${a}/profile`,{method:"GET",headers:{playerId:a,"X-SessionID":s}}).then(t=>t.json()).then(t=>{n(5,m=t.username),n(6,y=t.email)},t=>{console.error(t)}))},[s,i,u,l,d,m,y,r,h,o,E,a,c,t=>E(t)]}customElements.get("general-logout")||customElements.define("general-logout",class extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #FFFFFF4A}.PlayerAccountMenuItemBox svg{fill:#fff}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:#fff}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},pr,lr,n,{endpoint:4,session:5,buttonlocation:0}),t&&(t.target&&_(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","buttonlocation"]}get endpoint(){return this.$$.ctx[4]}set endpoint(t){this.$set({endpoint:t}),R()}get session(){return this.$$.ctx[5]}set session(t){this.$set({session:t}),R()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(t){this.$set({buttonlocation:t}),R()}});class Er extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerAccountMenuContainer{color:#fff;position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:#FFF;flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #696972}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c9c9c9 #58586B}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:#58586B}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:#c9c9c9}.PlayerAccountLogOutArea{background:#58586B;color:#fff;width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:#D0046C;color:#FFF}.PlayerAccountMobileContainer{height:unset;color:#07072A}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid #2F313E;border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:#D0046C;border-bottom:1px solid #D0046C}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:#FFF}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},br,gr,n,{endpoint:1,session:0,playerid:11,lang:12}),t&&(t.target&&_(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","playerid","lang"]}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$set({endpoint:t}),R()}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),R()}get playerid(){return this.$$.ctx[11]}set playerid(t){this.$set({playerid:t}),R()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),R()}}return customElements.get("player-account-menu")||customElements.define("player-account-menu",Er),Er});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function m(){}function p(t){return t()}function h(){return Object.create(null)}function f(t){t.forEach(p)}function d(t){return"function"==typeof t}function n(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function v(t,...e){if(null==t)return m;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function E(t,e){t.appendChild(e)}function _(t,e,n){t.insertBefore(e,n||null)}function A(t){t.parentNode.removeChild(t)}function w(t){return document.createElement(t)}function t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function P(){return T(" ")}function e(){return T("")}function g(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function M(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function x(t,e,n){e in t?t[e]=n:M(t,e,n)}function I(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function y(t,e,n,r){t.style.setProperty(e,n,r?"important":"")}function r(t){const e={};for(const n of t)e[n.name]=n.value;return e}let S;function b(t){S=t}const L=[],o=[],i=[],s=[],O=Promise.resolve();let C=!1;function N(t){i.push(t)}let a=!1;const c=new Set;function R(){if(!a){a=!0;do{for(let t=0;t<L.length;t+=1){var e=L[t];b(e),function(t){{var e;null!==t.fragment&&(t.update(),f(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N))}}(e.$$)}for(b(null),L.length=0;o.length;)o.pop()();for(let t=0;t<i.length;t+=1){const n=i[t];c.has(n)||(c.add(n),n())}}while(i.length=0,L.length);for(;s.length;)s.pop()();C=!1,a=!1,c.clear()}}const U=new Set;function u(r,t,e,n,o,i,s=[-1]){var a,c=S;b(r);const u=r.$$={fragment:null,ctx:null,props:i,update:m,not_equal:o,bound:h(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:t.context||[]),callbacks:h(),dirty:s,skip_bound:!1};let l=!1;if(u.ctx=e?e(r,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return u.ctx&&o(u.ctx[t],u.ctx[t]=n)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](n),l&&(n=t,-1===(t=r).$$.dirty[0]&&(L.push(t),C||(C=!0,O.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],u.update(),l=!0,f(u.before_update),u.fragment=!!n&&n(u.ctx),t.target){if(t.hydrate){const m=(n=t.target,Array.from(n.childNodes));u.fragment&&u.fragment.l(m),m.forEach(A)}else u.fragment&&u.fragment.c();t.intro&&(a=r.$$.fragment)&&a.i&&(U.delete(a),a.i(void 0)),function(e,t,n,r){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,n),r||N(()=>{var t=i.map(p).filter(d);s?s.push(...t):f(t),e.$$.on_mount=[]}),a.forEach(N)}(r,t.target,t.anchor,t.customElement),R()}b(c)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(p).filter(d);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){f(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(f(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=m}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var D,k,F="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==F&&F,G="URLSearchParams"in F,$="Symbol"in F&&"iterator"in Symbol,j="FileReader"in F&&"Blob"in F&&function(){try{return new Blob,!0}catch(t){return!1}}(),B="FormData"in F,V="ArrayBuffer"in F;function X(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function z(t){return t="string"!=typeof t?String(t):t}function H(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return $&&(t[Symbol.iterator]=function(){return t}),t}function W(e){this.map={},e instanceof W?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function Y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function q(n){return new Promise(function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}})}function K(t){var e=new FileReader,n=q(e);return e.readAsArrayBuffer(t),n}function Z(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:j&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:B&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:G&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():V&&j&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Z(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):V&&(ArrayBuffer.prototype.isPrototypeOf(t)||k(t))?this._bodyArrayBuffer=Z(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):G&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j&&(this.blob=function(){var t=Y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Y(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(K)}),this.text=function(){var t,e,n=Y(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,n=q(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},B&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}V&&(D=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],k=ArrayBuffer.isView||function(t){return t&&-1<D.indexOf(Object.prototype.toString.call(t))}),W.prototype.append=function(t,e){t=X(t),e=z(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},W.prototype.delete=function(t){delete this.map[X(t)]},W.prototype.get=function(t){return t=X(t),this.has(t)?this.map[t]:null},W.prototype.has=function(t){return this.map.hasOwnProperty(X(t))},W.prototype.set=function(t,e){this.map[X(t)]=z(e)},W.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},W.prototype.keys=function(){var n=[];return this.forEach(function(t,e){n.push(e)}),H(n)},W.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),H(e)},W.prototype.entries=function(){var n=[];return this.forEach(function(t,e){n.push([e,t])}),H(n)},$&&(W.prototype[Symbol.iterator]=W.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tt(t,e){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(e=e||{}).body;if(t instanceof tt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new W(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new W(e.headers)),this.method=(t=(n=e.method||this.method||"GET").toUpperCase(),-1<J.indexOf(t)?t:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function et(t){var n=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function nt(t,e){if(!(this instanceof nt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new W(e.headers),this.url=e.url||"",this._initBody(t)}tt.prototype.clone=function(){return new tt(this,{body:this._bodyInit})},Q.call(tt.prototype),Q.call(nt.prototype),nt.prototype.clone=function(){return new nt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},nt.error=function(){var t=new nt(null,{status:0,statusText:""});return t.type="error",t};var rt=[301,302,303,307,308];nt.redirect=function(t,e){if(-1===rt.indexOf(e))throw new RangeError("Invalid status code");return new nt(null,{status:e,headers:{location:t}})};var ot=F.DOMException;try{new ot}catch(m){(ot=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),ot.prototype.constructor=ot}function it(r,s){return new Promise(function(o,t){var e=new tt(r,s);if(e.signal&&e.signal.aborted)return t(new ot("Aborted","AbortError"));var i=new XMLHttpRequest;function n(){i.abort()}i.onload=function(){var t,n,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",n=new W,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),n.append(t,e))}),n)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout(function(){o(new nt(r,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new ot("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&F.location.href?F.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(j?i.responseType="blob":V&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof W?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,z(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",n),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",n)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}it.polyfill=!0,F.fetch||(F.fetch=it,F.Headers=W,F.Request=tt,F.Response=nt),self.fetch.bind(self);var st=function(t,e){return(st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function at(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function lt(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function pt(t){return"function"==typeof t}function ht(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var ft=ht(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function dt(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var mt=(gt.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=ct(i),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else i.remove(this);i=this.initialTeardown;if(pt(i))try{i()}catch(t){o=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var c=ct(i),u=c.next();!u.done;u=c.next()){var l=u.value;try{Et(l)}catch(t){o=null!=o?o:[],t instanceof ft?o=lt(lt([],ut(o)),ut(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(o)throw new ft(o)}},gt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Et(t);else{if(t instanceof gt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},gt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},gt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},gt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&dt(e,t)},gt.prototype.remove=function(t){var e=this._teardowns;e&&dt(e,t),t instanceof gt&&t._removeParent(this)},gt.EMPTY=((je=new gt).closed=!0,je),gt),yt=mt.EMPTY;function gt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function bt(t){return t instanceof mt||t&&"closed"in t&&pt(t.remove)&&pt(t.add)&&pt(t.unsubscribe)}function Et(t){pt(t)?t():t.unsubscribe()}var vt=void 0,_t=!1,At=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],ut(t)))};function wt(){}function Tt(t){t()}var Pt,Mt,xt=(at(Lt,Mt=mt),Lt.create=function(t,e,n){return new It(t,e,n)},Lt.prototype.next=function(t){this.isStopped||this._next(t)},Lt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Lt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Lt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Mt.prototype.unsubscribe.call(this),this.destination=null)},Lt.prototype._next=function(t){this.destination.next(t)},Lt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Lt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Lt),It=(at(St,Pt=xt),St);function St(t,e,n){var r,o,i=Pt.call(this)||this;return pt(t)?o=t:t&&(o=t.next,e=t.error,n=t.complete,i&&_t?(r=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:r=t,o=null==o?void 0:o.bind(r),e=null==e?void 0:e.bind(r),n=null==n?void 0:n.bind(r)),i.destination={next:o?Ot(o):wt,error:Ot(null!=e?e:Ct),complete:n?Ot(n):wt},i}function Lt(t){var e=Mt.call(this)||this;return e.isStopped=!1,t?bt(e.destination=t)&&t.add(e):e.destination=Nt,e}function Ot(r){return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{r.apply(void 0,lt([],ut(t)))}catch(t){e=t,At(function(){throw e})}}}function Ct(t){throw t}var Nt={closed:!0,next:wt,error:Ct,complete:wt},Rt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ut(t){return t}var Dt=(kt.prototype.lift=function(t){var e=new kt;return e.source=this,e.operator=t,e},kt.prototype.subscribe=function(t,e,n){var r,o=this,i=(r=t)&&r instanceof xt||r&&pt(r.next)&&pt(r.error)&&pt(r.complete)&&bt(r)?t:new It(t,e,n);return Tt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},kt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},kt.prototype.forEach=function(r,t){var o=this;return new(t=Ft(t))(function(t,e){var n=o.subscribe(function(t){try{r(t)}catch(t){e(t),null==n||n.unsubscribe()}},e,t)})},kt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},kt.prototype[Rt]=function(){return this},kt.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?Ut:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},kt.prototype.toPromise=function(t){var r=this;return new(t=Ft(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},kt.create=function(t){return new kt(t)},kt);function kt(t){t&&(this._subscribe=t)}function Ft(t){return null!==(t=null!=t?t:vt)&&void 0!==t?t:Promise}var Gt,$t,jt,Bt=ht(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vt=(at(qt,jt=Dt),qt.prototype.lift=function(t){var e=new Xt(this,this);return e.operator=t,e},qt.prototype._throwIfClosed=function(){if(this.closed)throw new Bt},qt.prototype.next=function(i){var s=this;Tt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var n=s.observers.slice();try{for(var r=ct(n),o=r.next();!o.done;o=r.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},qt.prototype.error=function(e){var n=this;Tt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var t=n.observers;t.length;)t.shift().error(e)}})},qt.prototype.complete=function(){var e=this;Tt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},qt.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(qt.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),qt.prototype._trySubscribe=function(t){return this._throwIfClosed(),jt.prototype._trySubscribe.call(this,t)},qt.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},qt.prototype._innerSubscribe=function(t){var e=this.hasError,n=this.isStopped,r=this.observers;return e||n?yt:(r.push(t),new mt(function(){return dt(r,t)}))},qt.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,n=this.thrownError,r=this.isStopped;e?t.error(n):r&&t.complete()},qt.prototype.asObservable=function(){var t=new Dt;return t.source=this,t},qt.create=function(t,e){return new Xt(t,e)},qt),Xt=(at(Yt,$t=Vt),Yt.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},Yt.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},Yt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},Yt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:yt},Yt),zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0},Ht=(at(Wt,Gt=Vt),Wt.prototype.next=function(t){var e=this,n=e.isStopped,r=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;n||(r.push(t),o||r.push(i.now()+e)),this._trimBuffer(),Gt.prototype.next.call(this,t)},Wt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},Wt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,o=(r?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!r){for(var i=e.now(),s=0,a=1;a<n.length&&n[a]<=i;a+=2)s=a;s&&n.splice(0,s+1)}},Wt);function Wt(t,e,n){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=zt);var r=Gt.call(this)||this;return r._bufferSize=t,r._windowTime=e,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=e===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,e),r}function Yt(t,e){var n=$t.call(this)||this;return n.destination=t,n.source=e,n}function qt(){var t=jt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Kt=[],Zt={};const Qt=[];function Jt(r,o=m){let i;const s=[];function a(t){if(n(r,t)&&(r=t,i)){const t=!Qt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Qt.push(e,r)}if(t){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}}return{set:a,update:function(t){a(t(r))},subscribe:function(t,e=m){const n=[t,e];return s.push(n),1===s.length&&(i=o(a)||m),t(r),()=>{var t=s.indexOf(n);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function te(t,a,e){const c=!Array.isArray(t),u=c?[t]:t,l=a.length<2;return{subscribe:Jt(e,e=>{let n=!1;const r=[];let o=0,i=m;const s=()=>{var t;o||(i(),t=a(c?r[0]:r,e),l?e(t):i=d(t)?t:m)},t=u.map((t,e)=>v(t,t=>{r[e]=t,o&=~(1<<e),n&&s()},()=>{o|=1<<e}));return n=!0,s(),function(){f(t),i()}}).subscribe}}var ee=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===ne));var e},ne="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function re(t,e){return!1!==e.clone&&e.isMergeableObject(t)?ce(Array.isArray(t)?[]:{},t,e):t}function oe(t,e,n){return t.concat(e).map(function(t){return re(t,n)})}function ie(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function se(t,e){try{return e in t}catch(t){return!1}}function ae(r,o,i){var s={};return i.isMergeableObject(r)&&ie(r).forEach(function(t){s[t]=re(r[t],i)}),ie(o).forEach(function(e){var t,n;(!se(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&(se(r,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return ce;var t=i.customMerge(e);return"function"==typeof t?t:ce}()(r[e],o[e],i):s[e]=re(o[e],i))}),s}function ce(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||oe,n.isMergeableObject=n.isMergeableObject||ee,n.cloneUnlessOtherwiseSpecified=re;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):ae(t,e,n):re(e,n)}ce.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return ce(t,e,n)},{})};var ue=ce,le=function(t,e){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function pe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var he,fe,de,me=function(){return(me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function ye(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}function ge(t){return t.type===fe.literal}function be(t){return t.type===fe.number}function Ee(t){return t.type===fe.date}function ve(t){return t.type===fe.time}function _e(t){return t.type===fe.select}function Ae(t){return t.type===fe.plural}function we(t){return t.type===fe.tag}function Te(t){return t&&"object"==typeof t&&t.type===de.number}function Pe(t){return t&&"object"==typeof t&&t.type===de.dateTime}(Be=he=he||{})[Be.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Be[Be.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Be[Be.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Be[Be.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Be[Be.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Be[Be.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Be[Be.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Be[Be.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Be[Be.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Be[Be.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Be[Be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Be[Be.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Be[Be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Be[Be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Be[Be.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Be[Be.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Be[Be.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Be[Be.INVALID_TAG=23]="INVALID_TAG",Be[Be.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Be[Be.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Be[Be.UNCLOSED_TAG=27]="UNCLOSED_TAG",(Ve=fe=fe||{})[Ve.literal=0]="literal",Ve[Ve.argument=1]="argument",Ve[Ve.number=2]="number",Ve[Ve.date=3]="date",Ve[Ve.time=4]="time",Ve[Ve.select=5]="select",Ve[Ve.plural=6]="plural",Ve[Ve.pound=7]="pound",Ve[Ve.tag=8]="tag",(Xe=de=de||{})[Xe.number=0]="number",Xe[Xe.dateTime=1]="dateTime";var Me=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,xe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;var Ie,Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oe=/^(@+)?(\+|#+)?$/g,Ce=/(\*)(0+)|(#+)(0+)|(0+)/g,Ne=/^(0+)$/;function Re(t){var r={};return t.replace(Oe,function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""}),r}function Ue(t){switch(t){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 De(t){return Ue(t)||{}}function ke(t){for(var s={},e=0,n=t;e<n.length;e++){var r,o=n[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=me(me(me({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return me(me({},t),De(e))},{}));continue;case"engineering":s=me(me(me({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return me(me({},t),De(e))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ce,function(t,e,n,r,o,i){if(e)s.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ne.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,function(t,e,n,r,o,i){return"*"===n?s.minimumFractionDigits=e.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=me(me({},s),Re(o.options[0])))}else Oe.test(o.stem)?s=me(me({},s),Re(o.stem)):((r=Ue(o.stem))&&(s=me(me({},s),r)),(r=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ne.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=me(me({},s),r)))}return s}var Fe=new RegExp("^"+Me.source+"*"),Ge=new RegExp(Me.source+"*$");function $e(t,e){return{start:t,end:e}}var je=!!String.prototype.startsWith,Rt=!!String.fromCodePoint,Vt=!!Object.fromEntries,Be=!!String.prototype.codePointAt,Ve=!!String.prototype.trimStart,Xe=!!String.prototype.trimEnd,ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Me=!0;try{Me="a"===(null===(Ie=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ie?void 0:Ie[0])}catch(m){Me=!1}var He,We,Ye=je?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},qe=Rt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;i<o;){if(1114111<(n=t[i++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ke=Vt?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],o=o[1];e[i]=o}return e},Ze=Be?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||n<=e)){var r,o=t.charCodeAt(e);return o<55296||56319<o||e+1===n||(r=t.charCodeAt(e+1))<56320||57343<r?o:r-56320+(o-55296<<10)+65536}},Qe=Ve?function(t){return t.trimStart()}:function(t){return t.replace(Fe,"")},Je=Xe?function(t){return t.trimEnd()}:function(t){return t.replace(Ge,"")};function tn(t,e){return new RegExp(t,e)}We=Me?(He=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return He.lastIndex=e,null!==(t=He.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var n,r=[];;){var o=Ze(t,e);if(void 0===o||on(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),e+=65536<=o?2:1}return qe.apply(void 0,r)};var en=(nn.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},nn.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(he.UNMATCHED_CLOSING_TAG,$e(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&rn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{i=this.clonePosition();this.bump(),r.push({type:fe.pound,location:$e(i,this.clonePosition())})}}}return{val:r,err:null}},nn.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+r+"/>",location:$e(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rn(this.char()))return this.error(he.INVALID_TAG,$e(e,this.clonePosition()));o=this.clonePosition();return r!==this.parseTagName()?this.error(he.UNMATCHED_CLOSING_TAG,$e(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:r,children:t,location:$e(n,this.clonePosition())},err:null}:this.error(he.INVALID_TAG,$e(e,this.clonePosition())))}return this.error(he.UNCLOSED_TAG,$e(n,this.clonePosition()))}return this.error(he.INVALID_TAG,$e(n,this.clonePosition()))},nn.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},nn.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{o=this.tryParseUnquoted(t,e);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=$e(n,this.clonePosition());return{val:{type:fe.literal,value:r,location:n},err:null}},nn.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rn(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},nn.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return qe.apply(void 0,e)},nn.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&0<t?null:(this.bump(),qe(n))},nn.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(he.EMPTY_ARGUMENT,$e(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(he.MALFORMED_ARGUMENT,$e(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:r,location:$e(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(n,this.clonePosition())):this.parseArgumentOptions(t,e,r,n);default:return this.error(he.MALFORMED_ARGUMENT,$e(n,this.clonePosition()))}},nn.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=We(this.message,e),e=e+n.length;return this.bumpTo(e),{value:n,location:$e(t,this.clonePosition())}},nn.prototype.parseArgumentOptions=function(t,e,n,r){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(he.EXPECT_ARGUMENT_TYPE,$e(i,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(p=Je(h.val)).length)return this.error(he.EXPECT_ARGUMENT_STYLE,$e(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:$e(u,this.clonePosition())}}if((f=this.tryParseArgumentClose(r)).err)return f;var l=$e(r,this.clonePosition());if(c&&Ye(null==c?void 0:c.style,"::",0)){u=Qe(c.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?h:{val:{type:fe.number,value:n,location:l,style:h.val},err:null};if(0===u.length)return this.error(he.EXPECT_DATE_TIME_SKELETON,l);var p={type:de.dateTime,pattern:u,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(xe,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.year=2===e?"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":o.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][e-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":o.minute=["numeric","2-digit"][e-1];break;case"s":o.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=e<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""}),o):{}};return{val:{type:"date"===s?fe.date:fe.time,value:n,location:l,style:p},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:n,location:l,style:null!==(l=null==c?void 0:c.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(he.EXPECT_SELECT_ARGUMENT_OPTIONS,$e(c,me({},c)));this.bumpSpace();var h,l=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===l.value){if(!this.bumpIf(":"))return this.error(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),l=this.parseIdentifierIfPossible(),c=h.val}l=this.tryParsePluralOrSelectOptions(t,s,e,l);if(l.err)return l;if((f=this.tryParseArgumentClose(r)).err)return f;var f=$e(r,this.clonePosition());return"select"===s?{val:{type:fe.select,value:n,options:Ke(l.val),location:f},err:null}:{val:{type:fe.plural,value:n,options:Ke(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null};default:return this.error(he.INVALID_ARGUMENT_TYPE,$e(i,a))}},nn.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(he.EXPECT_ARGUMENT_CLOSING_BRACE,$e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},nn.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(he.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,$e(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},nn.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(Se).filter(function(t){return 0<t.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(he.INVALID_NUMBER_SKELETON,e)}return{val:{type:de.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?ke(n):{}},err:null}},nn.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var o=!1,i=[],s=new Set,a=r.value,c=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(he.EXPECT_PLURAL_ARGUMENT_SELECTOR,he.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=$e(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?he.DUPLICATE_SELECT_ARGUMENT_SELECTOR:he.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===a&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?he.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:he.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,$e(this.clonePosition(),this.clonePosition()));l=this.parseMessage(t+1,e,n);if(l.err)return l;u=this.tryParseArgumentClose(p);if(u.err)return u;i.push([a,{value:l.val,location:$e(p,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(p=this.parseIdentifierIfPossible()).value,c=p.location}return 0===i.length?this.error("select"===e?he.EXPECT_SELECT_ARGUMENT_SELECTOR:he.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(he.MISSING_OTHER_CLAUSE,$e(this.clonePosition(),this.clonePosition())):{val:i,err:null}},nn.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}r=$e(r,this.clonePosition());return o?ze(i*=n)?{val:i,err:null}:this.error(e,r):this.error(t,r)},nn.prototype.offset=function(){return this.position.offset},nn.prototype.isEOF=function(){return this.offset()===this.message.length},nn.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},nn.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ze(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},nn.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},nn.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},nn.prototype.bumpIf=function(t){if(Ye(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},nn.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},nn.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},nn.prototype.bumpSpace=function(){for(;!this.isEOF()&&on(this.char());)this.bump()},nn.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},nn);function nn(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function rn(t){return 97<=t&&t<=122||65<=t&&t<=90}function on(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function sn(t,e){e=me({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var n=new en(t,e).parse();if(n.err){t=SyntaxError(he[n.err.kind]);throw t.location=n.err.location,t.originalMessage=n.err.message,t}return null!=e&&e.captureLocation||function n(t){t.forEach(function(t){if(delete t.location,_e(t)||Ae(t))for(var e in t.options)delete t.options[e].location,n(t.options[e].value);else be(t)&&Te(t.style)||(Ee(t)||ve(t))&&Pe(t.style)?delete t.style.location:we(t)&&n(t.children)})}(n.val),n.val}function an(t,e){var n=e&&e.cache?e.cache:dn,r=e&&e.serializer?e.serializer:pn;return(e&&e.strategy?e.strategy:function(t,e){return ln(t,this,1===t.length?cn:un,e.cache.create(),e.serializer)})(t,{cache:n,serializer:r})}function cn(t,e,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),n=e.get(o);return void 0===n&&(n=t.call(this,r),e.set(o,n)),n}function un(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),n=e.get(o);return void 0===n&&(n=t.apply(this,r),e.set(o,n)),n}function ln(t,e,n,r,o){return n.bind(e,t,r,o)}var pn=function(){return JSON.stringify(arguments)};function hn(){this.cache=Object.create(null)}hn.prototype.has=function(t){return t in this.cache},hn.prototype.get=function(t){return this.cache[t]},hn.prototype.set=function(t,e){this.cache[t]=e};var fn,dn={create:function(){return new hn}},mn={variadic:function(t,e){return ln(t,this,un,e.cache.create(),e.serializer)},monadic:function(t,e){return ln(t,this,cn,e.cache.create(),e.serializer)}};(Me=fn=fn||{}).MISSING_VALUE="MISSING_VALUE",Me.INVALID_VALUE="INVALID_VALUE",Me.MISSING_INTL_API="MISSING_INTL_API";var yn,gn,bn,En,vn,_n=(pe(In,vn=Error),In.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},In),An=(pe(xn,En=_n),xn),wn=(pe(Mn,bn=_n),Mn),Tn=(pe(Pn,gn=_n),Pn);function Pn(t,e){return gn.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',fn.MISSING_VALUE,e)||this}function Mn(t,e,n){return bn.call(this,'Value for "'+t+'" must be of type '+e,fn.INVALID_VALUE,n)||this}function xn(t,e,n,r){return En.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(n).join('", "')+'"',fn.INVALID_VALUE,r)||this}function In(t,e,n){t=vn.call(this,t)||this;return t.code=e,t.originalMessage=n,t}function Sn(t,e,n,r,o,i,s){if(1===t.length&&ge(t[0]))return[{type:yn.literal,value:t[0].value}];for(var a=[],c=0,u=t;c<u.length;c++){var l=u[c];if(ge(l))a.push({type:yn.literal,value:l.value});else if(l.type===fe.pound)"number"==typeof i&&a.push({type:yn.literal,value:n.getNumberFormat(e).format(i)});else{var p=l.value;if(!(o&&p in o))throw new Tn(p,s);var h=o[p];if(l.type===fe.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?yn.literal:yn.object,value:h});else if(Ee(l)){var f="string"==typeof l.style?r.date[l.style]:Pe(l.style)?l.style.parsedOptions:void 0;a.push({type:yn.literal,value:n.getDateTimeFormat(e,f).format(h)})}else if(ve(l))f="string"==typeof l.style?r.time[l.style]:Pe(l.style)?l.style.parsedOptions:void 0,a.push({type:yn.literal,value:n.getDateTimeFormat(e,f).format(h)});else if(be(l))(f="string"==typeof l.style?r.number[l.style]:Te(l.style)?l.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),a.push({type:yn.literal,value:n.getNumberFormat(e,f).format(h)});else{if(we(l)){var d=l.children,m=l.value,p=o[m];if("function"!=typeof p)throw new wn(m,"function",s);d=p(Sn(d,e,n,r,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?yn.literal:yn.object,value:t}}))}if(_e(l)){if(!(y=l.options[h]||l.options.other))throw new An(l.value,h,Object.keys(l.options),s);a.push.apply(a,Sn(y.value,e,n,r,o))}else if(Ae(l)){if(!(y=l.options["="+h])){if(!Intl.PluralRules)throw new _n('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',fn.MISSING_INTL_API,s);var d=n.getPluralRules(e,{type:l.pluralType}).select(h-(l.offset||0)),y=l.options[d]||l.options.other}if(!y)throw new An(l.value,h,Object.keys(l.options),s);a.push.apply(a,Sn(y.value,e,n,r,o,h-(l.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===yn.literal&&e.type===yn.literal?n.value+=e.value:t.push(e),t},[])}function Ln(n){return{create:function(){return{has:function(t){return t in n},get:function(t){return n[t]},set:function(t,e){n[t]=e}}}}}(Me=yn=yn||{})[Me.literal=0]="literal",Me[Me.object=1]="object";var On=(Object.defineProperty(Cn,"defaultLocale",{get:function(){return Cn.memoizedDefaultLocale||(Cn.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Cn.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Cn.memoizedDefaultLocale=null,Cn.__parse=sn,Cn.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"}}},Cn);function Cn(t,e,n,r){var o,i,s=this;if(void 0===e&&(e=Cn.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===yn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Sn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Cn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Cn.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Cn.formats,(i=n)?Object.keys(o).reduce(function(t,e){var n,r;return t[e]=(n=o[e],(r=i[e])?me(me(me({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=me(me({},n[e]),r[e]||{}),t},{})):n),t},me({},o)):o),this.locales=e,this.formatters=r&&r.formatters||{getNumberFormat:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ye([void 0],e)))},{cache:Ln((r=void 0===(r=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:r).number),strategy:mn.variadic}),getDateTimeFormat:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ye([void 0],e)))},{cache:Ln(r.dateTime),strategy:mn.variadic}),getPluralRules:an(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ye([void 0],e)))},{cache:Ln(r.pluralRules),strategy:mn.variadic})}}const Nn={},Rn=(e,n)=>{if(null!=n){if(n in Nn&&e in Nn[n])return Nn[n][e];var r,o,i=Kn(n);for(let t=0;t<i.length;t++){var s=(r=i[t],o=e,kn(r)?function(t,e){if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(0<t){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(function(t){return Un[t]||null}(r),o):null);if(s)return r=e,o=n,(s=s)&&(o in Nn||(Nn[o]={}),r in Nn[o]||(Nn[o][r]=s),s)}}};let Un;const Dn=Jt({});function kn(t){return t in Un}function Fn(e,...n){delete Nn[e],Dn.update(t=>(t[e]=ue.all([t[e]||{},...n]),t))}te([Dn],([t])=>Object.keys(t)),Dn.subscribe(t=>Un=t);const Gn={};function $n(t){return Gn[t]}function jn(t){return Kn(t).some(t=>{return null===(t=$n(t))||void 0===t?void 0:t.size})}const Bn={};function Vn(t){if(!jn(t))return t in Bn?Bn[t]:void 0;const e=Kn(t).map(t=>{var e=$n(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Bn[t]=Promise.all(e.map(([t,n])=>function(e){return Promise.all(n.map(t=>(function(t,e){Gn[t].delete(e),0===Gn[t].size&&delete Gn[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Fn(e,...t))}(t))).then(()=>jn(t)?Vn(t):void delete Bn[t]),Bn[t]}function Xn(t,e){var n={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]]);return n}const zn={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};const Hn=Jt(!1);let Wn;const Yn=Jt(null);function qn(t){return t.split("-").map((t,e,n)=>n.slice(0,e+1).join("-")).reverse()}function Kn(t,e=zn.fallbackLocale){t=qn(t);return e?[...new Set([...t,...qn(e)])]:t}Yn.subscribe(t=>{Wn=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Zn=Yn.set;Yn.set=e=>{if(function(t){if(null!=t){var e=Kn(t);for(let t=0;t<e.length;t++){var n=e[t];if(kn(n))return n}}}(e)&&jn(e)){var{loadingDelay:n}=zn;let t;return"undefined"!=typeof window&&null!=Wn&&n?t=window.setTimeout(()=>Hn.set(!0),n):Hn.set(!0),Vn(e).then(()=>{Zn(e)}).finally(()=>{clearTimeout(t),Hn.set(!1)})}return Zn(e)},Yn.update=t=>Zn(t(Wn));const Qn=n=>{const r=Object.create(null);return t=>{var e=JSON.stringify(t);return e in r?r[e]:r[e]=n(t)}},Jn=(t,e)=>{var{formats:n}=zn;if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},tr=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(t=Jn("number",n)),new Intl.NumberFormat(e,t)}),er=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?t=Jn("date",n):0===Object.keys(t).length&&(t=Jn("date","short")),new Intl.DateTimeFormat(e,t)}),nr=Qn(t=>{var{locale:e,format:n}=t,t=Xn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?t=Jn("time",n):0===Object.keys(t).length&&(t=Jn("time","short")),new Intl.DateTimeFormat(e,t)}),rr=Qn((t,e=Wn)=>new On(t,e,zn.formats,{ignoreTag:zn.ignoreTag})),or=te([Yn,Dn],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:n,locale:r=Wn,default:o}=e;if(null==r)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Rn(t,r);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else zn.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Kn(r).join('", "')}".${jn(Wn)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!n)return i;let s=i;try{s=rr(i,r).format(n)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return nr(Object.assign({locale:e},t))})(e).format(t)),te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return er(Object.assign({locale:e},t))})(e).format(t)),te([Yn],()=>(t,e)=>((t={})=>{var{locale:e=Wn}=t,t=Xn(t,["locale"]);return tr(Object.assign({locale:e},t))})(e).format(t)),te([Yn,Dn],()=>(t,e=Wn)=>Rn(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Kt.indexOf(t)&&(e=new Ht(e),Zt[t]=e,Kt.push(t)),Zt[t]}};const ir=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",sr='<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 1280.000000 1216.000000"\npreserveAspectRatio="xMidYMid meet">\n<g transform="translate(0.000000,1216.000000) scale(0.100000,-0.100000)" fill="#fff" stroke="none">\n<path d="M6177 12145 c-48 -8 -350 -84 -670 -170 l-582 -155 -610 0 c-679 0-725 -3 -920 -65 -264 -82 -511 -256 -677 -475 l-49 -65 -287 -76 c-1001 -267\n-1397 -375 -1472 -401 -388 -136 -713 -468 -839 -856 -51 -158 -66 -258 -65-437 1 -112 6 -196 17 -245 8 -41 77 -304 152 -585 267 -998 355 -1327 505\n-1885 83 -311 200 -747 260 -970 60 -223 168 -625 240 -895 72 -269 180 -672 240 -895 60 -223 177 -659 260 -970 83 -311 209 -781 280 -1045 71 -264 160\n-597 199 -740 38 -143 81 -291 95 -329 119 -316 375 -594 681 -742 124 -59 230 -95 355 -121 107 -22 373 -24 475 -4 65 12 684 176 2078 549 l557 150 143\n-38 c78 -22 464 -125 857 -230 393 -105 899 -241 1125 -301 526 -142 533 -143 735 -143 241 0 387 33 605 138 254 122 478 338 608 585 86 163 30 -33 607\n2121 60 223 177 659 260 970 83 311 200 747 260 970 318 1187 597 2228 755 2815 303 1132 415 1555 427 1620 7 39 13 142 13 230 0 221 -36 383 -130 581\n-152 324 -439 583 -775 702 -72 25 -568 160 -1546 421 l-211 56 -61 76 c-183 231 -403 383 -679 469 -183 56 -237 60 -909 60 l-610 0 -545 146 c-299 80\n-584 155 -634 165 -122 27 -396 34 -518 14z m-1127 -1167 c0 -10 -70 -274 -314 -1183 -124 -463 -364 -1358 -517 -1930 -233 -869 -374 -1393 -498 -1857\n-71 -266 -173 -645 -226 -843 -53 -198 -98 -364 -100 -370 -2 -5 -3 1122 -2 2505 l2 2515 22 90 c63 265 185 487 368 670 231 232 511 367 835 404 120 13\n430 13 430 -1z m2140 -127 c47 -10 202 -51 345 -90 224 -60 1099 -295 2790 -747 475 -128 514 -140 632 -194 398 -185 684 -558 769 -1005 23 -122 23 -350\n0 -469 -9 -49 -49 -206 -87 -350 -124 -463 -367 -1368 -499 -1861 -71 -264 -197 -734 -280 -1045 -83 -311 -200 -747 -260 -970 -497 -1855 -508 -1897\n-537 -1970 -126 -317 -382 -592 -686 -735 -182 -86 -331 -123 -528 -132 -239 -10 -190 -21 -1424 310 -776 208 -1457 391 -2045 548 -493 132 -625 176 -750\n249 -407 238 -665 661 -686 1125 -11 228 -11 229 250 1200 76 281 205 762 287 1070 83 308 200 745 260 970 61 226 168 626 239 890 71 264 197 734 280 1045\n83 311 191 714 240 895 48 182 99 359 113 395 35 94 102 223 160 310 63 95 259 290 357 355 159 105 354 185 540 219 119 22 402 15 520 -13z m-4750 -3698\nc0 -1697 -3 -3084 -6 -3081 -3 3 -32 106 -65 229 -133 496 -367 1367 -469 1749 -221 825 -375 1398 -507 1890 -200 743 -185 672 -187 900 -1 156 3 212\n18 279 112 511 459 894 946 1044 119 37 249 75 263 76 4 1 7 -1388 7 -3086z"/>\n<path d="M8960 9889 c-40 -111 -149 -350 -236 -518 -430 -831 -1050 -1573 -1649 -1976 -303 -203 -564 -310 -862 -350 -250 -35 -420 -122 -600 -308 -179\n-185 -305 -425 -369 -702 -27 -113 -27 -404 0 -525 117 -536 530 -939 1063 -1036 115 -20 339 -20 458 1 176 31 368 111 522 217 43 29 124 98 179 154\nl101 100 -55 -105 c-300 -573 -638 -1052 -1021 -1443 -63 -65 -113 -120 -110 -122 2 -2 347 -96 767 -208 536 -144 762 -200 762 -191 0 7 -11 55 -25 106\n-76 289 -135 658 -166 1047 -12 164 -13 753 0 845 5 33 9 47 10 30 2 -56 50 -223 90 -314 182 -424 547 -711 1000 -786 123 -21 364 -16 476 8 461 103 835\n434 979 867 115 346 99 745 -42 1025 -72 144 -133 214 -302 351 -216 172 -367 359 -514 636 -201 378 -351 874 -431 1431 -46 319 -59 516 -59 892 -1 355 8\n505 45 784 10 80 17 146 15 148 -2 2 -13 -24 -26 -58z"/>\n</g>\n</svg>',ar={en:{myAccount:{title:"My Account"}},ro:{myAccount:{title:"Contul meu"}}};function cr(n){let r,o,i,s;return{c(){r=w("div"),o=w("button"),o.innerHTML="<span>Logout</span>",M(r,"class","GeneralLogout")},m(t,e){_(t,r,e),E(r,o),i||(s=g(o,"click",n[7]),i=!0)},p:m,d(t){t&&A(r),i=!1,s()}}}function ur(n){let r,o,i,s,a,c,u,l,p,h,f,d=!n[1]&&function(){let n;return{c(){n=w("span"),n.textContent="Logout",M(n,"class","PlayerLogoutText")},m(t,e){_(t,n,e)},d(t){t&&A(n)}}}();return{c(){r=w("p"),o=w("span"),i=t("svg"),s=t("defs"),a=t("style"),c=T(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:#fff;}"),u=t("path"),l=t("path"),p=P(),d&&d.c(),M(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(u,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),M(l,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),M(l,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),M(i,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),M(i,"data-name","Layer 1"),M(i,"xmlns","http://www.w3.org/2000/svg"),M(i,"viewBox","0 0 150 150"),y(o,"width",n[1]?n[2].matches?"50px":"24px":"20px"),M(r,"class","PlayerAccountMenuItemBox "+(n[1]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[2].matches&&n[1]?"PlayerAccountMenuItemBoxTablet":""))},m(t,e){_(t,r,e),E(r,o),E(o,i),E(i,s),E(s,a),E(a,c),E(i,u),E(i,l),E(r,p),d&&d.m(r,null),h||(f=g(r,"click",n[6]),h=!0)},p:m,d(t){t&&A(r),d&&d.d(),h=!1,f()}}}function lr(t){let n;function r(t){return"PlayerAccountMenu"===t[0]?ur:cr}let o=r(t),i=o(t);return{c(){i.c(),n=e(),this.c=m},m(t,e){i.m(t,e),_(t,n,e)},p(t,[e]){o===(o=r(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},i:m,o:m,d(t){i.d(t),t&&A(n)}}}function pr(t,e,n){let{endpoint:r=""}=e,{session:o=""}=e,{buttonlocation:i=""}=e,s=!1,a=window.navigator.userAgent,c="PC"!==ir(a);const u=window.matchMedia("(min-width: 768px)"),l=()=>{let t=new Headers;t.append("Content-type","application/json"),t.append("X-SessionID",o),fetch(`${r}/player/session/player`,{method:"DELETE",headers:t}).then(t=>{window.postMessage({type:"LogoutSuccessfull"})})};return t.$$set=t=>{"endpoint"in t&&n(4,r=t.endpoint),"session"in t&&n(5,o=t.session),"buttonlocation"in t&&n(0,i=t.buttonlocation)},t.$$.update=()=>{49&t.$$.dirty&&r&&o&&i&&(r||(error="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",s=!0,console.error(error)),o||(error="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",s=!0,console.error(error)))},[i,c,u,l,r,o,()=>l(),()=>l()]}function hr(t,e,n){const r=t.slice();return r[22]=e[n],r}function fr(e){let n,r,o,i,s,a,c,u,l,p,h,f,d=e[8]&&function(){let n,r,o=e[7]("myAccount.title")+"";return{c(){n=w("h3"),r=T(o),M(n,"class","PlayerAccountMenuCategoryTitle")},m(t,e){_(t,n,e),E(n,r)},p(t,e){128&e&&o!==(o=t[7]("myAccount.title")+"")&&I(r,o)},d(t){t&&A(n)}}}(),m=e[8]&&function(t){let n,r;return{c(){n=w("div"),r=w("general-logout"),x(r,"endpoint",t[1]),x(r,"session",t[0]),x(r,"buttonlocation","PlayerAccountMenu"),M(n,"class","PlayerAccountLogOutArea")},m(t,e){_(t,n,e),E(n,r)},p(t,e){2&e&&x(r,"endpoint",t[1]),1&e&&x(r,"session",t[0])},d(t){t&&A(n)}}}(e),y=e[2],g=[];for(let t=0;t<y.length;t+=1)g[t]=yr(hr(e,y,t));let b=!e[8]&&function(t){let n,r;return{c(){n=w("div"),r=w("general-logout"),x(r,"endpoint",t[1]),x(r,"session",t[0]),x(r,"buttonlocation","PlayerAccountMenu"),M(n,"class","PlayerAccountLogOutArea")},m(t,e){_(t,n,e),E(n,r)},p(t,e){2&e&&x(r,"endpoint",t[1]),1&e&&x(r,"session",t[0])},d(t){t&&A(n)}}}(e);return{c(){n=w("div"),r=w("div"),d&&d.c(),o=P(),i=w("p"),s=T(e[5]),a=P(),c=w("p"),u=T(e[6]),l=P(),m&&m.c(),p=P(),h=w("div");for(let t=0;t<g.length;t+=1)g[t].c();f=P(),b&&b.c(),M(i,"class","PlayerAccountMenuUser"),M(c,"class","PlayerAccountMenuEmail"),M(r,"class","PlayerAccountMenuHeader"),M(h,"class","PlayerAccountMenuList"),M(n,"class","PlayerAccountMenuContainer "+(e[8]?"PlayerAccountMobileContainer":"")+" "+(e[9].matches&&e[8]?"PlayerAccountTabletContainer":""))},m(t,e){_(t,n,e),E(n,r),d&&d.m(r,null),E(r,o),E(r,i),E(i,s),E(r,a),E(r,c),E(c,u),E(r,l),m&&m.m(r,null),E(n,p),E(n,h);for(let t=0;t<g.length;t+=1)g[t].m(h,null);E(n,f),b&&b.m(n,null)},p(e,n){if(e[8]&&d.p(e,n),32&n&&I(s,e[5]),64&n&&I(u,e[6]),e[8]&&m.p(e,n),1820&n){let t;for(y=e[2],t=0;t<y.length;t+=1){var r=hr(e,y,t);g[t]?g[t].p(r,n):(g[t]=yr(r),g[t].c(),g[t].m(h,null))}for(;t<g.length;t+=1)g[t].d(1);g.length=y.length}e[8]||b.p(e,n)},d(t){t&&A(n),d&&d.d(),m&&m.d(),function(e,n){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}(g,t),b&&b.d()}}}function dr(t){let n,r;return{c(){n=w("img"),M(n,"class","PlayerAccountMenuItemIcon "+(t[8]?"PlayerAccountMenuItemIconMobile":"")),n.src!==(r=t[22].menu_item_icon)&&M(n,"src",r)},m(t,e){_(t,n,e)},p(t,e){4&e&&n.src!==(r=t[22].menu_item_icon)&&M(n,"src",r)},d(t){t&&A(n)}}}function mr(t){let n,r=t[22].menu_item_icon+"";return{c(){n=w("span"),y(n,"width",t[8]?t[9].matches?"80px":"30px":"20px"),y(n,"height",t[8]?t[9].matches?"80px":"40px":"20px")},m(t,e){_(t,n,e),n.innerHTML=r},p(t,e){4&e&&r!==(r=t[22].menu_item_icon+"")&&(n.innerHTML=r)},d(t){t&&A(n)}}}function yr(n){let r,o,i,s,a,c,u,l,p,h=n[22].title+"";function f(t){return t[4]?mr:dr}let d=f(n),m=d(n);function y(){return n[13](n[22])}return{c(){r=w("div"),o=w("p"),m.c(),i=P(),s=w("span"),a=T(h),c=P(),M(s,"class","PlayerAccountMenuItemTitle"),M(o,"class","PlayerAccountMenuItemWrapper"),M(r,"class",u="PlayerAccountMenuItemBox "+(n[3]!==n[22].ID||n[8]?"":"PlayerAccountMenuActiveItemBox"))},m(t,e){_(t,r,e),E(r,o),m.m(o,null),E(o,i),E(o,s),E(s,a),E(r,c),l||(p=g(r,"click",y),l=!0)},p(t,e){d===(d=f(n=t))&&m?m.p(n,e):(m.d(1),m=d(n),m&&(m.c(),m.m(o,i))),4&e&&h!==(h=n[22].title+"")&&I(a,h),12&e&&u!==(u="PlayerAccountMenuItemBox "+(n[3]!==n[22].ID||n[8]?"":"PlayerAccountMenuActiveItemBox"))&&M(r,"class",u)},d(t){t&&A(r),m.d(),l=!1,p()}}}function gr(t){let n,r=fr(t);return{c(){r.c(),n=e(),this.c=m},m(t,e){r.m(t,e),_(t,n,e)},p(t,[e]){r.p(t,e)},i:m,o:m,d(t){r.d(t),t&&A(n)}}}function br(e,t,n){let r;var o=or;e.$$.on_destroy.push(v(o,t=>n(7,r=t)));let{endpoint:i=""}=t,{session:s=""}=t,{playerid:a=""}=t,{lang:c="en"}=t,u=[],l=0,p=window.navigator.userAgent,h="PC"!==ir(p),f=[],d=!0,m="",y="";o=window.matchMedia("(min-width: 768px)");Object.keys(ar).forEach(t=>{Fn(t,ar[t])}),t=()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t);const g=t=>{if(t.data)switch(t.data.type){case"AccountMenuDetails":n(2,u=t.data.accountMenuInfo),n(3,l=u[0].ID),b();break;case"UserSessionID":n(0,s=t.data.session)}},b=()=>{u.length?n(4,d=!1):(n(2,u=f),n(4,d=!0))},E=t=>{window.postMessage({type:"ChangeAccountPage",page:t},window.location.href),n(3,l=t.ID)};return e.$$set=t=>{"endpoint"in t&&n(1,i=t.endpoint),"session"in t&&n(0,s=t.session),"playerid"in t&&n(11,a=t.playerid),"lang"in t&&n(12,c=t.lang)},e.$$.update=()=>{var t;6147&e.$$.dirty&&i&&s&&a&&c&&(t=c,Yn.set(t),f=[{ID:0,title:"Profile Info",menu_item_icon:sr},{ID:1,title:"Account Security",menu_item_icon:sr},{ID:2,title:"Deposit",menu_item_icon:sr},{ID:3,title:"Withdrawal",menu_item_icon:sr},{ID:4,title:"Active Bonuses",menu_item_icon:sr},{ID:5,title:"Self-Exclusion",menu_item_icon:sr},{ID:6,title:"Account Closure",menu_item_icon:sr}],fetch(`${i}/player/${a}/profile`,{method:"GET",headers:{playerId:a,"X-SessionID":s}}).then(t=>t.json()).then(t=>{n(5,m=t.username),n(6,y=t.email)},t=>{console.error(t)}))},[s,i,u,l,d,m,y,r,h,o,E,a,c,t=>E(t)]}customElements.get("general-logout")||customElements.define("general-logout",class extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #FFFFFF4A}.PlayerAccountMenuItemBox svg{fill:#fff}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:#fff}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},pr,lr,n,{endpoint:4,session:5,buttonlocation:0}),t&&(t.target&&_(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","buttonlocation"]}get endpoint(){return this.$$.ctx[4]}set endpoint(t){this.$set({endpoint:t}),R()}get session(){return this.$$.ctx[5]}set session(t){this.$set({session:t}),R()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(t){this.$set({buttonlocation:t}),R()}});class Er extends l{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerAccountMenuContainer{color:#fff;position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:#FFF;flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #696972}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c9c9c9 #58586B}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:#58586B}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:#c9c9c9}.PlayerAccountLogOutArea{background:#58586B;color:#fff;width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:#D0046C;color:#FFF}.PlayerAccountMobileContainer{height:unset;color:#07072A}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid #2F313E;border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:#D0046C;border-bottom:1px solid #D0046C}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:#FFF}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>",u(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},br,gr,n,{endpoint:1,session:0,playerid:11,lang:12}),t&&(t.target&&_(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["endpoint","session","playerid","lang"]}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$set({endpoint:t}),R()}get session(){return this.$$.ctx[0]}set session(t){this.$set({session:t}),R()}get playerid(){return this.$$.ctx[11]}set playerid(t){this.$set({playerid:t}),R()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),R()}}return customElements.get("player-account-menu")||customElements.define("player-account-menu",Er),Er});
|
|
2
2
|
//# sourceMappingURL=player-account-menu.js.map
|