@everymatrix/cashier-methods-list 1.28.4 → 1.28.6

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.
@@ -20,10 +20,10 @@
20
20
  *
21
21
  * https://svelte.dev/docs#run-time-svelte-createeventdispatcher
22
22
  */
23
- function _(){const e=H();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){
23
+ function L(){const e=H();return(t,r,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[t];if(i){
24
24
  // TODO are there situations where events could be dispatched
25
25
  // in a server (non-DOM) environment?
26
- const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(t,r,{cancelable:n});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const B=[],L=[];let A=[];const w=[],S=Promise.resolve();let P=!1;function M(e){A.push(e)}
26
+ const o=function(e,t,{bubbles:r=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}(t,r,{cancelable:n});return i.slice().forEach((t=>{t.call(e,o)})),!o.defaultPrevented}return!0}}const _=[],B=[];let A=[];const w=[],S=Promise.resolve();let P=!1;function M(e){A.push(e)}
27
27
  // flush() calls callbacks in this order:
28
28
  // 1. All beforeUpdate callbacks, in order: parents before children
29
29
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -50,27 +50,27 @@ function O(){
50
50
  if(0!==C)return;const e=a;do{
51
51
  // first, call beforeUpdate functions
52
52
  // and update components
53
- try{for(;C<B.length;){const e=B[C];C++,T(e),I(e.$$)}}catch(e){
53
+ try{for(;C<_.length;){const e=_[C];C++,T(e),I(e.$$)}}catch(e){
54
54
  // reset dirty state to not end up in a deadlocked state and then rethrow
55
- throw B.length=0,C=0,e}for(T(null),B.length=0,C=0;L.length;)L.pop()();
55
+ throw _.length=0,C=0,e}for(T(null),_.length=0,C=0;B.length;)B.pop()();
56
56
  // then, once components are updated, call
57
57
  // afterUpdate functions. This may cause
58
58
  // subsequent updates...
59
59
  for(let e=0;e<A.length;e+=1){const t=A[e];N.has(t)||(
60
60
  // ...so guard against infinite loops
61
- N.add(t),t())}A.length=0}while(B.length);for(;w.length;)w.pop()();P=!1,N.clear(),T(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(M)}}
61
+ N.add(t),t())}A.length=0}while(_.length);for(;w.length;)w.pop()();P=!1,N.clear(),T(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(M)}}
62
62
  /**
63
63
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
64
64
  */const R=new Set;function U(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),
65
65
  // TODO null out other refs, including component.$$ (but need to
66
66
  // preserve final state?)
67
- r.on_destroy=r.fragment=null,r.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(B.push(e),P||(P=!0,S.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function D(o,s,h,l,c,u,p,m=[-1]){const d=a;T(o);const g=o.$$={fragment:null,ctx:[],
67
+ r.on_destroy=r.fragment=null,r.ctx=[])}function x(e,t){-1===e.$$.dirty[0]&&(_.push(e),P||(P=!0,S.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function G(o,s,h,l,c,u,p,m=[-1]){const d=a;T(o);const g=o.$$={fragment:null,ctx:[],
68
68
  // state
69
69
  props:u,update:e,not_equal:c,bound:r(),
70
70
  // lifecycle
71
71
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(d?d.$$.context:[])),
72
72
  // everything else
73
- callbacks:r(),dirty:m,skip_bound:!1,root:s.target||d.$$.root};p&&p(g.root);let b=!1;if(g.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=n)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](n),b&&G(o,e)),t})):[],g.update(),b=!0,n(g.before_update),
73
+ callbacks:r(),dirty:m,skip_bound:!1,root:s.target||d.$$.root};p&&p(g.root);let b=!1;if(g.ctx=h?h(o,s.props||{},((e,t,...r)=>{const n=r.length?r[0]:t;return g.ctx&&c(g.ctx[e],g.ctx[e]=n)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](n),b&&x(o,e)),t})):[],g.update(),b=!0,n(g.before_update),
74
74
  // `false` as a special case of no DOM component
