@everymatrix/cashier-receipt-page 1.35.0 → 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 r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t,r){e.$$.on_destroy.push(l(t,r))}const u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function h(e,t){e.appendChild(t)}function p(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function g(){return d(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function y(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function E(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:y(e,t,r)}function v(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e){const t={};for(const r of e)t[r.name]=r.value;return t}let w;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 r(){return Object.create(null)}function n(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function c(e,t,r){e.$$.on_destroy.push(l(t,r))}const u="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function h(e,t){e.appendChild(t)}function p(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function g(){return d(" ")}function b(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function y(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function E(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:y(e,t,r)}function v(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e){const t={};for(const r of e)t[r.name]=r.value;return t}let w;function H(e){w=e}const C=[],B=[];let A=[];const _=[],L=Promise.resolve();let P=!1;function S(e){A.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,29 +17,29 @@
|
|
|
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 R=new Set;let O=0;// Do *not* move this inside the flush() function
|
|
21
21
|
function N(){
|
|
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!==
|
|
25
|
+
if(0!==O)return;const e=w;do{
|
|
26
26
|
// first, call beforeUpdate functions
|
|
27
27
|
// and update components
|
|
28
|
-
try{for(;
|
|
28
|
+
try{for(;O<C.length;){const e=C[O];O++,H(e),I(e.$$)}}catch(e){
|
|
29
29
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
30
|
-
throw
|
|
30
|
+
throw C.length=0,O=0,e}for(H(null),C.length=0,O=0;B.length;)B.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<A.length;e+=1){const t=A[e];
|
|
34
|
+
for(let e=0;e<A.length;e+=1){const t=A[e];R.has(t)||(
|
|
35
35
|
// ...so guard against infinite loops
|
|
36
|
-
|
|
36
|
+
R.add(t),t())}A.length=0}while(C.length);for(;_.length;)_.pop()();P=!1,R.clear(),H(e)}function I(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(S)}}
|
|
37
37
|
/**
|
|
38
38
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
39
39
|
*/const M=new Set;function x(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];A.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),A=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function $(e,t){-1===e.$$.dirty[0]&&(
|
|
42
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function $(e,t){-1===e.$$.dirty[0]&&(C.push(e),P||(P=!0,L.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function D(o,s,a,l,c,u,h,p=[-1]){const m=w;H(o);const d=o.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
44
|
props:u,update:e,not_equal:c,bound:r(),
|
|
45
45
|
// lifecycle
|
|
@@ -60,13 +60,13 @@ S((()=>{const r=e.$$.on_mount.map(t).filter(i);
|
|
|
60
60
|
e.$$.on_destroy?e.$$.on_destroy.push(...r):
|
|
61
61
|
// Edge case - component was destroyed immediately,
|
|
62
62
|
// most likely as a result of a binding initialising
|
|
63
|
-
n(r),e.$$.on_mount=[]})),l.forEach(S)}(o,s.target,s.anchor,s.customElement),N()}var b,y;
|
|
63
|
+
n(r),e.$$.on_mount=[]})),l.forEach(S)}(o,s.target,s.anchor,s.customElement),N()}var b,y;H(m)}let U;"function"==typeof HTMLElement&&(U=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
64
64
|
// @ts-ignore todo: improve typings
|
|
65
65
|
for(const e in this.$$.slotted)
|
|
66
66
|
// @ts-ignore todo: improve typings
|
|
67
67
|
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){x(this,1),this.$destroy=e}$on(t,r){
|
|
68
68
|
// TODO should this delegate to addEventListener?
|
|
69
|
-
if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.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
|
|
69
|
+
if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.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 k=[];
|
|
70
70
|
/**
|
|
71
71
|
* Creates a `Readable` store that allows reading by subscription.
|
|
72
72
|
* @param value initial value
|
|
@@ -77,20 +77,20 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
77
77
|
* @param {*=}value initial value
|
|
78
78
|
* @param {StartStopNotifier=} start
|
|
79
79
|
*/
|
|
80
|
-
function
|
|
81
|
-
const e=!
|
|
80
|
+
function G(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
81
|
+
const e=!k.length;for(const e of i)e[1](),k.push(e,t);if(e){for(let e=0;e<k.length;e+=2)k[e][0](k[e+1]);k.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return i.add(l),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(l),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,c=r.length<2;return u=t=>{let o=!1;const u=[];let h=0,p=e;const f=()=>{if(h)return;p();const n=r(s?u[0]:u,t);c?t(n):p=i(n)?n:e},m=a.map(((e,t)=>l(e,(e=>{u[t]=e,h&=~(1<<t),o&&f()}),(()=>{h|=1<<t}))));return o=!0,f(),function(){n(m),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:
|
|
85
|
+
o=!1}},{subscribe:G(o,u).subscribe};var u}var j=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
|
|
87
|
+
(e)};var V="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function z(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Z((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function X(e,t,r){return e.concat(t).map((function(e){return z(e,r)}))}function K(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 W(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 Y(e,t,r){var n={};return r.isMergeableObject(e)&&K(e).forEach((function(t){n[t]=
|
|
90
|
-
})(e,i)||(W(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return"function"==typeof r?r:Z}(i,r)(e[i],t[i],r):n[i]=
|
|
89
|
+
function Y(e,t,r){var n={};return r.isMergeableObject(e)&&K(e).forEach((function(t){n[t]=z(e[t],r)})),K(t).forEach((function(i){(function(e,t){return W(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
90
|
+
})(e,i)||(W(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return Z;var r=t.customMerge(e);return"function"==typeof r?r:Z}(i,r)(e[i],t[i],r):n[i]=z(t[i],r))})),n}function Z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject||j,
|
|
91
91
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
92
92
|
// implementations can use it. The caller may not replace it.
|
|
93
|
-
r.cloneUnlessOtherwiseSpecified=
|
|
93
|
+
r.cloneUnlessOtherwiseSpecified=z;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Y(e,t,r):z(t,r)}Z.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return Z(e,r,t)}),{})};var J=Z,Q=function(e,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Q(e,t)};function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ee,te,re,ne=function(){return ne=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ne.apply(this,arguments)};function ie(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
|
|
94
94
|
/**
|
|
95
95
|
* Type Guards
|
|
96
96
|
*/
|
|
@@ -239,11 +239,11 @@ 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 Ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,we=/(\*)(0+)|(#+)(0+)|(0+)/g,
|
|
242
|
+
var Ee=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,we=/(\*)(0+)|(#+)(0+)|(0+)/g,He=/^(0+)$/;function Ce(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Te,(function(e,r,n){
|
|
243
243
|
// @@@ case
|
|
244
244
|
return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Be(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 Ae(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(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 r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!He.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function _e(e){var t=Be(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
249
|
*/function Le(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.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=ne(ne(ne({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return ne(ne({},e),_e(t))}),{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ne(ne({},e),_e(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
@@ -252,7 +252,7 @@ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";
|
|
|
252
252
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
253
253
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(we,(function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
254
254
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
255
|
-
if(
|
|
255
|
+
if(He.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ve.test(i.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,9 +260,9 @@ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept
|
|
|
260
260
|
// .000* case (before ICU67 it was .000+)
|
|
261
261
|
return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];
|
|
262
262
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
263
|
-
"w"===o?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),
|
|
263
|
+
"w"===o?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),Ce(o)))}
|
|
264
264
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
265
|
-
else if(Te.test(i.stem))t=ne(ne({},t),
|
|
265
|
+
else if(Te.test(i.stem))t=ne(ne({},t),Ce(i.stem));else{var s=Be(i.stem);s&&(t=ne(ne({},t),s));var a=Ae(i.stem);a&&(t=ne(ne({},t),a))}}return t}
|
|
266
266
|
// @generated from time-data-gen.ts
|
|
267
267
|
// prettier-ignore
|
|
268
268
|
var Pe,Se={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"]};
|
|
@@ -278,7 +278,7 @@ var Pe,Se={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 Re(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,10 +286,10 @@ 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 r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Se[r||""]||Se[n||""]||Se["".concat(n,"-001")]||Se["001"])[0]}var
|
|
289
|
+
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Se[r||""]||Se[n||""]||Se["".concat(n,"-001")]||Se["001"])[0]}var Oe=new RegExp("^".concat(ge.source,"*")),Ne=new RegExp("".concat(ge.source,"*$"));function Ie(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 Me=!!String.prototype.startsWith,xe=!!String.fromCodePoint,$e=!!Object.fromEntries,
|
|
292
|
+
var Me=!!String.prototype.startsWith,xe=!!String.fromCodePoint,$e=!!Object.fromEntries,De=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,ke=!!String.prototype.trimEnd,Ge=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
|
|
293
293
|
/**
|
|
294
294
|
* legacy Edge or Xbox One browser
|
|
295
295
|
* Unicode flag support: supported
|
|
@@ -298,15 +298,15 @@ var Me=!!String.prototype.startsWith,xe=!!String.fromCodePoint,$e=!!Object.fromE
|
|
|
298
298
|
*/
|
|
299
299
|
Fe="a"===(null===(Pe=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(e){Fe=!1}var je,Ve=Me?// Native
|
|
300
300
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
|
301
|
-
function(e,t,r){return e.slice(r,r+t.length)===t},
|
|
302
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},
|
|
301
|
+
function(e,t,r){return e.slice(r,r+t.length)===t},ze=xe?String.fromCodePoint:// IE11
|
|
302
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Xe=
|
|
303
303
|
// native
|
|
304
304
|
$e?Object.fromEntries:// Ponyfill
|
|
305
|
-
function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Ke=
|
|
305
|
+
function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t},Ke=De?// Native
|
|
306
306
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
307
|
-
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},We=
|
|
307
|
+
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},We=Ue?// Native
|
|
308
308
|
function(e){return e.trimStart()}:// Ponyfill
|
|
309
|
-
function(e){return e.replace(
|
|
309
|
+
function(e){return e.replace(Oe,"")},Ye=ke?// Native
|
|
310
310
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
311
311
|
function(e){return e.replace(Ne,"")};
|
|
312
312
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
@@ -314,9 +314,9 @@ function Ze(e,t){return new RegExp(e,t)}
|
|
|
314
314
|
// #endregion
|
|
315
315
|
if(Fe){
|
|
316
316
|
// Native
|
|
317
|
-
var
|
|
317
|
+
var Je=Ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");je=function(e,t){var r;return Je.lastIndex=t,null!==(r=Je.exec(e)[1])&&void 0!==r?r:""}}else
|
|
318
318
|
// IE11
|
|
319
|
-
je=function(e,t){for(var r=[];;){var n=Ke(e,t);if(void 0===n||et(n)||tt(n))break;r.push(n),t+=n>=65536?2:1}return
|
|
319
|
+
je=function(e,t){for(var r=[];;){var n=Ke(e,t);if(void 0===n||et(n)||tt(n))break;r.push(n),t+=n>=65536?2:1}return ze.apply(void 0,r)};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,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ee.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&qe(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:te.pound,location:Ie(s,this.clonePosition())})}}}return{val:n,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
|
|
@@ -367,7 +367,7 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
|
|
|
367
367
|
// Optional closing apostrophe.
|
|
368
368
|
this.bump();break}t.push(39),
|
|
369
369
|
// Bump one more time because we need to skip 2 characters.
|
|
370
|
-
this.bump()}else t.push(r);this.bump()}return
|
|
370
|
+
this.bump()}else t.push(r);this.bump()}return ze.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),ze(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
|
|
371
371
|
this.bumpSpace(),this.isEOF())return this.error(ee.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(ee.EMPTY_ARGUMENT,Ie(r,this.clonePosition()));
|
|
372
372
|
// argument name
|
|
373
373
|
var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ee.MALFORMED_ARGUMENT,Ie(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ee.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));switch(this.char()){
|
|
@@ -401,7 +401,7 @@ var h=We(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFrom
|
|
|
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 r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=
|
|
404
|
+
this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Re(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale));var f={type:re.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ye(p):{}};return{val:{type:"date"===s?te.date:te.time,value:r,location:u,style:f},err:null}}
|
|
405
405
|
// Regular style or no style.
|
|
406
406
|
return{val:{type:"number"===s?te.number:"date"===s?te.date:te.time,value:r,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
407
407
|
// Parse this range:
|
|
@@ -416,7 +416,7 @@ var m=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(ee.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ie(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(ee.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;
|
|
418
418
|
// Parse another identifier for option parsing
|
|
419
|
-
this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=b.val}var y,E=this.tryParsePluralOrSelectOptions(e,s,t,d);if(E.err)return E;if((y=this.tryParseArgumentClose(n)).err)return y;var v=Ie(n,this.clonePosition());return"select"===s?{val:{type:te.select,value:r,options:
|
|
419
|
+
this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=b.val}var y,E=this.tryParsePluralOrSelectOptions(e,s,t,d);if(E.err)return E;if((y=this.tryParseArgumentClose(n)).err)return y;var v=Ie(n,this.clonePosition());return"select"===s?{val:{type:te.select,value:r,options:Xe(E.val),location:v},err:null}:{val:{type:te.plural,value:r,options:Xe(E.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(ee.INVALID_ARGUMENT_TYPE,Ie(o,a))}},e.prototype.tryParseArgumentClose=function(e){
|
|
420
420
|
// Parse: {value, number, ::currency/GBP }
|
|
421
421
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(ee.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
422
422
|
/**
|
|
@@ -454,7 +454,7 @@ 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=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?ee.EXPECT_SELECT_ARGUMENT_SELECTOR:ee.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ee.MISSING_OTHER_CLAUSE,Ie(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Ie(n,this.clonePosition());return i?
|
|
457
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?ee.EXPECT_SELECT_ARGUMENT_SELECTOR:ee.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ie(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ee.MISSING_OTHER_CLAUSE,Ie(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,o=10*o+(s-48),this.bump()}var a=Ie(n,this.clonePosition());return i?Ge(o*=r)?{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
|
/**
|
|
@@ -503,7 +503,7 @@ function et(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 tt(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 rt(e){e.forEach((function(e){if(delete e.location,ue(e)||he(e))for(var t in e.options)delete e.options[t].location,rt(e.options[t].value);else ae(e)&&me(e.style)||(le(e)||ce(e))&&de(e.style)?delete e.style.location:fe(e)&&rt(e.children)}))}function nt(e,t){void 0===t&&(t={}),t=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new
|
|
506
|
+
*/function tt(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 rt(e){e.forEach((function(e){if(delete e.location,ue(e)||he(e))for(var t in e.options)delete e.options[t].location,rt(e.options[t].value);else ae(e)&&me(e.style)||(le(e)||ce(e))&&de(e.style)?delete e.style.location:fe(e)&&rt(e.children)}))}function nt(e,t){void 0===t&&(t={}),t=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Qe(e,t).parse();if(r.err){var n=SyntaxError(ee[r.err.kind]);
|
|
507
507
|
// @ts-expect-error Assign to error object
|
|
508
508
|
throw n.location=r.err.location,
|
|
509
509
|
// @ts-expect-error Assign to error object
|
|
@@ -553,7 +553,7 @@ if(le(u)){var f="string"==typeof u.style?n.date[u.style]:de(u.style)?u.style.par
|
|
|
553
553
|
See the accompanying LICENSE file for terms.
|
|
554
554
|
*/
|
|
555
555
|
// -- MessageFormat --------------------------------------------------------
|
|
556
|
-
function Tt(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?ne(ne(ne({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ne(ne({},i[t]),o[t]||{}),e}),{})):i),r}),ne({},e)):e}function wt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var
|
|
556
|
+
function Tt(e,t){return t?Object.keys(e).reduce((function(r,n){var i,o;return r[n]=(i=e[n],(o=t[n])?ne(ne(ne({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=ne(ne({},i[t]),o[t]||{}),e}),{})):i),r}),ne({},e)):e}function wt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var Ht=/** @class */function(){function e(t,r,n,i){var o,s=this;if(void 0===r&&(r=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 r=t.reduce((function(e,t){return e.length&&t.type===mt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return vt(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.
|
|
@@ -566,22 +566,22 @@ this.formats=Tt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
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 Ct={},Bt=(e,t,r)=>r?(t in Ct||(Ct[t]={}),e in Ct[t]||(Ct[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in Ct&&e in Ct[t])return Ct[t][e];const r=rr(t);for(let n=0;n<r.length;n++){const i=St(r[n],e);if(i)return Bt(e,t,i)}};let _t;const Lt=G({});function Pt(e){return e in _t}function St(e,t){if(!Pt(e))return null;const r=function(e){return _t[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Rt(e,...t){delete Ct[e],Lt.update((r=>(r[e]=J.all([r[e]||{},...t]),r)))}F([Lt],(([e])=>Object.keys(e))),Lt.subscribe((e=>_t=e));const Ot={};function Nt(e){return Ot[e]}function It(e){return null!=e&&rr(e).some((e=>{var t;return null==(t=Nt(e))?void 0:t.size}))}function Mt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Rt(e,...t)))}const xt={};function $t(e){if(!It(e))return e in xt?xt[e]:Promise.resolve();const t=function(e){return rr(e).map((e=>{const t=Nt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return xt[e]=Promise.all(t.map((([e,t])=>Mt(e,t)))).then((()=>{if(It(e))return $t(e);delete xt[e]})),xt[e]}var Dt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable;function Gt({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${rr(e).join('", "')}".${It(nr())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const Ft={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 Ft}function Vt(e){const t=e,{formats:r}=t,n=((e,t)=>{var r={};for(var n in e)Ut.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Dt)for(var n of Dt(e))t.indexOf(n)<0&&kt.call(e,n)&&(r[n]=e[n]);return r})(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Ht.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(t){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=Gt:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Ft,n,{initialLocale:i}),r&&("number"in r&&Object.assign(Ft.formats.number,r.number),"date"in r&&Object.assign(Ft.formats.date,r.date),"time"in r&&Object.assign(Ft.formats.time,r.time)),ir.set(i)}const zt=G(!1);var Xt=Object.defineProperty,Kt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Qt=(e,t,r)=>t in e?Xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let qt;const er=G(null);function tr(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function rr(e,t=jt().fallbackLocale){const r=tr(e);return t?[...new Set([...r,...tr(t)])]:r}function nr(){return null!=qt?qt:void 0}er.subscribe((e=>{qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ir=(or=((e,t)=>{for(var r in t||(t={}))Zt.call(t,r)&&Qt(e,r,t[r]);if(Yt)for(var r of Yt(t))Jt.call(t,r)&&Qt(e,r,t[r]);return e})({},er),Kt(or,Wt({set:e=>{if(e&&function(e){if(null==e)return;const t=rr(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&It(e)){const{loadingDelay:t}=jt();let r;return"undefined"!=typeof window&&null!=nr()&&t?r=window.setTimeout((()=>zt.set(!0)),t):zt.set(!0),$t(e).then((()=>{er.set(e)})).finally((()=>{clearTimeout(r),zt.set(!1)}))}return er.set(e)}})));var or;const sr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var ar=Object.defineProperty,lr=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,hr=(e,t,r)=>t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pr=(e,t)=>{for(var r in t||(t={}))cr.call(t,r)&&hr(e,r,t[r]);if(lr)for(var r of lr(t))ur.call(t,r)&&hr(e,r,t[r]);return e},fr=(e,t)=>{var r={};for(var n in e)cr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lr)for(var n of lr(e))t.indexOf(n)<0&&ur.call(e,n)&&(r[n]=e[n]);return r};const mr=(e,t)=>{const{formats:r}=jt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},dr=sr((e=>{var t=e,{locale:r,format:n}=t,i=fr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=mr("number",n)),new Intl.NumberFormat(r,i)})),gr=sr((e=>{var t=e,{locale:r,format:n}=t,i=fr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=mr("date",n):0===Object.keys(i).length&&(i=mr("date","short")),new Intl.DateTimeFormat(r,i)})),br=sr((e=>{var t=e,{locale:r,format:n}=t,i=fr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=mr("time",n):0===Object.keys(i).length&&(i=mr("time","short")),new Intl.DateTimeFormat(r,i)})),yr=sr((
|
|
570
570
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
571
|
-
(e,t=nr())=>new
|
|
571
|
+
(e,t=nr())=>new Ht(e,t,jt().formats,{ignoreTag:jt().ignoreTag}))),Er=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=nr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=At(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!=(i=null==(n=(r=jt()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=yr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},vr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=fr(t,["locale"]);return br(pr({locale:r},n))})(t).format(e),Tr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=fr(t,["locale"]);return gr(pr({locale:r},n))})(t).format(e),wr=(e,t)=>((e={})=>{var t=e,{locale:r=nr()}=t,n=fr(t,["locale"]);return dr(pr({locale:r},n))})(t).format(e),Hr=(e,t=nr())=>At(e,t),Cr=F([ir,Lt],(()=>Er));function Br(e,t){Rt(e,t)}F([ir],(()=>vr)),F([ir],(()=>Tr)),F([ir],(()=>wr)),F([ir,Lt],(()=>Hr)),Vt({fallbackLocale:"en"});const Ar={en:{errorGeneralTitle:"Error Occurred",errorGeneralText:"Something went wrong",errorGeneralButton:"CLOSE",PlayerSessionIsNotValid:"Player session is not valid",VendorCommunicationError:"We apologise, but your payment provider has declined to process due to technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",PaymentMethodNotAllowed:"We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",InvalidPaymentDetails:"We apologise, but you payment details are not valid. Please make sure you entered all payment details correctly and try again or contact Customer Support for further assistance. Error Code 13555",MerchantUserHasWithdrawBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",MerchantUserHasDepositBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE)."},tr:{errorGeneralTitle:"Hata oluştu",errorGeneralText:"Something went wrong",errorGeneralButton:"KAPALI",PlayerSessionIsNotValid:"Player session is not valid",VendorCommunicationError:"Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",PaymentMethodNotAllowed:"Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",InvalidPaymentDetails:"Özür dileriz, ancak ödeme bilgileriniz geçerli değil. Lütfen tüm ödeme ayrıntılarını doğru girdiğinizden emin olun ve tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 13555",MerchantUserHasWithdrawBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate withdrawal transactions from your player account. Error Code: 21122",MerchantUserHasDepositBlockRole:"Dear Player! Please be informed that currently you are not allowed to initiate deposit transactions from your player account. Error Code: 21123",JwtTokenError:"IDX12741: JWT must have three segments (JWS) or five segments (JWE)."}};
|
|
572
572
|
/* ../cashier-error/src/CashierError.svelte generated by Svelte v3.59.2 */function _r(e){let t,r;return{c(){t=m("img"),a(t.src,r=`${/*assetsurl*/e[0]}/error-general-icon.png`)||y(t,"src",r),y(t,"width","300px"),y(t,"alt","error")},m(e,r){p(e,t,r)},p(e,n){/*assetsurl*/1&n&&!a(t.src,r=`${/*assetsurl*/e[0]}/error-general-icon.png`)&&y(t,"src",r)},d(e){e&&f(t)}}}
|
|
573
573
|
// (65:2) {#if !hidebuttons || hidebuttons === 'false'}
|
|
574
|
-
function Lr(e){let t,r,n,i,o,s,a=/*$_*/e[4]("errorGeneralButton")+"";return{c(){t=m("div"),r=m("slot"),n=m("span"),i=d(a),y(r,"name","button"),y(t,"class","CashierErrorButton")},m(a,l){p(a,t,l),h(t,r),h(r,n),h(n,i),o||(s=b(t,"click",/*close*/e[5]),o=!0)},p(e,t){/*$_*/16&t&&a!==(a=/*$_*/e[4]("errorGeneralButton")+"")&&v(i,a)},d(e){e&&f(t),o=!1,s()}}}function Pr(t){let r,n,i,o,s,a,l,c,u,b,E,T=/*$_*/t[4]("errorGeneralTitle")+"",w=/*$_*/t[4](`${/*errorcode*/t[2]||"errorGeneralText"}`)+"",
|
|
575
|
-
/*div_binding*/,t[10](r)},p(e,[t]){/*assetsurl*/e[0]?
|
|
576
|
-
/*div_binding*/,t[10](null)}}}function Sr(e,t,r){let n;c(e,
|
|
574
|
+
function Lr(e){let t,r,n,i,o,s,a=/*$_*/e[4]("errorGeneralButton")+"";return{c(){t=m("div"),r=m("slot"),n=m("span"),i=d(a),y(r,"name","button"),y(t,"class","CashierErrorButton")},m(a,l){p(a,t,l),h(t,r),h(r,n),h(n,i),o||(s=b(t,"click",/*close*/e[5]),o=!0)},p(e,t){/*$_*/16&t&&a!==(a=/*$_*/e[4]("errorGeneralButton")+"")&&v(i,a)},d(e){e&&f(t),o=!1,s()}}}function Pr(t){let r,n,i,o,s,a,l,c,u,b,E,T=/*$_*/t[4]("errorGeneralTitle")+"",w=/*$_*/t[4](`${/*errorcode*/t[2]||"errorGeneralText"}`)+"",H=/*assetsurl*/t[0]&&_r(t),C=(!/*hidebuttons*/t[1]||/*hidebuttons*/"false"===t[1])&&Lr(t);return{c(){r=m("div"),n=m("slot"),H&&H.c(),i=g(),o=m("slot"),s=m("span"),a=d(T),l=g(),c=m("slot"),u=m("span"),b=d(w),E=g(),C&&C.c(),this.c=e,y(n,"name","icon"),y(n,"class","CashierErrorIcon"),y(o,"name","title"),y(o,"class","CashierErrorTitle"),y(c,"name","text"),y(c,"class","CashierErrorText"),y(r,"class","CashierError")},m(e,f){p(e,r,f),h(r,n),H&&H.m(n,null),h(r,i),h(r,o),h(o,s),h(s,a),h(r,l),h(r,c),h(c,u),h(u,b),h(r,E),C&&C.m(r,null)
|
|
575
|
+
/*div_binding*/,t[10](r)},p(e,[t]){/*assetsurl*/e[0]?H?H.p(e,t):(H=_r(e),H.c(),H.m(n,null)):H&&(H.d(1),H=null),/*$_*/16&t&&T!==(T=/*$_*/e[4]("errorGeneralTitle")+"")&&v(a,T),/*$_, errorcode*/20&t&&w!==(w=/*$_*/e[4](`${/*errorcode*/e[2]||"errorGeneralText"}`)+"")&&v(b,w),/*hidebuttons*/e[1]&&/*hidebuttons*/"false"!==e[1]?C&&(C.d(1),C=null):C?C.p(e,t):(C=Lr(e),C.c(),C.m(r,null))},i:e,o:e,d(e){e&&f(r),H&&H.d(),C&&C.d()
|
|
576
|
+
/*div_binding*/,t[10](null)}}}function Sr(e,t,r){let n;c(e,Cr,(e=>r(4,n=e)));let i,{assetsurl:o=""}=t,{lang:s="en"}=t,{hidebuttons:a=""}=t,{errorcode:l=""}=t,{clientstyling:u=""}=t,{clientstylingurl:h=""}=t,{translationurl:p=""}=t;Object.keys(Ar).forEach((e=>{Br(e,Ar[e])}));const f=()=>{var e;e=s,ir.set(e)};return e.$$set=e=>{"assetsurl"in e&&r(0,o=e.assetsurl),"lang"in e&&r(6,s=e.lang),"hidebuttons"in e&&r(1,a=e.hidebuttons),"errorcode"in e&&r(2,l=e.errorcode),"clientstyling"in e&&r(7,u=e.clientstyling),"clientstylingurl"in e&&r(8,h=e.clientstylingurl),"translationurl"in e&&r(9,p=e.translationurl)},e.$$.update=()=>{/*lang*/64&e.$$.dirty&&s&&f(),/*clientstyling, customStylingContainer*/136&e.$$.dirty&&u&&i&&(()=>{let e=document.createElement("style");e.innerHTML=u,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/264&e.$$.dirty&&h&&i&&(()=>{let e=new URL(h),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&p&&fetch(p).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Br(t,e[t])}))})).catch((e=>{console.log(e)}))},[o,a,l,i,n,()=>{window.postMessage({type:"ErrorClose"},window.location.href)},s,u,h,p,function(e){B[e?"unshift":"push"]((()=>{i=e,r(3,i)}))}]}function Rr(e,t){Rt(e,t)}!customElements.get("cashier-error")&&customElements.define("cashier-error",class extends U{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierError{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorText{color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:120%;text-align:center}.CashierErrorButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--mmw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--mmw--color-main-button-active, #5C950F)}",this.shadowRoot.appendChild(t),D(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Sr,Pr,o,{assetsurl:0,lang:6,hidebuttons:1,errorcode:2,clientstyling:7,clientstylingurl:8,translationurl:9},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["assetsurl","lang","hidebuttons","errorcode","clientstyling","clientstylingurl","translationurl"]}get assetsurl(){return this.$$.ctx[0]}set assetsurl(e){this.$$set({assetsurl:e}),N()}get lang(){return this.$$.ctx[6]}set lang(e){this.$$set({lang:e}),N()}get hidebuttons(){return this.$$.ctx[1]}set hidebuttons(e){this.$$set({hidebuttons:e}),N()}get errorcode(){return this.$$.ctx[2]}set errorcode(e){this.$$set({errorcode:e}),N()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),N()}}),Vt({fallbackLocale:"en"});const Or={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:" "},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},withdrawal:{success:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Your withdrawal is successful"},pending:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdrawal Rejected",subTitle:" ",text:" "},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},reference:"Reference ID: {code}",close:"Close"},"pt-br":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado em sua conta",text:"Seu depósito foi bem-sucedido"},pending:{title:"{amount} {currency}",subTitle:"Transação em andamento",text:"Obrigado. Seu depósito está sendo processado."},reject:{title:"Depósito Rejeitado",subTitle:"",text:"{errorText}"},fail:{title:"Erro",subTitle:"",text:"{errorText}"},cancel:{title:"Você cancelou a transação",subTitle:"",text:"{errorText}"}},reference:"Referência ID: {code}",close:"VOLTAR AO PROVEDOR DE PAGAMENTO"},"es-mx":{deposit:{success:{title:"{amount} {currency}",subTitle:"Depositado en tu cuenta",text:"Tu depósito fue exitoso"},pending:{title:"{amount} {currency}",subTitle:"Transacción en proceso",text:"Gracias. Tu depósito está siendo procesado."},reject:{title:"Depósito Rechazado",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"Has cancelado la transacción",subTitle:" ",text:"{errorText}"}},reference:"Referencia ID: {code}",close:"REGRESAR A PROVEEDOR DE PAGO"}},Nr={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png",PendingConfirmation:"/txn-pending.png",PendingApprovalStage1:"/txn-pending.png",PendingApprovalStage2:"/txn-pending.png",PendingApprovalStage3:"/txn-pending.png",PendingOfflineNotification:"/txn-pending.png"},Ir={Deposit:"deposit",Withdraw:"withdrawal"},Mr={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"},{document:xr}=u;function $r(e,t,r){const n=e.slice();return n[43]=t[r],n[45]=r,n}
|
|
577
577
|
// (265:65)
|
|
578
|
-
function
|
|
578
|
+
function Dr(e){let t;return{c(){t=m("cashier-error"),E(t,"assetsurl",/*assetsurl*/e[3]),E(t,"translationurl",/*translationurl*/e[2]),E(t,"clientstylingurl",/*clientstylingurl*/e[5]),E(t,"clientstyling",/*clientstyling*/e[4]),E(t,"hidebuttons","true"),E(t,"errorcode",/*errorResponseCode*/e[15])},m(e,r){p(e,t,r)},p(e,r){/*assetsurl*/8&r[0]&&E(t,"assetsurl",/*assetsurl*/e[3]),/*translationurl*/4&r[0]&&E(t,"translationurl",/*translationurl*/e[2]),/*clientstylingurl*/32&r[0]&&E(t,"clientstylingurl",/*clientstylingurl*/e[5]),/*clientstyling*/16&r[0]&&E(t,"clientstyling",/*clientstyling*/e[4]),/*errorResponseCode*/32768&r[0]&&E(t,"errorcode",/*errorResponseCode*/e[15])},d(e){e&&f(t)}}}
|
|
579
579
|
// (211:5) {#if txnInfo}
|
|
580
|
-
function
|
|
580
|
+
function Ur(e){let t,r,n,i,o,s,l,c,u,E,T,w,H,C,B,A,_,L,P,S,R,O,N,I=/*$_*/e[17]("close")+"",M=/*showcontactbutton*/e[1]&&/*showcontactbutton*/"false"!==e[1]&&kr(e),x=/*showclosebutton*/e[0]&&/*showclosebutton*/"false"!==e[0]&&Gr(e),$=/*txnInfo*/e[8].referenceId&&Fr(e),D=/*receiptFields*/e[9].length&&jr(e);return{c(){t=m("div"),M&&M.c(),r=g(),x&&x.c(),n=g(),i=m("div"),o=m("img"),l=g(),c=m("div"),u=m("h2"),E=d(/*title*/e[11]),T=g(),w=m("div"),H=d(/*subTitle*/e[10]),C=g(),B=m("div"),A=d(/*text*/e[12]),_=g(),$&&$.c(),L=g(),D&&D.c(),P=g(),S=m("button"),R=d(I),y(t,"class","HeaderButtonContainer"),a(o.src,s=/*statusImageUrl*/e[13])||y(o,"src",s),y(o,"class","StatusLogo"),y(u,"class","Title"),y(w,"class","SubTitle"),y(c,"class","TitleWrapper"),y(i,"class","ReceiptWrapper"),y(B,"class","Text"),y(S,"class","PrimaryButton")},m(s,a){p(s,t,a),M&&M.m(t,null),h(t,r),x&&x.m(t,null),p(s,n,a),p(s,i,a),h(i,o),h(i,l),h(i,c),h(c,u),h(u,E),h(c,T),h(c,w),h(w,H),p(s,C,a),p(s,B,a),h(B,A),p(s,_,a),$&&$.m(s,a),p(s,L,a),D&&D.m(s,a),p(s,P,a),p(s,S,a),h(S,R),O||(N=b(S,"click",/*closeReceipt*/e[18]),O=!0)},p(e,n){/*showcontactbutton*/e[1]&&/*showcontactbutton*/"false"!==e[1]?M?M.p(e,n):(M=kr(e),M.c(),M.m(t,r)):M&&(M.d(1),M=null),/*showclosebutton*/e[0]&&/*showclosebutton*/"false"!==e[0]?x?x.p(e,n):(x=Gr(e),x.c(),x.m(t,null)):x&&(x.d(1),x=null),/*statusImageUrl*/8192&n[0]&&!a(o.src,s=/*statusImageUrl*/e[13])&&y(o,"src",s),/*title*/2048&n[0]&&v(E,/*title*/e[11]),/*subTitle*/1024&n[0]&&v(H,/*subTitle*/e[10]),/*text*/4096&n[0]&&v(A,/*text*/e[12]),/*txnInfo*/e[8].referenceId?$?$.p(e,n):($=Fr(e),$.c(),$.m(L.parentNode,L)):$&&($.d(1),$=null),/*receiptFields*/e[9].length?D?D.p(e,n):(D=jr(e),D.c(),D.m(P.parentNode,P)):D&&(D.d(1),D=null),/*$_*/131072&n[0]&&I!==(I=/*$_*/e[17]("close")+"")&&v(R,I)},d(e){e&&f(t),M&&M.d(),x&&x.d(),e&&f(n),e&&f(i),e&&f(C),e&&f(B),e&&f(_),$&&$.d(e),e&&f(L),D&&D.d(e),e&&f(P),e&&f(S),O=!1,N()}}}
|
|
581
581
|
// (213:11) {#if showcontactbutton && showcontactbutton !== 'false'}
|
|
582
|
-
function
|
|
582
|
+
function kr(t){let r,n,i;return{c(){r=m("span"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>'},m(e,o){p(e,r,o),n||(i=b(r,"click",/*liveChat*/t[19]),n=!0)},p:e,d(e){e&&f(r),n=!1,i()}}}
|
|
583
583
|
// (220:11) {#if showclosebutton && showclosebutton !== 'false'}
|
|
584
|
-
function
|
|
584
|
+
function Gr(t){let r,n,i;return{c(){r=m("span"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>'},m(e,o){p(e,r,o),n||(i=b(r,"click",/*closeReceipt*/t[18]),n=!0)},p:e,d(e){e&&f(r),n=!1,i()}}}
|
|
585
585
|
// (236:7) {#if txnInfo.referenceId}
|
|
586
586
|
function Fr(e){let t,r,n=/*$_*/e[17]("reference",{values:{code:/*txnInfo*/e[8].referenceId}})+"";return{c(){t=m("div"),r=d(n),y(t,"class","Reference")},m(e,n){p(e,t,n),h(t,r)},p(e,t){/*$_, txnInfo*/131328&t[0]&&n!==(n=/*$_*/e[17]("reference",{values:{code:/*txnInfo*/e[8].referenceId}})+"")&&v(r,n)},d(e){e&&f(t)}}}
|
|
587
587
|
// (239:7) {#if receiptFields.length}
|
|
@@ -589,9 +589,9 @@ function jr(e){let t,r=/*receiptFields*/e[9],n=[];for(let t=0;t<r.length;t+=1)n[
|
|
|
589
589
|
// (256:17) {:else}
|
|
590
590
|
function Vr(e){let t,r,n=/*field*/e[43].defaultValue+"";return{c(){t=m("span"),r=d(n),y(t,"class","Label")},m(e,n){p(e,t,n),h(t,r)},p(e,t){/*receiptFields*/512&t[0]&&n!==(n=/*field*/e[43].defaultValue+"")&&v(r,n)},d(e){e&&f(t)}}}
|
|
591
591
|
// (250:58)
|
|
592
|
-
function
|
|
592
|
+
function zr(e){let t,r,n,i,o,s,a=/*field*/e[43].description+"",l=/*field*/e[43].Name+"";return{c(){t=m("span"),r=d(a),n=g(),i=m("a"),o=d(l),y(i,"href",s=/*field*/e[43].defaultValue),y(i,"target","_blank"),y(i,"rel","noopener noreferrer")},m(e,s){p(e,t,s),h(t,r),h(t,n),h(t,i),h(i,o)},p(e,t){/*receiptFields*/512&t[0]&&a!==(a=/*field*/e[43].description+"")&&v(r,a),/*receiptFields*/512&t[0]&&l!==(l=/*field*/e[43].Name+"")&&v(o,l),/*receiptFields*/512&t[0]&&s!==(s=/*field*/e[43].defaultValue)&&y(i,"href",s)},d(e){e&&f(t)}}}
|
|
593
593
|
// (248:59)
|
|
594
|
-
function
|
|
594
|
+
function Xr(e){let t,r,n;return{c(){t=m("img"),a(t.src,r=/*field*/e[43].defaultValue)||y(t,"src",r),y(t,"title",n=/*field*/e[43].description),y(t,"alt","")},m(e,r){p(e,t,r)},p(e,i){/*receiptFields*/512&i[0]&&!a(t.src,r=/*field*/e[43].defaultValue)&&y(t,"src",r),/*receiptFields*/512&i[0]&&n!==(n=/*field*/e[43].description)&&y(t,"title",n)},d(e){e&&f(t)}}}
|
|
595
595
|
// (246:58)
|
|
596
596
|
function Kr(e){let t,r=/*field*/e[43].defaultValue+"";return{c(){t=m("span")},m(e,n){p(e,t,n),t.innerHTML=r},p(e,n){/*receiptFields*/512&n[0]&&r!==(r=/*field*/e[43].defaultValue+"")&&(t.innerHTML=r)},d(e){e&&f(t)}}}
|
|
597
597
|
// (242:17) {#if field.type === FieldTypes.QRCode}
|
|
@@ -601,8 +601,8 @@ return e[29](/*field*/e[43])}return{c(){t=m("div"),r=m("div"),n=d(s),y(t,"class"
|
|
|
601
601
|
/*div0_binding*/,e[28](null),i=!1,o()}}}
|
|
602
602
|
// (240:10) {#each receiptFields as field, index}
|
|
603
603
|
function Yr(e){let t,r;function n(e,t){/*field*/
|
|
604
|
-
return e[43].type===/*FieldTypes*/e[7].QRCode?Wr:/*field*/e[43].type===/*FieldTypes*/e[7].Html?Kr:/*field*/e[43].type===/*FieldTypes*/e[7].Image?
|
|
605
|
-
return e[8]?
|
|
604
|
+
return e[43].type===/*FieldTypes*/e[7].QRCode?Wr:/*field*/e[43].type===/*FieldTypes*/e[7].Html?Kr:/*field*/e[43].type===/*FieldTypes*/e[7].Image?Xr:/*field*/e[43].type===/*FieldTypes*/e[7].Link?zr:Vr}let i=n(e),o=i(e);return{c(){t=m("div"),o.c(),r=g(),y(t,"class","ReceiptField")},m(e,n){p(e,t,n),o.m(t,null),h(t,r)},p(e,s){i===(i=n(e))&&o?o.p(e,s):(o.d(1),o=i(e),o&&(o.c(),o.m(t,r)))},d(e){e&&f(t),o.d()}}}function Zr(t){let r,n,i,o,s;function l(e,t){/*txnInfo*/
|
|
605
|
+
return e[8]?Ur:/*errorResponseCode*/e[15]&&!/*showErrorOutsideReceiptPage*/e[16]?Dr:void 0}let c=l(t),u=c&&c(t);return{c(){r=m("script"),i=g(),o=m("div"),s=m("div"),u&&u.c(),this.c=e,a(r.src,n=Jr)||y(r,"src",n),y(s,"class","CashierReceiptPage"),y(o,"class","CashierReceiptPageWidget")},m(e,n){h(xr.head,r),p(e,i,n),p(e,o,n),h(o,s),u&&u.m(s,null)
|
|
606
606
|
/*div1_binding*/,t[30](o)},p(e,t){c===(c=l(e))&&u?u.p(e,t):(u&&u.d(1),u=c&&c(e),u&&(u.c(),u.m(s,null)))},i:e,o:e,d(e){f(r),e&&f(i),e&&f(o),u&&u.d()
|
|
607
|
-
/*div1_binding*/,t[30](null)}}}let
|
|
607
|
+
/*div1_binding*/,t[30](null)}}}let Jr="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function Qr(e,t,r){let n;c(e,Cr,(e=>r(17,n=e)));let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{local:a="en-US"}=t,{showerrors:l="true"}=t,{showclosebutton:u="false"}=t,{showcontactbutton:h="false"}=t,{translationurl:p}=t,{assetsurl:f=""}=t,{customerid:m}=t,{transactionid:d}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t;var y;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(y||(y={}));const E=new Map([[["Unknown",0],y.Unknown],[["Text",1],y.Text],[["Boolean",2],y.Boolean],[["Number",3],y.Number],[["Money",4],y.Money],[["DateTime",5],y.DateTime],[["Lookup",6],y.Lookup],[["IpAddress",7],y.IpAddress],[["Date",8],y.Date],[["Time",9],y.Time],[["LookupCollection",10],y.LookupCollection],[["Hidden",11],y.Hidden],[["Label",12],y.Label],[["Password",13],y.Password],[["Link",14],y.Link],[["Image",15],y.Image],[["Html",19],y.Html],[["QR",20],y.QRCode]].reduce(((e,[t,r])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,r]))]:[[t,r]]]),[]));let v,T,w,H,C,A,_,L,P=[],S=[],R=new Intl.NumberFormat(a,{minimumFractionDigits:2});const O=()=>{var e;e=s,ir.set(e)};Object.keys(Or).forEach((e=>{Rr(e,Or[e])}));const N=()=>{const e=new URL(`${i}/v1/player/${m}/payment/GetPaymentInfo`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json"),t.append("X-SessionId",`${o}`);const s={method:"POST",headers:t,body:JSON.stringify({TransactionCode:d})};fetch(e,s).then((e=>e.json())).then((e=>{var t,i,o,s,a,c;if("Success"!==e.ResponseCode)return r(15,_=e.ResponseCode),r(16,L="false"===l.toLowerCase()||!l),void window.postMessage({type:"ErrorResponseCode",errorResponseCode:_,showErrorOutsideReceiptPage:L},window.location.href);r(8,v={type:e.Transaction.Type,referenceId:e.Transaction.Code,status:null===(t=e.Transaction.Status)||void 0===t?void 0:t.Status,message:null===(i=e.Transaction.Status)||void 0===i?void 0:i.Message,amount:null===(o=e.Transaction.Amounts[0])||void 0===o?void 0:o.Amount,currency:null===(s=e.Transaction.Amounts[0])||void 0===s?void 0:s.Currency}),r(9,P=e.ReceiptInfo&&e.ReceiptInfo.ReceiptFields?e.ReceiptInfo.ReceiptFields.map((e=>({type:E.get(e.Type),name:e.Name,description:e.Description,defaultValue:e.DefaultValue,useCopyButton:e.UseCopyButton,usePrintButton:e.UsePrintButton}))):[]),r(11,w=n((a=v.status,c=v.type,`${Ir[c]}.${Mr[a]}.title`),{values:{amount:R.format(v.amount),currency:v.currency}})),r(10,T=n(((e,t)=>`${Ir[t]}.${Mr[e]}.subTitle`)(v.status,v.type))),r(12,H=n(((e,t)=>`${Ir[t]}.${Mr[e]}.text`)(v.status,v.type),{values:{errorText:v.message}})),r(13,C=((e,t)=>`${e+Nr[t]}`)(f,v.status))}))},I=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"endpoint"in e&&r(21,i=e.endpoint),"session"in e&&r(22,o=e.session),"lang"in e&&r(23,s=e.lang),"local"in e&&r(24,a=e.local),"showerrors"in e&&r(25,l=e.showerrors),"showclosebutton"in e&&r(0,u=e.showclosebutton),"showcontactbutton"in e&&r(1,h=e.showcontactbutton),"translationurl"in e&&r(2,p=e.translationurl),"assetsurl"in e&&r(3,f=e.assetsurl),"customerid"in e&&r(26,m=e.customerid),"transactionid"in e&&r(27,d=e.transactionid),"clientstyling"in e&&r(4,g=e.clientstyling),"clientstylingurl"in e&&r(5,b=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid, transactionid, showerrors*/241172480&e.$$.dirty[0]&&i&&o&&m&&d&&l&&N(),/*lang*/8388608&e.$$.dirty[0]&&s&&O(),/*lang, translationurl*/8388612&e.$$.dirty[0]&&s&&p&&(()=>{if(p)fetch(p).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Rr(t,e[t])}))})).catch((e=>{}))})(),/*clientstyling, customStylingContainer*/80&e.$$.dirty[0]&&g&&A&&(()=>{let e=document.createElement("style");e.innerHTML=g,A.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/96&e.$$.dirty[0]&&b&&A&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{A.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[u,h,p,f,g,b,A,y,v,P,T,w,H,C,S,_,L,n,()=>{dispatchEvent(new CustomEvent("closeCashierReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},()=>{dispatchEvent(new CustomEvent("liveChatReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},I,i,o,s,a,l,m,d,function(e){B[e?"unshift":"push"]((()=>{S[S.length]=e,r(14,S)}))},e=>{I(e.description)},function(e){B[e?"unshift":"push"]((()=>{A=e,r(6,A)}))}]}class qr extends U{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierReceiptPageWidget{height:100%}.CashierReceiptPage{border-radius:var(--mmw--border-radius-medium-plus, 6px);background:var(--emw--color-background, #fff);padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111)}.Reference{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.PrimaryButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-x-small, 12px);font-family:inherit;margin:var(--emw--spacing-large, 20px) 0;width:100%}.PrimaryButton:hover{background:var(--emw--color-hover, #71B11B)}.PrimaryButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;display:flex;align-items:baseline;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px) 0}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}",this.shadowRoot.appendChild(t),D(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Qr,Zr,o,{endpoint:21,session:22,lang:23,local:24,showerrors:25,showclosebutton:0,showcontactbutton:1,translationurl:2,assetsurl:3,customerid:26,transactionid:27,clientstyling:4,clientstylingurl:5},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","session","lang","local","showerrors","showclosebutton","showcontactbutton","translationurl","assetsurl","customerid","transactionid","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[21]}set endpoint(e){this.$$set({endpoint:e}),N()}get session(){return this.$$.ctx[22]}set session(e){this.$$set({session:e}),N()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),N()}get local(){return this.$$.ctx[24]}set local(e){this.$$set({local:e}),N()}get showerrors(){return this.$$.ctx[25]}set showerrors(e){this.$$set({showerrors:e}),N()}get showclosebutton(){return this.$$.ctx[0]}set showclosebutton(e){this.$$set({showclosebutton:e}),N()}get showcontactbutton(){return this.$$.ctx[1]}set showcontactbutton(e){this.$$set({showcontactbutton:e}),N()}get translationurl(){return this.$$.ctx[2]}set translationurl(e){this.$$set({translationurl:e}),N()}get assetsurl(){return this.$$.ctx[3]}set assetsurl(e){this.$$set({assetsurl:e}),N()}get customerid(){return this.$$.ctx[26]}set customerid(e){this.$$set({customerid:e}),N()}get transactionid(){return this.$$.ctx[27]}set transactionid(e){this.$$set({transactionid:e}),N()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}}return!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",qr),qr}));
|
|
608
608
|
//# sourceMappingURL=cashier-receipt-page.js.map
|