@everymatrix/player-account-biometrics 1.33.0 → 1.33.2
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.
|
@@ -69,9 +69,9 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
|
|
|
69
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
70
|
/* eslint-disable no-prototype-builtins */;var U="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
71
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
|
|
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 j=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],$=ArrayBuffer.isView||function(t){return t&&j.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
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
|
|
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 K(t){this.map={},t instanceof K?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 Y(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
75
|
/*
|
|
76
76
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
77
77
|
provide useful test harness features such as flush. However, on
|
|
@@ -85,22 +85,22 @@ function z(t){var e={next:function(){var e=t.shift();return{done:void 0===e,valu
|
|
|
85
85
|
// eslint-disable-next-line no-self-assign
|
|
86
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
87
|
// IE 10-11 can't handle a DataView body.
|
|
88
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(t)
|
|
88
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):k&&(ArrayBuffer.prototype.isPrototypeOf(t)||$(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=Y(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=Y(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=Y(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
89
|
// HTTP methods whose capitalization should be normalized
|
|
90
|
-
|
|
90
|
+
K.prototype.append=function(t,e){t=V(t),e=X(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},K.prototype.delete=function(t){delete this.map[V(t)]},K.prototype.get=function(t){return t=V(t),this.has(t)?this.map[t]:null},K.prototype.has=function(t){return this.map.hasOwnProperty(V(t))},K.prototype.set=function(t,e){this.map[V(t)]=X(e)},K.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},K.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),z(t)},K.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),z(t)},K.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),z(t)},x&&(K.prototype[Symbol.iterator]=K.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 K(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 K(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
91
|
// Search for a '_' parameter in the query string
|
|
92
92
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
93
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
|
|
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 K(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 K(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 K,
|
|
95
95
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
96
96
|
// https://github.com/github/fetch/issues/748
|
|
97
97
|
// https://github.com/zloirock/core-js/issues/751
|
|
98
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
99
|
// This check if specifically for when a user fetches a file locally from the file system
|
|
100
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
|
|
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 K||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
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=
|
|
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=K,U.Request=tt,U.Response=rt),
|
|
104
104
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
105
105
|
// on the global object (window or self)
|
|
106
106
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
@@ -128,18 +128,18 @@ var st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
128
128
|
* @param step [String] How many values to be buffed for new subscribers - default 0
|
|
129
129
|
* @returns ReplaySubject
|
|
130
130
|
*/
|
|
131
|
-
const
|
|
131
|
+
const jt=[];
|
|
132
132
|
/**
|
|
133
133
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
134
134
|
* @param {*=}value initial value
|
|
135
135
|
* @param {StartStopNotifier=} start
|
|
136
136
|
*/
|
|
137
|
-
function
|
|
138
|
-
const t
|
|
137
|
+
function $t(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=!jt.length;for(const t of i)t[1](),jt.push(t,e);if(t){for(let t=0;t<jt.length;t+=2)jt[t][0](jt[t+1]);jt.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
139
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
140
140
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
141
141
|
// invoke this derived store.
|
|
142
|
-
o=!1}},{subscribe
|
|
142
|
+
o=!1}},{subscribe:$t(o,h).subscribe};
|
|
143
143
|
/**
|
|
144
144
|
* Creates a `Readable` store that allows reading by subscription.
|
|
145
145
|
* @param value initial value
|
|
@@ -147,13 +147,13 @@ o=!1}},{subscribe:jt(o,h).subscribe};
|
|
|
147
147
|
*/
|
|
148
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
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
|
|
150
|
+
(t)};var zt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Kt(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Jt((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Yt(t,e,r){return t.concat(e).map((function(t){return Kt(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
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]=
|
|
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]=
|
|
152
|
+
function qt(t,e,r){var n={};return r.isMergeableObject(t)&&Wt(t).forEach((function(e){n[e]=Kt(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]=Kt(e[i],r))})),n}function Jt(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Yt,r.isMergeableObject=r.isMergeableObject||Xt,
|
|
154
154
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
155
155
|
// implementations can use it. The caller may not replace it.
|
|
156
|
-
r.cloneUnlessOtherwiseSpecified=
|
|
156
|
+
r.cloneUnlessOtherwiseSpecified=Kt;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):qt(t,e,r):Kt(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
157
|
/**
|
|
158
158
|
* Type Guards
|
|
159
159
|
*/
|
|
@@ -352,7 +352,7 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
352
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
353
|
// #region Ponyfills
|
|
354
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
|
|
355
|
+
var De=!!String.prototype.startsWith,xe=!!String.fromCodePoint,Ge=!!Object.fromEntries,Fe=!!String.prototype.codePointAt,ke=!!String.prototype.trimStart,je=!!String.prototype.trimEnd,$e=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ve=!0;try{
|
|
356
356
|
/**
|
|
357
357
|
* legacy Edge or Xbox One browser
|
|
358
358
|
* Unicode flag support: supported
|
|
@@ -361,15 +361,15 @@ var De=!!String.prototype.startsWith,xe=!!String.fromCodePoint,Ge=!!Object.fromE
|
|
|
361
361
|
*/
|
|
362
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
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},
|
|
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},
|
|
364
|
+
function(t,e,r){return t.slice(r,r+e.length)===e},Ke=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},Ye=
|
|
366
366
|
// native
|
|
367
367
|
Ge?Object.fromEntries:// Ponyfill
|
|
368
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
369
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
370
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
371
|
function(t){return t.trimStart()}:// Ponyfill
|
|
372
|
-
function(t){return t.replace(Re,"")},qe
|
|
372
|
+
function(t){return t.replace(Re,"")},qe=je?// Native
|
|
373
373
|
function(t){return t.trimEnd()}:// Ponyfill
|
|
374
374
|
function(t){return t.replace(Me,"")};
|
|
375
375
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
@@ -379,7 +379,7 @@ if(Ve){
|
|
|
379
379
|
// Native
|
|
380
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
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
|
|
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 Ke.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
383
|
/**
|
|
384
384
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
385
385
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -430,7 +430,7 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
|
|
|
430
430
|
// Optional closing apostrophe.
|
|
431
431
|
this.bump();break}e.push(39),
|
|
432
432
|
// Bump one more time because we need to skip 2 characters.
|
|
433
|
-
this.bump()}else e.push(r);this.bump()}return
|
|
433
|
+
this.bump()}else e.push(r);this.bump()}return Ke.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(),Ke(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),// `{`
|
|
434
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
435
|
// argument name
|
|
436
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()){
|
|
@@ -479,7 +479,7 @@ var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
479
479
|
// ^--^
|
|
480
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
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:
|
|
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:Ye(v.val),location:E},err:null}:{val:{type:ne.plural,value:r,options:Ye(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
483
|
// Parse: {value, number, ::currency/GBP }
|
|
484
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
485
|
/**
|
|
@@ -517,7 +517,7 @@ this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.err
|
|
|
517
517
|
// Keep track of the existing selectors
|
|
518
518
|
a.add(c),
|
|
519
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
|
|
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?$e(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
521
|
// This is much faster than `Object.assign` or spread.
|
|
522
522
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
523
523
|
/**
|
|
@@ -629,9 +629,9 @@ this.formats=Tr(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
629
629
|
// Default format options used as the prototype of the `formats` provided to the
|
|
630
630
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
631
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
|
|
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=$t({});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 jr=$t(!1);var $r=Object.defineProperty,Vr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Wr=(t,e,r)=>e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Zr;const qr=$t(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={}))Kr.call(e,r)&&Wr(t,r,e[r]);if(zr)for(var r of zr(e))Yr.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((()=>jr.set(!0)),e):jr.set(!0),Gr(t).then((()=>{qr.set(t)})).finally((()=>{clearTimeout(r),jr.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
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:"
|
|
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:"Biometrijska autentifikacija",descriptionParagraph1:"Koristite biometrijsku prijavu otiskom prsta ili licem za brži i jednostavniji pristup svom računu.",descriptionParagraph2:"Ovu značajku možete uključiti i isključiti u bilo kojem trenutku",btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju"},"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
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
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
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}));
|