75
75
  g.fragment=!!l&&l(g.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
76
76
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -85,13 +85,13 @@ M((()=>{const r=e.$$.on_mount.map(t).filter(i);
85
85
  e.$$.on_destroy?e.$$.on_destroy.push(...r):
86
86
  // Edge case - component was destroyed immediately,
87
87
  // most likely as a result of a binding initialising
88
- n(r),e.$$.on_mount=[]})),h.forEach(M)}(o,s.target,s.anchor,s.customElement),O()}var E,y;T(d)}let $;"function"==typeof HTMLElement&&($=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
88
+ n(r),e.$$.on_mount=[]})),h.forEach(M)}(o,s.target,s.anchor,s.customElement),O()}var E,y;T(d)}let D;"function"==typeof HTMLElement&&(D=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
89
89
  // @ts-ignore todo: improve typings
90
90
  for(const e in this.$$.slotted)
91
91
  // @ts-ignore todo: improve typings
92
92
  this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){U(this,1),this.$destroy=e}$on(t,r){
93
93
  // TODO should this delegate to addEventListener?
94
- 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 x=[];
94
+ 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 $=[];
95
95
  /**
96
96
  * Creates a `Readable` store that allows reading by subscription.
97
97
  * @param value initial value
@@ -103,7 +103,7 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
103
103
  * @param {StartStopNotifier=} start
104
104
  */
105
105
  function k(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
106
- const e=!x.length;for(const e of i)e[1](),x.push(e,t);if(e){for(let e=0;e<x.length;e+=2)x[e][0](x[e+1]);x.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return c=t=>{let o=!1;const c=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(s?c[0]:c,t);h?t(n):f=i(n)?n:e},m=a.map(((e,t)=>l(e,(e=>{c[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f(),
106
+ const e=!$.length;for(const e of i)e[1](),$.push(e,t);if(e){for(let e=0;e<$.length;e+=2)$[e][0]($[e+1]);$.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return c=t=>{let o=!1;const c=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(s?c[0]:c,t);h?t(n):f=i(n)?n:e},m=a.map(((e,t)=>l(e,(e=>{c[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f(),
107
107
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
108
108
  // Callbacks might already be placed in the queue which doesn't know it should no longer
109
109
  // invoke this derived store.
@@ -264,11 +264,11 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
264
264
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
265
265
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
266
266
  // @generated from regex-gen.ts
267
- var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,_e=/^(0+)$/;function Be(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){
267
+ var ye=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,He=/(\*)(0+)|(#+)(0+)|(0+)/g,Le=/^(0+)$/;function _e(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){
268
268
  // @@@ case
269
- 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 Le(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){
269
+ 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){
270
270
  // Engineering
271
- 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)),!_e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function we(e){var t=Le(e);return t||{}}
271
+ 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)),!Le.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function we(e){var t=Be(e);return t||{}}
272
272
  /**
273
273
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
274
274
  */function Se(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),we(t))}),{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return ne(ne({},e),we(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
@@ -277,7 +277,7 @@ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";
277
277
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
278
278
  case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(He,(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}
279
279
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
280
- if(_e.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ve.test(i.stem)){
280
+ if(Le.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(ve.test(i.stem)){
281
281
  // Precision
282
282
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
283
283
  // precision-integer case
@@ -285,9 +285,9 @@ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept
285
285
  // .000* case (before ICU67 it was .000+)
286
286
  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];
287
287
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
288
- "w"===o?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),Be(o)))}
288
+ "w"===o?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),_e(o)))}
289
289
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
290
- else if(Te.test(i.stem))t=ne(ne({},t),Be(i.stem));else{var s=Le(i.stem);s&&(t=ne(ne({},t),s));var a=Ae(i.stem);a&&(t=ne(ne({},t),a))}}return t}
290
+ else if(Te.test(i.stem))t=ne(ne({},t),_e(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}
291
291
  // @generated from time-data-gen.ts
292
292
  // prettier-ignore
293
293
  var Pe,Me={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"]};
@@ -314,7 +314,7 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
314
314
  var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Me[r||""]||Me[n||""]||Me["".concat(n,"-001")]||Me["001"])[0]}var Ce=new RegExp("^".concat(ge.source,"*")),Oe=new RegExp("".concat(ge.source,"*$"));function Ie(e,t){return{start:e,end:t}}
315
315
  // #region Ponyfills
316
316
  // Consolidate these variables up top for easier toggling during debugging
317
- var Re=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,Ge=!!Object.fromEntries,De=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,xe=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
317
+ var Re=!!String.prototype.startsWith,Ue=!!String.fromCodePoint,xe=!!Object.fromEntries,Ge=!!String.prototype.codePointAt,De=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
318
318
  /**
319
319
  * legacy Edge or Xbox One browser
320
320
  * Unicode flag support: supported
@@ -326,12 +326,12 @@ function(e,t,r){return e.startsWith(t,r)}:// For IE11
326
326
  function(e,t,r){return e.slice(r,r+t.length)===t},Xe=Ue?String.fromCodePoint:// IE11
327
327
  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},Ke=
328
328
  // native
329
- Ge?Object.fromEntries:// Ponyfill
330
- 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},ze=De?// Native
329
+ xe?Object.fromEntries:// Ponyfill
330
+ 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},ze=Ge?// Native
331
331
  function(e,t){return e.codePointAt(t)}:// IE 11
332
- 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}},Ye=$e?// Native
332
+ 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}},Ye=De?// Native
333
333
  function(e){return e.trimStart()}:// Ponyfill
334
- function(e){return e.replace(Ce,"")},Ze=xe?// Native
334
+ function(e){return e.replace(Ce,"")},Ze=$e?// Native
335
335
  function(e){return e.trimEnd()}:// Ponyfill
336
336
  function(e){return e.replace(Oe,"")};
337
337
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
@@ -578,7 +578,7 @@ if(he(c)){var p="string"==typeof c.style?n.date[c.style]:de(c.style)?c.style.par
578
578
  See the accompanying LICENSE file for terms.
579
579
  */
580
580
  // -- MessageFormat --------------------------------------------------------
581
- 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 Ht(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 _t=/** @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);
581
+ 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 Ht(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 Lt=/** @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);
582
582
  // Hot path for straight simple msg translations
583
583
  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},
584
584
  // Defined first because it's used to build the format pattern.
@@ -591,17 +591,17 @@ this.formats=Tt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
591
591
  // Default format options used as the prototype of the `formats` provided to the
592
592
  // constructor. These are used when constructing the internal Intl.NumberFormat
593
593
  // and Intl.DateTimeFormat instances.
594
- 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 Bt={},Lt=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Mt(r[n],e);if(i)return Lt(e,t,i)}};let wt;const St=k({});function Pt(e){return e in wt}function Mt(e,t){if(!Pt(e))return null;const r=function(e){return wt[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 Nt(e,...t){delete Bt[e],St.update((r=>(r[e]=J.all([r[e]||{},...t]),r)))}F([St],(([e])=>Object.keys(e))),St.subscribe((e=>wt=e));const Ct={};function Ot(e){return Ct[e]}function It(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=Ot(e))?void 0:t.size}))}function Rt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Nt(e,...t)))}const Ut={};function Gt(e){if(!It(e))return e in Ut?Ut[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 Ut[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(It(e))return Gt(e);delete Ut[e]})),Ut[e]}const Dt={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 $t(){return Dt}const xt=k(!1);var kt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Yt;const Zt=k(null);function Wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=$t().fallbackLocale){const r=Wt(e);return t?[...new Set([...r,...Wt(t)])]:r}function Qt(){return null!=Yt?Yt:void 0}Zt.subscribe((e=>{Yt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qt=(er=((e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&zt(e,r,t[r]);if(Vt)for(var r of Vt(t))Kt.call(t,r)&&zt(e,r,t[r]);return e})({},Zt),Ft(er,jt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&It(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Qt()&&t?r=window.setTimeout((()=>xt.set(!0)),t):xt.set(!0),Gt(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(r),xt.set(!1)}))}return Zt.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var rr=Object.defineProperty,nr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))ir.call(t,r)&&sr(e,r,t[r]);if(nr)for(var r of nr(t))or.call(t,r)&&sr(e,r,t[r]);return e},hr=(e,t)=>{var r={};for(var n in e)ir.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nr)for(var n of nr(e))t.indexOf(n)<0&&or.call(e,n)&&(r[n]=e[n]);return r};const lr=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=lr("number",n)),new Intl.NumberFormat(r,i)})),ur=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=lr("date",n):0===Object.keys(i).length&&(i=lr("date","short")),new Intl.DateTimeFormat(r,i)})),fr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=lr("time",n):0===Object.keys(i).length&&(i=lr("time","short")),new Intl.DateTimeFormat(r,i)})),pr=tr((
594
+ 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 _t={},Bt=(e,t,r)=>r?(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r):r,At=(e,t)=>{if(null==t)return;if(t in _t&&e in _t[t])return _t[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=Mt(r[n],e);if(i)return Bt(e,t,i)}};let wt;const St=k({});function Pt(e){return e in wt}function Mt(e,t){if(!Pt(e))return null;const r=function(e){return wt[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 Nt(e,...t){delete _t[e],St.update((r=>(r[e]=J.all([r[e]||{},...t]),r)))}F([St],(([e])=>Object.keys(e))),St.subscribe((e=>wt=e));const Ct={};function Ot(e){return Ct[e]}function It(e){return null!=e&&Jt(e).some((e=>{var t;return null==(t=Ot(e))?void 0:t.size}))}function Rt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Ct[e].delete(t),0===Ct[e].size&&delete Ct[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Nt(e,...t)))}const Ut={};function xt(e){if(!It(e))return e in Ut?Ut[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 Ut[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(It(e))return xt(e);delete Ut[e]})),Ut[e]}const Gt={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 Dt(){return Gt}const $t=k(!1);var kt=Object.defineProperty,Ft=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Yt;const Zt=k(null);function Wt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=Dt().fallbackLocale){const r=Wt(e);return t?[...new Set([...r,...Wt(t)])]:r}function Qt(){return null!=Yt?Yt:void 0}Zt.subscribe((e=>{Yt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const qt=(er=((e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&zt(e,r,t[r]);if(Vt)for(var r of Vt(t))Kt.call(t,r)&&zt(e,r,t[r]);return e})({},Zt),Ft(er,jt({set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&It(e)){const{loadingDelay:t}=Dt();let r;return"undefined"!=typeof window&&null!=Qt()&&t?r=window.setTimeout((()=>$t.set(!0)),t):$t.set(!0),xt(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(r),$t.set(!1)}))}return Zt.set(e)}})));var er;const tr=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var rr=Object.defineProperty,nr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,sr=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))ir.call(t,r)&&sr(e,r,t[r]);if(nr)for(var r of nr(t))or.call(t,r)&&sr(e,r,t[r]);return e},hr=(e,t)=>{var r={};for(var n in e)ir.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nr)for(var n of nr(e))t.indexOf(n)<0&&or.call(e,n)&&(r[n]=e[n]);return r};const lr=(e,t)=>{const{formats:r}=Dt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=lr("number",n)),new Intl.NumberFormat(r,i)})),ur=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=lr("date",n):0===Object.keys(i).length&&(i=lr("date","short")),new Intl.DateTimeFormat(r,i)})),fr=tr((e=>{var t=e,{locale:r,format:n}=t,i=hr(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=lr("time",n):0===Object.keys(i).length&&(i=lr("time","short")),new Intl.DateTimeFormat(r,i)})),pr=tr((
595
595
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
596
- (e,t=Qt())=>new _t(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),mr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Qt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(e,h);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!=(i=null==(n=(r=$t()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=pr(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},dr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return fr(ar({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return ur(ar({locale:r},n))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return cr(ar({locale:r},n))})(t).format(e),Er=(e,t=Qt())=>At(e,t),yr=F([qt,St],(()=>mr));F([qt],(()=>dr)),F([qt],(()=>gr)),F([qt],(()=>br)),F([qt,St],(()=>Er));const vr={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
596
+ (e,t=Qt())=>new Lt(e,t,Dt().formats,{ignoreTag:Dt().ignoreTag}))),mr=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Qt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=At(e,h);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!=(i=null==(n=(r=Dt()).handleMissingMessage)?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return c;let u=c;try{u=pr(c,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},dr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return fr(ar({locale:r},n))})(t).format(e),gr=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return ur(ar({locale:r},n))})(t).format(e),br=(e,t)=>((e={})=>{var t=e,{locale:r=Qt()}=t,n=hr(t,["locale"]);return cr(ar({locale:r},n))})(t).format(e),Er=(e,t=Qt())=>At(e,t),yr=F([qt,St],(()=>mr));F([qt],(()=>dr)),F([qt],(()=>gr)),F([qt],(()=>br)),F([qt,St],(()=>Er));const vr={en:{generalMin:"Min",generalMax:"Max",showAll:"SHOW ALL",showLess:"SHOW LESS"},uk:{generalMin:"Мін",generalMax:"Макс"},hr:{generalMin:"Minimalno",generalMax:"Maksimalno",showAll:"Pokaži sve",showLess:"Prikaži manje"}};
597
597
  /* src/CashierMethodsList.svelte generated by Svelte v3.59.2 */function Tr(e,t,r){const n=e.slice();return n[36]=t[r],n[38]=r,n}
598
598
  // (128:0) {#if showMerchantList }
599
- function Hr(e){let t,r,n,i=/*paymentMethodsToShow*/e[3],o=[];for(let t=0;t<i.length;t+=1)o[t]=_r(Tr(e,i,t));let s=/*methodsButtonToggleText*/e[2]&&Br(e);return{c(){t=p("div"),r=p("div");for(let e=0;e<o.length;e+=1)o[e].c();n=d(),s&&s.c(),b(r,"class","CashierMethodList"),b(t,"class","CashierMethodListWidget")},m(i,a){u(i,t,a),c(t,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);c(t,n),s&&s.m(t,null)
600
- /*div1_binding*/,e[21](t)},p(e,n){if(/*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/234&n[0]){let t;for(i=/*paymentMethodsToShow*/e[3],t=0;t<i.length;t+=1){const s=Tr(e,i,t);o[t]?o[t].p(s,n):(o[t]=_r(s),o[t].c(),o[t].m(r,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}/*methodsButtonToggleText*/e[2]?s?s.p(e,n):(s=Br(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&f(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(o,r),s&&s.d()
599
+ function Hr(e){let t,r,n,i=/*paymentMethodsToShow*/e[3],o=[];for(let t=0;t<i.length;t+=1)o[t]=Lr(Tr(e,i,t));let s=/*methodsButtonToggleText*/e[2]&&_r(e);return{c(){t=p("div"),r=p("div");for(let e=0;e<o.length;e+=1)o[e].c();n=d(),s&&s.c(),b(r,"class","CashierMethodList"),b(t,"class","CashierMethodListWidget")},m(i,a){u(i,t,a),c(t,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);c(t,n),s&&s.m(t,null)
600
+ /*div1_binding*/,e[21](t)},p(e,n){if(/*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/234&n[0]){let t;for(i=/*paymentMethodsToShow*/e[3],t=0;t<i.length;t+=1){const s=Tr(e,i,t);o[t]?o[t].p(s,n):(o[t]=Lr(s),o[t].c(),o[t].m(r,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}/*methodsButtonToggleText*/e[2]?s?s.p(e,n):(s=_r(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&f(t),function(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}(o,r),s&&s.d()
601
601
  /*div1_binding*/,e[21](null)}}}
602
602
  // (131:4) {#each paymentMethodsToShow as payMeth, index}
603
- function _r(e){let t,r,i,o,s,a,l,v,T,H,_,B,L,A,w,S,P,M,N,C,O,I,R,U,G,D,$,x=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"",k=/*$_*/e[5]("generalMin")+"",F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"",j=/*payMeth*/e[36].DisplayCurrency.Name+"",V=/*$_*/e[5]("generalMax")+"",X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"",K=/*payMeth*/e[36].DisplayCurrency.Name+"";function z(){/*click_handler*/
604
- return e[19](/*payMeth*/e[36])}return{c(){t=p("div"),r=p("div"),i=p("img"),a=d(),l=p("div"),v=p("span"),T=m(x),H=d(),_=p("div"),B=p("span"),L=m(k),A=d(),w=m(F),S=d(),P=m(j),M=d(),N=p("span"),C=m(V),O=d(),I=m(X),R=d(),U=m(K),G=d(),h(i.src,o=/*payMeth*/e[36].LogoUrl)||b(i,"src",o),b(i,"alt",s=/*payMeth*/e[36].Label),b(r,"class","MethodLogo"),b(l,"class","MethodTitle"),b(B,"class","Limits"),b(N,"class","Limits"),b(_,"class","MethodLimits"),b(t,"class","SelectorWrapper"),y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},m(e,n){u(e,t,n),c(t,r),c(r,i),c(t,a),c(t,l),c(l,v),c(v,T),c(t,H),c(t,_),c(_,B),c(B,L),c(B,A),c(B,w),c(B,S),c(B,P),c(_,M),c(_,N),c(N,C),c(N,O),c(N,I),c(N,R),c(N,U),c(t,G),D||($=[g(t,"click",z),g(t,"keyup",Ar)],D=!0)},p(r,n){e=r,/*paymentMethodsToShow*/8&n[0]&&!h(i.src,o=/*payMeth*/e[36].LogoUrl)&&b(i,"src",o),/*paymentMethodsToShow*/8&n[0]&&s!==(s=/*payMeth*/e[36].Label)&&b(i,"alt",s),/*paymentMethodsToShow*/8&n[0]&&x!==(x=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"")&&E(T,x),/*$_*/32&n[0]&&k!==(k=/*$_*/e[5]("generalMin")+"")&&E(L,k),/*paymentMethodsToShow*/8&n[0]&&F!==(F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"")&&E(w,F),/*paymentMethodsToShow*/8&n[0]&&j!==(j=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(P,j),/*$_*/32&n[0]&&V!==(V=/*$_*/e[5]("generalMax")+"")&&E(C,V),/*paymentMethodsToShow*/8&n[0]&&X!==(X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"")&&E(I,X),/*paymentMethodsToShow*/8&n[0]&&K!==(K=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(U,K),/*selectedPaymentMethod, paymentMethodsToShow*/10&n[0]&&y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},d(e){e&&f(t),D=!1,n($)}}}
603
+ function Lr(e){let t,r,i,o,s,a,l,v,T,H,L,_,B,A,w,S,P,M,N,C,O,I,R,U,x,G,D,$=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"",k=/*$_*/e[5]("generalMin")+"",F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"",j=/*payMeth*/e[36].DisplayCurrency.Name+"",V=/*$_*/e[5]("generalMax")+"",X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"",K=/*payMeth*/e[36].DisplayCurrency.Name+"";function z(){/*click_handler*/
604
+ return e[19](/*payMeth*/e[36])}return{c(){t=p("div"),r=p("div"),i=p("img"),a=d(),l=p("div"),v=p("span"),T=m($),H=d(),L=p("div"),_=p("span"),B=m(k),A=d(),w=m(F),S=d(),P=m(j),M=d(),N=p("span"),C=m(V),O=d(),I=m(X),R=d(),U=m(K),x=d(),h(i.src,o=/*payMeth*/e[36].LogoUrl)||b(i,"src",o),b(i,"alt",s=/*payMeth*/e[36].Label),b(r,"class","MethodLogo"),b(l,"class","MethodTitle"),b(_,"class","Limits"),b(N,"class","Limits"),b(L,"class","MethodLimits"),b(t,"class","SelectorWrapper"),y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},m(e,n){u(e,t,n),c(t,r),c(r,i),c(t,a),c(t,l),c(l,v),c(v,T),c(t,H),c(t,L),c(L,_),c(_,B),c(_,A),c(_,w),c(_,S),c(_,P),c(L,M),c(L,N),c(N,C),c(N,O),c(N,I),c(N,R),c(N,U),c(t,x),G||(D=[g(t,"click",z),g(t,"keyup",Ar)],G=!0)},p(r,n){e=r,/*paymentMethodsToShow*/8&n[0]&&!h(i.src,o=/*payMeth*/e[36].LogoUrl)&&b(i,"src",o),/*paymentMethodsToShow*/8&n[0]&&s!==(s=/*payMeth*/e[36].Label)&&b(i,"alt",s),/*paymentMethodsToShow*/8&n[0]&&$!==($=/*payMeth*/(e[36].Label||/*payMeth*/e[36].Name)+"")&&E(T,$),/*$_*/32&n[0]&&k!==(k=/*$_*/e[5]("generalMin")+"")&&E(B,k),/*paymentMethodsToShow*/8&n[0]&&F!==(F=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MinAmountLimit)+"")&&E(w,F),/*paymentMethodsToShow*/8&n[0]&&j!==(j=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(P,j),/*$_*/32&n[0]&&V!==(V=/*$_*/e[5]("generalMax")+"")&&E(C,V),/*paymentMethodsToShow*/8&n[0]&&X!==(X=/*formatter*/e[6].format(/*payMeth*/e[36].DisplayCurrency.MaxAmountLimit)+"")&&E(I,X),/*paymentMethodsToShow*/8&n[0]&&K!==(K=/*payMeth*/e[36].DisplayCurrency.Name+"")&&E(U,K),/*selectedPaymentMethod, paymentMethodsToShow*/10&n[0]&&y(t,"checked",/*selectedPaymentMethod*/e[1]===/*payMeth*/e[36].Name)},d(e){e&&f(t),G=!1,n(D)}}}
605
605
  // (147:2) {#if methodsButtonToggleText}
606
- function Br(e){let t,r,n,i;return{c(){t=p("div"),r=m(/*methodsButtonToggleText*/e[2]),b(t,"class","ShowAllButton")},m(o,s){u(o,t,s),c(t,r),n||(i=g(t,"click",/*click_handler_1*/e[20]),n=!0)},p(e,t){/*methodsButtonToggleText*/4&t[0]&&E(r,/*methodsButtonToggleText*/e[2])},d(e){e&&f(t),n=!1,i()}}}function Lr(t){let r,n=/*showMerchantList*/t[4]&&Hr(t);return{c(){n&&n.c(),r=m(""),this.c=e},m(e,t){n&&n.m(e,t),u(e,r,t)},p(e,t){/*showMerchantList*/e[4]?n?n.p(e,t):(n=Hr(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&f(r)}}}const Ar=()=>{};function wr(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,a,{lang:h="en"}=t,{local:c="en-US"}=t,{endpoint:u}=t,{session:f}=t,{customerid:p}=t,{currency:m}=t,{numberofmethodsshown:d}=t,{translationurl:g=""}=t,{clientstyling:b=""}=t,{clientstylingurl:E=""}=t,y=[],v="",T=[],B=!0,A=new Intl.NumberFormat(c,{minimumFractionDigits:2});_(),Object.keys(vr).forEach((e=>{!function(e,t){Nt(e,t)}(e,vr[e])}));const w=()=>{var e;e=h,qt.set(e)},S=e=>{r(1,a=e.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))},P=()=>{T==y?N():M()},M=()=>{r(3,T=y),r(2,v=n("showLess"))},N=()=>{r(3,T=y.slice(0,+d)),a&&!T.find((e=>e.Name===a))&&T.splice(0,0,y.find((e=>e.Name===a))),r(2,v=n("showAll"))},C=()=>{r(4,B=!0)},O=e=>{r(4,B=!e.detail.hideMethodsList)};var I;I=()=>(window.addEventListener("backToMethodList",C,!1),window.addEventListener("hideMethodsList",O,!1),()=>{window.removeEventListener("backToMethodList",C),window.removeEventListener("paymentMethodLoaded",O)}),H().$$.on_mount.push(I);return e.$$set=e=>{"lang"in e&&r(9,h=e.lang),"local"in e&&r(10,c=e.local),"endpoint"in e&&r(11,u=e.endpoint),"session"in e&&r(12,f=e.session),"customerid"in e&&r(13,p=e.customerid),"currency"in e&&r(14,m=e.currency),"numberofmethodsshown"in e&&r(15,d=e.numberofmethodsshown),"translationurl"in e&&r(16,g=e.translationurl),"clientstyling"in e&&r(17,b=e.clientstyling),"clientstylingurl"in e&&r(18,E=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/14336&e.$$.dirty[0]&&u&&f&&p&&(()=>{const e=new URL(`${u}/v1/player/${p}/payment/GetPaymentMetadata`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:f,Currency:m})};fetch(e,i).then((e=>e.json())).then((e=>{y=e.PaymentMethods.PaymentMethods.map((e=>Object.assign(Object.assign({},e),{LogoUrl:e.Logos&&e.Logos.length&&e.Logos[0].LogoUrl?`https:${e.Logos[0].LogoUrl}`:""}))),r(2,v=d&&+d>0&&y.length>+d?n("showAll"):""),r(3,T=v?y.slice(0,+d):y)}))})(),/*lang*/512&e.$$.dirty[0]&&h&&w(),/*clientstyling, customStylingContainer*/131073&e.$$.dirty[0]&&b&&s&&(()=>{let e=document.createElement("style");e.innerHTML=b,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/262145&e.$$.dirty[0]&&E&&s&&(()=>{let e=new URL(E),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[s,a,v,T,B,n,A,S,P,h,c,u,f,p,m,d,g,b,E,e=>S(e),()=>P(),function(e){L[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}class Sr extends ${constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList .SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:52px;box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.CashierMethodList .SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.CashierMethodList .SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList .SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.CashierMethodList .MethodLogo{margin-right:var(--mmw--spacing-x-small-minus, 7px);width:56px;height:32px;background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierMethodList .MethodLogo img{width:inherit;height:inherit}.CashierMethodList .MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all;font-feature-settings:"numr" on}.CashierMethodList .MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList .MethodLimits .Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small-plus, 11px);line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}',this.shadowRoot.appendChild(t),D(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},wr,Lr,o,{lang:9,local:10,endpoint:11,session:12,customerid:13,currency:14,numberofmethodsshown:15,translationurl:16,clientstyling:17,clientstylingurl:18},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["lang","local","endpoint","session","customerid","currency","numberofmethodsshown","translationurl","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),O()}get local(){return this.$$.ctx[10]}set local(e){this.$$set({local:e}),O()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),O()}get session(){return this.$$.ctx[12]}set session(e){this.$$set({session:e}),O()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),O()}get currency(){return this.$$.ctx[14]}set currency(e){this.$$set({currency:e}),O()}get numberofmethodsshown(){return this.$$.ctx[15]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),O()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}}return!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",Sr),Sr}));
606
+ function _r(e){let t,r,n,i;return{c(){t=p("div"),r=m(/*methodsButtonToggleText*/e[2]),b(t,"class","ShowAllButton")},m(o,s){u(o,t,s),c(t,r),n||(i=g(t,"click",/*click_handler_1*/e[20]),n=!0)},p(e,t){/*methodsButtonToggleText*/4&t[0]&&E(r,/*methodsButtonToggleText*/e[2])},d(e){e&&f(t),n=!1,i()}}}function Br(t){let r,n=/*showMerchantList*/t[4]&&Hr(t);return{c(){n&&n.c(),r=m(""),this.c=e},m(e,t){n&&n.m(e,t),u(e,r,t)},p(e,t){/*showMerchantList*/e[4]?n?n.p(e,t):(n=Hr(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},i:e,o:e,d(e){n&&n.d(e),e&&f(r)}}}const Ar=()=>{};function wr(e,t,r){let n;var i,o;i=yr,o=e=>r(5,n=e),e.$$.on_destroy.push(l(i,o));let s,a,{lang:h="en"}=t,{local:c="en-US"}=t,{endpoint:u}=t,{session:f}=t,{customerid:p}=t,{currency:m}=t,{numberofmethodsshown:d}=t,{translationurl:g=""}=t,{clientstyling:b=""}=t,{clientstylingurl:E=""}=t,y=[],v="",T=[],_=!0,A=new Intl.NumberFormat(c,{minimumFractionDigits:2});L(),Object.keys(vr).forEach((e=>{!function(e,t){Nt(e,t)}(e,vr[e])}));const w=()=>{var e;e=h,qt.set(e)},S=e=>{r(1,a=e.Name),dispatchEvent(new CustomEvent("selectPayMeth",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))},P=()=>{T==y?N():M()},M=()=>{r(3,T=y),r(2,v=n("showLess"))},N=()=>{r(3,T=y.slice(0,+d)),a&&!T.find((e=>e.Name===a))&&T.splice(0,0,y.find((e=>e.Name===a))),r(2,v=n("showAll"))},C=()=>{r(4,_=!0)},O=e=>{r(4,_=!e.detail.hideMethodsList)};var I;I=()=>(window.addEventListener("backToMethodList",C,!1),window.addEventListener("hideMethodsList",O,!1),()=>{window.removeEventListener("backToMethodList",C),window.removeEventListener("paymentMethodLoaded",O)}),H().$$.on_mount.push(I);return e.$$set=e=>{"lang"in e&&r(9,h=e.lang),"local"in e&&r(10,c=e.local),"endpoint"in e&&r(11,u=e.endpoint),"session"in e&&r(12,f=e.session),"customerid"in e&&r(13,p=e.customerid),"currency"in e&&r(14,m=e.currency),"numberofmethodsshown"in e&&r(15,d=e.numberofmethodsshown),"translationurl"in e&&r(16,g=e.translationurl),"clientstyling"in e&&r(17,b=e.clientstyling),"clientstylingurl"in e&&r(18,E=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/14336&e.$$.dirty[0]&&u&&f&&p&&(()=>{const e=new URL(`${u}/v1/player/${p}/payment/GetPaymentMetadata`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:f,Currency:m})};fetch(e,i).then((e=>e.json())).then((e=>{y=e.PaymentMethods.PaymentMethods.map((e=>Object.assign(Object.assign({},e),{LogoUrl:e.Logos&&e.Logos.length&&e.Logos[0].LogoUrl?`https:${e.Logos[0].LogoUrl}`:""}))),r(2,v=d&&+d>0&&y.length>+d?n("showAll"):""),r(3,T=v?y.slice(0,+d):y)}))})(),/*lang*/512&e.$$.dirty[0]&&h&&w(),/*clientstyling, customStylingContainer*/131073&e.$$.dirty[0]&&b&&s&&(()=>{let e=document.createElement("style");e.innerHTML=b,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/262145&e.$$.dirty[0]&&E&&s&&(()=>{let e=new URL(E),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[s,a,v,T,_,n,A,S,P,h,c,u,f,p,m,d,g,b,E,e=>S(e),()=>P(),function(e){B[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}class Sr extends D{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList .SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:52px;box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.CashierMethodList .SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.CashierMethodList .SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierMethodList .SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.CashierMethodList .MethodLogo{margin-right:var(--mmw--spacing-x-small-minus, 7px);width:56px;height:32px;background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierMethodList .MethodLogo img{width:inherit;height:inherit}@media(max-width: 768px){.CashierMethodList .MethodLogo{min-width:56px}}.CashierMethodList .MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);word-break:break-all}@media(max-width: 768px){.CashierMethodList .MethodTitle{flex-grow:1;font-size:var(--emw--font-size-x-small, 12px);overflow:hidden;text-wrap:nowrap;text-overflow:ellipsis}}.CashierMethodList .MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.CashierMethodList .MethodLimits .Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-2x-small-plus, 11px);line-height:var(--emw--size-small, 14px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}@media(max-width: 768px){.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-2x-small, 10px)}}@media(max-width: 370px){.CashierMethodList .MethodLimits .Limits{display:none}}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}",this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},wr,Br,o,{lang:9,local:10,endpoint:11,session:12,customerid:13,currency:14,numberofmethodsshown:15,translationurl:16,clientstyling:17,clientstylingurl:18},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["lang","local","endpoint","session","customerid","currency","numberofmethodsshown","translationurl","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),O()}get local(){return this.$$.ctx[10]}set local(e){this.$$set({local:e}),O()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),O()}get session(){return this.$$.ctx[12]}set session(e){this.$$set({session:e}),O()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),O()}get currency(){return this.$$.ctx[14]}set currency(e){this.$$set({currency:e}),O()}get numberofmethodsshown(){return this.$$.ctx[15]}set numberofmethodsshown(e){this.$$set({numberofmethodsshown:e}),O()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}}return!customElements.get("cashier-methods-list")&&customElements.define("cashier-methods-list",Sr),Sr}));
607
607
  //# sourceMappingURL=cashier-methods-list.js.map