@everymatrix/player-account-biometrics 1.32.0

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.
@@ -0,0 +1,638 @@
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 t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function c(t,e,r){t.insertBefore(e,r||null)}function u(t){t.parentNode&&t.parentNode.removeChild(t)}function h(t){return document.createElement(t)}function l(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function f(t){return document.createTextNode(t)}function p(){return f(" ")}function m(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function d(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function b(t,e){e=""+e,t.data!==e&&(t.data=e)}function y(t){const e={};for(const r of t)e[r.name]=r.value;return e}let g;function v(t){g=t}const E=[],_=[];let B=[];const T=[],w=Promise.resolve();let A=!1;function H(t){B.push(t)}
2
+ // flush() calls callbacks in this order:
3
+ // 1. All beforeUpdate callbacks, in order: parents before children
4
+ // 2. All bind:this callbacks, in reverse order: children before parents.
5
+ // 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
6
+ // for afterUpdates called during the initial onMount, which are called in
7
+ // reverse order: children before parents.
8
+ // Since callbacks might update component values, which could trigger another
9
+ // call to flush(), the following steps guard against this:
10
+ // 1. During beforeUpdate, any updated components will be added to the
11
+ // dirty_components array and will cause a reentrant call to flush(). Because
12
+ // the flush index is kept outside the function, the reentrant call will pick
13
+ // up where the earlier call left off and go through all dirty components. The
14
+ // current_component value is saved and restored so that the reentrant call will
15
+ // not interfere with the "parent" flush() call.
16
+ // 2. bind:this callbacks cannot trigger new flush() calls.
17
+ // 3. During afterUpdate, any updated components will NOT have their afterUpdate
18
+ // callback called a second time; the seen_callbacks set, outside the flush()
19
+ // function, guarantees this behavior.
20
+ const P=new Set;let S=0;// Do *not* move this inside the flush() function
21
+ function O(){
22
+ // Do not reenter flush while dirty components are updated, as this can
23
+ // result in an infinite loop. Instead, let the inner flush handle it.
24
+ // Reentrancy is ok afterwards for bindings etc.
25
+ if(0!==S)return;const t=g;do{
26
+ // first, call beforeUpdate functions
27
+ // and update components
28
+ try{for(;S<E.length;){const t=E[S];S++,v(t),L(t.$$)}}catch(t){
29
+ // reset dirty state to not end up in a deadlocked state and then rethrow
30
+ throw E.length=0,S=0,t}for(v(null),E.length=0,S=0;_.length;)_.pop()();
31
+ // then, once components are updated, call
32
+ // afterUpdate functions. This may cause
33
+ // subsequent updates...
34
+ for(let t=0;t<B.length;t+=1){const e=B[t];P.has(e)||(
35
+ // ...so guard against infinite loops
36
+ P.add(e),e())}B.length=0}while(E.length);for(;T.length;)T.pop()();A=!1,P.clear(),v(t)}function L(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(H)}}
37
+ /**
38
+ * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
39
+ */const C=new Set;function N(t,e){const r=t.$$;null!==r.fragment&&(!function(t){const e=[],r=[];B.forEach((n=>-1===t.indexOf(n)?e.push(n):r.push(n))),r.forEach((t=>t())),B=e}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(e),
40
+ // TODO null out other refs, including component.$$ (but need to
41
+ // preserve final state?)
42
+ r.on_destroy=r.fragment=null,r.ctx=[])}function I(t,e){-1===t.$$.dirty[0]&&(E.push(t),A||(A=!0,w.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function R(o,s,a,c,h,l,f,p=[-1]){const m=g;v(o);const d=o.$$={fragment:null,ctx:[],
43
+ // state
44
+ props:l,update:t,not_equal:h,bound:r(),
45
+ // lifecycle
46
+ on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
47
+ // everything else
48
+ callbacks:r(),dirty:p,skip_bound:!1,root:s.target||m.$$.root};f&&f(d.root);let b=!1;if(d.ctx=a?a(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return d.ctx&&h(d.ctx[t],d.ctx[t]=n)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](n),b&&I(o,t)),e})):[],d.update(),b=!0,n(d.before_update),
49
+ // `false` as a special case of no DOM component
50
+ d.fragment=!!c&&c(d.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
51
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
52
+ d.fragment&&d.fragment.l(t),t.forEach(u)}else
53
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
54
+ d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(C.delete(y),y.i(E))),function(t,r,o,s){const{fragment:a,after_update:c}=t.$$;a&&a.m(r,o),s||
55
+ // onMount happens before the initial afterUpdate
56
+ H((()=>{const r=t.$$.on_mount.map(e).filter(i);
57
+ // if the component was destroyed immediately
58
+ // it will update the `$$.on_destroy` reference to `null`.
59
+ // the destructured on_destroy may still reference to the old array
60
+ t.$$.on_destroy?t.$$.on_destroy.push(...r):
61
+ // Edge case - component was destroyed immediately,
62
+ // most likely as a result of a binding initialising
63
+ n(r),t.$$.on_mount=[]})),c.forEach(H)}(o,s.target,s.anchor,s.customElement),O()}var y,E;v(m)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
64
+ // @ts-ignore todo: improve typings
65
+ for(const t in this.$$.slotted)
66
+ // @ts-ignore todo: improve typings
67
+ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){N(this,1),this.$destroy=t}$on(e,r){
68
+ // TODO should this delegate to addEventListener?
69
+ if(!i(r))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const t=n.indexOf(r);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}})
70
+ /* eslint-disable no-prototype-builtins */;var U="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
71
+ // eslint-disable-next-line no-undef
72
+ "undefined"!=typeof global&&global||{},D="URLSearchParams"in U,x="Symbol"in U&&"iterator"in Symbol,G="FileReader"in U&&"Blob"in U&&function(){try{return new Blob,!0}catch(t){return!1}}(),F="FormData"in U,k="ArrayBuffer"in U;if(k)var $=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],j=ArrayBuffer.isView||function(t){return t&&$.indexOf(Object.prototype.toString.call(t))>-1};function V(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 X(t){return"string"!=typeof t&&(t=String(t)),t}
73
+ // Build a destructive iterator for the value list
74
+ function z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return x&&(e[Symbol.iterator]=function(){return e}),e}function Y(t){this.map={},t instanceof Y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function K(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function W(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function Z(t){var e=new FileReader,r=W(e);return e.readAsArrayBuffer(t),r}function q(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(t){var e;
75
+ /*
76
+ fetch-mock wraps the Response object in an ES6 Proxy to
77
+ provide useful test harness features such as flush. However, on
78
+ ES5 browsers without fetch or Proxy support pollyfills must be used;
79
+ the proxy-pollyfill is unable to proxy an attribute unless it exists
80
+ on the object before the Proxy is created. This change ensures
81
+ Response.bodyUsed exists on the instance, while maintaining the
82
+ semantic of setting Request.bodyUsed in the constructor before
83
+ _initBody is called.
84
+ */
85
+ // eslint-disable-next-line no-self-assign
86
+ this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:G&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:F&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:D&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():k&&G&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=q(t.buffer),
87
+ // IE 10-11 can't handle a DataView body.
88
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(t)||j(t))?this._bodyArrayBuffer=q(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,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):D&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},G&&(this.blob=function(){var t=K(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(){if(this._bodyArrayBuffer){var t=K(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(G)return this.blob().then(Z);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,i,o=K(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=W(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8",e.readAsText(t,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}
89
+ // HTTP methods whose capitalization should be normalized
90
+ Y.prototype.append=function(t,e){t=V(t),e=X(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Y.prototype.delete=function(t){delete this.map[V(t)]},Y.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},Y.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},Y.prototype.set=function(t,e){this.map[V(t)]=X(e)},Y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Y.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),z(t)},Y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),z(t)},Y.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),z(t)},x&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);var Q=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];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 r,n,i=(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 Y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 Y(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),Q.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in U)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
91
+ // Search for a '_' parameter in the query string
92
+ var o=/([?&])_=[^&]*/;if(o.test(this.url))
93
+ // If it already exists then set the value with the current time
94
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function et(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function rt(t,e){if(!(this instanceof rt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new Y(e.headers),this.url=e.url||"",this._initBody(t)}tt.prototype.clone=function(){return new tt(this,{body:this._bodyInit})},J.call(tt.prototype),J.call(rt.prototype),rt.prototype.clone=function(){return new rt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},rt.error=function(){var t=new rt(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var nt=[301,302,303,307,308];rt.redirect=function(t,e){if(-1===nt.indexOf(e))throw new RangeError("Invalid status code");return new rt(null,{status:e,headers:{location:t}})};var it=U.DOMException;try{new it}catch(t){(it=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),it.prototype.constructor=it}function ot(t,e){return new Promise((function(r,n){var i=new tt(t,e);if(i.signal&&i.signal.aborted)return n(new it("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,n={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new Y,
95
+ // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
96
+ // https://github.com/github/fetch/issues/748
97
+ // https://github.com/zloirock/core-js/issues/751
98
+ 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 r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{e.append(n,i)}catch(t){console.warn("Response "+t.message)}}})),e)};
99
+ // This check if specifically for when a user fetches a file locally from the file system
100
+ // Only if the status is out of a normal range
101
+ i.url.startsWith("file://")&&(o.status<200||o.status>599)?n.status=200:n.status=o.status,n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){r(new rt(s,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){n(new it("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&U.location.href?U.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(G?o.responseType="blob":k&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof Y||U.Headers&&e.headers instanceof U.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(V(t)),o.setRequestHeader(t,X(e.headers[t]))})),i.headers.forEach((function(t,e){-1===a.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
102
+ // DONE (success or failure)
103
+ 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}ot.polyfill=!0,U.fetch||(U.fetch=ot,U.Headers=Y,U.Request=tt,U.Response=rt),
104
+ // the whatwg-fetch polyfill installs the fetch() function
105
+ // on the global object (window or self)
106
+ // Return that as the export for use in Webpack, Browserify etc.
107
+ self.fetch.bind(self);
108
+ /******************************************************************************
109
+ Copyright (c) Microsoft Corporation.
110
+
111
+ Permission to use, copy, modify, and/or distribute this software for any
112
+ purpose with or without fee is hereby granted.
113
+
114
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
115
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
116
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
117
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
118
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
119
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
120
+ PERFORMANCE OF THIS SOFTWARE.
121
+ ***************************************************************************** */
122
+ /* global Reflect, Promise, SuppressedError, Symbol */
123
+ var st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},st(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 r(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ct(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function ht(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function lt(t){return"function"==typeof t}function ft(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var pt=ft((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function mt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var dt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=ct(o),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 o.remove(this);var c=this.initialTeardown;if(lt(c))try{c()}catch(t){i=t instanceof pt?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var h=ct(u),l=h.next();!l.done;l=h.next()){var f=l.value;try{gt(f)}catch(t){i=null!=i?i:[],t instanceof pt?i=ht(ht([],ut(i)),ut(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}if(i)throw new pt(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&mt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),bt=dt.EMPTY;function yt(t){return t instanceof dt||t&&"closed"in t&&lt(t.remove)&&lt(t.add)&&lt(t.unsubscribe)}function gt(t){lt(t)?t():t.unsubscribe()}var vt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Et={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Et.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,ht([t,e],ut(r))):setTimeout.apply(void 0,ht([t,e],ut(r)))},clearTimeout:function(t){var e=Et.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function _t(){}var Bt=null;function Tt(t){if(vt.useDeprecatedSynchronousErrorHandling){var e=!Bt;if(e&&(Bt={errorThrown:!1,error:null}),t(),e){var r=Bt,n=r.errorThrown,i=r.error;if(Bt=null,n)throw i}}else t()}var wt=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,yt(e)&&e.add(r)):r.destination=Lt,r}return at(e,t),e.create=function(t,e,r){return new St(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(dt),At=Function.prototype.bind;function Ht(t,e){return At.call(t,e)}var Pt=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Ot(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Ot(t)}else Ot(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Ot(t)}},t}(),St=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;lt(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&vt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&Ht(e.next,o),error:e.error&&Ht(e.error,o),complete:e.complete&&Ht(e.complete,o)}):i=e;return s.destination=new Pt(i),s}return at(e,t),e}(wt);function Ot(t){var e;e=t,Et.setTimeout((function(){throw e}))}var Lt={closed:!0,next:_t,error:function(t){throw t},complete:_t},Ct="function"==typeof Symbol&&Symbol.observable||"@@observable";function Nt(t){return t}var It=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof wt||function(t){return t&&lt(t.next)&&lt(t.error)&&lt(t.complete)}(n)&&yt(n)?t:new St(t,e,r);return Tt((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=Rt(e))((function(e,n){var i=new St({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Ct]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?Nt:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Rt(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function Rt(t){var e;return null!==(e=null!=t?t:vt.Promise)&&void 0!==e?e:Promise}var Mt=ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ut=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return at(e,t),e.prototype.lift=function(t){var e=new Dt(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Mt},e.prototype.next=function(t){var e=this;Tt((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=ct(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Tt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Tt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?bt:(this.currentObservers=null,o.push(t),new dt((function(){e.currentObservers=null,mt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new It;return t.source=this,t},e.create=function(t,e){return new Dt(t,e)},e}(It),Dt=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return at(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.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)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:bt},e}(Ut),xt={now:function(){return(xt.delegate||Date).now()},delegate:void 0},Gt=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=xt);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return at(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}},e}(Ut);let Ft=[],kt={};
124
+ /**
125
+ * @name topic
126
+ * @description A small wrapper over the rxjs to offer the topic method on top of it
127
+ * @param event [String] Event name
128
+ * @param step [String] How many values to be buffed for new subscribers - default 0
129
+ * @returns ReplaySubject
130
+ */
131
+ const $t=[];
132
+ /**
133
+ * Create a `Writable` store that allows both updating and reading by subscription.
134
+ * @param {*=}value initial value
135
+ * @param {StartStopNotifier=} start
136
+ */
137
+ function jt(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
138
+ const t=!$t.length;for(const t of i)t[1](),$t.push(t,e);if(t){for(let t=0;t<$t.length;t+=2)$t[t][0]($t[t+1]);$t.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const c=[o,a];return i.add(c),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(c),0===i.size&&n&&(n(),n=null)}}}}function Vt(e,r,o){const a=!Array.isArray(e),c=a?[e]:e,u=r.length<2;return h=e=>{let o=!1;const h=[];let l=0,f=t;const p=()=>{if(l)return;f();const n=r(a?h[0]:h,e);u?e(n):f=i(n)?n:t},m=c.map(((t,e)=>s(t,(t=>{h[e]=t,l&=~(1<<e),o&&p()}),(()=>{l|=1<<e}))));return o=!0,p(),function(){n(m),f(),
139
+ // We need to set this to false because callbacks can still happen despite having unsubscribed:
140
+ // Callbacks might already be placed in the queue which doesn't know it should no longer
141
+ // invoke this derived store.
142
+ o=!1}},{subscribe:jt(o,h).subscribe};
143
+ /**
144
+ * Creates a `Readable` store that allows reading by subscription.
145
+ * @param value initial value
146
+ * @param {StartStopNotifier} [start]
147
+ */
148
+ var h}var Xt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===zt}(t)}
149
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
150
+ (t)};var zt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Yt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Jt((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Kt(t,e,r){return t.concat(e).map((function(t){return Yt(t,r)}))}function Wt(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Zt(t,e){try{return e in t}catch(t){return!1}}
151
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
152
+ function qt(t,e,r){var n={};return r.isMergeableObject(t)&&Wt(t).forEach((function(e){n[e]=Yt(t[e],r)})),Wt(e).forEach((function(i){(function(t,e){return Zt(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
153
+ })(t,i)||(Zt(t,i)&&r.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Jt;var r=e.customMerge(t);return"function"==typeof r?r:Jt}(i,r)(t[i],e[i],r):n[i]=Yt(e[i],r))})),n}function Jt(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Kt,r.isMergeableObject=r.isMergeableObject||Xt,
154
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
155
+ // implementations can use it. The caller may not replace it.
156
+ r.cloneUnlessOtherwiseSpecified=Yt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):qt(t,e,r):Yt(e,r)}Jt.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Jt(t,r,e)}),{})};var Qt=Jt,te=function(t,e){return te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},te(t,e)};function ee(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}te(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var re,ne,ie,oe=function(){return oe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},oe.apply(this,arguments)};function se(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}
157
+ /**
158
+ * Type Guards
159
+ */
160
+ function ae(t){return t.type===ne.literal}function ce(t){return t.type===ne.argument}function ue(t){return t.type===ne.number}function he(t){return t.type===ne.date}function le(t){return t.type===ne.time}function fe(t){return t.type===ne.select}function pe(t){return t.type===ne.plural}function me(t){return t.type===ne.pound}function de(t){return t.type===ne.tag}function be(t){return!(!t||"object"!=typeof t||t.type!==ie.number)}function ye(t){return!(!t||"object"!=typeof t||t.type!==ie.dateTime)}
161
+ // @generated from regex-gen.ts
162
+ "function"==typeof SuppressedError&&SuppressedError,function(t){
163
+ /** Argument is unclosed (e.g. `{0`) */
164
+ t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
165
+ /** Argument is empty (e.g. `{}`). */
166
+ t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",
167
+ /** Argument is malformed (e.g. `{foo!}``) */
168
+ t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",
169
+ /** Expect an argument type (e.g. `{foo,}`) */
170
+ t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",
171
+ /** Unsupported argument type (e.g. `{foo,foo}`) */
172
+ t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",
173
+ /** Expect an argument style (e.g. `{foo, number, }`) */
174
+ t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",
175
+ /** The number skeleton is invalid. */
176
+ t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",
177
+ /** The date time skeleton is invalid. */
178
+ t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",
179
+ /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */
180
+ t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",
181
+ /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */
182
+ t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",
183
+ /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */
184
+ t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",
185
+ /** Missing select argument options (e.g. `{foo, select}`) */
186
+ t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",
187
+ /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */
188
+ t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",
189
+ /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */
190
+ t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",
191
+ /** Expecting a selector in `select` argument (e.g `{foo, select}`) */
192
+ t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",
193
+ /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */
194
+ t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",
195
+ /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */
196
+ t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",
197
+ /**
198
+ * Expecting a message fragment after the `plural` or `selectordinal` selector
199
+ * (e.g. `{foo, plural, one}`)
200
+ */
201
+ t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",
202
+ /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */
203
+ t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",
204
+ /**
205
+ * Duplicate selectors in `plural` or `selectordinal` argument.
206
+ * (e.g. {foo, plural, one {#} one {#}})
207
+ */
208
+ t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",
209
+ /** Duplicate selectors in `select` argument.
210
+ * (e.g. {foo, select, apple {apple} apple {apple}})
211
+ */
212
+ t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",
213
+ /** Plural or select argument option must have `other` clause. */
214
+ t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",
215
+ /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */
216
+ t[t.INVALID_TAG=23]="INVALID_TAG",
217
+ /** The tag name is invalid. (e.g. `<123>foo</123>`) */
218
+ t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",
219
+ /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */
220
+ t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",
221
+ /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */
222
+ t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(re||(re={})),function(t){
223
+ /**
224
+ * Raw text
225
+ */
226
+ t[t.literal=0]="literal",
227
+ /**
228
+ * Variable w/o any format, e.g `var` in `this is a {var}`
229
+ */
230
+ t[t.argument=1]="argument",
231
+ /**
232
+ * Variable w/ number format
233
+ */
234
+ t[t.number=2]="number",
235
+ /**
236
+ * Variable w/ date format
237
+ */
238
+ t[t.date=3]="date",
239
+ /**
240
+ * Variable w/ time format
241
+ */
242
+ t[t.time=4]="time",
243
+ /**
244
+ * Variable w/ select format
245
+ */
246
+ t[t.select=5]="select",
247
+ /**
248
+ * Variable w/ plural format
249
+ */
250
+ t[t.plural=6]="plural",
251
+ /**
252
+ * Only possible within plural argument.
253
+ * This is the `#` symbol that will be substituted with the count.
254
+ */
255
+ t[t.pound=7]="pound",
256
+ /**
257
+ * XML-like tag
258
+ */
259
+ t[t.tag=8]="tag"}(ne||(ne={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(ie||(ie={}));var ge=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ve=/(?:[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;
260
+ /**
261
+ * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
262
+ * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
263
+ * with some tweaks
264
+ */
265
+ /**
266
+ * Parse Date time skeleton into Intl.DateTimeFormatOptions
267
+ * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
268
+ * @public
269
+ * @param skeleton skeleton string
270
+ */
271
+ function Ee(t){var e={};return t.replace(ve,(function(t){var r=t.length;switch(t[0]){
272
+ // Era
273
+ case"G":e.era=4===r?"long":5===r?"narrow":"short";break;
274
+ // Year
275
+ case"y":e.year=2===r?"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");
276
+ // Quarter
277
+ case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");
278
+ // Month
279
+ case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;
280
+ // Week
281
+ case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
282
+ // Weekday
283
+ case"E":e.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;
284
+ // Period
285
+ case"a":// AM, PM
286
+ e.hour12=!0;break;case"b":// am, pm, noon, midnight
287
+ case"B":// flexible day periods
288
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
289
+ // Hour
290
+ case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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");
291
+ // Minute
292
+ case"m":e.minute=["numeric","2-digit"][r-1];break;
293
+ // Second
294
+ case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
295
+ // Zone
296
+ case"z":// 1..3, 4: specific non-location format
297
+ e.timeZoneName=r<4?"short":"long";break;case"Z":// 1..3, 4, 5: The ISO8601 varios formats
298
+ case"O":// 1, 4: miliseconds in day short, long
299
+ case"v":// 1, 4: generic non-location format
300
+ case"V":// 1, 2, 3, 4: time zone ID or city
301
+ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
302
+ case"x":// 1, 2, 3, 4: The ISO8601 varios formats
303
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
304
+ // @generated from regex-gen.ts
305
+ var _e=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Be=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,we=/(\*)(0+)|(#+)(0+)|(0+)/g,Ae=/^(0+)$/;function He(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Te,(function(t,r,n){
306
+ // @@@ case
307
+ return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function Pe(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 Se(t){
308
+ // Engineering
309
+ 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 r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ae.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Oe(t){var e=Pe(t);return e||{}}
310
+ /**
311
+ * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
312
+ */function Le(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=oe(oe(oe({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return oe(oe({},t),Oe(e))}),{}));continue;case"engineering":e=oe(oe(oe({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return oe(oe({},t),Oe(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
313
+ // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
314
+ case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;
315
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
316
+ case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(we,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
317
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
318
+ if(Ae.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(Be.test(i.stem)){
319
+ // Precision
320
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
321
+ // precision-integer case
322
+ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Be,(function(t,r,n,i,o,s){
323
+ // .000* case (before ICU67 it was .000+)
324
+ return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];
325
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
326
+ "w"===o?e=oe(oe({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=oe(oe({},e),He(o)))}
327
+ // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
328
+ else if(Te.test(i.stem))e=oe(oe({},e),He(i.stem));else{var s=Pe(i.stem);s&&(e=oe(oe({},e),s));var a=Se(i.stem);a&&(e=oe(oe({},e),a))}}return e}
329
+ // @generated from time-data-gen.ts
330
+ // prettier-ignore
331
+ var Ce,Ne={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
332
+ /**
333
+ * Returns the best matching date time pattern if a date time skeleton
334
+ * pattern is provided with a locale. Follows the Unicode specification:
335
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns
336
+ * @param skeleton date time skeleton pattern that possibly includes j, J or C
337
+ * @param locale
338
+ */
339
+ /**
340
+ * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)
341
+ * of the given `locale` to the corresponding time pattern.
342
+ * @param locale
343
+ */
344
+ function Ie(t){var e=t.hourCycle;if(void 0===e&&
345
+ // @ts-ignore hourCycle(s) is not identified yet
346
+ t.hourCycles&&
347
+ // @ts-ignore
348
+ t.hourCycles.length&&(
349
+ // @ts-ignore
350
+ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
351
+ // TODO: Once hourCycle is fully supported remove the following with data generation
352
+ var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var Re=new RegExp("^".concat(ge.source,"*")),Me=new RegExp("".concat(ge.source,"*$"));function Ue(t,e){return{start:t,end:e}}
353
+ // #region Ponyfills
354
+ // Consolidate these variables up top for easier toggling during debugging
355
+ var De=!!String.prototype.startsWith,xe=!!String.fromCodePoint,Ge=!!Object.fromEntries,Fe=!!String.prototype.codePointAt,ke=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,je=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ve=!0;try{
356
+ /**
357
+ * legacy Edge or Xbox One browser
358
+ * Unicode flag support: supported
359
+ * Pattern_Syntax support: not supported
360
+ * See https://github.com/formatjs/formatjs/issues/2822
361
+ */
362
+ Ve="a"===(null===(Ce=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(t){Ve=!1}var Xe,ze=De?// Native
363
+ function(t,e,r){return t.startsWith(e,r)}:// For IE11
364
+ function(t,e,r){return t.slice(r,r+e.length)===e},Ye=xe?String.fromCodePoint:// IE11
365
+ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Ke=
366
+ // native
367
+ Ge?Object.fromEntries:// Ponyfill
368
+ function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},We=Fe?// Native
369
+ function(t,e){return t.codePointAt(e)}:// IE 11
370
+ function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Ze=ke?// Native
371
+ function(t){return t.trimStart()}:// Ponyfill
372
+ function(t){return t.replace(Re,"")},qe=$e?// Native
373
+ function(t){return t.trimEnd()}:// Ponyfill
374
+ function(t){return t.replace(Me,"")};
375
+ // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
376
+ function Je(t,e){return new RegExp(t,e)}
377
+ // #endregion
378
+ if(Ve){
379
+ // Native
380
+ var Qe=Je("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xe=function(t,e){var r;return Qe.lastIndex=e,null!==(r=Qe.exec(t)[1])&&void 0!==r?r:""}}else
381
+ // IE11
382
+ Xe=function(t,e){for(var r=[];;){var n=We(t,e);if(void 0===n||rr(n)||nr(n))break;r.push(n),e+=n>=65536?2:1}return Ye.apply(void 0,r)};var tr=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(re.UNMATCHED_CLOSING_TAG,Ue(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&er(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:ne.pound,location:Ue(s,this.clonePosition())})}}}return{val:n,err:null}},
383
+ /**
384
+ * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
385
+ * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
386
+ * are accepted:
387
+ *
388
+ * ```
389
+ * tag ::= "<" tagName (whitespace)* "/>" | "<" tagName (whitespace)* ">" message "</" tagName (whitespace)* ">"
390
+ * tagName ::= [a-z] (PENChar)*
391
+ * PENChar ::=
392
+ * "-" | "." | [0-9] | "_" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |
393
+ * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |
394
+ * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
395
+ * ```
396
+ *
397
+ * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
398
+ * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do
399
+ * since other tag-based engines like React allow it
400
+ */
401
+ t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();// `<`
402
+ var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
403
+ // Self closing tag
404
+ return{val:{type:ne.literal,value:"<".concat(n,"/>"),location:Ue(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();
405
+ // Expecting a close tag
406
+ if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(re.INVALID_TAG,Ue(s,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(re.UNMATCHED_CLOSING_TAG,Ue(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ne.tag,value:n,children:o,location:Ue(r,this.clonePosition())},err:null}:this.error(re.INVALID_TAG,Ue(s,this.clonePosition())))}return this.error(re.UNCLOSED_TAG,Ue(r,this.clonePosition()))}return this.error(re.INVALID_TAG,Ue(r,this.clonePosition()))},
407
+ /**
408
+ * This method assumes that the caller has peeked ahead for the first tag character.
409
+ */
410
+ t.prototype.parseTagName=function(){var t,e=this.offset();// the first tag name character
411
+ for(this.bump();!this.isEOF()&&(45/* '-' */===(t=this.char())||46/* '.' */===t||t>=48&&t<=57/* 0..9 */||95/* '_' */===t||t>=97&&t<=122/** a..z */||t>=65&&t<=90/* A..Z */||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var o=this.tryParseUnquoted(t,e);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var a=Ue(r,this.clonePosition());return{val:{type:ne.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t;
412
+ /** See `parseTag` function docs. */},
413
+ /**
414
+ * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
415
+ * a character that requires quoting (that is, "only where needed"), and works the same in
416
+ * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.
417
+ */
418
+ t.prototype.tryParseQuote=function(t){if(this.isEOF()||39/* `'` */!==this.char())return null;
419
+ // Parse escaped char following the apostrophe, or early return if there is no escaped char.
420
+ // Check if is valid escaped character
421
+ switch(this.peek()){case 39/* `'` */:
422
+ // double quote, should return as a single quote.
423
+ return this.bump(),this.bump(),"'";
424
+ // '{', '<', '>', '}'
425
+ case 123:case 60:case 62:case 125:break;case 35:// '#'
426
+ if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();// apostrophe
427
+ var e=[this.char()];// escaped char
428
+ // read chars until the optional closing apostrophe is found
429
+ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'` */!==this.peek()){
430
+ // Optional closing apostrophe.
431
+ this.bump();break}e.push(39),
432
+ // Bump one more time because we need to skip 2 characters.
433
+ this.bump()}else e.push(r);this.bump()}return Ye.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===e||"selectordinal"===e)||125/* `}` */===r&&t>0?null:(this.bump(),Ye(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
434
+ this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(re.EMPTY_ARGUMENT,Ue(r,this.clonePosition()));
435
+ // argument name
436
+ var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(re.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition()));switch(this.char()){
437
+ // Simple argument: `{name}`
438
+ case 125/* `}` */:// `}`
439
+ return this.bump(),{val:{type:ne.argument,
440
+ // value does not include the opening and closing braces.
441
+ value:n,location:Ue(r,this.clonePosition())},err:null};
442
+ // Argument with options: `{name, format, ...}`
443
+ case 44/* `,` */:return this.bump(),// `,`
444
+ this.bumpSpace(),this.isEOF()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(re.MALFORMED_ARGUMENT,Ue(r,this.clonePosition()))}},
445
+ /**
446
+ * Advance the parser until the end of the identifier, if it is currently on
447
+ * an identifier character. Return an empty string otherwise.
448
+ */
449
+ t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Ue(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
450
+ // Parse this range:
451
+ // {name, type, style}
452
+ // ^---^
453
+ switch(s){case"":
454
+ // Expecting a style string number, date, time, plural, selectordinal, or select.
455
+ return this.error(re.EXPECT_ARGUMENT_TYPE,Ue(o,a));case"number":case"date":case"time":
456
+ // Parse this range:
457
+ // {name, number, style}
458
+ // ^-------^
459
+ this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=qe(y.val)).length)return this.error(re.EXPECT_ARGUMENT_STYLE,Ue(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:Ue(u,this.clonePosition())}}if((g=this.tryParseArgumentClose(n)).err)return g;var h=Ue(n,this.clonePosition());
460
+ // Extract style or skeleton
461
+ if(c&&ze(null==c?void 0:c.style,"::",0)){
462
+ // Skeleton starts with `::`.
463
+ var l=Ze(c.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(l,c.styleLocation)).err?y:{val:{type:ne.number,value:r,location:h,style:y.val},err:null};if(0===l.length)return this.error(re.EXPECT_DATE_TIME_SKELETON,h);var f=l;
464
+ // Get "best match" pattern only if locale is passed, if not, let it
465
+ // pass as-is where `parseDateTimeSkeleton()` will throw an error
466
+ // for unsupported patterns.
467
+ this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),c=Ie(e);for("H"!=c&&"k"!=c||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(l,this.locale));var p={type:ie.dateTime,pattern:f,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(f):{}};return{val:{type:"date"===s?ne.date:ne.time,value:r,location:h,style:p},err:null}}
468
+ // Regular style or no style.
469
+ return{val:{type:"number"===s?ne.number:"date"===s?ne.date:ne.time,value:r,location:h,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
470
+ // Parse this range:
471
+ // {name, plural, options}
472
+ // ^---------^
473
+ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(re.EXPECT_SELECT_ARGUMENT_OPTIONS,Ue(m,oe({},m)));this.bumpSpace();
474
+ // Parse offset:
475
+ // {name, plural, offset:1, options}
476
+ // ^-----^
477
+ // or the first option:
478
+ // {name, plural, one {...} other {...}}
479
+ // ^--^
480
+ var d=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ue(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,re.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
481
+ // Parse another identifier for option parsing
482
+ this.bumpSpace(),d=this.parseIdentifierIfPossible(),b=y.val}var g,v=this.tryParsePluralOrSelectOptions(t,s,e,d);if(v.err)return v;if((g=this.tryParseArgumentClose(n)).err)return g;var E=Ue(n,this.clonePosition());return"select"===s?{val:{type:ne.select,value:r,options:Ke(v.val),location:E},err:null}:{val:{type:ne.plural,value:r,options:Ke(v.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:E},err:null};default:return this.error(re.INVALID_ARGUMENT_TYPE,Ue(o,a))}},t.prototype.tryParseArgumentClose=function(t){
483
+ // Parse: {value, number, ::currency/GBP }
484
+ return this.isEOF()||125/* `}` */!==this.char()?this.error(re.EXPECT_ARGUMENT_CLOSING_BRACE,Ue(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
485
+ /**
486
+ * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659
487
+ */
488
+ t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39/* `'` */:
489
+ // Treat apostrophe as quoting but include it in the style part.
490
+ // Find the end of the quoted literal text.
491
+ this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(re.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ue(r,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
492
+ // Parse the skeleton
493
+ for(var e=[],r=0,n=t.split(_e).filter((function(t){return t.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,c=s;a<c.length;a++)if(0===c[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(re.INVALID_NUMBER_SKELETON,e)}return{val:{type:ie.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Le(r):{}},err:null}},
494
+ /**
495
+ * @param nesting_level The current nesting level of messages.
496
+ * This can be positive when parsing message fragment in select or plural argument options.
497
+ * @param parent_arg_type The parent argument's type.
498
+ * @param parsed_first_identifier If provided, this is the first identifier-like selector of
499
+ * the argument. It is a by-product of a previous parsing attempt.
500
+ * @param expecting_close_tag If true, this message is directly or indirectly nested inside
501
+ * between a pair of opening and closing tags. The nested message will not parse beyond
502
+ * the closing tag boundary.
503
+ */
504
+ t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){
505
+ // Parse:
506
+ // one {one apple}
507
+ // ^--^
508
+ for(var i,o=!1,s=[],a=new Set,c=n.value,u=n.location;;){if(0===c.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;
509
+ // Try parse `={number}` selector
510
+ var l=this.tryParseDecimalInteger(re.EXPECT_PLURAL_ARGUMENT_SELECTOR,re.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;u=Ue(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}
511
+ // Duplicate selector clauses
512
+ if(a.has(c))return this.error("select"===e?re.DUPLICATE_SELECT_ARGUMENT_SELECTOR:re.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(o=!0),
513
+ // Parse:
514
+ // one {one apple}
515
+ // ^----------^
516
+ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?re.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:re.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ue(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;s.push([c,{value:p.val,location:Ue(f,this.clonePosition())}]),
517
+ // Keep track of the existing selectors
518
+ a.add(c),
519
+ // Prep next selector clause.
520
+ this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===e?re.EXPECT_SELECT_ARGUMENT_SELECTOR:re.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(re.MISSING_OTHER_CLAUSE,Ue(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Ue(n,this.clonePosition());return i?je(o*=r)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){
521
+ // This is much faster than `Object.assign` or spread.
522
+ return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
523
+ /**
524
+ * Return the code point at the current position of the parser.
525
+ * Throws if the index is out of bound.
526
+ */
527
+ t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=We(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},
528
+ /** Bump the parser to the next UTF-16 code unit. */
529
+ t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10/* '\n' */===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
530
+ // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
531
+ this.position.offset+=t<65536?1:2)}},
532
+ /**
533
+ * If the substring starting at the current position of the parser has
534
+ * the given prefix, then bump the parser to the character immediately
535
+ * following the prefix and return true. Otherwise, don't bump the parser
536
+ * and return false.
537
+ */
538
+ t.prototype.bumpIf=function(t){if(ze(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},
539
+ /**
540
+ * Bump the parser until the pattern character is found and return `true`.
541
+ * Otherwise bump to the end of the file and return `false`.
542
+ */
543
+ t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},
544
+ /**
545
+ * Bump the parser to the target offset.
546
+ * If target offset is beyond the end of the input, bump the parser to the end of the input.
547
+ */
548
+ t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},
549
+ /** advance the parser through all whitespace to the next non-whitespace code unit. */
550
+ t.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},
551
+ /**
552
+ * Peek at the *next* Unicode codepoint in the input without advancing the parser.
553
+ * If the input has been exhausted, then this returns null.
554
+ */
555
+ t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();
556
+ /**
557
+ * This check if codepoint is alphabet (lower & uppercase)
558
+ * @param codepoint
559
+ * @returns
560
+ */function er(t){return t>=97&&t<=122||t>=65&&t<=90}
561
+ /**
562
+ * Code point equivalent of regex `\p{White_Space}`.
563
+ * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
564
+ */
565
+ function rr(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}
566
+ /**
567
+ * Code point equivalent of regex `\p{Pattern_Syntax}`.
568
+ * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
569
+ */function nr(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function ir(t){t.forEach((function(t){if(delete t.location,fe(t)||pe(t))for(var e in t.options)delete t.options[e].location,ir(t.options[e].value);else ue(t)&&be(t.style)||(he(t)||le(t))&&ye(t.style)?delete t.style.location:de(t)&&ir(t.children)}))}function or(t,e){void 0===e&&(e={}),e=oe({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new tr(t,e).parse();if(r.err){var n=SyntaxError(re[r.err.kind]);
570
+ // @ts-expect-error Assign to error object
571
+ throw n.location=r.err.location,
572
+ // @ts-expect-error Assign to error object
573
+ n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||ir(r.val),r.val}
574
+
575
+ // Main
576
+
577
+ function sr(t,e){var r=e&&e.cache?e.cache:mr,n=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:hr)(t,{cache:r,serializer:n})}
578
+
579
+ // Strategy
580
+
581
+ function ar(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=e.get(o);return void 0===s&&(s=t.call(this,n),e.set(o,s)),s}function cr(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function ur(t,e,r,n,i){return r.bind(e,t,n,i)}function hr(t,e){return ur(t,this,1===t.length?ar:cr,e.cache.create(),e.serializer)}
582
+ // Serializer
583
+ var lr=function(){return JSON.stringify(arguments)};
584
+
585
+ // Cache
586
+
587
+ function fr(){this.cache=Object.create(null)}fr.prototype.get=function(t){return this.cache[t]},fr.prototype.set=function(t,e){this.cache[t]=e};var pr,mr={create:function(){
588
+ // @ts-ignore
589
+ return new fr}},dr={variadic:function(t,e){return ur(t,this,cr,e.cache.create(),e.serializer)},monadic:function(t,e){return ur(t,this,ar,e.cache.create(),e.serializer)}};!function(t){
590
+ // When we have a placeholder but no value to format
591
+ t.MISSING_VALUE="MISSING_VALUE",
592
+ // When value supplied is invalid
593
+ t.INVALID_VALUE="INVALID_VALUE",
594
+ // When we need specific Intl API but it's not available
595
+ t.MISSING_INTL_API="MISSING_INTL_API"}(pr||(pr={}));var br,yr=/** @class */function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return ee(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),gr=/** @class */function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),pr.INVALID_VALUE,i)||this}return ee(e,t),e}(yr),vr=/** @class */function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),pr.INVALID_VALUE,n)||this}return ee(e,t),e}(yr),Er=/** @class */function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),pr.MISSING_VALUE,r)||this}return ee(e,t),e}(yr);function _r(t){return"function"==typeof t}
596
+ // TODO(skeleton): add skeleton support
597
+ function Br(t,e,r,n,i,o,
598
+ // For debugging
599
+ s){
600
+ // Hot path for straight simple msg translations
601
+ if(1===t.length&&ae(t[0]))return[{type:br.literal,value:t[0].value}];for(var a=[],c=0,u=t;c<u.length;c++){var h=u[c];
602
+ // Exit early for string parts.
603
+ if(ae(h))a.push({type:br.literal,value:h.value});else
604
+ // TODO: should this part be literal type?
605
+ // Replace `#` in plural rules with the actual numeric value.
606
+ if(me(h))"number"==typeof o&&a.push({type:br.literal,value:r.getNumberFormat(e).format(o)});else{var l=h.value;
607
+ // Enforce that all required values are provided by the caller.
608
+ if(!i||!(l in i))throw new Er(l,s);var f=i[l];if(ce(h))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?br.literal:br.object,value:f});else
609
+ // Recursively format plural and select parts' option — which can be a
610
+ // nested pattern structure. The choosing of the option to use is
611
+ // abstracted-by and delegated-to the part helper object.
612
+ if(he(h)){var p="string"==typeof h.style?n.date[h.style]:ye(h.style)?h.style.parsedOptions:void 0;a.push({type:br.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(le(h)){p="string"==typeof h.style?n.time[h.style]:ye(h.style)?h.style.parsedOptions:n.time.medium;a.push({type:br.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(ue(h)){(p="string"==typeof h.style?n.number[h.style]:be(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:br.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(de(h)){var m=h.children,d=h.value,b=i[d];if(!_r(b))throw new vr(d,"function",s);var y=b(Br(m,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(t){return{type:"string"==typeof t?br.literal:br.object,value:t}})))}if(fe(h)){if(!(g=h.options[f]||h.options.other))throw new gr(h.value,f,Object.keys(h.options),s);a.push.apply(a,Br(g.value,e,r,n,i))}else if(pe(h)){var g;if(!(g=h.options["=".concat(f)])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pr.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:h.pluralType}).select(f-(h.offset||0));g=h.options[v]||h.options.other}if(!g)throw new gr(h.value,f,Object.keys(h.options),s);a.push.apply(a,Br(g.value,e,r,n,i,f-(h.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===br.literal&&e.type===br.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
613
+ /*
614
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
615
+ Copyrights licensed under the New BSD License.
616
+ See the accompanying LICENSE file for terms.
617
+ */
618
+ // -- MessageFormat --------------------------------------------------------
619
+ function Tr(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?oe(oe(oe({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=oe(oe({},i[e]),o[e]||{}),t}),{})):i),r}),oe({},t)):t}function wr(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(br||(br={}));var Ar=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
620
+ // Hot path for straight simple msg translations
621
+ if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===br.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return Br(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
622
+ // Defined first because it's used to build the format pattern.
623
+ this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
624
+ // Parse string messages into an AST.
625
+ this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
626
+ // Creates a new object with the specified `formats` merged with the default
627
+ // formats.
628
+ this.formats=Tr(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:sr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,se([void 0],e,!1)))}),{cache:wr(o.number),strategy:dr.variadic}),getDateTimeFormat:sr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,se([void 0],e,!1)))}),{cache:wr(o.dateTime),strategy:dr.variadic}),getPluralRules:sr((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,se([void 0],e,!1)))}),{cache:wr(o.pluralRules),strategy:dr.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=or,
629
+ // Default format options used as the prototype of the `formats` provided to the
630
+ // constructor. These are used when constructing the internal Intl.NumberFormat
631
+ // and Intl.DateTimeFormat instances.
632
+ t.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"}}},t}();const Hr={},Pr=(t,e,r)=>r?(e in Hr||(Hr[e]={}),t in Hr[e]||(Hr[e][t]=r),r):r,Sr=(t,e)=>{if(null==e)return;if(e in Hr&&t in Hr[e])return Hr[e][t];const r=Qr(e);for(let n=0;n<r.length;n++){const i=Nr(r[n],t);if(i)return Pr(t,e,i)}};let Or;const Lr=jt({});function Cr(t){return t in Or}function Nr(t,e){if(!Cr(t))return null;const r=function(t){return Or[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ir(t,...e){delete Hr[t],Lr.update((r=>(r[t]=Qt.all([r[t]||{},...e]),r)))}Vt([Lr],(([t])=>Object.keys(t))),Lr.subscribe((t=>Or=t));const Rr={};function Mr(t){return Rr[t]}function Ur(t){return null!=t&&Qr(t).some((t=>{var e;return null==(e=Mr(t))?void 0:e.size}))}function Dr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Rr[t].delete(e),0===Rr[t].size&&delete Rr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ir(t,...e)))}const xr={};function Gr(t){if(!Ur(t))return t in xr?xr[t]:Promise.resolve();const e=function(t){return Qr(t).map((t=>{const e=Mr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return xr[t]=Promise.all(e.map((([t,e])=>Dr(t,e)))).then((()=>{if(Ur(t))return Gr(t);delete xr[t]})),xr[t]}const Fr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function kr(){return Fr}const $r=jt(!1);var jr=Object.defineProperty,Vr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Wr=(t,e,r)=>e in t?jr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Zr;const qr=jt(null);function Jr(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Qr(t,e=kr().fallbackLocale){const r=Jr(t);return e?[...new Set([...r,...Jr(e)])]:r}function tn(){return null!=Zr?Zr:void 0}qr.subscribe((t=>{Zr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const en=(rn=((t,e)=>{for(var r in e||(e={}))Yr.call(e,r)&&Wr(t,r,e[r]);if(zr)for(var r of zr(e))Kr.call(e,r)&&Wr(t,r,e[r]);return t})({},qr),Vr(rn,Xr({set:t=>{if(t&&function(t){if(null==t)return;const e=Qr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Cr(r))return r}}(t)&&Ur(t)){const{loadingDelay:e}=kr();let r;return"undefined"!=typeof window&&null!=tn()&&e?r=window.setTimeout((()=>$r.set(!0)),e):$r.set(!0),Gr(t).then((()=>{qr.set(t)})).finally((()=>{clearTimeout(r),$r.set(!1)}))}return qr.set(t)}})));var rn;const nn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var on=Object.defineProperty,sn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,un=(t,e,r)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hn=(t,e)=>{for(var r in e||(e={}))an.call(e,r)&&un(t,r,e[r]);if(sn)for(var r of sn(e))cn.call(e,r)&&un(t,r,e[r]);return t},ln=(t,e)=>{var r={};for(var n in t)an.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&sn)for(var n of sn(t))e.indexOf(n)<0&&cn.call(t,n)&&(r[n]=t[n]);return r};const fn=(t,e)=>{const{formats:r}=kr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},pn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=fn("number",n)),new Intl.NumberFormat(r,i)})),mn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=fn("date",n):0===Object.keys(i).length&&(i=fn("date","short")),new Intl.DateTimeFormat(r,i)})),dn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=fn("time",n):0===Object.keys(i).length&&(i=fn("time","short")),new Intl.DateTimeFormat(r,i)})),bn=nn((
633
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
634
+ (t,e=tn())=>new Ar(t,e,kr().formats,{ignoreTag:kr().ignoreTag}))),yn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:c=tn(),default:u}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Sr(t,c);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!=(o=null!=(i=null==(n=(r=kr()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return h;let l=h;try{l=bn(h,c).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},gn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return dn(hn({locale:r},n))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return mn(hn({locale:r},n))})(e).format(t),En=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return pn(hn({locale:r},n))})(e).format(t),_n=(t,e=tn())=>Sr(t,e),Bn=Vt([en,Lr],(()=>yn));Vt([en],(()=>gn)),Vt([en],(()=>vn)),Vt([en],(()=>En)),Vt([en,Lr],(()=>_n)),window.emWidgets={topic:(t,e=0)=>{if(-1==Ft.indexOf(t)){let r=new Gt(e);kt[t]=r,Ft.push(t)}return kt[t]}};function Tn(t,e){Ir(t,e)}const wn={en:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"zh-hk":{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},fr:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},tr:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},ro:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},es:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},pt:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},hr:{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"pt-br":{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"es-mx":{title:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"}};
635
+ /* src/PlayerAccountBiometrics.svelte generated by Svelte v3.59.2 */function An(e){let r,n,i,o,s,y,g,v,E,_,B,T,w,A,H,P,S,O,L=/*$_*/e[2]("title")+"",C=/*$_*/e[2]("descriptionParagraph1")+"",N=/*$_*/e[2]("descriptionParagraph2")+"",I=/*biometricsenabled*/("true"===e[0]?/*$_*/e[2]("btnDisableBiometrics"):/*$_*/e[2]("btnEnableBiometrics"))+"",R=/*isMobile*/e[3]&&function(t){let e,r,n,i,o,s,y,g,v,E,_,B,T,w=/*$_*/t[2]("title")+"";return{c(){e=h("div"),r=l("svg"),n=l("defs"),i=l("style"),o=f(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=l("g"),y=l("g"),g=l("path"),v=p(),E=h("h2"),_=f(w),d(g,"class","aaa"),d(g,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d(g,"transform","translate(15 15) rotate(180)"),d(y,"transform","translate(20 158)"),d(s,"transform","translate(-20 -158)"),d(r,"xmlns","http://www.w3.org/2000/svg"),d(r,"width","15"),d(r,"height","15"),d(r,"viewBox","0 0 15 15"),d(E,"class","BiometricsTitleMobile"),d(E,"part","BiometricsTitleMobile"),d(e,"class","MenuReturnButton"),d(e,"part","MenuReturnButton")},m(u,h){c(u,e,h),a(e,r),a(r,n),a(n,i),a(i,o),a(r,s),a(s,y),a(y,g),a(e,v),a(e,E),a(E,_),B||(T=m(e,"click",/*click_handler*/t[10]),B=!0)},p(t,e){/*$_*/4&e&&w!==(w=/*$_*/t[2]("title")+"")&&b(_,w)},d(t){t&&u(e),B=!1,T()}}}(e);return{c(){r=h("div"),n=h("div"),R&&R.c(),i=p(),o=h("h2"),s=f(L),y=p(),g=h("div"),v=h("p"),E=f(C),_=p(),B=h("p"),T=f(N),w=p(),A=h("div"),H=h("button"),P=f(I),this.c=t,d(o,"class","BiometricsTitle "+(/*isMobile*/e[3]?"BiometricsTitleNone":"")),d(g,"class","BiometricsDescription "+(/*isMobile*/e[3]?"BiometricsDescriptionMobile":"")),d(H,"class","BiometricsToggle"),d(A,"class","BiometricsActionButtons "+(/*isMobile*/e[3]?"BiometricsActionButtonsMobile":"")),d(n,"class","BiometricsWrapper "+(/*isMobile*/e[3]?"BiometricsWrapperMobile":""))},m(t,u){c(t,r,u),a(r,n),R&&R.m(n,null),a(n,i),a(n,o),a(o,s),a(n,y),a(n,g),a(g,v),a(v,E),a(g,_),a(g,B),a(B,T),a(n,w),a(n,A),a(A,H),a(H,P),
636
+ /*div3_binding*/e[12](r),S||(O=m(H,"click",/*click_handler_1*/e[11]),S=!0)},p(t,[e]){/*isMobile*/t[3]&&R.p(t,e),/*$_*/4&e&&L!==(L=/*$_*/t[2]("title")+"")&&b(s,L),/*$_*/4&e&&C!==(C=/*$_*/t[2]("descriptionParagraph1")+"")&&b(E,C),/*$_*/4&e&&N!==(N=/*$_*/t[2]("descriptionParagraph2")+"")&&b(T,N),/*biometricsenabled, $_*/5&e&&I!==(I=/*biometricsenabled*/("true"===t[0]?/*$_*/t[2]("btnDisableBiometrics"):/*$_*/t[2]("btnEnableBiometrics"))+"")&&b(P,I)},i:t,o:t,d(t){t&&u(r),R&&R.d()
637
+ /*div3_binding*/,e[12](null),S=!1,O()}}}function Hn(t,e,r){let n;var i,o;i=Bn,o=t=>r(2,n=t),t.$$.on_destroy.push(s(i,o));let a,{biometricsenabled:c="false"}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:l=""}=e,{translationurl:f=""}=e,p="PC"!==(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(window.navigator.userAgent);Object.keys(wn).forEach((t=>{Tn(t,wn[t])}));const m=()=>{var t;t=u,en.set(t)},d=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:p},window.location.href)},b=()=>{"true"===c?r(0,c="false"):"false"===c&&r(0,c="true"),window.postMessage({type:"ToggleBiometrics",data:c})};return t.$$set=t=>{"biometricsenabled"in t&&r(0,c=t.biometricsenabled),"lang"in t&&r(6,u=t.lang),"clientstyling"in t&&r(7,h=t.clientstyling),"clientstylingurl"in t&&r(8,l=t.clientstylingurl),"translationurl"in t&&r(9,f=t.translationurl)},t.$$.update=()=>{/*lang*/64&t.$$.dirty&&u&&m(),/*clientstylingurl, customStylingContainer*/258&t.$$.dirty&&l&&a&&(()=>{let t=new URL(l),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*clientstyling, customStylingContainer*/130&t.$$.dirty&&h&&a&&(()=>{let t=document.createElement("style");t.innerHTML=h,a.appendChild(t)})(),/*translationurl*/512&t.$$.dirty&&f&&fetch(f).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Tn(e,t[e])}))})).catch((t=>{console.log(t)}))},[c,a,n,p,d,b,u,h,l,f,()=>d(),()=>b(),function(t){_[t?"unshift":"push"]((()=>{a=t,r(1,a)}))}]}class Pn extends M{constructor(t){super();const e=document.createElement("style");e.textContent=".BiometricsWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons .BiometricsToggle{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}",this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:y(this.attributes),customElement:!0},Hn,An,o,{biometricsenabled:0,lang:6,clientstyling:7,clientstylingurl:8,translationurl:9},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["biometricsenabled","lang","clientstyling","clientstylingurl","translationurl"]}get biometricsenabled(){return this.$$.ctx[0]}set biometricsenabled(t){this.$$set({biometricsenabled:t}),O()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),O()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),O()}}return!customElements.get("player-account-biometrics")&&customElements.define("player-account-biometrics",Pn),Pn}));
638
+ //# sourceMappingURL=player-account-biometrics.js.map