@everymatrix/player-account-gaming-limits-popup-2 1.34.3 → 1.36.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}const a="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function l(e,t){e.appendChild(t)}function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}const a="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function l(e,t){e.appendChild(t)}function u(e,t,n){e.insertBefore(t,n||null)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function h(e){return document.createElement(e)}function p(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function m(e){return document.createTextNode(e)}function f(){return m(" ")}function d(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function g(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function b(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t){e.value=null==t?"":t}function v(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function T(e,t,n){e.classList[n?"add":"remove"](t)}function B(e){const t={};for(const n of e)t[n.name]=n.value;return t}let L;function P(e){L=e}const A=[],w=[];let k=[];const H=[],S=Promise.resolve();let C=!1;function I(e){k.push(e)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -17,54 +17,54 @@
|
|
|
17
17
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
18
18
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
19
19
|
// function, guarantees this behavior.
|
|
20
|
-
const
|
|
20
|
+
const _=new Set;let N=0;// Do *not* move this inside the flush() function
|
|
21
21
|
function O(){
|
|
22
22
|
// Do not reenter flush while dirty components are updated, as this can
|
|
23
23
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
24
24
|
// Reentrancy is ok afterwards for bindings etc.
|
|
25
|
-
if(0!==N)return;const e=
|
|
25
|
+
if(0!==N)return;const e=L;do{
|
|
26
26
|
// first, call beforeUpdate functions
|
|
27
27
|
// and update components
|
|
28
|
-
try{for(;N<
|
|
28
|
+
try{for(;N<A.length;){const e=A[N];N++,P(e),M(e.$$)}}catch(e){
|
|
29
29
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
30
|
-
throw
|
|
30
|
+
throw A.length=0,N=0,e}for(P(null),A.length=0,N=0;w.length;)w.pop()();
|
|
31
31
|
// then, once components are updated, call
|
|
32
32
|
// afterUpdate functions. This may cause
|
|
33
33
|
// subsequent updates...
|
|
34
|
-
for(let e=0;e<
|
|
34
|
+
for(let e=0;e<k.length;e+=1){const t=k[e];_.has(t)||(
|
|
35
35
|
// ...so guard against infinite loops
|
|
36
|
-
|
|
36
|
+
_.add(t),t())}k.length=0}while(A.length);for(;H.length;)H.pop()();C=!1,_.clear(),P(e)}function M(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(I)}}
|
|
37
37
|
/**
|
|
38
38
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
39
|
-
*/const
|
|
39
|
+
*/const D=new Set;function R(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];k.forEach((i=>-1===e.indexOf(i)?t.push(i):n.push(i))),n.forEach((e=>e())),k=t}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function U(e,t){-1===e.$$.dirty[0]&&(
|
|
42
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function U(e,t){-1===e.$$.dirty[0]&&(A.push(e),C||(C=!0,S.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function x(o,s,a,l,u,h,p,m=[-1]){const f=L;P(o);const d=o.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
|
-
props:h,update:e,not_equal:
|
|
44
|
+
props:h,update:e,not_equal:u,bound:n(),
|
|
45
45
|
// lifecycle
|
|
46
46
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(f?f.$$.context:[])),
|
|
47
47
|
// everything else
|
|
48
|
-
callbacks:n(),dirty:m,skip_bound:!1,root:s.target||f.$$.root};p&&p(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...n)=>{const i=n.length?n[0]:t;return d.ctx&&
|
|
48
|
+
callbacks:n(),dirty:m,skip_bound:!1,root:s.target||f.$$.root};p&&p(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...n)=>{const i=n.length?n[0]:t;return d.ctx&&u(d.ctx[e],d.ctx[e]=i)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](i),g&&U(o,e)),t})):[],d.update(),g=!0,i(d.before_update),
|
|
49
49
|
// `false` as a special case of no DOM component
|
|
50
50
|
d.fragment=!!l&&l(d.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
52
|
-
d.fragment&&d.fragment.l(e),e.forEach(
|
|
52
|
+
d.fragment&&d.fragment.l(e),e.forEach(c)}else
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
54
|
-
d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(
|
|
54
|
+
d.fragment&&d.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(D.delete(y),y.i(b))),function(e,n,o,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(n,o),s||
|
|
55
55
|
// onMount happens before the initial afterUpdate
|
|
56
|
-
|
|
56
|
+
I((()=>{const n=e.$$.on_mount.map(t).filter(r);
|
|
57
57
|
// if the component was destroyed immediately
|
|
58
58
|
// it will update the `$$.on_destroy` reference to `null`.
|
|
59
59
|
// the destructured on_destroy may still reference to the old array
|
|
60
60
|
e.$$.on_destroy?e.$$.on_destroy.push(...n):
|
|
61
61
|
// Edge case - component was destroyed immediately,
|
|
62
62
|
// most likely as a result of a binding initialising
|
|
63
|
-
i(n),e.$$.on_mount=[]})),l.forEach(
|
|
63
|
+
i(n),e.$$.on_mount=[]})),l.forEach(I)}(o,s.target,s.anchor,s.customElement),O()}var y,b;P(f)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(r);
|
|
64
64
|
// @ts-ignore todo: improve typings
|
|
65
65
|
for(const e in this.$$.slotted)
|
|
66
66
|
// @ts-ignore todo: improve typings
|
|
67
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){
|
|
67
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){R(this,1),this.$destroy=e}$on(t,n){
|
|
68
68
|
// TODO should this delegate to addEventListener?
|
|
69
69
|
if(!r(n))return e;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const G=[];
|
|
70
70
|
/**
|
|
@@ -78,23 +78,23 @@ if(!r(n))return e;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
78
78
|
* @param {StartStopNotifier=} start
|
|
79
79
|
*/
|
|
80
80
|
function z(t,n=e){let i;const r=new Set;function s(e){if(o(t,e)&&(t=e,i)){// store is ready
|
|
81
|
-
const e=!G.length;for(const e of r)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return r.add(l),1===r.size&&(i=n(s)||e),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function $(t,n,o){const a=!Array.isArray(t),l=a?[t]:t,
|
|
81
|
+
const e=!G.length;for(const e of r)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return r.add(l),1===r.size&&(i=n(s)||e),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function $(t,n,o){const a=!Array.isArray(t),l=a?[t]:t,u=n.length<2;return c=t=>{let o=!1;const c=[];let h=0,p=e;const m=()=>{if(h)return;p();const i=n(a?c[0]:c,t);u?t(i):p=r(i)?i:e},f=l.map(((e,t)=>s(e,(e=>{c[t]=e,h&=~(1<<t),o&&m()}),(()=>{h|=1<<t}))));return o=!0,m(),function(){i(f),p(),
|
|
82
82
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
83
83
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
84
84
|
// invoke this derived store.
|
|
85
|
-
o=!1}},{subscribe:z(o,
|
|
85
|
+
o=!1}},{subscribe:z(o,c).subscribe};var c}var F=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===V}(e)}
|
|
86
86
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
87
|
-
(e)};var V="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function K(e,t){return!1!==t.clone&&t.isMergeableObject(e)?
|
|
87
|
+
(e)};var V="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function K(e,t){return!1!==t.clone&&t.isMergeableObject(e)?W((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function q(e,t,n){return e.concat(t).map((function(e){return K(e,n)}))}function X(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Z(e,t){try{return t in e}catch(e){return!1}}
|
|
88
88
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
89
|
-
function
|
|
90
|
-
})(e,r)||(Z(e,r)&&n.isMergeableObject(t[r])?i[r]=function(e,t){if(!t.customMerge)return
|
|
89
|
+
function Y(e,t,n){var i={};return n.isMergeableObject(e)&&X(e).forEach((function(t){i[t]=K(e[t],n)})),X(t).forEach((function(r){(function(e,t){return Z(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
90
|
+
})(e,r)||(Z(e,r)&&n.isMergeableObject(t[r])?i[r]=function(e,t){if(!t.customMerge)return W;var n=t.customMerge(e);return"function"==typeof n?n:W}(r,n)(e[r],t[r],n):i[r]=K(t[r],n))})),i}function W(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||q,n.isMergeableObject=n.isMergeableObject||F,
|
|
91
91
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
92
92
|
// implementations can use it. The caller may not replace it.
|
|
93
|
-
n.cloneUnlessOtherwiseSpecified=K;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):
|
|
93
|
+
n.cloneUnlessOtherwiseSpecified=K;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):Y(e,t,n):K(t,n)}W.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return W(e,n,t)}),{})};var J=W,Q=function(e,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Q(e,t)};function ee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var te,ne,ie,re=function(){return re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},re.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}
|
|
94
94
|
/**
|
|
95
95
|
* Type Guards
|
|
96
96
|
*/
|
|
97
|
-
function se(e){return e.type===ne.literal}function ae(e){return e.type===ne.argument}function le(e){return e.type===ne.number}function
|
|
97
|
+
function se(e){return e.type===ne.literal}function ae(e){return e.type===ne.argument}function le(e){return e.type===ne.number}function ue(e){return e.type===ne.date}function ce(e){return e.type===ne.time}function he(e){return e.type===ne.select}function pe(e){return e.type===ne.plural}function me(e){return e.type===ne.pound}function fe(e){return e.type===ne.tag}function de(e){return!(!e||"object"!=typeof e||e.type!==ie.number)}function ge(e){return!(!e||"object"!=typeof e||e.type!==ie.dateTime)}
|
|
98
98
|
// @generated from regex-gen.ts
|
|
99
99
|
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
100
100
|
/** Argument is unclosed (e.g. `{0`) */
|
|
@@ -239,20 +239,20 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
239
239
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
240
240
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
241
241
|
// @generated from regex-gen.ts
|
|
242
|
-
var ve=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Te=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Be=/^(@+)?(\+|#+)?[rs]?$/g,
|
|
242
|
+
var ve=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Te=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Be=/^(@+)?(\+|#+)?[rs]?$/g,Le=/(\*)(0+)|(#+)(0+)|(0+)/g,Pe=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Be,(function(e,n,i){
|
|
243
243
|
// @@@ case
|
|
244
|
-
return"string"!=typeof i?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===i?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),t}function
|
|
244
|
+
return"string"!=typeof i?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===i?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof i?i.length:0)),""})),t}function we(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ke(e){
|
|
245
245
|
// Engineering
|
|
246
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!
|
|
246
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Pe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function He(e){var t=we(e);return t||{}}
|
|
247
247
|
/**
|
|
248
248
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
249
|
-
*/function Se(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=re(re(re({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return re(re({},e),
|
|
249
|
+
*/function Se(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=re(re(re({},t),{notation:"scientific"}),r.options.reduce((function(e,t){return re(re({},e),He(t))}),{}));continue;case"engineering":t=re(re(re({},t),{notation:"engineering"}),r.options.reduce((function(e,t){return re(re({},e),He(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
250
250
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
251
251
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;
|
|
252
252
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
253
|
-
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(
|
|
253
|
+
case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(Le,(function(e,n,i,r,o,s){if(n)t.minimumIntegerDigits=i.length;else{if(r&&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}
|
|
254
254
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
255
|
-
if(
|
|
255
|
+
if(Pe.test(r.stem))t.minimumIntegerDigits=r.stem.length;else if(Te.test(r.stem)){
|
|
256
256
|
// Precision
|
|
257
257
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
258
258
|
// precision-integer case
|
|
@@ -260,12 +260,12 @@ if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept
|
|
|
260
260
|
// .000* case (before ICU67 it was .000+)
|
|
261
261
|
return"*"===i?t.minimumFractionDigits=n.length:r&&"#"===r[0]?t.maximumFractionDigits=r.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=r.options[0];
|
|
262
262
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
263
|
-
"w"===o?t=re(re({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=re(re({},t),
|
|
263
|
+
"w"===o?t=re(re({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=re(re({},t),Ae(o)))}
|
|
264
264
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
265
|
-
else if(Be.test(r.stem))t=re(re({},t),
|
|
265
|
+
else if(Be.test(r.stem))t=re(re({},t),Ae(r.stem));else{var s=we(r.stem);s&&(t=re(re({},t),s));var a=ke(r.stem);a&&(t=re(re({},t),a))}}return t}
|
|
266
266
|
// @generated from time-data-gen.ts
|
|
267
267
|
// prettier-ignore
|
|
268
|
-
var Ie
|
|
268
|
+
var Ce,Ie={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"]};
|
|
269
269
|
/**
|
|
270
270
|
* Returns the best matching date time pattern if a date time skeleton
|
|
271
271
|
* pattern is provided with a locale. Follows the Unicode specification:
|
|
@@ -278,7 +278,7 @@ var Ie,_e={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
278
278
|
* of the given `locale` to the corresponding time pattern.
|
|
279
279
|
* @param locale
|
|
280
280
|
*/
|
|
281
|
-
function
|
|
281
|
+
function _e(e){var t=e.hourCycle;if(void 0===t&&
|
|
282
282
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
283
283
|
e.hourCycles&&
|
|
284
284
|
// @ts-ignore
|
|
@@ -286,37 +286,37 @@ e.hourCycles.length&&(
|
|
|
286
286
|
// @ts-ignore
|
|
287
287
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
288
288
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
289
|
-
var n,i=e.language;return"root"!==i&&(n=e.maximize().region),(
|
|
289
|
+
var n,i=e.language;return"root"!==i&&(n=e.maximize().region),(Ie[n||""]||Ie[i||""]||Ie["".concat(i,"-001")]||Ie["001"])[0]}var Ne=new RegExp("^".concat(ye.source,"*")),Oe=new RegExp("".concat(ye.source,"*$"));function Me(e,t){return{start:e,end:t}}
|
|
290
290
|
// #region Ponyfills
|
|
291
291
|
// Consolidate these variables up top for easier toggling during debugging
|
|
292
|
-
var
|
|
292
|
+
var De=!!String.prototype.startsWith,Re=!!String.fromCodePoint,Ue=!!Object.fromEntries,xe=!!String.prototype.codePointAt,je=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,ze=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$e=!0;try{
|
|
293
293
|
/**
|
|
294
294
|
* legacy Edge or Xbox One browser
|
|
295
295
|
* Unicode flag support: supported
|
|
296
296
|
* Pattern_Syntax support: not supported
|
|
297
297
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
298
298
|
*/
|
|
299
|
-
$e="a"===(null===(
|
|
299
|
+
$e="a"===(null===(Ce=We("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ce?void 0:Ce[0])}catch(e){$e=!1}var Fe,Ve=De?// Native
|
|
300
300
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
301
|
-
function(e,t,n){return e.slice(n,n+t.length)===t},Ke=
|
|
302
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,i="",r=e.length,o=0;r>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},
|
|
301
|
+
function(e,t,n){return e.slice(n,n+t.length)===t},Ke=Re?String.fromCodePoint:// IE11
|
|
302
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,i="",r=e.length,o=0;r>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");i+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return i},qe=
|
|
303
303
|
// native
|
|
304
304
|
Ue?Object.fromEntries:// Ponyfill
|
|
305
|
-
function(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],s=r[1];t[o]=s}return t},
|
|
305
|
+
function(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],s=r[1];t[o]=s}return t},Xe=xe?// Native
|
|
306
306
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
307
307
|
function(e,t){var n=e.length;if(!(t<0||t>=n)){var i,r=e.charCodeAt(t);return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:i-56320+(r-55296<<10)+65536}},Ze=je?// Native
|
|
308
308
|
function(e){return e.trimStart()}:// Ponyfill
|
|
309
|
-
function(e){return e.replace(Ne,"")},
|
|
309
|
+
function(e){return e.replace(Ne,"")},Ye=Ge?// Native
|
|
310
310
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
311
311
|
function(e){return e.replace(Oe,"")};
|
|
312
312
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
313
|
-
function
|
|
313
|
+
function We(e,t){return new RegExp(e,t)}
|
|
314
314
|
// #endregion
|
|
315
315
|
if($e){
|
|
316
316
|
// Native
|
|
317
|
-
var Je=
|
|
317
|
+
var Je=We("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fe=function(e,t){var n;return Je.lastIndex=t,null!==(n=Je.exec(e)[1])&&void 0!==n?n:""}}else
|
|
318
318
|
// IE11
|
|
319
|
-
Fe=function(e,t){for(var n=[];;){var i=
|
|
319
|
+
Fe=function(e,t){for(var n=[];;){var i=Xe(e,t);if(void 0===i||tt(i)||nt(i))break;n.push(i),t+=i>=65536?2:1}return Ke.apply(void 0,n)};var Qe=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var r=this.char();if(123/* `{` */===r){if((o=this.parseArgument(e,n)).err)return o;i.push(o.val)}else{if(125/* `}` */===r&&e>0)break;if(35/* `#` */!==r||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===r&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(te.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===r&&!this.ignoreTag&&et(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;i.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;i.push(o.val)}}else{var s=this.clonePosition();this.bump(),i.push({type:ne.pound,location:Me(s,this.clonePosition())})}}}return{val:i,err:null}},
|
|
320
320
|
/**
|
|
321
321
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
322
322
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -393,17 +393,17 @@ return this.error(te.EXPECT_ARGUMENT_TYPE,Me(o,a));case"number":case"date":case"
|
|
|
393
393
|
// Parse this range:
|
|
394
394
|
// {name, number, style}
|
|
395
395
|
// ^-------^
|
|
396
|
-
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var
|
|
396
|
+
this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=Ye(y.val)).length)return this.error(te.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Me(u,this.clonePosition())}}if((b=this.tryParseArgumentClose(i)).err)return b;var c=Me(i,this.clonePosition());
|
|
397
397
|
// Extract style or skeleton
|
|
398
398
|
if(l&&Ve(null==l?void 0:l.style,"::",0)){
|
|
399
399
|
// Skeleton starts with `::`.
|
|
400
|
-
var h=Ze(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ne.number,value:n,location:
|
|
400
|
+
var h=Ze(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ne.number,value:n,location:c,style:y.val},err:null};if(0===h.length)return this.error(te.EXPECT_DATE_TIME_SKELETON,c);var p=h;
|
|
401
401
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
402
402
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
403
403
|
// for unsupported patterns.
|
|
404
|
-
this.locale&&(p=function(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if("j"===r){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=
|
|
404
|
+
this.locale&&(p=function(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if("j"===r){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=_e(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===r?"H":r}return n}(h,this.locale));var m={type:ie.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(p):{}};return{val:{type:"date"===s?ne.date:ne.time,value:n,location:c,style:m},err:null}}
|
|
405
405
|
// Regular style or no style.
|
|
406
|
-
return{val:{type:"number"===s?ne.number:"date"===s?ne.date:ne.time,value:n,location:
|
|
406
|
+
return{val:{type:"number"===s?ne.number:"date"===s?ne.date:ne.time,value:n,location:c,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":
|
|
407
407
|
// Parse this range:
|
|
408
408
|
// {name, plural, options}
|
|
409
409
|
// ^---------^
|
|
@@ -416,7 +416,7 @@ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
416
416
|
// ^--^
|
|
417
417
|
var d=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,te.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
418
418
|
// Parse another identifier for option parsing
|
|
419
|
-
this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var b,E=this.tryParsePluralOrSelectOptions(e,s,t,d);if(E.err)return E;if((b=this.tryParseArgumentClose(i)).err)return b;var v=Me(i,this.clonePosition());return"select"===s?{val:{type:ne.select,value:n,options:
|
|
419
|
+
this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var b,E=this.tryParsePluralOrSelectOptions(e,s,t,d);if(E.err)return E;if((b=this.tryParseArgumentClose(i)).err)return b;var v=Me(i,this.clonePosition());return"select"===s?{val:{type:ne.select,value:n,options:qe(E.val),location:v},err:null}:{val:{type:ne.plural,value:n,options:qe(E.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(te.INVALID_ARGUMENT_TYPE,Me(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
420
420
|
// Parse: {value, number, ::currency/GBP }
|
|
421
421
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(te.EXPECT_ARGUMENT_CLOSING_BRACE,Me(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
422
422
|
/**
|
|
@@ -442,11 +442,11 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,i){
|
|
|
442
442
|
// Parse:
|
|
443
443
|
// one {one apple}
|
|
444
444
|
// ^--^
|
|
445
|
-
for(var r,o=!1,s=[],a=new Set,l=i.value,
|
|
445
|
+
for(var r,o=!1,s=[],a=new Set,l=i.value,u=i.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
446
446
|
// Try parse `={number}` selector
|
|
447
|
-
var h=this.tryParseDecimalInteger(te.EXPECT_PLURAL_ARGUMENT_SELECTOR,te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;
|
|
447
|
+
var h=this.tryParseDecimalInteger(te.EXPECT_PLURAL_ARGUMENT_SELECTOR,te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Me(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}
|
|
448
448
|
// Duplicate selector clauses
|
|
449
|
-
if(a.has(l))return this.error("select"===t?te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
449
|
+
if(a.has(l))return this.error("select"===t?te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(o=!0),
|
|
450
450
|
// Parse:
|
|
451
451
|
// one {one apple}
|
|
452
452
|
// ^----------^
|
|
@@ -454,14 +454,14 @@ this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.err
|
|
|
454
454
|
// Keep track of the existing selectors
|
|
455
455
|
a.add(l),
|
|
456
456
|
// Prep next selector clause.
|
|
457
|
-
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,
|
|
457
|
+
this.bumpSpace(),l=(r=this.parseIdentifierIfPossible()).value,u=r.location}return 0===s.length?this.error("select"===t?te.EXPECT_SELECT_ARGUMENT_SELECTOR:te.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(te.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var r=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;r=!0,o=10*o+(s-48),this.bump()}var a=Me(i,this.clonePosition());return r?ze(o*=n)?{val:o,err:null}:this.error(t,a):this.error(e,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
458
458
|
// This is much faster than `Object.assign` or spread.
|
|
459
459
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
460
460
|
/**
|
|
461
461
|
* Return the code point at the current position of the parser.
|
|
462
462
|
* Throws if the index is out of bound.
|
|
463
463
|
*/
|
|
464
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
464
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Xe(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
465
465
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
466
466
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
467
467
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -503,7 +503,7 @@ function tt(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||
|
|
|
503
503
|
/**
|
|
504
504
|
* Code point equivalent of regex `\p{Pattern_Syntax}`.
|
|
505
505
|
* See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
|
|
506
|
-
*/function nt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function it(e){e.forEach((function(e){if(delete e.location,he(e)||pe(e))for(var t in e.options)delete e.options[t].location,it(e.options[t].value);else le(e)&&de(e.style)||(
|
|
506
|
+
*/function nt(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function it(e){e.forEach((function(e){if(delete e.location,he(e)||pe(e))for(var t in e.options)delete e.options[t].location,it(e.options[t].value);else le(e)&&de(e.style)||(ue(e)||ce(e))&&ge(e.style)?delete e.style.location:fe(e)&&it(e.children)}))}function rt(e,t){void 0===t&&(t={}),t=re({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Qe(e,t).parse();if(n.err){var i=SyntaxError(te[n.err.kind]);
|
|
507
507
|
// @ts-expect-error Assign to error object
|
|
508
508
|
throw i.location=n.err.location,
|
|
509
509
|
// @ts-expect-error Assign to error object
|
|
@@ -511,13 +511,13 @@ i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||it(n
|
|
|
511
511
|
|
|
512
512
|
// Main
|
|
513
513
|
|
|
514
|
-
function ot(e,t){var n=t&&t.cache?t.cache:mt,i=t&&t.serializer?t.serializer:
|
|
514
|
+
function ot(e,t){var n=t&&t.cache?t.cache:mt,i=t&&t.serializer?t.serializer:ct;return(t&&t.strategy?t.strategy:ut)(e,{cache:n,serializer:i})}
|
|
515
515
|
|
|
516
516
|
// Strategy
|
|
517
517
|
|
|
518
|
-
function st(e,t,n,i){var r,o=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:n(i),s=t.get(o);return void 0===s&&(s=e.call(this,i),t.set(o,s)),s}function at(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return void 0===o&&(o=e.apply(this,i),t.set(r,o)),o}function lt(e,t,n,i,r){return n.bind(t,e,i,r)}function
|
|
518
|
+
function st(e,t,n,i){var r,o=null==(r=i)||"number"==typeof r||"boolean"==typeof r?i:n(i),s=t.get(o);return void 0===s&&(s=e.call(this,i),t.set(o,s)),s}function at(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return void 0===o&&(o=e.apply(this,i),t.set(r,o)),o}function lt(e,t,n,i,r){return n.bind(t,e,i,r)}function ut(e,t){return lt(e,this,1===e.length?st:at,t.cache.create(),t.serializer)}
|
|
519
519
|
// Serializer
|
|
520
|
-
var
|
|
520
|
+
var ct=function(){return JSON.stringify(arguments)};
|
|
521
521
|
|
|
522
522
|
// Cache
|
|
523
523
|
|
|
@@ -535,25 +535,25 @@ function Tt(e,t,n,i,r,o,
|
|
|
535
535
|
// For debugging
|
|
536
536
|
s){
|
|
537
537
|
// Hot path for straight simple msg translations
|
|
538
|
-
if(1===e.length&&se(e[0]))return[{type:dt.literal,value:e[0].value}];for(var a=[],l=0,
|
|
538
|
+
if(1===e.length&&se(e[0]))return[{type:dt.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];
|
|
539
539
|
// Exit early for string parts.
|
|
540
|
-
if(se(
|
|
540
|
+
if(se(c))a.push({type:dt.literal,value:c.value});else
|
|
541
541
|
// TODO: should this part be literal type?
|
|
542
542
|
// Replace `#` in plural rules with the actual numeric value.
|
|
543
|
-
if(me(
|
|
543
|
+
if(me(c))"number"==typeof o&&a.push({type:dt.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
|
|
544
544
|
// Enforce that all required values are provided by the caller.
|
|
545
|
-
if(!r||!(h in r))throw new Et(h,s);var p=r[h];if(ae(
|
|
545
|
+
if(!r||!(h in r))throw new Et(h,s);var p=r[h];if(ae(c))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?dt.literal:dt.object,value:p});else
|
|
546
546
|
// Recursively format plural and select parts' option — which can be a
|
|
547
547
|
// nested pattern structure. The choosing of the option to use is
|
|
548
548
|
// abstracted-by and delegated-to the part helper object.
|
|
549
|
-
if(
|
|
549
|
+
if(ue(c)){var m="string"==typeof c.style?i.date[c.style]:ge(c.style)?c.style.parsedOptions:void 0;a.push({type:dt.literal,value:n.getDateTimeFormat(t,m).format(p)})}else if(ce(c)){m="string"==typeof c.style?i.time[c.style]:ge(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:dt.literal,value:n.getDateTimeFormat(t,m).format(p)})}else if(le(c)){(m="string"==typeof c.style?i.number[c.style]:de(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),a.push({type:dt.literal,value:n.getNumberFormat(t,m).format(p)})}else{if(fe(c)){var f=c.children,d=c.value,g=r[d];if(!vt(g))throw new bt(d,"function",s);var y=g(Tt(f,t,n,i,r,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?dt.literal:dt.object,value:e}})))}if(he(c)){if(!(b=c.options[p]||c.options.other))throw new yt(c.value,p,Object.keys(c.options),s);a.push.apply(a,Tt(b.value,t,n,i,r))}else if(pe(c)){var b;if(!(b=c.options["=".concat(p)])){if(!Intl.PluralRules)throw new gt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',pt.MISSING_INTL_API,s);var E=n.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));b=c.options[E]||c.options.other}if(!b)throw new yt(c.value,p,Object.keys(c.options),s);a.push.apply(a,Tt(b.value,t,n,i,r,p-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===dt.literal&&t.type===dt.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
|
550
550
|
/*
|
|
551
551
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
552
552
|
Copyrights licensed under the New BSD License.
|
|
553
553
|
See the accompanying LICENSE file for terms.
|
|
554
554
|
*/
|
|
555
555
|
// -- MessageFormat --------------------------------------------------------
|
|
556
|
-
function Bt(e,t){return t?Object.keys(e).reduce((function(n,i){var r,o;return n[i]=(r=e[i],(o=t[i])?re(re(re({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=re(re({},r[t]),o[t]||{}),e}),{})):r),n}),re({},e)):e}function
|
|
556
|
+
function Bt(e,t){return t?Object.keys(e).reduce((function(n,i){var r,o;return n[i]=(r=e[i],(o=t[i])?re(re(re({},r||{}),o||{}),Object.keys(r).reduce((function(e,t){return e[t]=re(re({},r[t]),o[t]||{}),e}),{})):r),n}),re({},e)):e}function Lt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(dt||(dt={}));var Pt=/** @class */function(){function e(t,n,i,r){var o,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
557
557
|
// Hot path for straight simple msg translations
|
|
558
558
|
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===dt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Tt(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
559
559
|
// Defined first because it's used to build the format pattern.
|
|
@@ -562,34 +562,34 @@ this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(thi
|
|
|
562
562
|
this.ast=e.__parse(t,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
563
563
|
// Creates a new object with the specified `formats` merged with the default
|
|
564
564
|
// formats.
|
|
565
|
-
this.formats=Bt(e.formats,i),this.formatters=r&&r.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ot((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:
|
|
565
|
+
this.formats=Bt(e.formats,i),this.formatters=r&&r.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ot((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:Lt(o.number),strategy:ft.variadic}),getDateTimeFormat:ot((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:Lt(o.dateTime),strategy:ft.variadic}),getPluralRules:ot((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,oe([void 0],t,!1)))}),{cache:Lt(o.pluralRules),strategy:ft.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=rt,
|
|
566
566
|
// Default format options used as the prototype of the `formats` provided to the
|
|
567
567
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
568
568
|
// and Intl.DateTimeFormat instances.
|
|
569
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const
|
|
569
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const At={},wt=(e,t,n)=>n?(t in At||(At[t]={}),e in At[t]||(At[t][e]=n),n):n,kt=(e,t)=>{if(null==t)return;if(t in At&&e in At[t])return At[t][e];const n=Jt(t);for(let i=0;i<n.length;i++){const r=It(n[i],e);if(r)return wt(e,t,r)}};let Ht;const St=z({});function Ct(e){return e in Ht}function It(e,t){if(!Ct(e))return null;const n=function(e){return Ht[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let i=e;for(let e=0;e<n.length;e++)if("object"==typeof i){if(e>0){const t=n.slice(e,n.length).join(".");if(t in i){i=i[t];break}}i=i[n[e]]}else i=void 0;return i}(n,t)}function _t(e,...t){delete At[e],St.update((n=>(n[e]=J.all([n[e]||{},...t]),n)))}$([St],(([e])=>Object.keys(e))),St.subscribe((e=>Ht=e));const Nt={};function Ot(e){return Nt[e]}function Mt(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=Ot(e))?void 0:t.size}))}function Dt(e,t){const n=Promise.all(t.map((t=>(function(e,t){Nt[e].delete(t),0===Nt[e].size&&delete Nt[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>_t(e,...t)))}const Rt={};function Ut(e){if(!Mt(e))return e in Rt?Rt[e]:Promise.resolve();const t=function(e){return Jt(e).map((e=>{const t=Ot(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Rt[e]=Promise.all(t.map((([e,t])=>Dt(e,t)))).then((()=>{if(Mt(e))return Ut(e);delete Rt[e]})),Rt[e]}const xt={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 jt(){return xt}const Gt=z(!1);var zt=Object.defineProperty,$t=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Zt;const Yt=z(null);function Wt(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=jt().fallbackLocale){const n=Wt(e);return t?[...new Set([...n,...Wt(t)])]:n}function Qt(){return null!=Zt?Zt:void 0}Yt.subscribe((e=>{Zt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const en=(tn=((e,t)=>{for(var n in t||(t={}))Kt.call(t,n)&&Xt(e,n,t[n]);if(Vt)for(var n of Vt(t))qt.call(t,n)&&Xt(e,n,t[n]);return e})({},Yt),$t(tn,Ft({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const n=t[e];if(Ct(n))return n}}(e)&&Mt(e)){const{loadingDelay:t}=jt();let n;return"undefined"!=typeof window&&null!=Qt()&&t?n=window.setTimeout((()=>Gt.set(!0)),t):Gt.set(!0),Ut(e).then((()=>{Yt.set(e)})).finally((()=>{clearTimeout(n),Gt.set(!1)}))}return Yt.set(e)}})));var tn;const nn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var rn=Object.defineProperty,on=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,ln=(e,t,n)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,un=(e,t)=>{for(var n in t||(t={}))sn.call(t,n)&&ln(e,n,t[n]);if(on)for(var n of on(t))an.call(t,n)&&ln(e,n,t[n]);return e},cn=(e,t)=>{var n={};for(var i in e)sn.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&on)for(var i of on(e))t.indexOf(i)<0&&an.call(e,i)&&(n[i]=e[i]);return n};const hn=(e,t)=>{const{formats:n}=jt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pn=nn((e=>{var t=e,{locale:n,format:i}=t,r=cn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=hn("number",i)),new Intl.NumberFormat(n,r)})),mn=nn((e=>{var t=e,{locale:n,format:i}=t,r=cn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=hn("date",i):0===Object.keys(r).length&&(r=hn("date","short")),new Intl.DateTimeFormat(n,r)})),fn=nn((e=>{var t=e,{locale:n,format:i}=t,r=cn(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=hn("time",i):0===Object.keys(r).length&&(r=hn("time","short")),new Intl.DateTimeFormat(n,r)})),dn=nn((
|
|
570
570
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
571
|
-
(e,t=Qt())=>new Lt(e,t,jt().formats,{ignoreTag:jt().ignoreTag}))),gn=(e,t={})=>{var n,i,r,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Qt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ht(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(r=null==(i=(n=jt()).handleMissingMessage)?void 0:i.call(n,{locale:l,id:e,defaultValue:c}))?r:c)?o:e;if(!a)return u;let h=u;try{h=dn(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},yn=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=un(t,["locale"]);return fn(cn({locale:n},i))})(t).format(e),bn=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=un(t,["locale"]);return mn(cn({locale:n},i))})(t).format(e),En=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=un(t,["locale"]);return pn(cn({locale:n},i))})(t).format(e),vn=(e,t=Qt())=>Ht(e,t),Tn=$([en,St],(()=>gn));function Bn(e,t){Ct(e,t)}$([en],(()=>yn)),$([en],(()=>bn)),$([en],(()=>En)),$([en,St],(()=>vn));const Pn={en:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the',TClink:"General Terms and Conditions",TCpart2:"Also note our",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Successful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to",kyc1Part2:"In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your financial situation. Please upload your last payslip as well as a current bank statement, that shows the account balance as well as that you received the salary payment."},de:{loading:"Lädt ...",setLimit:"Legen Sie ein Grenzwert fest",setLimitDescription:"In Deutschland müssen Sie gesetzlich ein monatliches Einlagenlimit festlegen.",lugasInfo1:"Fragen? Informationen zu",lugasInfo2:"LUGAS",keepCurrentLimit:"Aktuelles Limit beibehalten",keepCurrentLimitButton:"Neue Grenze",applyButton:"Anwenden",depositPeriod:"Monatliche Einzahlungslimit",TCpart1:'Durch Klicken auf "das aktuelle Grenzwert halten" oder "anwenden", bestätige ich, dass ich die',TClink:"Allgemeine Geschäftsbedingungen",TCpart2:"Beachten Sie auch unsere",PPlink:"Datenschutz-Bestimmungen",depositLimit:"Erfolgreich",successful:"Erfolgreich",successDescription:"Einzahlungslimit erfolgreich festgelegt. Sie können Ihre Grenzen jederzeit in den Kontoeinstellungen verwalten.",kyc1Part1:"Wir konnten Ihr monatliches Einzahlungslimit auf",kyc1Part2:"Um das Limit auf den gewünschten Betrag zu erhöhen, bitten wir, uns relevante Informationen zur Verfügung zu stellen. Diese Informationen können im Dokumenten-Upload eingereicht werden.",kycButton:"Dokumente hochladen",closeButton:"Schließen",depositError:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",errorDescription:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",docsRequired:"Documents required!",kyc2:"Für das gewählte Limit benötigen wir Dokumente, aus denen Ihre finanzielle Situation hervorgeht. Bitte laden Sie Ihre letzte Gehaltsabrechnung sowie einen aktuellen Kontoauszug, auf dem Kontostand sowie Gehaltseingang ersichtlich sind, hoch."},hr:{loading:"Učitavanje",setLimit:"Postavite ograničenje",setLimitDescription:"U Njemačkoj",lugasInfo1:"Ima li pitanja? Informacije o",lugasInfo2:"LUGAS",keepCurrentLimit:"ZADRŽITE TRENUTNO OGRANIČENJE",keepCurrentLimitButton:"NOVO OGRANIČENJE",applyButton:"PRIMJENI",depositPeriod:"Mjesečno ograničenje uplate",TCpart1:'Klikom na "Zadrži trenutno ograničenje" ili "Primijeni" potvrđujem da sam pročitao i prihvaćam',TClink:"Opći uvjeti poslovanja",TCpart2:"Također imajte na umu našu",PPlink:"Politiku privatnosti",depositLimit:"Postavljeno ograničenje uplate",successful:"Uspješno!",successDescription:"Ograničenje uplate je uspješno postavljeno. Svojim ograničenjima možete upravljati u bilo kojem trenutku u postavkama računa.",kyc1Part1:"Uspjeli smo postaviti vaše mjesečno ograničenje uplate na",kyc1Part2:"Kako bi povećali ograničenje na željeni iznos",kycButton:"UČITAJ DOKUMENTE",closeButton:"ZATVORI",depositError:"Pogreška ažuriranja ograničenja uplate",errorDescription:"Trenutačno nismo mogli postaviti vaše ograničenje",docsRequired:"Potrebni dokumenti!",kyc2:"Za odabrano ograničenje"},sl:{loading:"Nalaga...",setLimit:"Določi limit",setLimitDescription:"V Nemčiji je zakonsko predpisano, da določite mesečni vplačilni limit.",lugasInfo1:"Vprašanja? Informacije o",lugasInfo2:"LUGAS",keepCurrentLimit:"Ohranite obstoječi limit",keepCurrentLimitButton:"Novi limit",applyButton:"Uporabi",depositPeriod:"Mesečni vplačilni limit",TCpart1:"S klikom na „ohranite obstoječi limit“ ali „prevzem“ potrjujem, da sem prebral-a",TClink:"Splošna pravila in pogoji",TCpart2:"Preverite tudi na naš",PPlink:"Pravila o zasebnosti",depositLimit:"Uspešno",successful:"Uspešno",successDescription:"Vplačilni limit je bil uspešno postavljen. Limiti se lahko kadar koli prilagodijo v nastavitvah stavnega računa.",kyc1Part1:"Mesečni vplačilni limit smo lahko nastavili na",kyc1Part2:"Da bi povečali limit na želeni znesek, prosimo, da nam posredujete relevantne informacije. Te informacije lahko naložite pod prenos dokumentov.",kycButton:"Naložite dokumenteS",closeButton:"Zapri",depositError:"Nekaj je šlo narobe. Prosim poskusite ponovno.",errorDescription:"Nekaj je šlo narobe. Prosim poskusite ponovno.",docsRequired:"Documents required!",kyc2:"Za izbrani limit, potrebujemo dokumente, ki prikazujejo vašo ekonomsko stanje. Prosimo naložite vašo zadnjo plačilno listo in zadnji bančni izpisek, vključno s prikazom dobroimetja, ki prikazuje, da ste prejeli plačilo."},pl:{loading:"Ładowanie...",setLimit:"Ustaw limit",setLimitDescription:"W Niemczech istnieje prawny obowiązek ustalenia miesięcznego limitu wpłat.",lugasInfo1:"Jakieś pytania? Informacja o",lugasInfo2:"LUGAS",keepCurrentLimit:"Zachowaj obecny limit",keepCurrentLimitButton:"Nowy limit",applyButton:"Zastosuj",depositPeriod:"Miesięczny limit wpłat",TCpart1:'Klikając na "Zachowaj obecny limit" lub "Zastosuj", potwierdzam, że przeczytałem i akceptuję',TClink:"Ogólne warunki handlowe",TCpart2:"Zapoznaj się również z naszą",PPlink:"Polityka prywatności",depositLimit:"Zakończone powodzeniem",successful:"Zakończone powodzeniem",successDescription:"Limit wpłat ustawiony pomyślnie. Możesz zarządzać limitami w dowolnym momencie w ustawieniach konta.",kyc1Part1:"Udało nam się ustawić Twój miesięczny limit wpłat na",kyc1Part2:"Aby zwiększyć limit żądanej kwoty, prosimy o podanie nam odpowiednich informacji. Informacje te można przesłać w przesyłaniu dokumentu.",kycButton:"Wczytywanie dokumentów",closeButton:"zamknij",depositError:"Coś poszło nie tak. Proszę spróbuj ponownie.",errorDescription:"Coś poszło nie tak. Proszę spróbuj ponownie.",docsRequired:"Documents required!",kyc2:"Do wybranego limitu potrzebujemy dokumentów potwierdzających Państwa sytuację finansową. Prosimy o przesłanie ostatniego odcinka wypłaty oraz aktualnego wyciągu bankowego, na którym widnieje stan konta i przychodzące wynagrodzenie."},es:{loading:"Cargando...",setLimit:"Establece un límite",setLimitDescription:"En Alemania",lugasInfo1:"Alguna pregunta? Información sobre",lugasInfo2:"LUGAS",keepCurrentLimit:"MANTENER LÍMITE ACTUAL",keepCurrentLimitButton:"NUEVO LÍMITE",applyButton:"APLICAR",depositPeriod:"Límite Mensual de depósitos",TCpart1:'Dando clic en "Mantener límite actual" o "Aplicar" yo confirmo que he leido y aceptado los',TClink:"Términos y Condiciones Generales",TCpart2:"También note nuestra",PPlink:"Politica de Privacidad",depositLimit:"Límite de depósito establecido",successful:"Exitoso!",successDescription:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kyc1Part1:"Pudimos estabelecer tu límite de deposito mensual en",kyc1Part2:"Para aumentar el límite a la cantidad deseada",kycButton:"SUBIR DOCUMENTOS / ADJUNTAR DOCUMENTOS",closeButton:"CERRAR",depositError:"Error en actualización de límite de depósito",errorDescription:"No pudimos actualizar tu límite en este momento.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado."},"pt-br":{Loading:"Carregando, por favor espere...",setLimit:"Definir limite",setLimitDescription:'Na Alemanha, por lei é obrigatório estabelecer um limite de depósito mensal, portanto",Pedimos que você confirme o limite existente ou defina um novo para aproveitar o jogo sem restrições.',lugasInfo1:"Dúvidas? Informação sobre",lugasInfo2:"LUGARES",keepCurrentLimit:"MANTENHA O LIMITE ATUAL",keepCurrentLimitButton:"NOVO LIMITE",applyButton:"APLICAR",depositPeriod:"LIMITE DE DEPÓSITO MENSAL",TCpart1:'Ao selecionar ""manter limite atual"" ou ""aplicar"", confirmo que aceitei o"',TClink:"Termos e Condições Gerais",TCpart2:'Por favor, leve também em consideração o nosso"',PPlink:"Política de privacidade",depositLimit:"Limite de depósito fixo",successful:"Operação bem-sucedida",successDescription:"O limite de depósito foi definido com sucesso. Você pode gerenciar seus limites a qualquer momento na seção Configurações da sua conta.",kyc1Part1:"Conseguimos definir seu limite de depósito mensal para",kyc1Part2:"Para aumentar o limite de depósito mensal,Pedimos que você compartilhe-nos informações relevantes. Essas informações podem ser enviadas na seção de upload de arquivos na página",kycButton:"FAZER UPLOAD DE ARQUIVOS",closeButton:"Data",depositError:"Erro de atualização do limite de depósito",errorDescription:"Não foi possível atualizar seu limite neste momento,devido a um erro no servidor. Tente mais tarde",docsRequired:"Documentos requeridos",kyc2:'Para o limite selecionado," Exigimos documentos que comprovem sua situação financeira. Envie seu recibo de pagamento mais recente, bem como um extrato bancário atual",mostrando o saldo da sua conta e o depósito do seu salário.'},"es-mx":{Loading:"Cargando, por favor espere...",setLimit:"Fijar límite",setLimitDescription:'En Alemania,"por ley se requiere fijar un límite de depósito mensual, por lo tanto", le pedimos confirme el límite existente o establezca uno nuevo para disfrutar el juego sin restricciones.',lugasInfo1:"¿Alguna pregunta? Información acerca de",lugasInfo2:"LUGAS",keepCurrentLimit:"MANTENER EL LÍMITE ACTUAL",keepCurrentLimitButton:"LÍMITE NUEVO",applyButton:"APLICAR",depositPeriod:"LÍMITE DE DEPÓSITO MENSUAL",TClink:"Términos y condiciones generales",TCpart2:"Por favor también tome en cuenta nuestra",PPlink:"Política de privacidad",depositLimit:"Límite de depósito fijado",successful:"Operación exitosa",successDescription:"El límite depósito se ha fijado exitosamente. Puede manejar sus límites en cualquier momento en la sección de Ajustes de su cuenta.",kyc1Part1:"Pudimos fijar su límite de depósito mensual a",kyc1Part2:"Para poder incrementar el límite de depósito mensual,le pedimos nos comparta la información relevante . Esta información puede ser enviada en la sección para subir archivos en la página",kycButton:"SUBIR ARCHIVOS",closeButton:"CERRAR",depositError:"Error de actualización de límite de depósito",errorDescription:"No pudimos actualizar su límite en este momento,debido a un error del servidor. Intente más tarde",docsRequired:"Documentos requeridos",kyc2:"Para el límite seleccionado, requerimos documentos que muestren su situación financiera. Por favor suba su último talón de pago al igual que un estado de cuenta bancario actual, que muestre el balance de su cuenta y el depósito de su salario."}},{document:Ln}=a;
|
|
572
|
-
/* src/PlayerAccountGamingLimitsPopup_2.svelte generated by Svelte v3.59.2 */function
|
|
573
|
-
return"initial"===e[10]?
|
|
571
|
+
(e,t=Qt())=>new Pt(e,t,jt().formats,{ignoreTag:jt().ignoreTag}))),gn=(e,t={})=>{var n,i,r,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Qt(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=kt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(r=null==(i=(n=jt()).handleMissingMessage)?void 0:i.call(n,{locale:l,id:e,defaultValue:u}))?r:u)?o:e;if(!a)return c;let h=c;try{h=dn(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},yn=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=cn(t,["locale"]);return fn(un({locale:n},i))})(t).format(e),bn=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=cn(t,["locale"]);return mn(un({locale:n},i))})(t).format(e),En=(e,t)=>((e={})=>{var t=e,{locale:n=Qt()}=t,i=cn(t,["locale"]);return pn(un({locale:n},i))})(t).format(e),vn=(e,t=Qt())=>kt(e,t),Tn=$([en,St],(()=>gn));function Bn(e,t){_t(e,t)}$([en],(()=>yn)),$([en],(()=>bn)),$([en],(()=>En)),$([en,St],(()=>vn));const Ln={en:{loading:"Loading, please wait...",setLimit:"Set a limit",setLimitDescription:"In Germany, you are legally required to set a monthly deposit limit. Therefore, we ask you to confirm your existing limit or set a new one in order to enjoy playing without restrictions.",lugasInfo1:"Any questions? Information about",lugasInfo2:"LUGAS",keepCurrentLimit:"KEEP THE CURRENT LIMIT",keepCurrentLimitButton:"NEW LIMIT",applyButton:"APPLY",depositPeriod:"Monthly deposit limit",TCpart1:'By clicking "Keep the current limit" or "Apply" I confirm that I have read and accept the',TClink:"General Terms and Conditions",TCpart2:"Also note our",PPlink:"Privacy Policy",depositLimit:"Deposit Limit set",successful:"Successful!",successDescription:"The deposit limit has been set successfully. You can manage your limits at any time in the account settings.",kyc1Part1:"We were able to set your monthly deposit limit to",kyc1Part2:"In order to increase the limit to the desired amount, we ask you to provide us with the relevant information. This information can be submitted in the document upload.",kycButton:"UPLOAD DOCUMENTS",closeButton:"CLOSE",depositError:"Deposit Limit update error",errorDescription:"We were unable to set your limit at this time, due to a server error. Please try again later.",docsRequired:"Documents required!",kyc2:"For the selected limit, we require documents that show your financial situation. Please upload your last payslip as well as a current bank statement, that shows the account balance as well as that you received the salary payment."},de:{loading:"Lädt ...",setLimit:"Legen Sie ein Grenzwert fest",setLimitDescription:"In Deutschland müssen Sie gesetzlich ein monatliches Einlagenlimit festlegen.",lugasInfo1:"Fragen? Informationen zu",lugasInfo2:"LUGAS",keepCurrentLimit:"Aktuelles Limit beibehalten",keepCurrentLimitButton:"Neue Grenze",applyButton:"Anwenden",depositPeriod:"Monatliche Einzahlungslimit",TCpart1:'Durch Klicken auf "das aktuelle Grenzwert halten" oder "anwenden", bestätige ich, dass ich die',TClink:"Allgemeine Geschäftsbedingungen",TCpart2:"Beachten Sie auch unsere",PPlink:"Datenschutz-Bestimmungen",depositLimit:"Erfolgreich",successful:"Erfolgreich",successDescription:"Einzahlungslimit erfolgreich festgelegt. Sie können Ihre Grenzen jederzeit in den Kontoeinstellungen verwalten.",kyc1Part1:"Wir konnten Ihr monatliches Einzahlungslimit auf",kyc1Part2:"Um das Limit auf den gewünschten Betrag zu erhöhen, bitten wir, uns relevante Informationen zur Verfügung zu stellen. Diese Informationen können im Dokumenten-Upload eingereicht werden.",kycButton:"Dokumente hochladen",closeButton:"Schließen",depositError:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",errorDescription:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",docsRequired:"Documents required!",kyc2:"Für das gewählte Limit benötigen wir Dokumente, aus denen Ihre finanzielle Situation hervorgeht. Bitte laden Sie Ihre letzte Gehaltsabrechnung sowie einen aktuellen Kontoauszug, auf dem Kontostand sowie Gehaltseingang ersichtlich sind, hoch."},hr:{loading:"Učitavanje",setLimit:"Postavite ograničenje",setLimitDescription:"U Njemačkoj",lugasInfo1:"Ima li pitanja? Informacije o",lugasInfo2:"LUGAS",keepCurrentLimit:"ZADRŽITE TRENUTNO OGRANIČENJE",keepCurrentLimitButton:"NOVO OGRANIČENJE",applyButton:"PRIMJENI",depositPeriod:"Mjesečno ograničenje uplate",TCpart1:'Klikom na "Zadrži trenutno ograničenje" ili "Primijeni" potvrđujem da sam pročitao i prihvaćam',TClink:"Opći uvjeti poslovanja",TCpart2:"Također imajte na umu našu",PPlink:"Politiku privatnosti",depositLimit:"Postavljeno ograničenje uplate",successful:"Uspješno!",successDescription:"Ograničenje uplate je uspješno postavljeno. Svojim ograničenjima možete upravljati u bilo kojem trenutku u postavkama računa.",kyc1Part1:"Uspjeli smo postaviti vaše mjesečno ograničenje uplate na",kyc1Part2:"Kako bi povećali ograničenje na željeni iznos",kycButton:"UČITAJ DOKUMENTE",closeButton:"ZATVORI",depositError:"Pogreška ažuriranja ograničenja uplate",errorDescription:"Trenutačno nismo mogli postaviti vaše ograničenje",docsRequired:"Potrebni dokumenti!",kyc2:"Za odabrano ograničenje"},sl:{loading:"Nalaga...",setLimit:"Določi limit",setLimitDescription:"V Nemčiji je zakonsko predpisano, da določite mesečni vplačilni limit.",lugasInfo1:"Vprašanja? Informacije o",lugasInfo2:"LUGAS",keepCurrentLimit:"Ohranite obstoječi limit",keepCurrentLimitButton:"Novi limit",applyButton:"Uporabi",depositPeriod:"Mesečni vplačilni limit",TCpart1:"S klikom na „ohranite obstoječi limit“ ali „prevzem“ potrjujem, da sem prebral-a",TClink:"Splošna pravila in pogoji",TCpart2:"Preverite tudi na naš",PPlink:"Pravila o zasebnosti",depositLimit:"Uspešno",successful:"Uspešno",successDescription:"Vplačilni limit je bil uspešno postavljen. Limiti se lahko kadar koli prilagodijo v nastavitvah stavnega računa.",kyc1Part1:"Mesečni vplačilni limit smo lahko nastavili na",kyc1Part2:"Da bi povečali limit na želeni znesek, prosimo, da nam posredujete relevantne informacije. Te informacije lahko naložite pod prenos dokumentov.",kycButton:"Naložite dokumenteS",closeButton:"Zapri",depositError:"Nekaj je šlo narobe. Prosim poskusite ponovno.",errorDescription:"Nekaj je šlo narobe. Prosim poskusite ponovno.",docsRequired:"Documents required!",kyc2:"Za izbrani limit, potrebujemo dokumente, ki prikazujejo vašo ekonomsko stanje. Prosimo naložite vašo zadnjo plačilno listo in zadnji bančni izpisek, vključno s prikazom dobroimetja, ki prikazuje, da ste prejeli plačilo."},pl:{loading:"Ładowanie...",setLimit:"Ustaw limit",setLimitDescription:"W Niemczech istnieje prawny obowiązek ustalenia miesięcznego limitu wpłat.",lugasInfo1:"Jakieś pytania? Informacja o",lugasInfo2:"LUGAS",keepCurrentLimit:"Zachowaj obecny limit",keepCurrentLimitButton:"Nowy limit",applyButton:"Zastosuj",depositPeriod:"Miesięczny limit wpłat",TCpart1:'Klikając na "Zachowaj obecny limit" lub "Zastosuj", potwierdzam, że przeczytałem i akceptuję',TClink:"Ogólne warunki handlowe",TCpart2:"Zapoznaj się również z naszą",PPlink:"Polityka prywatności",depositLimit:"Zakończone powodzeniem",successful:"Zakończone powodzeniem",successDescription:"Limit wpłat ustawiony pomyślnie. Możesz zarządzać limitami w dowolnym momencie w ustawieniach konta.",kyc1Part1:"Udało nam się ustawić Twój miesięczny limit wpłat na",kyc1Part2:"Aby zwiększyć limit żądanej kwoty, prosimy o podanie nam odpowiednich informacji. Informacje te można przesłać w przesyłaniu dokumentu.",kycButton:"Wczytywanie dokumentów",closeButton:"zamknij",depositError:"Coś poszło nie tak. Proszę spróbuj ponownie.",errorDescription:"Coś poszło nie tak. Proszę spróbuj ponownie.",docsRequired:"Documents required!",kyc2:"Do wybranego limitu potrzebujemy dokumentów potwierdzających Państwa sytuację finansową. Prosimy o przesłanie ostatniego odcinka wypłaty oraz aktualnego wyciągu bankowego, na którym widnieje stan konta i przychodzące wynagrodzenie."},es:{loading:"Cargando...",setLimit:"Establece un límite",setLimitDescription:"En Alemania",lugasInfo1:"Alguna pregunta? Información sobre",lugasInfo2:"LUGAS",keepCurrentLimit:"MANTENER LÍMITE ACTUAL",keepCurrentLimitButton:"NUEVO LÍMITE",applyButton:"APLICAR",depositPeriod:"Límite Mensual de depósitos",TCpart1:'Dando clic en "Mantener límite actual" o "Aplicar" yo confirmo que he leido y aceptado los',TClink:"Términos y Condiciones Generales",TCpart2:"También note nuestra",PPlink:"Politica de Privacidad",depositLimit:"Límite de depósito establecido",successful:"Exitoso!",successDescription:"El límite de depósito se ha establecido con éxito. Puede administrar sus límites en cualquier momento en la confirguración de la cuenta.",kyc1Part1:"Pudimos estabelecer tu límite de deposito mensual en",kyc1Part2:"Para aumentar el límite a la cantidad deseada",kycButton:"SUBIR DOCUMENTOS / ADJUNTAR DOCUMENTOS",closeButton:"CERRAR",depositError:"Error en actualización de límite de depósito",errorDescription:"No pudimos actualizar tu límite en este momento.",docsRequired:"Documentos requeridos!",kyc2:"Para el límite seleccionado."},"pt-br":{Loading:"Carregando, por favor espere...",setLimit:"Definir limite",setLimitDescription:'Na Alemanha, por lei é obrigatório estabelecer um limite de depósito mensal, portanto",Pedimos que você confirme o limite existente ou defina um novo para aproveitar o jogo sem restrições.',lugasInfo1:"Dúvidas? Informação sobre",lugasInfo2:"LUGARES",keepCurrentLimit:"MANTENHA O LIMITE ATUAL",keepCurrentLimitButton:"NOVO LIMITE",applyButton:"APLICAR",depositPeriod:"LIMITE DE DEPÓSITO MENSAL",TCpart1:'Ao selecionar ""manter limite atual"" ou ""aplicar"", confirmo que aceitei o"',TClink:"Termos e Condições Gerais",TCpart2:'Por favor, leve também em consideração o nosso"',PPlink:"Política de privacidade",depositLimit:"Limite de depósito fixo",successful:"Operação bem-sucedida",successDescription:"O limite de depósito foi definido com sucesso. Você pode gerenciar seus limites a qualquer momento na seção Configurações da sua conta.",kyc1Part1:"Conseguimos definir seu limite de depósito mensal para",kyc1Part2:"Para aumentar o limite de depósito mensal,Pedimos que você compartilhe-nos informações relevantes. Essas informações podem ser enviadas na seção de upload de arquivos na página",kycButton:"FAZER UPLOAD DE ARQUIVOS",closeButton:"Data",depositError:"Erro de atualização do limite de depósito",errorDescription:"Não foi possível atualizar seu limite neste momento,devido a um erro no servidor. Tente mais tarde",docsRequired:"Documentos requeridos",kyc2:'Para o limite selecionado," Exigimos documentos que comprovem sua situação financeira. Envie seu recibo de pagamento mais recente, bem como um extrato bancário atual",mostrando o saldo da sua conta e o depósito do seu salário.'},"es-mx":{Loading:"Cargando, por favor espere...",setLimit:"Fijar límite",setLimitDescription:'En Alemania,"por ley se requiere fijar un límite de depósito mensual, por lo tanto", le pedimos confirme el límite existente o establezca uno nuevo para disfrutar el juego sin restricciones.',lugasInfo1:"¿Alguna pregunta? Información acerca de",lugasInfo2:"LUGAS",keepCurrentLimit:"MANTENER EL LÍMITE ACTUAL",keepCurrentLimitButton:"LÍMITE NUEVO",applyButton:"APLICAR",depositPeriod:"LÍMITE DE DEPÓSITO MENSUAL",TClink:"Términos y condiciones generales",TCpart2:"Por favor también tome en cuenta nuestra",PPlink:"Política de privacidad",depositLimit:"Límite de depósito fijado",successful:"Operación exitosa",successDescription:"El límite depósito se ha fijado exitosamente. Puede manejar sus límites en cualquier momento en la sección de Ajustes de su cuenta.",kyc1Part1:"Pudimos fijar su límite de depósito mensual a",kyc1Part2:"Para poder incrementar el límite de depósito mensual,le pedimos nos comparta la información relevante . Esta información puede ser enviada en la sección para subir archivos en la página",kycButton:"SUBIR ARCHIVOS",closeButton:"CERRAR",depositError:"Error de actualización de límite de depósito",errorDescription:"No pudimos actualizar su límite en este momento,debido a un error del servidor. Intente más tarde",docsRequired:"Documentos requeridos",kyc2:"Para el límite seleccionado, requerimos documentos que muestren su situación financiera. Por favor suba su último talón de pago al igual que un estado de cuenta bancario actual, que muestre el balance de su cuenta y el depósito de su salario."},tr:{loading:"Yükleniyor lütfen bekleyin...",setLimit:"Bir sınır belirleyin",setLimitDescription:"Almanya'da yasal olarak aylık bir para yatırma limiti belirlemeniz gerekmektedir. Bu nedenle kısıtlama olmadan oyun keyfini yaşayabilmeniz için mevcut limitinizi onaylamanızı veya yeni bir limit belirlemenizi rica ediyoruz.",lugasInfo1:"Sorusu olan? Hakkında bilgi",lugasInfo2:"LUGAS",keepCurrentLimit:"MEVCUT LİMİTİ TUTUN",keepCurrentLimitButton:"YENİ LİMİT",applyButton:"UYGULA",depositPeriod:"Aylık para yatırma limiti",TCpart1:"Mevcut limiti koru veya Uygula seçeneğini tıklayarak okuduğumu ve kabul ettiğimi onaylıyorum",TClink:"Genel Şartlar ve Koşullar",TCpart2:"Ayrıca şunu da not edin:",PPlink:"Gizlilik Politikası",depositLimit:"Para Yatırma Limiti belirlendi",successful:"Başarılı!",successDescription:"Para yatırma limiti başarıyla belirlendi. Limitlerinizi istediğiniz zaman hesap ayarlarından yönetebilirsiniz.",kyc1Part1:"Aylık para yatırma limitinizi şu şekilde ayarlayabildik:",kyc1Part2:"Limitin istenilen tutara yükseltilebilmesi için ilgili bilgileri tarafımıza iletmenizi rica ederiz. Bu bilgi belge yüklemede gönderilebilir.",kycButton:"BELGELERİ YÜKLE",closeButton:"KAPALI",depositError:"Para Yatırma Limiti güncelleme hatası",errorDescription:"Sunucu hatası nedeniyle şu anda sınırınızı belirleyemedik. Lütfen daha sonra tekrar deneyiniz.",docsRequired:"Gerekli belgeler!",kyc2:"Seçilen limit için mali durumunuzu gösteren belgelere ihtiyacımız var. Lütfen son maaş bordronuzu ve hesap bakiyenizi ve maaş ödemenizi aldığınızı gösteren güncel banka ekstrenizi yükleyin."}},{document:Pn}=a;
|
|
572
|
+
/* src/PlayerAccountGamingLimitsPopup_2.svelte generated by Svelte v3.59.2 */function An(e){let t;function n(e,t){/*popupState*/
|
|
573
|
+
return"initial"===e[10]?In:/*popupState*/"successful"===e[10]?Cn:/*popupState*/"KYC"===e[10]?Sn:/*popupState*/"KYC2"===e[10]?Hn:/*popupState*/"error"===e[10]?kn:void 0}let i=n(e),r=i&&i(e);return{c(){t=h("div"),r&&r.c(),g(t,"class","InitialWrapper")},m(e,n){u(e,t,n),r&&r.m(t,null)},p(e,o){i===(i=n(e))&&r?r.p(e,o):(r&&r.d(1),r=i&&i(e),r&&(r.c(),r.m(t,null)))},d(e){e&&c(t),r&&r.d()}}}
|
|
574
574
|
// (146:8) {#if isLoading}
|
|
575
|
-
function
|
|
575
|
+
function wn(e){let t,n,i=/*$_*/e[12]("loading")+"";return{c(){t=h("p"),n=m(i)},m(e,i){u(e,t,i),l(t,n)},p(e,t){/*$_*/4096&t[0]&&i!==(i=/*$_*/e[12]("loading")+"")&&b(n,i)},d(e){e&&c(t)}}}
|
|
576
576
|
// (242:43)
|
|
577
|
-
function
|
|
577
|
+
function kn(e){let t,n,i,r,o,s,a,p,y,E,v,T,B=/*$_*/e[12]("depositError")+"",L=/*$_*/e[12]("errorDescription")+"",P=/*$_*/e[12]("closeButton")+"";return{c(){t=h("p"),n=m(B),i=f(),r=h("div"),r.innerHTML='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve"><metadata>Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata><g><path d="M500,100.9c220,0,399.1,179,399.1,399.1S720.1,899.1,500,899.1c-220.1,0-399.1-179-399.1-399.1C100.9,279.9,279.9,100.9,500,100.9 M500,10C229.4,10,10,229.4,10,500c0,270.6,219.4,490,490,490c270.6,0,490-219.4,490-490C990,229.4,770.6,10,500,10L500,10z"></path><path d="M658.7,734.5L272.2,348l75-75l386.4,386.4L658.7,734.5z"></path><path d="M347.2,734.5l-75-75L658.7,273l75,75L347.2,734.5z"></path></g></svg>',o=f(),s=h("p"),a=m(L),p=f(),y=h("button"),E=m(P),g(t,"class","Title"),g(r,"class","ResultIconWrapper"),g(s,"class","Description CenterAlign"),g(y,"class","ConfirmButton SecondaryButtonStyle")},m(c,h){u(c,t,h),l(t,n),u(c,i,h),u(c,r,h),u(c,o,h),u(c,s,h),l(s,a),u(c,p,h),u(c,y,h),l(y,E),v||(T=d(y,"click",/*click_handler_10*/e[36]),v=!0)},p(e,t){/*$_*/4096&t[0]&&B!==(B=/*$_*/e[12]("depositError")+"")&&b(n,B),/*$_*/4096&t[0]&&L!==(L=/*$_*/e[12]("errorDescription")+"")&&b(a,L),/*$_*/4096&t[0]&&P!==(P=/*$_*/e[12]("closeButton")+"")&&b(E,P)},d(e){e&&c(t),e&&c(i),e&&c(r),e&&c(o),e&&c(s),e&&c(p),e&&c(y),v=!1,T()}}}
|
|
578
578
|
// (219:42)
|
|
579
|
-
function
|
|
579
|
+
function Hn(e){let t,n,r,o,s,a,y,E,T,B,L,P,A,w,k,H,S,C,I,_,N,O,M=/*$_*/e[12]("docsRequired")+"",D=/*$_*/e[12]("docsRequired")+"",R=/*$_*/e[12]("kyc2")+"",U=/*$_*/e[12]("kycButton")+"",x=/*$_*/e[12]("closeButton")+"";return{c(){t=h("p"),n=m(M),r=f(),o=h("div"),s=h("div"),a=p("svg"),y=p("g"),E=p("path"),T=f(),B=h("p"),L=m(D),P=f(),A=h("p"),w=m(R),k=f(),H=h("button"),S=m(U),C=f(),I=h("button"),_=m(x),g(t,"class","Title"),g(E,"id","XMLID_6_"),g(E,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),g(y,"id","XMLID_1_"),g(a,"version","1.1"),g(a,"id","Layer_1"),g(a,"xmlns","http://www.w3.org/2000/svg"),g(a,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(a,"x","0px"),g(a,"y","0px"),g(a,"viewBox","0 0 512 512"),v(a,"enable-background","new 0 0 512 512"),g(a,"xml:space","preserve"),g(s,"class","ResultIconWrapper"),g(A,"class","Description CenterAlign"),g(o,"class","DescriptionWrapper"),g(H,"class","KycButton PrimaryButtonStyle"),g(I,"class","ConfirmButton SecondaryButtonStyle")},m(i,c){u(i,t,c),l(t,n),u(i,r,c),u(i,o,c),l(o,s),l(s,a),l(a,y),l(y,E),l(s,T),l(s,B),l(B,L),l(o,P),l(o,A),l(A,w),u(i,k,c),u(i,H,c),l(H,S),u(i,C,c),u(i,I,c),l(I,_),N||(O=[d(H,"click",/*click_handler_8*/e[34]),d(I,"click",/*click_handler_9*/e[35])],N=!0)},p(e,t){/*$_*/4096&t[0]&&M!==(M=/*$_*/e[12]("docsRequired")+"")&&b(n,M),/*$_*/4096&t[0]&&D!==(D=/*$_*/e[12]("docsRequired")+"")&&b(L,D),/*$_*/4096&t[0]&&R!==(R=/*$_*/e[12]("kyc2")+"")&&b(w,R),/*$_*/4096&t[0]&&U!==(U=/*$_*/e[12]("kycButton")+"")&&b(S,U),/*$_*/4096&t[0]&&x!==(x=/*$_*/e[12]("closeButton")+"")&&b(_,x)},d(e){e&&c(t),e&&c(r),e&&c(o),e&&c(k),e&&c(H),e&&c(C),e&&c(I),N=!1,i(O)}}}
|
|
580
580
|
// (196:41)
|
|
581
|
-
function Sn(e){let t,n,r,o,s,a,y,E,T,B,P,
|
|
581
|
+
function Sn(e){let t,n,r,o,s,a,y,E,T,B,L,P,A,w,k,H,S,C,I,_,N,O,M,D,R,U,x=/*$_*/e[12]("depositLimit")+"",j=/*$_*/e[12]("successful")+"",G=/*$_*/e[12]("kyc1Part1")+"",z=/*$_*/e[12]("kyc1Part2")+"",$=/*$_*/e[12]("kycButton")+"",F=/*$_*/e[12]("closeButton")+"";return{c(){t=h("p"),n=m(x),r=f(),o=h("div"),s=h("div"),a=p("svg"),y=p("g"),E=p("path"),T=f(),B=h("p"),L=m(j),P=f(),A=h("p"),w=m(G),k=m(/*legislatorLimitValue*/e[11]),H=f(),S=m(/*currency*/e[0]),C=m(z),I=f(),_=h("button"),N=m($),O=f(),M=h("button"),D=m(F),g(t,"class","Title"),g(E,"id","XMLID_6_"),g(E,"d","M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360\n c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55\n c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1\n h256.5v-82.1H429v366.5H429.9z"),g(y,"id","XMLID_1_"),g(a,"version","1.1"),g(a,"id","Layer_1"),g(a,"xmlns","http://www.w3.org/2000/svg"),g(a,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(a,"x","0px"),g(a,"y","0px"),g(a,"viewBox","0 0 512 512"),v(a,"enable-background","new 0 0 512 512"),g(a,"xml:space","preserve"),g(s,"class","ResultIconWrapper"),g(A,"class","Description CenterAlign"),g(o,"class","DescriptionWrapper"),g(_,"class","KycButton PrimaryButtonStyle"),g(M,"class","ConfirmButton SecondaryButtonStyle")},m(i,c){u(i,t,c),l(t,n),u(i,r,c),u(i,o,c),l(o,s),l(s,a),l(a,y),l(y,E),l(s,T),l(s,B),l(B,L),l(o,P),l(o,A),l(A,w),l(A,k),l(A,H),l(A,S),l(A,C),u(i,I,c),u(i,_,c),l(_,N),u(i,O,c),u(i,M,c),l(M,D),R||(U=[d(_,"click",/*click_handler_6*/e[32]),d(M,"click",/*click_handler_7*/e[33])],R=!0)},p(e,t){/*$_*/4096&t[0]&&x!==(x=/*$_*/e[12]("depositLimit")+"")&&b(n,x),/*$_*/4096&t[0]&&j!==(j=/*$_*/e[12]("successful")+"")&&b(L,j),/*$_*/4096&t[0]&&G!==(G=/*$_*/e[12]("kyc1Part1")+"")&&b(w,G),/*legislatorLimitValue*/2048&t[0]&&b(k,/*legislatorLimitValue*/e[11]),/*currency*/1&t[0]&&b(S,/*currency*/e[0]),/*$_*/4096&t[0]&&z!==(z=/*$_*/e[12]("kyc1Part2")+"")&&b(C,z),/*$_*/4096&t[0]&&$!==($=/*$_*/e[12]("kycButton")+"")&&b(N,$),/*$_*/4096&t[0]&&F!==(F=/*$_*/e[12]("closeButton")+"")&&b(D,F)},d(e){e&&c(t),e&&c(r),e&&c(o),e&&c(I),e&&c(_),e&&c(O),e&&c(M),R=!1,i(U)}}}
|
|
582
582
|
// (179:48)
|
|
583
|
-
function
|
|
583
|
+
function Cn(e){let t,n,i,r,o,s,a,y,E,T,B,L,P,A,w,k,H,S,C,I,_,N=/*$_*/e[12]("depositLimit")+"",O=/*$_*/e[12]("successful")+"",M=/*$_*/e[12]("successDescription")+"";return{c(){t=h("p"),n=m(N),i=f(),r=h("div"),o=h("div"),s=p("svg"),a=p("defs"),y=p("style"),E=m(".fil0 {fill:black;fill-rule:nonzero}\n "),T=p("g"),B=p("polygon"),L=f(),P=h("p"),A=m(O),w=f(),k=h("p"),H=m(M),S=f(),C=h("button"),C.textContent="OK",g(t,"class","Title"),g(y,"type","text/css"),g(B,"class","fil0"),g(B,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),g(s,"xmlns","http://www.w3.org/2000/svg"),g(s,"xmlns:xlink","http://www.w3.org/1999/xlink"),g(s,"xml:space","preserve"),g(s,"version","1.1"),v(s,"shape-rendering","geometricPrecision"),v(s,"text-rendering","geometricPrecision"),v(s,"image-rendering","optimizeQuality"),g(s,"viewBox","0 0 90 69"),g(s,"x","0px"),g(s,"y","0px"),g(s,"fill-rule","evenodd"),g(s,"clip-rule","evenodd"),g(o,"class","ResultIconWrapper"),g(k,"class","Description CenterAlign"),g(r,"class","DescriptionWrapper"),g(C,"class","ConfirmButton PrimaryButtonStyle")},m(c,h){u(c,t,h),l(t,n),u(c,i,h),u(c,r,h),l(r,o),l(o,s),l(s,a),l(a,y),l(y,E),l(s,T),l(T,B),l(o,L),l(o,P),l(P,A),l(r,w),l(r,k),l(k,H),u(c,S,h),u(c,C,h),I||(_=d(C,"click",/*click_handler_5*/e[31]),I=!0)},p(e,t){/*$_*/4096&t[0]&&N!==(N=/*$_*/e[12]("depositLimit")+"")&&b(n,N),/*$_*/4096&t[0]&&O!==(O=/*$_*/e[12]("successful")+"")&&b(A,O),/*$_*/4096&t[0]&&M!==(M=/*$_*/e[12]("successDescription")+"")&&b(H,M)},d(e){e&&c(t),e&&c(i),e&&c(r),e&&c(S),e&&c(C),I=!1,_()}}}
|
|
584
584
|
// (150:10) {#if popupState === "initial"}
|
|
585
|
-
function
|
|
586
|
-
/*svg_binding*/e[25](
|
|
587
|
-
/*button3_binding*/e[27](F),
|
|
588
|
-
/*svg_binding*/,e[25](null),n&&
|
|
589
|
-
/*button3_binding*/,e[27](null),n&&
|
|
590
|
-
return e[7]?
|
|
585
|
+
function In(e){let t,n,r,o,s,a,v,B,L,P,A,w,k,H,S,C,I,_,N,O,M,D,R,U,x,j,G,z,$,F,V,K,q,X,Z,Y,W,J,Q,ee,te,ne,ie,re,oe=/*$_*/e[12]("setLimit")+"",se=/*$_*/e[12]("setLimitDescription")+"",ae=/*$_*/e[12]("lugasInfo1")+"",le=/*$_*/e[12]("lugasInfo2")+"",ue=/*$_*/e[12]("keepCurrentLimit")+"",ce=/*$_*/e[12]("keepCurrentLimitButton")+"",he=/*$_*/e[12]("depositPeriod")+"",pe=/*$_*/e[12]("applyButton")+"",me=/*$_*/e[12]("TCpart1")+"",fe=/*$_*/e[12]("TClink")+"",de=/*$_*/e[12]("TCpart2")+"",ge=/*$_*/e[12]("PPlink")+"";return{c(){t=h("p"),n=m(oe),r=f(),o=h("p"),s=m(se),a=f(),v=h("p"),B=m(ae),L=f(),P=h("button"),A=m(le),w=f(),k=h("button"),H=m(ue),S=f(),C=h("button"),I=m(ce),_=p("svg"),N=p("path"),O=p("path"),M=f(),D=h("div"),R=h("div"),U=h("span"),x=m(he),j=f(),G=h("div"),z=h("input"),$=f(),F=h("button"),V=m(pe),K=f(),q=h("p"),X=m(me),Z=h("button"),Y=m(fe),W=f(),J=m(de),Q=f(),ee=h("button"),te=m(ge),ne=m("."),g(t,"class","Title"),g(o,"class","Description LeftAlign"),g(P,"class","LinkButton"),g(v,"class","AdditionalInformation"),g(k,"class","KeepCurrentButton PrimaryButtonStyle"),g(N,"d","M10.5 15l7.5 7.5 7.5-7.5z"),g(O,"d","M0 0h36v36h-36z"),g(O,"fill","none"),g(_,"class","ExpandArrow"),g(_,"xmlns","http://www.w3.org/2000/svg"),g(_,"width","36"),g(_,"height","36"),g(_,"viewBox","0 0 36 36"),g(_,"fill","#999"),T(_,"Extended",/*extended*/e[5]),g(C,"class","ExpandButton"),g(U,"class","DepositPeriodText"),g(R,"class","DepositTextSection"),g(z,"type","number"),g(z,"class","DepositInput"),g(F,"type","submit"),g(F,"class","SubmitDepositButton PrimaryButtonStyle"),F.disabled=!0,g(G,"class","DepositInputSection"),g(D,"class","SetLimitSection"),T(D,"Hidden",/*hidden*/e[4]),g(Z,"class","LinkButton"),g(ee,"class","LinkButton"),g(q,"class","TermsConditions")},m(i,c){u(i,t,c),l(t,n),u(i,r,c),u(i,o,c),l(o,s),u(i,a,c),u(i,v,c),l(v,B),l(v,L),l(v,P),l(P,A),u(i,w,c),u(i,k,c),l(k,H),u(i,S,c),u(i,C,c),l(C,I),l(C,_),l(_,N),l(_,O),
|
|
586
|
+
/*svg_binding*/e[25](_),u(i,M,c),u(i,D,c),l(D,R),l(R,U),l(U,x),l(D,j),l(D,G),l(G,z),E(z,/*inputAmount*/e[6]),l(G,$),l(G,F),l(F,V),
|
|
587
|
+
/*button3_binding*/e[27](F),u(i,K,c),u(i,q,c),l(q,X),l(q,Z),l(Z,Y),l(q,W),l(q,J),l(q,Q),l(q,ee),l(ee,te),l(q,ne),ie||(re=[d(P,"click",/*click_handler*/e[23]),d(k,"click",/*click_handler_1*/e[24]),d(C,"click",/*toggleNewLimitArea*/e[13]),d(z,"input",/*input_input_handler*/e[26]),d(z,"keyup",/*updateInputValue*/e[14]),d(F,"click",/*click_handler_2*/e[28]),d(Z,"click",/*click_handler_3*/e[29]),d(ee,"click",/*click_handler_4*/e[30])],ie=!0)},p(e,t){/*$_*/4096&t[0]&&oe!==(oe=/*$_*/e[12]("setLimit")+"")&&b(n,oe),/*$_*/4096&t[0]&&se!==(se=/*$_*/e[12]("setLimitDescription")+"")&&b(s,se),/*$_*/4096&t[0]&&ae!==(ae=/*$_*/e[12]("lugasInfo1")+"")&&b(B,ae),/*$_*/4096&t[0]&&le!==(le=/*$_*/e[12]("lugasInfo2")+"")&&b(A,le),/*$_*/4096&t[0]&&ue!==(ue=/*$_*/e[12]("keepCurrentLimit")+"")&&b(H,ue),/*$_*/4096&t[0]&&ce!==(ce=/*$_*/e[12]("keepCurrentLimitButton")+"")&&b(I,ce),/*extended*/32&t[0]&&T(_,"Extended",/*extended*/e[5]),/*$_*/4096&t[0]&&he!==(he=/*$_*/e[12]("depositPeriod")+"")&&b(x,he),/*inputAmount*/64&t[0]&&y(z.value)!==/*inputAmount*/e[6]&&E(z,/*inputAmount*/e[6]),/*$_*/4096&t[0]&&pe!==(pe=/*$_*/e[12]("applyButton")+"")&&b(V,pe),/*hidden*/16&t[0]&&T(D,"Hidden",/*hidden*/e[4]),/*$_*/4096&t[0]&&me!==(me=/*$_*/e[12]("TCpart1")+"")&&b(X,me),/*$_*/4096&t[0]&&fe!==(fe=/*$_*/e[12]("TClink")+"")&&b(Y,fe),/*$_*/4096&t[0]&&de!==(de=/*$_*/e[12]("TCpart2")+"")&&b(J,de),/*$_*/4096&t[0]&&ge!==(ge=/*$_*/e[12]("PPlink")+"")&&b(te,ge)},d(n){n&&c(t),n&&c(r),n&&c(o),n&&c(a),n&&c(v),n&&c(w),n&&c(k),n&&c(S),n&&c(C)
|
|
588
|
+
/*svg_binding*/,e[25](null),n&&c(M),n&&c(D)
|
|
589
|
+
/*button3_binding*/,e[27](null),n&&c(K),n&&c(q),ie=!1,i(re)}}}function _n(t){let n,i,r,o,s,a;function p(e,t){/*isLoading*/
|
|
590
|
+
return e[7]?wn:/*lang*/e[1]?An:void 0}let m=p(t),d=m&&m(t);return{c(){n=h("meta"),i=f(),r=h("div"),o=h("div"),s=h("div"),a=h("div"),d&&d.c(),this.c=e,g(n,"name","viewport"),g(n,"content","width=device-width, initial-scale=1"),g(a,"class","ModalContainer"),g(s,"class","Overlay"),g(o,"class","player-account-gaming-limits-popup-2")},m(e,c){l(Pn.head,n),u(e,i,c),u(e,r,c),l(r,o),l(o,s),l(s,a),d&&d.m(a,null)
|
|
591
591
|
/*div2_binding*/,t[37](o),
|
|
592
|
-
/*div3_binding*/t[38](r)},p(e,t){m===(m=p(e))&&d?d.p(e,t):(d&&d.d(1),d=m&&m(e),d&&(d.c(),d.m(a,null)))},i:e,o:e,d(e){
|
|
592
|
+
/*div3_binding*/t[38](r)},p(e,t){m===(m=p(e))&&d?d.p(e,t):(d&&d.d(1),d=m&&m(e),d&&(d.c(),d.m(a,null)))},i:e,o:e,d(e){c(n),e&&c(i),e&&c(r),d&&d.d()
|
|
593
593
|
/*div2_binding*/,t[37](null),
|
|
594
|
-
/*div3_binding*/t[38](null)}}}function Nn(e,t,n){let i;var r,o;r=Tn,o=e=>n(12,i=e),e.$$.on_destroy.push(s(r,o));let a,l,c,
|
|
594
|
+
/*div3_binding*/t[38](null)}}}function Nn(e,t,n){let i;var r,o;r=Tn,o=e=>n(12,i=e),e.$$.on_destroy.push(s(r,o));let a,l,u,c,h,p,{userid:m=""}=t,{session:f=""}=t,{endpoint:d=""}=t,{currency:g=""}=t,{lang:b=""}=t,{translationurl:E=""}=t,{clientstyling:v=""}=t,{clientstylingurl:T=""}=t,B=!0,L=!1,P=!1,A="initial";Object.keys(Ln).forEach((e=>{Bn(e,Ln[e])}));const k=e=>{switch(window.postMessage({type:e},window.location.href),e){case"closePopup":case"uploadDocuments":h.parentNode.removeChild(h)}},H=e=>{const t=new URL(`/v1/player/${m}/limit/lugas`,d);let i={};n(7,P=!0),i="custom"===e?{amount:u}:{};let r={method:"POST",headers:{"X-SessionID":f,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)};fetch(t.href,r).then((e=>e.json())).then((e=>{S(e)})).catch((e=>{console.log(e)})).finally((()=>{n(7,P=!1)}))},S=e=>{if(e.hasOwnProperty("kycNeeded"))switch(e.popup){case 1:n(10,A="KYC"),n(11,p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.operatorDepositLimitAmount));break;case 2:n(10,A="successful");break;case 3:n(10,A="KYC2")}else n(10,A="error")},C=()=>{var e;e=b,en.set(e)};return e.$$set=e=>{"userid"in e&&n(17,m=e.userid),"session"in e&&n(18,f=e.session),"endpoint"in e&&n(19,d=e.endpoint),"currency"in e&&n(0,g=e.currency),"lang"in e&&n(1,b=e.lang),"translationurl"in e&&n(20,E=e.translationurl),"clientstyling"in e&&n(21,v=e.clientstyling),"clientstylingurl"in e&&n(22,T=e.clientstylingurl)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&b&&C(),/*clientstylingurl, customStylingContainer*/4194308&e.$$.dirty[0]&&T&&a&&(()=>{let e=new URL(T),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/2097156&e.$$.dirty[0]&&v&&a&&(()=>{let e=document.createElement("style");e.innerHTML=v,a.appendChild(e)})(),/*translationurl*/1048576&e.$$.dirty[0]&&E&&fetch(E).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bn(t,e[t])}))})).catch((e=>{console.log(e)}))},[g,b,a,l,B,L,u,P,c,h,A,p,i,()=>{n(5,L=!L),n(4,B=!B)},()=>{const e=999999999999999;u>e&&n(6,u=e);const t=u-Math.floor(u)==0;u>0&&t?c.removeAttribute("disabled"):c.setAttribute("disabled","true")},k,H,m,f,d,E,v,T,()=>k("lugasInformation"),()=>H("default"),function(e){w[e?"unshift":"push"]((()=>{l=e,n(3,l)}))},function(){u=y(this.value),n(6,u)},function(e){w[e?"unshift":"push"]((()=>{c=e,n(8,c)}))},()=>H("custom"),()=>k("termsConditions"),()=>k("privacyPolicy"),()=>k("closePopup"),()=>k("uploadDocuments"),()=>k("closePopup"),()=>k("uploadDocuments"),()=>k("closePopup"),()=>k("closePopup"),function(e){w[e?"unshift":"push"]((()=>{h=e,n(9,h)}))},function(e){w[e?"unshift":"push"]((()=>{a=e,n(2,a)}))}]}class On extends j{constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-popup-2{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:rgb(122, 195, 23)}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));text-decoration:underline;background-color:rgba(0, 0, 0, 0)}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:320px;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:var(--emfe-w-color-white, #FFFFFF);border:0;padding:0;margin-top:-10px;color:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:not-allowed;background:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.Hidden{display:none}.Extended{transform:rotate(180deg)}',this.shadowRoot.appendChild(t),x(this,{target:this.shadowRoot,props:B(this.attributes),customElement:!0},Nn,_n,o,{userid:17,session:18,endpoint:19,currency:0,lang:1,translationurl:20,clientstyling:21,clientstylingurl:22},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["userid","session","endpoint","currency","lang","translationurl","clientstyling","clientstylingurl"]}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),O()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),O()}get endpoint(){return this.$$.ctx[19]}set endpoint(e){this.$$set({endpoint:e}),O()}get currency(){return this.$$.ctx[0]}set currency(e){this.$$set({currency:e}),O()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),O()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}}return!customElements.get("player-account-gaming-limits-popup-2")&&customElements.define("player-account-gaming-limits-popup-2",On),On}));
|
|
595
595
|
//# sourceMappingURL=player-account-gaming-limits-popup-2.js.map
|