@everymatrix/cashier-receipt-page 1.91.1 → 1.91.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- "use strict";var Ci=Object.defineProperty,_i=Object.defineProperties;var wi=Object.getOwnPropertyDescriptors;var Hn=Object.getOwnPropertySymbols;var xi=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable;var Gt=(e,t,n)=>t in e?Ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t)=>{for(var n in t||(t={}))xi.call(t,n)&&Gt(e,n,t[n]);if(Hn)for(var n of Hn(t))Ei.call(t,n)&&Gt(e,n,t[n]);return e},Mn=(e,t)=>_i(e,wi(t));var ve=(e,t,n)=>(Gt(e,typeof t!="symbol"?t+"":t,n),n);var Ft=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function ie(){}const gn=e=>e;function Si(e,t){for(const n in t)e[n]=t[n];return e}function pr(e){return e()}function Pn(){return Object.create(null)}function Be(e){e.forEach(pr)}function ct(e){return typeof e=="function"}function bn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let bt;function Jt(e,t){return e===t?!0:(bt||(bt=document.createElement("a")),bt.href=t,e===bt.href)}function Ti(e){return Object.keys(e).length===0}function dr(e,...t){if(e==null){for(const r of t)r(void 0);return ie}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function mr(e,t,n){e.$$.on_destroy.push(dr(t,n))}function Hi(e,t,n,r){if(e){const i=gr(e,t,n,r);return e[0](i)}}function gr(e,t,n,r){return e[1]&&r?Si(n.ctx.slice(),e[1](r(t))):n.ctx}function Mi(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Pi(e,t,n,r,i,o){if(i){const s=gr(t,n,r,o);e.p(s,i)}}function Bi(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}const br=typeof window!="undefined";let yr=br?()=>window.performance.now():()=>Date.now(),yn=br?e=>requestAnimationFrame(e):ie;const je=new Set;function vr(e){je.forEach(t=>{t.c(e)||(je.delete(t),t.f())}),je.size!==0&&yn(vr)}function Cr(e){let t;return je.size===0&&yn(vr),{promise:new Promise(n=>{je.add(t={c:e,f:n})}),abort(){je.delete(t)}}}function C(e,t){e.appendChild(t)}function _r(e,t,n){const r=vn(e);if(!r.getElementById(t)){const i=E("style");i.id=t,i.textContent=n,wr(r,i)}}function vn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ai(e){const t=E("style");return t.textContent="/* empty */",wr(vn(e),t),t.sheet}function wr(e,t){return C(e.head||e,t),t.sheet}function B(e,t,n){e.insertBefore(t,n||null)}function H(e){e.parentNode&&e.parentNode.removeChild(e)}function xr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function ge(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function G(){return j(" ")}function Dt(){return j("")}function Fe(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function h(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function F(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:h(e,t,n)}function Oi(e){return Array.from(e.childNodes)}function W(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ri(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Li(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Tt=new Map;let Ht=0;function Ii(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Di(e,t){const n={stylesheet:Ai(t),rules:{}};return Tt.set(e,n),n}function Er(e,t,n,r,i,o,s,a=0){const u=16.666/r;let l=`{
1
+ "use strict";var Ti=Object.defineProperty,Mi=Object.defineProperties;var Hi=Object.getOwnPropertyDescriptors;var Rn=Object.getOwnPropertySymbols;var Pi=Object.prototype.hasOwnProperty,Bi=Object.prototype.propertyIsEnumerable;var Ft=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bt=(e,t)=>{for(var n in t||(t={}))Pi.call(t,n)&&Ft(e,n,t[n]);if(Rn)for(var n of Rn(t))Bi.call(t,n)&&Ft(e,n,t[n]);return e},Ln=(e,t)=>Mi(e,Hi(t));var ve=(e,t,n)=>(Ft(e,typeof t!="symbol"?t+"":t,n),n);var Wt=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(l){i(l)}},s=u=>{try{a(n.throw(u))}catch(l){i(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});function ie(){}const bn=e=>e;function Ai(e,t){for(const n in t)e[n]=t[n];return e}function vr(e){return e()}function In(){return Object.create(null)}function Ae(e){e.forEach(vr)}function ft(e){return typeof e=="function"}function yn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let yt;function Kt(e,t){return e===t?!0:(yt||(yt=document.createElement("a")),yt.href=t,e===yt.href)}function Oi(e){return Object.keys(e).length===0}function Cr(e,...t){if(e==null){for(const r of t)r(void 0);return ie}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function _r(e,t,n){e.$$.on_destroy.push(Cr(t,n))}function Ri(e,t,n,r){if(e){const i=wr(e,t,n,r);return e[0](i)}}function wr(e,t,n,r){return e[1]&&r?Ai(n.ctx.slice(),e[1](r(t))):n.ctx}function Li(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function Ii(e,t,n,r,i,o){if(i){const s=wr(t,n,r,o);e.p(s,i)}}function Di(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let r=0;r<n;r++)t[r]=-1;return t}return-1}const xr=typeof window!="undefined";let Er=xr?()=>window.performance.now():()=>Date.now(),vn=xr?e=>requestAnimationFrame(e):ie;const Ge=new Set;function Sr(e){Ge.forEach(t=>{t.c(e)||(Ge.delete(t),t.f())}),Ge.size!==0&&vn(Sr)}function Tr(e){let t;return Ge.size===0&&vn(Sr),{promise:new Promise(n=>{Ge.add(t={c:e,f:n})}),abort(){Ge.delete(t)}}}function C(e,t){e.appendChild(t)}function Mr(e,t,n){const r=Cn(e);if(!r.getElementById(t)){const i=E("style");i.id=t,i.textContent=n,Hr(r,i)}}function Cn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function $i(e){const t=E("style");return t.textContent="/* empty */",Hr(Cn(e),t),t.sheet}function Hr(e,t){return C(e.head||e,t),t.sheet}function B(e,t,n){e.insertBefore(t,n||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function Pr(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function ge(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function j(e){return document.createTextNode(e)}function G(){return j(" ")}function $t(){return j("")}function We(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function h(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function F(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:h(e,t,n)}function ki(e){return Array.from(e.childNodes)}function W(e,t){t=""+t,e.data!==t&&(e.data=t)}function Ni(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Ui(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Mt=new Map;let Ht=0;function ji(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Gi(e,t){const n={stylesheet:$i(t),rules:{}};return Mt.set(e,n),n}function Br(e,t,n,r,i,o,s,a=0){const u=16.666/r;let l=`{
2
2
  `;for(let P=0;P<=1;P+=u){const O=t+(n-t)*o(P);l+=P*100+`%{${s(O,1-O)}}
3
3
  `}const c=l+`100% {${s(n,1-n)}}
4
- }`,f=`__svelte_${Ii(c)}_${a}`,m=vn(e),{stylesheet:g,rules:v}=Tt.get(m)||Di(m,e);v[f]||(v[f]=!0,g.insertRule(`@keyframes ${f} ${c}`,g.cssRules.length));const d=e.style.animation||"";return e.style.animation=`${d?`${d}, `:""}${f} ${r}ms linear ${i}ms 1 both`,Ht+=1,f}function Kt(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Ht-=i,Ht||$i())}function $i(){yn(()=>{Ht||(Tt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&H(t)}),Tt.clear())})}let st;function ot(e){st=e}function ki(){if(!st)throw new Error("Function called outside component initialization");return st}function Sr(e){ki().$$.on_mount.push(e)}const Ne=[],at=[];let Ge=[];const Bn=[],Ni=Promise.resolve();let en=!1;function Ui(){en||(en=!0,Ni.then(Z))}function We(e){Ge.push(e)}const Wt=new Set;let $e=0;function Z(){if($e!==0)return;const e=st;do{try{for(;$e<Ne.length;){const t=Ne[$e];$e++,ot(t),ji(t.$$)}}catch(t){throw Ne.length=0,$e=0,t}for(ot(null),Ne.length=0,$e=0;at.length;)at.pop()();for(let t=0;t<Ge.length;t+=1){const n=Ge[t];Wt.has(n)||(Wt.add(n),n())}Ge.length=0}while(Ne.length);for(;Bn.length;)Bn.pop()();en=!1,Wt.clear(),ot(e)}function ji(e){if(e.fragment!==null){e.update(),Be(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(We)}}function Gi(e){const t=[],n=[];Ge.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Ge=t}let et;function Tr(){return et||(et=Promise.resolve(),et.then(()=>{et=null})),et}function Mt(e,t,n){e.dispatchEvent(Ri(`${t?"intro":"outro"}${n}`))}const Ct=new Set;let Me;function Fi(){Me={r:0,c:[],p:Me}}function Wi(){Me.r||Be(Me.c),Me=Me.p}function Pt(e,t){e&&e.i&&(Ct.delete(e),e.i(t))}function Hr(e,t,n,r){if(e&&e.o){if(Ct.has(e))return;Ct.add(e),Me.c.push(()=>{Ct.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const Mr={duration:0};function Vi(e,t,n){const r={direction:"in"};let i=t(e,n,r),o=!1,s,a,u=0;function l(){s&&Kt(e,s)}function c(){const{delay:m=0,duration:g=300,easing:v=gn,tick:d=ie,css:P}=i||Mr;P&&(s=Er(e,0,1,g,m,v,P,u++)),d(0,1);const O=yr()+m,N=O+g;a&&a.abort(),o=!0,We(()=>Mt(e,!0,"start")),a=Cr(A=>{if(o){if(A>=N)return d(1,0),Mt(e,!0,"end"),l(),o=!1;if(A>=O){const Y=v((A-O)/g);d(Y,1-Y)}}return o})}let f=!1;return{start(){f||(f=!0,Kt(e),ct(i)?(i=i(r),Tr().then(c)):c())},invalidate(){f=!1},end(){o&&(l(),o=!1)}}}function zi(e,t,n){const r={direction:"out"};let i=t(e,n,r),o=!0,s;const a=Me;a.r+=1;let u;function l(){const{delay:c=0,duration:f=300,easing:m=gn,tick:g=ie,css:v}=i||Mr;v&&(s=Er(e,1,0,f,c,m,v));const d=yr()+c,P=d+f;We(()=>Mt(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Cr(O=>{if(o){if(O>=P)return g(0,1),Mt(e,!1,"end"),--a.r||Be(a.c),!1;if(O>=d){const N=m((O-d)/f);g(1-N,N)}}return o})}return ct(i)?Tr().then(()=>{i=i(r),l()}):l(),{end(c){c&&"inert"in e&&(e.inert=u),c&&i.tick&&i.tick(1,0),o&&(s&&Kt(e,s),o=!1)}}}function Bt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Zi(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),We(()=>{const o=e.$$.on_mount.map(pr).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...o):Be(o),e.$$.on_mount=[]}),i.forEach(We)}function Yi(e,t){const n=e.$$;n.fragment!==null&&(Gi(n.after_update),Be(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xi(e,t){e.$$.dirty[0]===-1&&(Ne.push(e),Ui(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pr(e,t,n,r,i,o,s=null,a=[-1]){const u=st;ot(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ie,not_equal:i,bound:Pn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Pn(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(f,m,...g)=>{const v=g.length?g[0]:m;return l.ctx&&i(l.ctx[f],l.ctx[f]=v)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](v),c&&Xi(e,f)),m}):[],l.update(),c=!0,Be(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=Oi(t.target);l.fragment&&l.fragment.l(f),f.forEach(H)}else l.fragment&&l.fragment.c();t.intro&&Pt(e.$$.fragment),Zi(e,t.target,t.anchor),Z()}ot(u)}let Br;typeof HTMLElement=="function"&&(Br=class extends HTMLElement{constructor(t,n,r){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&h(s,"name",o)},m:function(l,c){B(l,s,c)},d:function(l){l&&H(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Li(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=_t(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Mn(gt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=_t(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=_t(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function _t(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ar(e,t,n,r,i,o){let s=class extends Br{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=_t(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class Or{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){Yi(this,1),this.$destroy=ie}$on(t,n){if(!ct(n))return ie;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Ti(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const qi="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qi);function An(e,{delay:t=0,duration:n=400,easing:r=gn}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const ke=[];function Qi(e,t){return{subscribe:$t(e,t).subscribe}}function $t(e,t=ie){let n;const r=new Set;function i(a){if(bn(e,a)&&(e=a,n)){const u=!ke.length;for(const l of r)l[1](),ke.push(l,e);if(u){for(let l=0;l<ke.length;l+=2)ke[l][0](ke[l+1]);ke.length=0}}}function o(a){i(a(e))}function s(a,u=ie){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||ie),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Xe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Qi(n,(s,a)=>{let u=!1;const l=[];let c=0,f=ie;const m=()=>{if(c)return;f();const v=t(r?l[0]:l,s,a);o?s(v):f=ct(v)?v:ie},g=i.map((v,d)=>dr(v,P=>{l[d]=P,c&=~(1<<d),u&&m()},()=>{c|=1<<d}));return u=!0,m(),function(){Be(g),f(),u=!1}})}var Rr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ji=function(t){return Ki(t)&&!eo(t)};function Ki(e){return!!e&&typeof e=="object"}function eo(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ro(e)}var to=typeof Symbol=="function"&&Symbol.for,no=to?Symbol.for("react.element"):60103;function ro(e){return e.$$typeof===no}function io(e){return Array.isArray(e)?[]:{}}function ut(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ve(io(e),e,t):e}function oo(e,t,n){return e.concat(t).map(function(r){return ut(r,n)})}function so(e,t){if(!t.customMerge)return Ve;var n=t.customMerge(e);return typeof n=="function"?n:Ve}function ao(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function On(e){return Object.keys(e).concat(ao(e))}function Lr(e,t){try{return t in e}catch(n){return!1}}function uo(e,t){return Lr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function lo(e,t,n){var r={};return n.isMergeableObject(e)&&On(e).forEach(function(i){r[i]=ut(e[i],n)}),On(t).forEach(function(i){uo(e,i)||(Lr(e,i)&&n.isMergeableObject(t[i])?r[i]=so(i,n)(e[i],t[i],n):r[i]=ut(t[i],n))}),r}function Ve(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||oo,n.isMergeableObject=n.isMergeableObject||Ji,n.cloneUnlessOtherwiseSpecified=ut;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):lo(e,t,n):ut(t,n)}Ve.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ve(r,i,n)},{})};var co=Ve,fo=co;const ho=Cn(fo);var tn=function(e,t){return tn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tn(e,t)};function kt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ee=function(){return Ee=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ee.apply(this,arguments)};function po(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Vt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function zt(e,t){var n=t&&t.cache?t.cache:_o,r=t&&t.serializer?t.serializer:vo,i=t&&t.strategy?t.strategy:bo;return i(e,{cache:n,serializer:r})}function mo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function go(e,t,n,r){var i=mo(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function Ir(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Dr(e,t,n,r,i){return n.bind(t,e,r,i)}function bo(e,t){var n=e.length===1?go:Ir;return Dr(e,this,n,t.cache.create(),t.serializer)}function yo(e,t){return Dr(e,this,Ir,t.cache.create(),t.serializer)}var vo=function(){return JSON.stringify(arguments)},Co=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),_o={create:function(){return new Co}},Zt={variadic:yo},At=function(){return At=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},At.apply(this,arguments)};var D;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(D||(D={}));var J;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(J||(J={}));var ze;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ze||(ze={}));function Rn(e){return e.type===J.literal}function wo(e){return e.type===J.argument}function $r(e){return e.type===J.number}function kr(e){return e.type===J.date}function Nr(e){return e.type===J.time}function Ur(e){return e.type===J.select}function jr(e){return e.type===J.plural}function xo(e){return e.type===J.pound}function Gr(e){return e.type===J.tag}function Fr(e){return!!(e&&typeof e=="object"&&e.type===ze.number)}function nn(e){return!!(e&&typeof e=="object"&&e.type===ze.dateTime)}var Wr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Eo=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function So(e){var t={};return e.replace(Eo,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var K=function(){return K=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},K.apply(this,arguments)};var To=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ho(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(To).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function Mo(e){return e.replace(/^(.*?)-/,"")}var Ln=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vr=/^(@+)?(\+|#+)?[rs]?$/g,Po=/(\*)(0+)|(#+)(0+)|(0+)/g,zr=/^(0+)$/;function In(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Vr,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Zr(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 Bo(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!zr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Dn(e){var t={},n=Zr(e);return n||t}function Ao(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];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=Mo(i.options[0]);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=K(K(K({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return K(K({},u),Dn(l))},{}));continue;case"engineering":t=K(K(K({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return K(K({},u),Dn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Po,function(u,l,c,f,m,g){if(l)t.minimumIntegerDigits=c.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(zr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ln.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ln,function(u,l,c,f,m,g){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=K(K({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=K(K({},t),In(o)));continue}if(Vr.test(i.stem)){t=K(K({},t),In(i.stem));continue}var s=Zr(i.stem);s&&(t=K(K({},t),s));var a=Bo(i.stem);a&&(t=K(K({},t),a))}return t}var yt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Oo(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=Ro(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function Ro(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(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")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=yt[r||""]||yt[n||""]||yt["".concat(n,"-001")]||yt["001"];return i[0]}var Yt,Lo=new RegExp("^".concat(Wr.source,"*")),Io=new RegExp("".concat(Wr.source,"*$"));function k(e,t){return{start:e,end:t}}var Do=!!String.prototype.startsWith&&"_a".startsWith("a",1),$o=!!String.fromCodePoint,ko=!!Object.fromEntries,No=!!String.prototype.codePointAt,Uo=!!String.prototype.trimStart,jo=!!String.prototype.trimEnd,Go=!!Number.isSafeInteger,Fo=Go?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rn=!0;try{var Wo=Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rn=((Yt=Wo.exec("a"))===null||Yt===void 0?void 0:Yt[0])==="a"}catch(e){rn=!1}var $n=Do?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},on=$o?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},kn=ko?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},Yr=No?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Vo=Uo?function(t){return t.trimStart()}:function(t){return t.replace(Lo,"")},zo=jo?function(t){return t.trimEnd()}:function(t){return t.replace(Io,"")};function Xr(e,t){return new RegExp(e,t)}var sn;if(rn){var Nn=Xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");sn=function(t,n){var r;Nn.lastIndex=n;var i=Nn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else sn=function(t,n){for(var r=[];;){var i=Yr(t,n);if(i===void 0||qr(i)||qo(i))break;r.push(i),n+=i>=65536?2:1}return on.apply(void 0,r)};var Zo=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:J.pound,location:k(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&an(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:J.literal,value:"<".concat(i,"/>"),location:k(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!an(this.char()))return this.error(D.INVALID_TAG,k(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,k(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:J.tag,value:i,children:s,location:k(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,k(a,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,k(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,k(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=k(r,this.clonePosition());return{val:{type:J.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Yo(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return on.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),on(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,k(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,k(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:J.argument,value:i,location:k(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,k(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=sn(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=k(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,k(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=zo(f.val);if(m.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var g=k(c,this.clonePosition());l={style:m,styleLocation:g}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var d=k(i,this.clonePosition());if(l&&$n(l==null?void 0:l.style,"::",0)){var P=Vo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(P,l.styleLocation);return f.err?f:{val:{type:J.number,value:r,location:d,style:f.val},err:null}}else{if(P.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var O=P;this.locale&&(O=Oo(P,this.locale));var m={type:ze.dateTime,pattern:O,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?So(O):{}},N=a==="date"?J.date:J.time;return{val:{type:N,value:r,location:d,style:m},err:null}}}return{val:{type:a==="number"?J.number:a==="date"?J.date:J.time,value:r,location:d,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,k(A,At({},A)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),X=0;if(a!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),X=f.val}var R=this.tryParsePluralOrSelectOptions(t,a,n,Y);if(R.err)return R;var v=this.tryParseArgumentClose(i);if(v.err)return v;var V=k(i,this.clonePosition());return a==="select"?{val:{type:J.select,value:r,options:kn(R.val),location:V},err:null}:{val:{type:J.plural,value:r,options:kn(R.val),offset:X,pluralType:a==="plural"?"cardinal":"ordinal",location:V},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,k(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Ho(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:ze.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ao(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=k(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var d=this.tryParseArgumentClose(g);if(d.err)return d;a.push([l,{value:v.val,location:k(g,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(D.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=k(i,this.clonePosition());return o?(s*=r,Fo(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Yr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if($n(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&qr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function an(e){return e>=97&&e<=122||e>=65&&e<=90}function Yo(e){return an(e)||e===47}function Xo(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function qr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qo(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===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>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||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||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===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>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===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>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||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||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function un(e){e.forEach(function(t){if(delete t.location,Ur(t)||jr(t))for(var n in t.options)delete t.options[n].location,un(t.options[n].value);else $r(t)&&Fr(t.style)||(kr(t)||Nr(t))&&nn(t.style)?delete t.style.location:Gr(t)&&un(t.children)})}function Qo(e,t){t===void 0&&(t={}),t=At({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Zo(e,t).parse();if(n.err){var r=SyntaxError(D[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||un(n.val),n.val}var Ze;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ze||(Ze={}));var Nt=function(e){kt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Un=function(e){kt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ze.INVALID_VALUE,o)||this}return t}(Nt),Jo=function(e){kt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ze.INVALID_VALUE,i)||this}return t}(Nt),Ko=function(e){kt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ze.MISSING_VALUE,r)||this}return t}(Nt),he;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(he||(he={}));function es(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==he.literal||n.type!==he.literal?t.push(n):r.value+=n.value,t},[])}function ts(e){return typeof e=="function"}function wt(e,t,n,r,i,o,s){if(e.length===1&&Rn(e[0]))return[{type:he.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Rn(c)){a.push({type:he.literal,value:c.value});continue}if(xo(c)){typeof o=="number"&&a.push({type:he.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(i&&f in i))throw new Ko(f,s);var m=i[f];if(wo(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?he.literal:he.object,value:m});continue}if(kr(c)){var g=typeof c.style=="string"?r.date[c.style]:nn(c.style)?c.style.parsedOptions:void 0;a.push({type:he.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Nr(c)){var g=typeof c.style=="string"?r.time[c.style]:nn(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:he.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if($r(c)){var g=typeof c.style=="string"?r.number[c.style]:Fr(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:he.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(Gr(c)){var v=c.children,d=c.value,P=i[d];if(!ts(P))throw new Jo(d,"function",s);var O=wt(v,t,n,r,i,o),N=P(O.map(function(X){return X.value}));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map(function(X){return{type:typeof X=="string"?he.literal:he.object,value:X}}))}if(Ur(c)){var A=c.options[m]||c.options.other;if(!A)throw new Un(c.value,m,Object.keys(c.options),s);a.push.apply(a,wt(A.value,t,n,r,i));continue}if(jr(c)){var A=c.options["=".concat(m)];if(!A){if(!Intl.PluralRules)throw new Nt(`Intl.PluralRules is not available in this environment.
4
+ }`,f=`__svelte_${ji(c)}_${a}`,m=Cn(e),{stylesheet:g,rules:v}=Mt.get(m)||Gi(m,e);v[f]||(v[f]=!0,g.insertRule(`@keyframes ${f} ${c}`,g.cssRules.length));const d=e.style.animation||"";return e.style.animation=`${d?`${d}, `:""}${f} ${r}ms linear ${i}ms 1 both`,Ht+=1,f}function en(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Ht-=i,Ht||Fi())}function Fi(){vn(()=>{Ht||(Mt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&M(t)}),Mt.clear())})}let at;function st(e){at=e}function Wi(){if(!at)throw new Error("Function called outside component initialization");return at}function Ar(e){Wi().$$.on_mount.push(e)}const Ue=[],ut=[];let Fe=[];const Dn=[],Vi=Promise.resolve();let tn=!1;function zi(){tn||(tn=!0,Vi.then(Z))}function Ve(e){Fe.push(e)}const Vt=new Set;let ke=0;function Z(){if(ke!==0)return;const e=at;do{try{for(;ke<Ue.length;){const t=Ue[ke];ke++,st(t),Zi(t.$$)}}catch(t){throw Ue.length=0,ke=0,t}for(st(null),Ue.length=0,ke=0;ut.length;)ut.pop()();for(let t=0;t<Fe.length;t+=1){const n=Fe[t];Vt.has(n)||(Vt.add(n),n())}Fe.length=0}while(Ue.length);for(;Dn.length;)Dn.pop()();tn=!1,Vt.clear(),st(e)}function Zi(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ve)}}function Yi(e){const t=[],n=[];Fe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Fe=t}let tt;function Or(){return tt||(tt=Promise.resolve(),tt.then(()=>{tt=null})),tt}function Pt(e,t,n){e.dispatchEvent(Ni(`${t?"intro":"outro"}${n}`))}const _t=new Set;let Pe;function Xi(){Pe={r:0,c:[],p:Pe}}function qi(){Pe.r||Ae(Pe.c),Pe=Pe.p}function Bt(e,t){e&&e.i&&(_t.delete(e),e.i(t))}function Rr(e,t,n,r){if(e&&e.o){if(_t.has(e))return;_t.add(e),Pe.c.push(()=>{_t.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const Lr={duration:0};function Qi(e,t,n){const r={direction:"in"};let i=t(e,n,r),o=!1,s,a,u=0;function l(){s&&en(e,s)}function c(){const{delay:m=0,duration:g=300,easing:v=bn,tick:d=ie,css:P}=i||Lr;P&&(s=Br(e,0,1,g,m,v,P,u++)),d(0,1);const O=Er()+m,N=O+g;a&&a.abort(),o=!0,Ve(()=>Pt(e,!0,"start")),a=Tr(A=>{if(o){if(A>=N)return d(1,0),Pt(e,!0,"end"),l(),o=!1;if(A>=O){const Y=v((A-O)/g);d(Y,1-Y)}}return o})}let f=!1;return{start(){f||(f=!0,en(e),ft(i)?(i=i(r),Or().then(c)):c())},invalidate(){f=!1},end(){o&&(l(),o=!1)}}}function Ji(e,t,n){const r={direction:"out"};let i=t(e,n,r),o=!0,s;const a=Pe;a.r+=1;let u;function l(){const{delay:c=0,duration:f=300,easing:m=bn,tick:g=ie,css:v}=i||Lr;v&&(s=Br(e,1,0,f,c,m,v));const d=Er()+c,P=d+f;Ve(()=>Pt(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Tr(O=>{if(o){if(O>=P)return g(0,1),Pt(e,!1,"end"),--a.r||Ae(a.c),!1;if(O>=d){const N=m((O-d)/f);g(1-N,N)}}return o})}return ft(i)?Or().then(()=>{i=i(r),l()}):l(),{end(c){c&&"inert"in e&&(e.inert=u),c&&i.tick&&i.tick(1,0),o&&(s&&en(e,s),o=!1)}}}function At(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ki(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),Ve(()=>{const o=e.$$.on_mount.map(vr).filter(ft);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ae(o),e.$$.on_mount=[]}),i.forEach(Ve)}function eo(e,t){const n=e.$$;n.fragment!==null&&(Yi(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function to(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),zi(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ir(e,t,n,r,i,o,s=null,a=[-1]){const u=at;st(e);const l=e.$$={fragment:null,ctx:[],props:o,update:ie,not_equal:i,bound:In(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:In(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(f,m,...g)=>{const v=g.length?g[0]:m;return l.ctx&&i(l.ctx[f],l.ctx[f]=v)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](v),c&&to(e,f)),m}):[],l.update(),c=!0,Ae(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=ki(t.target);l.fragment&&l.fragment.l(f),f.forEach(M)}else l.fragment&&l.fragment.c();t.intro&&Bt(e.$$.fragment),Ki(e,t.target,t.anchor),Z()}st(u)}let Dr;typeof HTMLElement=="function"&&(Dr=class extends HTMLElement{constructor(t,n,r){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=E("slot"),o!=="default"&&h(s,"name",o)},m:function(l,c){B(l,s,c)},d:function(l){l&&M(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Ui(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=wt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ln(bt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=wt(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const a=this.$$c.$on(o,s);this.$$l_u.set(s,a)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=wt(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function wt(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function $r(e,t,n,r,i,o){let s=class extends Dr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=wt(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),r.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=s,s}class kr{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){eo(this,1),this.$destroy=ie}$on(t,n){if(!ft(n))return ie;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Oi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const no="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(no);function $n(e,{delay:t=0,duration:n=400,easing:r=bn}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}const Ne=[];function ro(e,t){return{subscribe:kt(e,t).subscribe}}function kt(e,t=ie){let n;const r=new Set;function i(a){if(yn(e,a)&&(e=a,n)){const u=!Ne.length;for(const l of r)l[1](),Ne.push(l,e);if(u){for(let l=0;l<Ne.length;l+=2)Ne[l][0](Ne[l+1]);Ne.length=0}}}function o(a){i(a(e))}function s(a,u=ie){const l=[a,u];return r.add(l),r.size===1&&(n=t(i,o)||ie),a(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function qe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return ro(n,(s,a)=>{let u=!1;const l=[];let c=0,f=ie;const m=()=>{if(c)return;f();const v=t(r?l[0]:l,s,a);o?s(v):f=ft(v)?v:ie},g=i.map((v,d)=>Cr(v,P=>{l[d]=P,c&=~(1<<d),u&&m()},()=>{c|=1<<d}));return u=!0,m(),function(){Ae(g),f(),u=!1}})}var Nr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var io=function(t){return oo(t)&&!so(t)};function oo(e){return!!e&&typeof e=="object"}function so(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lo(e)}var ao=typeof Symbol=="function"&&Symbol.for,uo=ao?Symbol.for("react.element"):60103;function lo(e){return e.$$typeof===uo}function co(e){return Array.isArray(e)?[]:{}}function lt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ze(co(e),e,t):e}function fo(e,t,n){return e.concat(t).map(function(r){return lt(r,n)})}function ho(e,t){if(!t.customMerge)return ze;var n=t.customMerge(e);return typeof n=="function"?n:ze}function po(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function kn(e){return Object.keys(e).concat(po(e))}function Ur(e,t){try{return t in e}catch(n){return!1}}function mo(e,t){return Ur(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function go(e,t,n){var r={};return n.isMergeableObject(e)&&kn(e).forEach(function(i){r[i]=lt(e[i],n)}),kn(t).forEach(function(i){mo(e,i)||(Ur(e,i)&&n.isMergeableObject(t[i])?r[i]=ho(i,n)(e[i],t[i],n):r[i]=lt(t[i],n))}),r}function ze(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||fo,n.isMergeableObject=n.isMergeableObject||io,n.cloneUnlessOtherwiseSpecified=lt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):go(e,t,n):lt(t,n)}ze.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return ze(r,i,n)},{})};var bo=ze,yo=bo;const vo=_n(yo);var nn=function(e,t){return nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nn(e,t)};function Nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ee=function(){return Ee=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ee.apply(this,arguments)};function Co(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Zt(e,t){var n=t&&t.cache?t.cache:Mo,r=t&&t.serializer?t.serializer:So,i=t&&t.strategy?t.strategy:xo;return i(e,{cache:n,serializer:r})}function _o(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wo(e,t,n,r){var i=_o(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function jr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function Gr(e,t,n,r,i){return n.bind(t,e,r,i)}function xo(e,t){var n=e.length===1?wo:jr;return Gr(e,this,n,t.cache.create(),t.serializer)}function Eo(e,t){return Gr(e,this,jr,t.cache.create(),t.serializer)}var So=function(){return JSON.stringify(arguments)},To=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Mo={create:function(){return new To}},Yt={variadic:Eo},Ot=function(){return Ot=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ot.apply(this,arguments)};var D;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(D||(D={}));var K;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(K||(K={}));var Ze;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ze||(Ze={}));function Nn(e){return e.type===K.literal}function Ho(e){return e.type===K.argument}function Fr(e){return e.type===K.number}function Wr(e){return e.type===K.date}function Vr(e){return e.type===K.time}function zr(e){return e.type===K.select}function Zr(e){return e.type===K.plural}function Po(e){return e.type===K.pound}function Yr(e){return e.type===K.tag}function Xr(e){return!!(e&&typeof e=="object"&&e.type===Ze.number)}function rn(e){return!!(e&&typeof e=="object"&&e.type===Ze.dateTime)}var qr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Bo=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Ao(e){var t={};return e.replace(Bo,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ee=function(){return ee=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ee.apply(this,arguments)};var Oo=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ro(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Oo).filter(function(m){return m.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function Lo(e){return e.replace(/^(.*?)-/,"")}var Un=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qr=/^(@+)?(\+|#+)?[rs]?$/g,Io=/(\*)(0+)|(#+)(0+)|(0+)/g,Jr=/^(0+)$/;function jn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Qr,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Kr(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 Do(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Jr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Gn(e){var t={},n=Kr(e);return n||t}function $o(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];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=Lo(i.options[0]);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=ee(ee(ee({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return ee(ee({},u),Gn(l))},{}));continue;case"engineering":t=ee(ee(ee({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return ee(ee({},u),Gn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Io,function(u,l,c,f,m,g){if(l)t.minimumIntegerDigits=c.length;else{if(f&&m)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Jr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Un.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Un,function(u,l,c,f,m,g){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&g?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+g.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=ee(ee({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ee(ee({},t),jn(o)));continue}if(Qr.test(i.stem)){t=ee(ee({},t),jn(i.stem));continue}var s=Kr(i.stem);s&&(t=ee(ee({},t),s));var a=Do(i.stem);a&&(t=ee(ee({},t),a))}return t}var vt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ko(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=No(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function No(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(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")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=vt[r||""]||vt[n||""]||vt["".concat(n,"-001")]||vt["001"];return i[0]}var Xt,Uo=new RegExp("^".concat(qr.source,"*")),jo=new RegExp("".concat(qr.source,"*$"));function k(e,t){return{start:e,end:t}}var Go=!!String.prototype.startsWith&&"_a".startsWith("a",1),Fo=!!String.fromCodePoint,Wo=!!Object.fromEntries,Vo=!!String.prototype.codePointAt,zo=!!String.prototype.trimStart,Zo=!!String.prototype.trimEnd,Yo=!!Number.isSafeInteger,Xo=Yo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},on=!0;try{var qo=ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");on=((Xt=qo.exec("a"))===null||Xt===void 0?void 0:Xt[0])==="a"}catch(e){on=!1}var Fn=Go?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},sn=Fo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},Wn=Wo?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},ei=Vo?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Qo=zo?function(t){return t.trimStart()}:function(t){return t.replace(Uo,"")},Jo=Zo?function(t){return t.trimEnd()}:function(t){return t.replace(jo,"")};function ti(e,t){return new RegExp(e,t)}var an;if(on){var Vn=ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");an=function(t,n){var r;Vn.lastIndex=n;var i=Vn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else an=function(t,n){for(var r=[];;){var i=ei(t,n);if(i===void 0||ni(i)||ns(i))break;r.push(i),n+=i>=65536?2:1}return sn.apply(void 0,r)};var Ko=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:K.pound,location:k(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(D.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&un(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:K.literal,value:"<".concat(i,"/>"),location:k(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!un(this.char()))return this.error(D.INVALID_TAG,k(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,k(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:K.tag,value:i,children:s,location:k(r,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,k(a,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,k(r,this.clonePosition()))}else return this.error(D.INVALID_TAG,k(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ts(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=k(r,this.clonePosition());return{val:{type:K.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!es(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return sn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),sn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,k(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,k(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:K.argument,value:i,location:k(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(D.MALFORMED_ARGUMENT,k(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=an(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=k(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(D.EXPECT_ARGUMENT_TYPE,k(s,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=Jo(f.val);if(m.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));var g=k(c,this.clonePosition());l={style:m,styleLocation:g}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var d=k(i,this.clonePosition());if(l&&Fn(l==null?void 0:l.style,"::",0)){var P=Qo(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(P,l.styleLocation);return f.err?f:{val:{type:K.number,value:r,location:d,style:f.val},err:null}}else{if(P.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,d);var O=P;this.locale&&(O=ko(P,this.locale));var m={type:Ze.dateTime,pattern:O,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ao(O):{}},N=a==="date"?K.date:K.time;return{val:{type:N,value:r,location:d,style:m},err:null}}}return{val:{type:a==="number"?K.number:a==="date"?K.date:K.time,value:r,location:d,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,k(A,Ot({},A)));this.bumpSpace();var Y=this.parseIdentifierIfPossible(),X=0;if(a!=="select"&&Y.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),Y=this.parseIdentifierIfPossible(),X=f.val}var R=this.tryParsePluralOrSelectOptions(t,a,n,Y);if(R.err)return R;var v=this.tryParseArgumentClose(i);if(v.err)return v;var V=k(i,this.clonePosition());return a==="select"?{val:{type:K.select,value:r,options:Wn(R.val),location:V},err:null}:{val:{type:K.plural,value:r,options:Wn(R.val),offset:X,pluralType:a==="plural"?"cardinal":"ordinal",location:V},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,k(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,k(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Ro(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ze.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?$o(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=k(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,n,r);if(v.err)return v;var d=this.tryParseArgumentClose(g);if(d.err)return d;a.push([l,{value:v.val,location:k(g,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(D.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=k(i,this.clonePosition());return o?(s*=r,Xo(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ei(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Fn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ni(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function un(e){return e>=97&&e<=122||e>=65&&e<=90}function es(e){return un(e)||e===47}function ts(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ni(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ns(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===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>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||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||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===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>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===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>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||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||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ln(e){e.forEach(function(t){if(delete t.location,zr(t)||Zr(t))for(var n in t.options)delete t.options[n].location,ln(t.options[n].value);else Fr(t)&&Xr(t.style)||(Wr(t)||Vr(t))&&rn(t.style)?delete t.style.location:Yr(t)&&ln(t.children)})}function rs(e,t){t===void 0&&(t={}),t=Ot({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ko(e,t).parse();if(n.err){var r=SyntaxError(D[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||ln(n.val),n.val}var Ye;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ye||(Ye={}));var Ut=function(e){Nt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),zn=function(e){Nt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ye.INVALID_VALUE,o)||this}return t}(Ut),is=function(e){Nt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ye.INVALID_VALUE,i)||this}return t}(Ut),os=function(e){Nt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ye.MISSING_VALUE,r)||this}return t}(Ut),he;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(he||(he={}));function ss(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==he.literal||n.type!==he.literal?t.push(n):r.value+=n.value,t},[])}function as(e){return typeof e=="function"}function xt(e,t,n,r,i,o,s){if(e.length===1&&Nn(e[0]))return[{type:he.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Nn(c)){a.push({type:he.literal,value:c.value});continue}if(Po(c)){typeof o=="number"&&a.push({type:he.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(i&&f in i))throw new os(f,s);var m=i[f];if(Ho(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),a.push({type:typeof m=="string"?he.literal:he.object,value:m});continue}if(Wr(c)){var g=typeof c.style=="string"?r.date[c.style]:rn(c.style)?c.style.parsedOptions:void 0;a.push({type:he.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Vr(c)){var g=typeof c.style=="string"?r.time[c.style]:rn(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:he.literal,value:n.getDateTimeFormat(t,g).format(m)});continue}if(Fr(c)){var g=typeof c.style=="string"?r.number[c.style]:Xr(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(m=m*(g.scale||1)),a.push({type:he.literal,value:n.getNumberFormat(t,g).format(m)});continue}if(Yr(c)){var v=c.children,d=c.value,P=i[d];if(!as(P))throw new is(d,"function",s);var O=xt(v,t,n,r,i,o),N=P(O.map(function(X){return X.value}));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map(function(X){return{type:typeof X=="string"?he.literal:he.object,value:X}}))}if(zr(c)){var A=c.options[m]||c.options.other;if(!A)throw new zn(c.value,m,Object.keys(c.options),s);a.push.apply(a,xt(A.value,t,n,r,i));continue}if(Zr(c)){var A=c.options["=".concat(m)];if(!A){if(!Intl.PluralRules)throw new Ut(`Intl.PluralRules is not available in this environment.
5
5
  Try polyfilling it using "@formatjs/intl-pluralrules"
6
- `,Ze.MISSING_INTL_API,s);var Y=n.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0));A=c.options[Y]||c.options.other}if(!A)throw new Un(c.value,m,Object.keys(c.options),s);a.push.apply(a,wt(A.value,t,n,r,i,m-(c.offset||0)));continue}}return es(a)}function ns(e,t){return t?Ee(Ee(Ee({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ee(Ee({},e[r]),t[r]||{}),n},{})):e}function rs(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=ns(e[r],t[r]),n},Ee({},e)):e}function Xt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function is(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:Xt(e.number),strategy:Zt.variadic}),getDateTimeFormat:zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Vt([void 0],n,!1)))},{cache:Xt(e.dateTime),strategy:Zt.variadic}),getPluralRules:zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Vt([void 0],n,!1)))},{cache:Xt(e.pluralRules),strategy:Zt.variadic})}}var Qr=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(f,m){return!f.length||m.type!==he.literal||typeof f[f.length-1]!="string"?f.push(m.value):f[f.length-1]+=m.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return wt(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=po(s,["formatters"]);this.ast=e.__parse(t,Ee(Ee({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=rs(e.formats,r),this.formatters=i&&i.formatters||is(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Qo,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}();function os(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Pe={},ss=(e,t,n)=>n&&(t in Pe||(Pe[t]={}),e in Pe[t]||(Pe[t][e]=n),n),Jr=(e,t)=>{if(t==null)return;if(t in Pe&&e in Pe[t])return Pe[t][e];const n=ht(t);for(let r=0;r<n.length;r++){const i=n[r],o=us(i,e);if(o)return ss(e,t,o)}};let _n;const ft=$t({});function as(e){return _n[e]||null}function Kr(e){return e in _n}function us(e,t){if(!Kr(e))return null;const n=as(e);return os(n,t)}function ls(e){if(e==null)return;const t=ht(e);for(let n=0;n<t.length;n++){const r=t[n];if(Kr(r))return r}}function wn(e,...t){delete Pe[e],ft.update(n=>(n[e]=ho.all([n[e]||{},...t]),n))}Xe([ft],([e])=>Object.keys(e));ft.subscribe(e=>_n=e);const xt={};function cs(e,t){xt[e].delete(t),xt[e].size===0&&delete xt[e]}function ei(e){return xt[e]}function fs(e){return ht(e).map(t=>{const n=ei(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ot(e){return e==null?!1:ht(e).some(t=>{var n;return(n=ei(t))==null?void 0:n.size})}function hs(e,t){return Promise.all(t.map(r=>(cs(e,r),r().then(i=>i.default||i)))).then(r=>wn(e,...r))}const tt={};function ti(e){if(!Ot(e))return e in tt?tt[e]:Promise.resolve();const t=fs(e);return tt[e]=Promise.all(t.map(([n,r])=>hs(n,r))).then(()=>{if(Ot(e))return ti(e);delete tt[e]}),tt[e]}var jn=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,ms=(e,t)=>{var n={};for(var r in e)ps.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jn)for(var r of jn(e))t.indexOf(r)<0&&ds.call(e,r)&&(n[r]=e[r]);return n};const gs={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"}}};function bs({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ht(e).join('", "')}".${Ot(Ae())?`
6
+ `,Ye.MISSING_INTL_API,s);var Y=n.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0));A=c.options[Y]||c.options.other}if(!A)throw new zn(c.value,m,Object.keys(c.options),s);a.push.apply(a,xt(A.value,t,n,r,i,m-(c.offset||0)));continue}}return ss(a)}function us(e,t){return t?Ee(Ee(Ee({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=Ee(Ee({},e[r]),t[r]||{}),n},{})):e}function ls(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=us(e[r],t[r]),n},Ee({},e)):e}function qt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function cs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,zt([void 0],n,!1)))},{cache:qt(e.number),strategy:Yt.variadic}),getDateTimeFormat:Zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,zt([void 0],n,!1)))},{cache:qt(e.dateTime),strategy:Yt.variadic}),getPluralRules:Zt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,zt([void 0],n,!1)))},{cache:qt(e.pluralRules),strategy:Yt.variadic})}}var ri=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(f,m){return!f.length||m.type!==he.literal||typeof f[f.length-1]!="string"?f.push(m.value):f[f.length-1]+=m.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return xt(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Co(s,["formatters"]);this.ast=e.__parse(t,Ee(Ee({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ls(e.formats,r),this.formatters=i&&i.formatters||cs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=rs,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}();function fs(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Be={},hs=(e,t,n)=>n&&(t in Be||(Be[t]={}),e in Be[t]||(Be[t][e]=n),n),ii=(e,t)=>{if(t==null)return;if(t in Be&&e in Be[t])return Be[t][e];const n=pt(t);for(let r=0;r<n.length;r++){const i=n[r],o=ds(i,e);if(o)return hs(e,t,o)}};let wn;const ht=kt({});function ps(e){return wn[e]||null}function oi(e){return e in wn}function ds(e,t){if(!oi(e))return null;const n=ps(e);return fs(n,t)}function ms(e){if(e==null)return;const t=pt(e);for(let n=0;n<t.length;n++){const r=t[n];if(oi(r))return r}}function xn(e,...t){delete Be[e],ht.update(n=>(n[e]=vo.all([n[e]||{},...t]),n))}qe([ht],([e])=>Object.keys(e));ht.subscribe(e=>wn=e);const Et={};function gs(e,t){Et[e].delete(t),Et[e].size===0&&delete Et[e]}function si(e){return Et[e]}function bs(e){return pt(e).map(t=>{const n=si(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Rt(e){return e==null?!1:pt(e).some(t=>{var n;return(n=si(t))==null?void 0:n.size})}function ys(e,t){return Promise.all(t.map(r=>(gs(e,r),r().then(i=>i.default||i)))).then(r=>xn(e,...r))}const nt={};function ai(e){if(!Rt(e))return e in nt?nt[e]:Promise.resolve();const t=bs(e);return nt[e]=Promise.all(t.map(([n,r])=>ys(n,r))).then(()=>{if(Rt(e))return ai(e);delete nt[e]}),nt[e]}var Zn=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,_s=(e,t)=>{var n={};for(var r in e)vs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zn)for(var r of Zn(e))t.indexOf(r)<0&&Cs.call(e,r)&&(n[r]=e[r]);return n};const ws={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"}}};function xs({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${pt(e).join('", "')}".${Rt(Oe())?`
7
7
 
8
- Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ys={fallbackLocale:null,loadingDelay:200,formats:gs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},nt=ys;function Ye(){return nt}function ni(e){const t=e,{formats:n}=t,r=ms(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Qr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=bs:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(nt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(nt.formats.number,n.number),"date"in n&&Object.assign(nt.formats.date,n.date),"time"in n&&Object.assign(nt.formats.time,n.time)),Oe.set(i)}const qt=$t(!1);var vs=Object.defineProperty,Cs=Object.defineProperties,_s=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,Fn=(e,t,n)=>t in e?vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Es=(e,t)=>{for(var n in t||(t={}))ws.call(t,n)&&Fn(e,n,t[n]);if(Gn)for(var n of Gn(t))xs.call(t,n)&&Fn(e,n,t[n]);return e},Ss=(e,t)=>Cs(e,_s(t));let ln;const Rt=$t(null);function Wn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ht(e,t=Ye().fallbackLocale){const n=Wn(e);return t?[...new Set([...n,...Wn(t)])]:n}function Ae(){return ln!=null?ln:void 0}Rt.subscribe(e=>{ln=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ts=e=>{if(e&&ls(e)&&Ot(e)){const{loadingDelay:t}=Ye();let n;return typeof window!="undefined"&&Ae()!=null&&t?n=window.setTimeout(()=>qt.set(!0),t):qt.set(!0),ti(e).then(()=>{Rt.set(e)}).finally(()=>{clearTimeout(n),qt.set(!1)})}return Rt.set(e)},Oe=Ss(Es({},Rt),{set:Ts}),Ut=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var Hs=Object.defineProperty,Lt=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,Vn=(e,t,n)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t)=>{for(var n in t||(t={}))ri.call(t,n)&&Vn(e,n,t[n]);if(Lt)for(var n of Lt(t))ii.call(t,n)&&Vn(e,n,t[n]);return e},qe=(e,t)=>{var n={};for(var r in e)ri.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Lt)for(var r of Lt(e))t.indexOf(r)<0&&ii.call(e,r)&&(n[r]=e[r]);return n};const lt=(e,t)=>{const{formats:n}=Ye();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ms=Ut(e=>{var t=e,{locale:n,format:r}=t,i=qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=lt("number",r)),new Intl.NumberFormat(n,i)}),Ps=Ut(e=>{var t=e,{locale:n,format:r}=t,i=qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=lt("date",r):Object.keys(i).length===0&&(i=lt("date","short")),new Intl.DateTimeFormat(n,i)}),Bs=Ut(e=>{var t=e,{locale:n,format:r}=t,i=qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=lt("time",r):Object.keys(i).length===0&&(i=lt("time","short")),new Intl.DateTimeFormat(n,i)}),As=(e={})=>{var t=e,{locale:n=Ae()}=t,r=qe(t,["locale"]);return Ms(xn({locale:n},r))},Os=(e={})=>{var t=e,{locale:n=Ae()}=t,r=qe(t,["locale"]);return Ps(xn({locale:n},r))},Rs=(e={})=>{var t=e,{locale:n=Ae()}=t,r=qe(t,["locale"]);return Bs(xn({locale:n},r))},Ls=Ut((e,t=Ae())=>new Qr(e,t,Ye().formats,{ignoreTag:Ye().ignoreTag})),Is=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=Ae(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Jr(e,u);if(!c)c=(o=(i=(r=(n=Ye()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof c!="string")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;if(!a)return c;let f=c;try{f=Ls(c,u).format(a)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return f},Ds=(e,t)=>Rs(t).format(e),$s=(e,t)=>Os(t).format(e),ks=(e,t)=>As(t).format(e),Ns=(e,t=Ae())=>Jr(e,t),oi=Xe([Oe,ft],()=>Is);Xe([Oe],()=>Ds);Xe([Oe],()=>$s);Xe([Oe],()=>ks);Xe([Oe,ft],()=>Ns);function zn(e,t){wn(e,t)}function Us(e){ni({fallbackLocale:"en"}),Oe.set(e)}const Zn={en:{amount:"Amount",status:"Status",transactionId:"Transaction ID",payemntMethod:"Payment Method",paymentTime:"Payment Time",backHome:"Back to home",makeAnotherTransaction:"Make another transaction",backDeposit:"Back to deposit",backWithdraw:"Back to withdraw",tryAgainButton:"Try Again",refreshButton:"Check your status",success:"Success",pending:"Pending",failed:"Error",canceled:"Error",rejected:"Rejected",copyTransactionId:"Copied!",deposit:{success:{amount:"{amount}",title:"Deposit Success!",text:"Your deposit is successful"},pending:{amount:"{amount}",title:"Transaction is in pending",text:"Your payment will be deposited soon"},reject:{title:"Deposit Rejected",subTitle:"",text:"Unfortunately, your deposit was been rejected"},fail:{amount:" ",title:"Deposit Failed!",text:"Unfortunately, your deposit did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Withdrawn from your account",title:"Withdraw success!",text:"Your withdrawal is successful"},pending:{title:"Withdraw pending",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdraw rejected",subTitle:" ",text:"Unfortunately, your withdraw was been rejected"},fail:{title:"Withdraw failed",subTitle:" ",text:"Unfortunately, your withdraw did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},reference:"Reference ID: {code}",close:"CLOSE",receipt:{maintenance:{title:"We’ll Be Back Soon",text:"We are down for a scheduled maintenance and expect to be back online in a few minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournaments",goToSupport:"Contact Support",goToMerchantHomePage:"Merchant's Home Website",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Live Casino",externalLink:"External Link",uploadDocuments:"Upload Documents",goToHomepage:"Go To Homepage"},tr:{amount:"Tutar",status:"Durum",transactionId:"İşlem Kimliği",payemntMethod:"Ödeme Yöntemi",paymentTime:"Ödeme Zamanı",backDeposit:"Yatırıma geri dön",backWithdraw:"Çekime geri dön",backHome:"Ana sayfaya dön",makeAnotherTransaction:"Başka bir işlem yap",tryAgainButton:"Tekrar Dene",refreshButton:"Durumunu Kontrol Et",success:"Başarılı",pending:"Beklemede",failed:"Hata",canceled:"Hata",rejected:"Reddedildi",copyTransactionId:"Kopyalandı!",deposit:{success:{amount:"{amount}",title:"Yatırım Başarılı!",text:"Yatırımınız başarıyla gerçekleştirildi"},pending:{amount:"{amount}",title:"İşlem beklemede",text:"Ödemeniz yakında yatırılacak"},reject:{title:"Yatırım Reddedildi",subTitle:"",text:"Maalesef yatırımınız reddedildi"},fail:{amount:" ",title:"Yatırım Başarısız!",text:"Maalesef yatırımınız gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Hesabınızdan çekildi",title:"Para Çekme Başarılı!",text:"Para çekme işleminiz başarıyla tamamlandı"},pending:{title:"Çekim beklemede",subTitle:"Hesabınızdan çekildi",text:"Teşekkürler. Çekim işleminiz işleniyor."},reject:{title:"Çekim reddedildi",subTitle:" ",text:"Maalesef çekim işleminiz reddedildi"},fail:{title:"Çekim hatası",subTitle:" ",text:"Maalesef çekim işleminiz gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},reference:"Referans Kimliği: {code}",close:"KAPAT",receipt:{maintenance:{title:"Kısa Süreliğine Kapalıyız",text:"Planlı bakım çalışması nedeniyle hizmet veremiyoruz, birkaç dakika içinde geri döneceğiz"}},goToPromotions:"Promosyonlara Git",goToTournaments:"Turnuvalar",goToSupport:"Destek ile İletişime Geç",goToMerchantHomePage:"Satıcının Ana Web Sitesi",goToSports:"Sporlara Git",goToCasino:"Casino",goToLiveCasino:"Canlı Casino",externalLink:"Harici Bağlantı",uploadDocuments:"Belgeleri Yükle",goToHomepage:"Ana Sayfaya Git"},fr:{amount:"Montant",status:"Statut",transactionId:"ID de transaction",payemntMethod:"Moyen de paiement",paymentTime:"Heure du paiement",backHome:"Retour à l’accueil",makeAnotherTransaction:"Effectuer une autre transaction",backDeposit:"Retour au dépôt",backWithdraw:"Retour au retrait",tryAgainButton:"Réessayer",refreshButton:"Vérifier votre statut",success:"Succès",pending:"En attente",failed:"Erreur",canceled:"Erreur",rejected:"Rejeté",copyTransactionId:"Copié !",deposit:{success:{amount:"{amount}",title:"Dépôt réussi !",text:"Votre dépôt a été effectué avec succès"},pending:{amount:"{amount}",title:"Transaction en attente",text:"Votre paiement sera crédité prochainement"},reject:{title:"Dépôt rejeté",subTitle:"",text:"Malheureusement, votre dépôt a été rejeté"},fail:{amount:" ",title:"Échec du dépôt !",text:"Malheureusement, votre dépôt n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Retiré de votre compte",title:"Retrait réussi !",text:"Votre retrait a été effectué avec succès"},pending:{title:"Retrait en attente",subTitle:"Retiré de votre compte",text:"Merci. Votre retrait est en cours de traitement."},reject:{title:"Retrait rejeté",subTitle:" ",text:"Malheureusement, votre retrait a été rejeté"},fail:{title:"Échec du retrait",subTitle:" ",text:"Malheureusement, votre retrait n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},reference:"ID de référence : {code}",close:"FERMER",receipt:{maintenance:{title:"Nous revenons bientôt",text:"Nous sommes en maintenance programmée et prévoyons d’être de nouveau en ligne dans quelques minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournois",goToSupport:"Contacter le support",goToMerchantHomePage:"Site web du marchand",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Casino en direct",externalLink:"Lien externe",uploadDocuments:"Télécharger des documents",goToHomepage:"Aller à la page d’accueil"}},js=(e,t)=>`${e+Ws[t]}`,Gs=(e,t)=>`${Vs[t]}.${si[e]}.text`,Fs=e=>`${si[`${e}`]}`,Ws={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"},Vs={Deposit:"deposit",Withdraw:"withdrawal"},si={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"};var ai={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rr,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",c="week",f="month",m="quarter",g="year",v="date",d="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var _=["th","st","nd","rd"],b=S%100;return"["+S+(_[(b-20)%10]||_[b]||_[0])+"]"}},A=function(S,_,b){var y=String(S);return!y||y.length>=_?S:""+Array(_+1-y.length).join(b)+S},Y={s:A,z:function(S){var _=-S.utcOffset(),b=Math.abs(_),y=Math.floor(b/60),w=b%60;return(_<=0?"+":"-")+A(y,2,"0")+":"+A(w,2,"0")},m:function S(_,b){if(_.date()<b.date())return-S(b,_);var y=12*(b.year()-_.year())+(b.month()-_.month()),w=_.clone().add(y,f),M=b-w<0,x=_.clone().add(y+(M?-1:1),f);return+(-(y+(b-w)/(M?w-x:x-w))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:g,w:c,d:l,D:v,h:u,m:a,s,ms:o,Q:m}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},X="en",R={};R[X]=N;var V="$isDayjsObject",pe=function(S){return S instanceof be||!(!S||!S[V])},ue=function S(_,b,y){var w;if(!_)return X;if(typeof _=="string"){var M=_.toLowerCase();R[M]&&(w=M),b&&(R[M]=b,w=M);var x=_.split("-");if(!w&&x.length>1)return S(x[0])}else{var $=_.name;R[$]=_,w=$}return!y&&w&&(X=w),w||!y&&X},q=function(S,_){if(pe(S))return S.clone();var b=typeof _=="object"?_:{};return b.date=S,b.args=arguments,new be(b)},L=Y;L.l=ue,L.i=pe,L.w=function(S,_){return q(S,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var be=function(){function S(b){this.$L=ue(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[V]=!0}var _=S.prototype;return _.parse=function(b){this.$d=function(y){var w=y.date,M=y.utc;if(w===null)return new Date(NaN);if(L.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var x=w.match(P);if(x){var $=x[2]-1||0,z=(x[7]||"0").substring(0,3);return M?new Date(Date.UTC(x[1],$,x[3]||1,x[4]||0,x[5]||0,x[6]||0,z)):new Date(x[1],$,x[3]||1,x[4]||0,x[5]||0,x[6]||0,z)}}return new Date(w)}(b),this.init()},_.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},_.$utils=function(){return L},_.isValid=function(){return this.$d.toString()!==d},_.isSame=function(b,y){var w=q(b);return this.startOf(y)<=w&&w<=this.endOf(y)},_.isAfter=function(b,y){return q(b)<this.startOf(y)},_.isBefore=function(b,y){return this.endOf(y)<q(b)},_.$g=function(b,y,w){return L.u(b)?this[y]:this.set(w,b)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(b,y){var w=this,M=!!L.u(y)||y,x=L.p(b),$=function(fe,te){var oe=L.w(w.$u?Date.UTC(w.$y,te,fe):new Date(w.$y,te,fe),w);return M?oe:oe.endOf(l)},z=function(fe,te){return L.w(w.toDate()[fe].apply(w.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(te)),w)},I=this.$W,Q=this.$M,ee=this.$D,de="set"+(this.$u?"UTC":"");switch(x){case g:return M?$(1,0):$(31,11);case f:return M?$(1,Q):$(0,Q+1);case c:var ce=this.$locale().weekStart||0,Ce=(I<ce?I+7:I)-ce;return $(M?ee-Ce:ee+(6-Ce),Q);case l:case v:return z(de+"Hours",0);case u:return z(de+"Minutes",1);case a:return z(de+"Seconds",2);case s:return z(de+"Milliseconds",3);default:return this.clone()}},_.endOf=function(b){return this.startOf(b,!1)},_.$set=function(b,y){var w,M=L.p(b),x="set"+(this.$u?"UTC":""),$=(w={},w[l]=x+"Date",w[v]=x+"Date",w[f]=x+"Month",w[g]=x+"FullYear",w[u]=x+"Hours",w[a]=x+"Minutes",w[s]=x+"Seconds",w[o]=x+"Milliseconds",w)[M],z=M===l?this.$D+(y-this.$W):y;if(M===f||M===g){var I=this.clone().set(v,1);I.$d[$](z),I.init(),this.$d=I.set(v,Math.min(this.$D,I.daysInMonth())).$d}else $&&this.$d[$](z);return this.init(),this},_.set=function(b,y){return this.clone().$set(b,y)},_.get=function(b){return this[L.p(b)]()},_.add=function(b,y){var w,M=this;b=Number(b);var x=L.p(y),$=function(Q){var ee=q(M);return L.w(ee.date(ee.date()+Math.round(Q*b)),M)};if(x===f)return this.set(f,this.$M+b);if(x===g)return this.set(g,this.$y+b);if(x===l)return $(1);if(x===c)return $(7);var z=(w={},w[a]=r,w[u]=i,w[s]=n,w)[x]||1,I=this.$d.getTime()+b*z;return L.w(I,this)},_.subtract=function(b,y){return this.add(-1*b,y)},_.format=function(b){var y=this,w=this.$locale();if(!this.isValid())return w.invalidDate||d;var M=b||"YYYY-MM-DDTHH:mm:ssZ",x=L.z(this),$=this.$H,z=this.$m,I=this.$M,Q=w.weekdays,ee=w.months,de=w.meridiem,ce=function(te,oe,me,_e){return te&&(te[oe]||te(y,M))||me[oe].slice(0,_e)},Ce=function(te){return L.s($%12||12,te,"0")},fe=de||function(te,oe,me){var _e=te<12?"AM":"PM";return me?_e.toLowerCase():_e};return M.replace(O,function(te,oe){return oe||function(me){switch(me){case"YY":return String(y.$y).slice(-2);case"YYYY":return L.s(y.$y,4,"0");case"M":return I+1;case"MM":return L.s(I+1,2,"0");case"MMM":return ce(w.monthsShort,I,ee,3);case"MMMM":return ce(ee,I);case"D":return y.$D;case"DD":return L.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ce(w.weekdaysMin,y.$W,Q,2);case"ddd":return ce(w.weekdaysShort,y.$W,Q,3);case"dddd":return Q[y.$W];case"H":return String($);case"HH":return L.s($,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return fe($,z,!0);case"A":return fe($,z,!1);case"m":return String(z);case"mm":return L.s(z,2,"0");case"s":return String(y.$s);case"ss":return L.s(y.$s,2,"0");case"SSS":return L.s(y.$ms,3,"0");case"Z":return x}return null}(te)||x.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(b,y,w){var M,x=this,$=L.p(y),z=q(b),I=(z.utcOffset()-this.utcOffset())*r,Q=this-z,ee=function(){return L.m(x,z)};switch($){case g:M=ee()/12;break;case f:M=ee();break;case m:M=ee()/3;break;case c:M=(Q-I)/6048e5;break;case l:M=(Q-I)/864e5;break;case u:M=Q/i;break;case a:M=Q/r;break;case s:M=Q/n;break;default:M=Q}return w?M:L.a(M)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return R[this.$L]},_.locale=function(b,y){if(!b)return this.$L;var w=this.clone(),M=ue(b,y,!0);return M&&(w.$L=M),w},_.clone=function(){return L.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},S}(),Se=be.prototype;return q.prototype=Se,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",f],["$y",g],["$D",v]].forEach(function(S){Se[S[1]]=function(_){return this.$g(_,S[0],S[1])}}),q.extend=function(S,_){return S.$i||(S(_,be,q),S.$i=!0),q},q.locale=ue,q.isDayjs=pe,q.unix=function(S){return q(1e3*S)},q.en=R[X],q.Ls=R,q.p={},q})})(ai);var zs=ai.exports;const It=Cn(zs);var ui={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rr,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var u=s.prototype;a.utc=function(d){var P={date:d,utc:!0,args:arguments};return new s(P)},u.utc=function(d){var P=a(this.toDate(),{locale:this.$L,utc:!0});return d?P.add(this.utcOffset(),n):P},u.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var c=u.init;u.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var f=u.utcOffset;u.utcOffset=function(d,P){var O=this.$utils().u;if(O(d))return this.$u?0:O(this.$offset)?f.call(this):this.$offset;if(typeof d=="string"&&(d=function(X){X===void 0&&(X="");var R=X.match(r);if(!R)return null;var V=(""+R[0]).match(i)||["-",0,0],pe=V[0],ue=60*+V[1]+ +V[2];return ue===0?0:pe==="+"?ue:-ue}(d),d===null))return this;var N=Math.abs(d)<=16?60*d:d,A=this;if(P)return A.$offset=N,A.$u=d===0,A;if(d!==0){var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(N+Y,n)).$offset=N,A.$x.$localOffset=Y}else A=this.utc();return A};var m=u.format;u.format=function(d){var P=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,P)},u.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var g=u.toDate;u.toDate=function(d){return d==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var v=u.diff;u.diff=function(d,P,O){if(d&&this.$u===d.$u)return v.call(this,d,P,O);var N=this.local(),A=a(d).local();return v.call(N,A,P,O)}}})})(ui);var Zs=ui.exports;const Ys=Cn(Zs);/*! *****************************************************************************
8
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Es={fallbackLocale:null,loadingDelay:200,formats:ws,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},rt=Es;function Xe(){return rt}function ui(e){const t=e,{formats:n}=t,r=_s(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{ri.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(o){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=xs:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(rt,r,{initialLocale:i}),n&&("number"in n&&Object.assign(rt.formats.number,n.number),"date"in n&&Object.assign(rt.formats.date,n.date),"time"in n&&Object.assign(rt.formats.time,n.time)),Re.set(i)}const Qt=kt(!1);var Ss=Object.defineProperty,Ts=Object.defineProperties,Ms=Object.getOwnPropertyDescriptors,Yn=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?Ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bs=(e,t)=>{for(var n in t||(t={}))Hs.call(t,n)&&Xn(e,n,t[n]);if(Yn)for(var n of Yn(t))Ps.call(t,n)&&Xn(e,n,t[n]);return e},As=(e,t)=>Ts(e,Ms(t));let cn;const Lt=kt(null);function qn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function pt(e,t=Xe().fallbackLocale){const n=qn(e);return t?[...new Set([...n,...qn(t)])]:n}function Oe(){return cn!=null?cn:void 0}Lt.subscribe(e=>{cn=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Os=e=>{if(e&&ms(e)&&Rt(e)){const{loadingDelay:t}=Xe();let n;return typeof window!="undefined"&&Oe()!=null&&t?n=window.setTimeout(()=>Qt.set(!0),t):Qt.set(!0),ai(e).then(()=>{Lt.set(e)}).finally(()=>{clearTimeout(n),Qt.set(!1)})}return Lt.set(e)},Re=As(Bs({},Lt),{set:Os}),jt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var Rs=Object.defineProperty,It=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,Qn=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t)=>{for(var n in t||(t={}))li.call(t,n)&&Qn(e,n,t[n]);if(It)for(var n of It(t))ci.call(t,n)&&Qn(e,n,t[n]);return e},Qe=(e,t)=>{var n={};for(var r in e)li.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&It)for(var r of It(e))t.indexOf(r)<0&&ci.call(e,r)&&(n[r]=e[r]);return n};const ct=(e,t)=>{const{formats:n}=Xe();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ls=jt(e=>{var t=e,{locale:n,format:r}=t,i=Qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=ct("number",r)),new Intl.NumberFormat(n,i)}),Is=jt(e=>{var t=e,{locale:n,format:r}=t,i=Qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=ct("date",r):Object.keys(i).length===0&&(i=ct("date","short")),new Intl.DateTimeFormat(n,i)}),Ds=jt(e=>{var t=e,{locale:n,format:r}=t,i=Qe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=ct("time",r):Object.keys(i).length===0&&(i=ct("time","short")),new Intl.DateTimeFormat(n,i)}),$s=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Qe(t,["locale"]);return Ls(En({locale:n},r))},ks=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Qe(t,["locale"]);return Is(En({locale:n},r))},Ns=(e={})=>{var t=e,{locale:n=Oe()}=t,r=Qe(t,["locale"]);return Ds(En({locale:n},r))},Us=jt((e,t=Oe())=>new ri(e,t,Xe().formats,{ignoreTag:Xe().ignoreTag})),js=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=Oe(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ii(e,u);if(!c)c=(o=(i=(r=(n=Xe()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof c!="string")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;if(!a)return c;let f=c;try{f=Us(c,u).format(a)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return f},Gs=(e,t)=>Ns(t).format(e),Fs=(e,t)=>ks(t).format(e),Ws=(e,t)=>$s(t).format(e),Vs=(e,t=Oe())=>ii(e,t),fi=qe([Re,ht],()=>js);qe([Re],()=>Gs);qe([Re],()=>Fs);qe([Re],()=>Ws);qe([Re,ht],()=>Vs);function Jn(e,t){xn(e,t)}function zs(e){ui({fallbackLocale:"en"}),Re.set(e)}const Kn={en:{amount:"Amount",status:"Status",transactionId:"Transaction ID",payemntMethod:"Payment Method",paymentTime:"Payment Time",backHome:"Back to home",makeAnotherTransaction:"Make another transaction",backDeposit:"Back to deposit",backWithdraw:"Back to withdraw",tryAgainButton:"Try Again",refreshButton:"Check your status",success:"Success",pending:"Pending",failed:"Error",canceled:"Error",rejected:"Rejected",copyTransactionId:"Copied!",deposit:{success:{amount:"{amount}",title:"Deposit Success!",text:"Your deposit is successful"},pending:{amount:"{amount}",title:"Transaction is in pending",text:"Your payment will be deposited soon"},reject:{title:"Deposit Rejected",subTitle:"",text:"Unfortunately, your deposit was been rejected"},fail:{amount:" ",title:"Deposit Failed!",text:"Unfortunately, your deposit did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Withdrawn from your account",title:"Withdraw success!",text:"Your withdrawal is successful"},pending:{title:"Withdraw pending",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdraw rejected",subTitle:" ",text:"Unfortunately, your withdraw was been rejected"},fail:{title:"Withdraw failed",subTitle:" ",text:"Unfortunately, your withdraw did not go through."},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:" "}},reference:"Reference ID: {code}",close:"CLOSE",receipt:{maintenance:{title:"We’ll Be Back Soon",text:"We are down for a scheduled maintenance and expect to be back online in a few minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournaments",goToSupport:"Contact Support",goToMerchantHomePage:"Merchant's Home Website",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Live Casino",externalLink:"External Link",uploadDocuments:"Upload Documents",goToHomepage:"Go To Homepage"},tr:{amount:"Tutar",status:"Durum",transactionId:"İşlem Kimliği",payemntMethod:"Ödeme Yöntemi",paymentTime:"Ödeme Zamanı",backDeposit:"Yatırıma geri dön",backWithdraw:"Çekime geri dön",backHome:"Ana sayfaya dön",makeAnotherTransaction:"Başka bir işlem yap",tryAgainButton:"Tekrar Dene",refreshButton:"Durumunu Kontrol Et",success:"Başarılı",pending:"Beklemede",failed:"Hata",canceled:"Hata",rejected:"Reddedildi",copyTransactionId:"Kopyalandı!",deposit:{success:{amount:"{amount}",title:"Yatırım Başarılı!",text:"Yatırımınız başarıyla gerçekleştirildi"},pending:{amount:"{amount}",title:"İşlem beklemede",text:"Ödemeniz yakında yatırılacak"},reject:{title:"Yatırım Reddedildi",subTitle:"",text:"Maalesef yatırımınız reddedildi"},fail:{amount:" ",title:"Yatırım Başarısız!",text:"Maalesef yatırımınız gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Hesabınızdan çekildi",title:"Para Çekme Başarılı!",text:"Para çekme işleminiz başarıyla tamamlandı"},pending:{title:"Çekim beklemede",subTitle:"Hesabınızdan çekildi",text:"Teşekkürler. Çekim işleminiz işleniyor."},reject:{title:"Çekim reddedildi",subTitle:" ",text:"Maalesef çekim işleminiz reddedildi"},fail:{title:"Çekim hatası",subTitle:" ",text:"Maalesef çekim işleminiz gerçekleşmedi."},cancel:{title:"İşlemi iptal ettiniz",subTitle:" ",text:" "}},reference:"Referans Kimliği: {code}",close:"KAPAT",receipt:{maintenance:{title:"Kısa Süreliğine Kapalıyız",text:"Planlı bakım çalışması nedeniyle hizmet veremiyoruz, birkaç dakika içinde geri döneceğiz"}},goToPromotions:"Promosyonlara Git",goToTournaments:"Turnuvalar",goToSupport:"Destek ile İletişime Geç",goToMerchantHomePage:"Satıcının Ana Web Sitesi",goToSports:"Sporlara Git",goToCasino:"Casino",goToLiveCasino:"Canlı Casino",externalLink:"Harici Bağlantı",uploadDocuments:"Belgeleri Yükle",goToHomepage:"Ana Sayfaya Git"},fr:{amount:"Montant",status:"Statut",transactionId:"ID de transaction",payemntMethod:"Moyen de paiement",paymentTime:"Heure du paiement",backHome:"Retour à l’accueil",makeAnotherTransaction:"Effectuer une autre transaction",backDeposit:"Retour au dépôt",backWithdraw:"Retour au retrait",tryAgainButton:"Réessayer",refreshButton:"Vérifier votre statut",success:"Succès",pending:"En attente",failed:"Erreur",canceled:"Erreur",rejected:"Rejeté",copyTransactionId:"Copié !",deposit:{success:{amount:"{amount}",title:"Dépôt réussi !",text:"Votre dépôt a été effectué avec succès"},pending:{amount:"{amount}",title:"Transaction en attente",text:"Votre paiement sera crédité prochainement"},reject:{title:"Dépôt rejeté",subTitle:"",text:"Malheureusement, votre dépôt a été rejeté"},fail:{amount:" ",title:"Échec du dépôt !",text:"Malheureusement, votre dépôt n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},withdraw:{success:{amount:"{amount}",subTitle:"Retiré de votre compte",title:"Retrait réussi !",text:"Votre retrait a été effectué avec succès"},pending:{title:"Retrait en attente",subTitle:"Retiré de votre compte",text:"Merci. Votre retrait est en cours de traitement."},reject:{title:"Retrait rejeté",subTitle:" ",text:"Malheureusement, votre retrait a été rejeté"},fail:{title:"Échec du retrait",subTitle:" ",text:"Malheureusement, votre retrait n’a pas abouti."},cancel:{title:"Vous avez annulé la transaction",subTitle:" ",text:" "}},reference:"ID de référence : {code}",close:"FERMER",receipt:{maintenance:{title:"Nous revenons bientôt",text:"Nous sommes en maintenance programmée et prévoyons d’être de nouveau en ligne dans quelques minutes"}},goToPromotions:"Promotions",goToTournaments:"Tournois",goToSupport:"Contacter le support",goToMerchantHomePage:"Site web du marchand",goToSports:"Sports",goToCasino:"Casino",goToLiveCasino:"Casino en direct",externalLink:"Lien externe",uploadDocuments:"Télécharger des documents",goToHomepage:"Aller à la page d’accueil"}},Zs=(e,t)=>`${e+qs[t]}`,Ys=(e,t)=>`${Qs[t]}.${hi[e]}.text`,Xs=e=>`${hi[`${e}`]}`,qs={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"},Qs={Deposit:"deposit",Withdraw:"withdrawal"},hi={Success:"success",Voided:"success",Rejected:"reject",Failed:"fail",Canceled:"cancel",PendingNotification:"pending",PendingConfirmation:"pending",PendingApprovalStage1:"pending",PendingApprovalStage3:"pending",PendingApprovalStage2:"pending",PendingOfflineNotification:"pending"};var pi={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Nr,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",c="week",f="month",m="quarter",g="year",v="date",d="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var _=["th","st","nd","rd"],b=S%100;return"["+S+(_[(b-20)%10]||_[b]||_[0])+"]"}},A=function(S,_,b){var y=String(S);return!y||y.length>=_?S:""+Array(_+1-y.length).join(b)+S},Y={s:A,z:function(S){var _=-S.utcOffset(),b=Math.abs(_),y=Math.floor(b/60),w=b%60;return(_<=0?"+":"-")+A(y,2,"0")+":"+A(w,2,"0")},m:function S(_,b){if(_.date()<b.date())return-S(b,_);var y=12*(b.year()-_.year())+(b.month()-_.month()),w=_.clone().add(y,f),H=b-w<0,x=_.clone().add(y+(H?-1:1),f);return+(-(y+(b-w)/(H?w-x:x-w))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:f,y:g,w:c,d:l,D:v,h:u,m:a,s,ms:o,Q:m}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},X="en",R={};R[X]=N;var V="$isDayjsObject",pe=function(S){return S instanceof be||!(!S||!S[V])},ue=function S(_,b,y){var w;if(!_)return X;if(typeof _=="string"){var H=_.toLowerCase();R[H]&&(w=H),b&&(R[H]=b,w=H);var x=_.split("-");if(!w&&x.length>1)return S(x[0])}else{var $=_.name;R[$]=_,w=$}return!y&&w&&(X=w),w||!y&&X},q=function(S,_){if(pe(S))return S.clone();var b=typeof _=="object"?_:{};return b.date=S,b.args=arguments,new be(b)},L=Y;L.l=ue,L.i=pe,L.w=function(S,_){return q(S,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var be=function(){function S(b){this.$L=ue(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[V]=!0}var _=S.prototype;return _.parse=function(b){this.$d=function(y){var w=y.date,H=y.utc;if(w===null)return new Date(NaN);if(L.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var x=w.match(P);if(x){var $=x[2]-1||0,z=(x[7]||"0").substring(0,3);return H?new Date(Date.UTC(x[1],$,x[3]||1,x[4]||0,x[5]||0,x[6]||0,z)):new Date(x[1],$,x[3]||1,x[4]||0,x[5]||0,x[6]||0,z)}}return new Date(w)}(b),this.init()},_.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},_.$utils=function(){return L},_.isValid=function(){return this.$d.toString()!==d},_.isSame=function(b,y){var w=q(b);return this.startOf(y)<=w&&w<=this.endOf(y)},_.isAfter=function(b,y){return q(b)<this.startOf(y)},_.isBefore=function(b,y){return this.endOf(y)<q(b)},_.$g=function(b,y,w){return L.u(b)?this[y]:this.set(w,b)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(b,y){var w=this,H=!!L.u(y)||y,x=L.p(b),$=function(fe,ne){var oe=L.w(w.$u?Date.UTC(w.$y,ne,fe):new Date(w.$y,ne,fe),w);return H?oe:oe.endOf(l)},z=function(fe,ne){return L.w(w.toDate()[fe].apply(w.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ne)),w)},I=this.$W,Q=this.$M,te=this.$D,de="set"+(this.$u?"UTC":"");switch(x){case g:return H?$(1,0):$(31,11);case f:return H?$(1,Q):$(0,Q+1);case c:var ce=this.$locale().weekStart||0,Ce=(I<ce?I+7:I)-ce;return $(H?te-Ce:te+(6-Ce),Q);case l:case v:return z(de+"Hours",0);case u:return z(de+"Minutes",1);case a:return z(de+"Seconds",2);case s:return z(de+"Milliseconds",3);default:return this.clone()}},_.endOf=function(b){return this.startOf(b,!1)},_.$set=function(b,y){var w,H=L.p(b),x="set"+(this.$u?"UTC":""),$=(w={},w[l]=x+"Date",w[v]=x+"Date",w[f]=x+"Month",w[g]=x+"FullYear",w[u]=x+"Hours",w[a]=x+"Minutes",w[s]=x+"Seconds",w[o]=x+"Milliseconds",w)[H],z=H===l?this.$D+(y-this.$W):y;if(H===f||H===g){var I=this.clone().set(v,1);I.$d[$](z),I.init(),this.$d=I.set(v,Math.min(this.$D,I.daysInMonth())).$d}else $&&this.$d[$](z);return this.init(),this},_.set=function(b,y){return this.clone().$set(b,y)},_.get=function(b){return this[L.p(b)]()},_.add=function(b,y){var w,H=this;b=Number(b);var x=L.p(y),$=function(Q){var te=q(H);return L.w(te.date(te.date()+Math.round(Q*b)),H)};if(x===f)return this.set(f,this.$M+b);if(x===g)return this.set(g,this.$y+b);if(x===l)return $(1);if(x===c)return $(7);var z=(w={},w[a]=r,w[u]=i,w[s]=n,w)[x]||1,I=this.$d.getTime()+b*z;return L.w(I,this)},_.subtract=function(b,y){return this.add(-1*b,y)},_.format=function(b){var y=this,w=this.$locale();if(!this.isValid())return w.invalidDate||d;var H=b||"YYYY-MM-DDTHH:mm:ssZ",x=L.z(this),$=this.$H,z=this.$m,I=this.$M,Q=w.weekdays,te=w.months,de=w.meridiem,ce=function(ne,oe,me,_e){return ne&&(ne[oe]||ne(y,H))||me[oe].slice(0,_e)},Ce=function(ne){return L.s($%12||12,ne,"0")},fe=de||function(ne,oe,me){var _e=ne<12?"AM":"PM";return me?_e.toLowerCase():_e};return H.replace(O,function(ne,oe){return oe||function(me){switch(me){case"YY":return String(y.$y).slice(-2);case"YYYY":return L.s(y.$y,4,"0");case"M":return I+1;case"MM":return L.s(I+1,2,"0");case"MMM":return ce(w.monthsShort,I,te,3);case"MMMM":return ce(te,I);case"D":return y.$D;case"DD":return L.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ce(w.weekdaysMin,y.$W,Q,2);case"ddd":return ce(w.weekdaysShort,y.$W,Q,3);case"dddd":return Q[y.$W];case"H":return String($);case"HH":return L.s($,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return fe($,z,!0);case"A":return fe($,z,!1);case"m":return String(z);case"mm":return L.s(z,2,"0");case"s":return String(y.$s);case"ss":return L.s(y.$s,2,"0");case"SSS":return L.s(y.$ms,3,"0");case"Z":return x}return null}(ne)||x.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(b,y,w){var H,x=this,$=L.p(y),z=q(b),I=(z.utcOffset()-this.utcOffset())*r,Q=this-z,te=function(){return L.m(x,z)};switch($){case g:H=te()/12;break;case f:H=te();break;case m:H=te()/3;break;case c:H=(Q-I)/6048e5;break;case l:H=(Q-I)/864e5;break;case u:H=Q/i;break;case a:H=Q/r;break;case s:H=Q/n;break;default:H=Q}return w?H:L.a(H)},_.daysInMonth=function(){return this.endOf(f).$D},_.$locale=function(){return R[this.$L]},_.locale=function(b,y){if(!b)return this.$L;var w=this.clone(),H=ue(b,y,!0);return H&&(w.$L=H),w},_.clone=function(){return L.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},S}(),Se=be.prototype;return q.prototype=Se,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",f],["$y",g],["$D",v]].forEach(function(S){Se[S[1]]=function(_){return this.$g(_,S[0],S[1])}}),q.extend=function(S,_){return S.$i||(S(_,be,q),S.$i=!0),q},q.locale=ue,q.isDayjs=pe,q.unix=function(S){return q(1e3*S)},q.en=R[X],q.Ls=R,q.p={},q})})(pi);var Js=pi.exports;const Dt=_n(Js);var di={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Nr,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var u=s.prototype;a.utc=function(d){var P={date:d,utc:!0,args:arguments};return new s(P)},u.utc=function(d){var P=a(this.toDate(),{locale:this.$L,utc:!0});return d?P.add(this.utcOffset(),n):P},u.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var l=u.parse;u.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),l.call(this,d)};var c=u.init;u.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else c.call(this)};var f=u.utcOffset;u.utcOffset=function(d,P){var O=this.$utils().u;if(O(d))return this.$u?0:O(this.$offset)?f.call(this):this.$offset;if(typeof d=="string"&&(d=function(X){X===void 0&&(X="");var R=X.match(r);if(!R)return null;var V=(""+R[0]).match(i)||["-",0,0],pe=V[0],ue=60*+V[1]+ +V[2];return ue===0?0:pe==="+"?ue:-ue}(d),d===null))return this;var N=Math.abs(d)<=16?60*d:d,A=this;if(P)return A.$offset=N,A.$u=d===0,A;if(d!==0){var Y=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(N+Y,n)).$offset=N,A.$x.$localOffset=Y}else A=this.utc();return A};var m=u.format;u.format=function(d){var P=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,P)},u.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var g=u.toDate;u.toDate=function(d){return d==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var v=u.diff;u.diff=function(d,P,O){if(d&&this.$u===d.$u)return v.call(this,d,P,O);var N=this.local(),A=a(d).local();return v.call(N,A,P,O)}}})})(di);var Ks=di.exports;const ea=_n(Ks);/*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
10
10
 
11
11
  Permission to use, copy, modify, and/or distribute this software for any
@@ -18,9 +18,9 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
18
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
19
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
20
  PERFORMANCE OF THIS SOFTWARE.
21
- ***************************************************************************** */var cn=function(e,t){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cn(e,t)};function pt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function fn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function pn(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function He(e){return typeof e=="function"}function li(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qt=li(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
21
+ ***************************************************************************** */var fn=function(e,t){return fn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fn(e,t)};function dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fn(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function dn(e,t,n){if(arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}function Me(e){return typeof e=="function"}function mi(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Jt=mi(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
22
22
  `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
23
- `):"",this.name="UnsubscriptionError",this.errors=n}});function dn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var jt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=fn(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(d){t={error:d}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(He(c))try{c()}catch(d){o=d instanceof Qt?d.errors:[d]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var m=fn(f),g=m.next();!g.done;g=m.next()){var v=g.value;try{Yn(v)}catch(d){o=o!=null?o:[],d instanceof Qt?o=pn(pn([],hn(o)),hn(d.errors)):o.push(d)}}}catch(d){r={error:d}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}if(o)throw new Qt(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Yn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&dn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&dn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ci=jt.EMPTY;function fi(e){return e instanceof jt||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Yn(e){He(e)?e():e.unsubscribe()}var Xs={Promise:void 0},qs={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,pn([e,t],hn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Qs(e){qs.setTimeout(function(){throw e})}function Xn(){}function Et(e){e()}var hi=function(e){pt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,fi(n)&&n.add(r)):r.destination=ea,r}return t.create=function(n,r,i){return new mn(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(jt),Js=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){vt(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){vt(r)}else vt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){vt(n)}},e}(),mn=function(e){pt(t,e);function t(n,r,i){var o=e.call(this)||this,s;return He(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new Js(s),o}return t}(hi);function vt(e){Qs(e)}function Ks(e){throw e}var ea={closed:!0,next:Xn,error:Ks,complete:Xn},ta=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function na(e){return e}function ra(e){return e.length===0?na:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var qn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=oa(t)?t:new mn(t,n,r);return Et(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Qn(n),new n(function(i,o){var s=new mn({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[ta]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ra(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Qn(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function Qn(e){var t;return(t=e!=null?e:Xs.Promise)!==null&&t!==void 0?t:Promise}function ia(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function oa(e){return e&&e instanceof hi||ia(e)&&fi(e)}var sa=li(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),pi=function(e){pt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Jn(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new sa},t.prototype.next=function(n){var r=this;Et(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=fn(r.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(n)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Et(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Et(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?ci:(this.currentObservers=null,a.push(n),new jt(function(){r.currentObservers=null,dn(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new qn;return n.source=this,n},t.create=function(n,r){return new Jn(n,r)},t}(qn),Jn=function(e){pt(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:ci},t}(pi),di={now:function(){return(di.delegate||Date).now()},delegate:void 0},aa=function(e){pt(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=di);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!n.closed;u+=o?1:2)n.next(a[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),l=0,c=1;c<o.length&&o[c]<=u;c+=2)l=c;l&&o.splice(0,l+1)}},t}(pi);const Kn=[],er={},ua=(e,t=0)=>{if(Kn.indexOf(e)==-1){const n=new aa(t);er[e]=n,Kn.push(e)}return er[e]};let St="en-UK",mi="true",rt=2,it="";const la=(e,t,n,r)=>{St=e||"en-UK",mi=t||"true",rt=+r||0,it=n||""},ca=(e,t,n={},r=!0)=>{const i=gt(gt({maximumFractionDigits:rt,minimumFractionDigits:rt},r&&{style:"currency",currency:t,currencyDisplay:mi==="true"?"symbol":"code"}),n);try{if(!it)return new Intl.NumberFormat(St,i).format(e);const s=new Intl.NumberFormat(St,i).formatToParts(e),{currencyPart:a="",amountPart:u=""}=s.reduce((c,f)=>(f.type==="currency"?c.currencyPart=f:c.amountPart+=f.value,c),{currencyPart:"",amountPart:""});return it==="before"?`${a||i.currency||""} ${u}`:`${u} ${a||i.currency||""}`}catch(o){console.info(o);const s=new Intl.NumberFormat(St,{maximumFractionDigits:rt,minimumFractionDigits:rt}).format(e);return it?it==="before"?`${i.currency||""} ${s}`:`${s} ${i.currency||""}`:`${i.currency||""} ${s}`}};window.emWidgets={topic:ua};const tr=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const Ue="__WIDGET_GLOBAL_STYLE_CACHE__";function gi(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function bi(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function yi(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=fa(e,t),n;window[Ue]||(window[Ue]={}),n=ha(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[Ue][t]){const a=window[Ue][t];a.refCount>1?a.refCount=a.refCount-1:delete window[Ue][t]}o()};return n.unsubscribe=s,n}function fa(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function ha(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[Ue];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}const nr=(e,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:e,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)},rr={CasinoButton:`<svg viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
23
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function mn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Gt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=hn(s),u=a.next();!u.done;u=a.next()){var l=u.value;l.remove(this)}}catch(d){t={error:d}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(Me(c))try{c()}catch(d){o=d instanceof Jt?d.errors:[d]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var m=hn(f),g=m.next();!g.done;g=m.next()){var v=g.value;try{er(v)}catch(d){o=o!=null?o:[],d instanceof Jt?o=dn(dn([],pn(o)),pn(d.errors)):o.push(d)}}}catch(d){r={error:d}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}if(o)throw new Jt(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)er(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&mn(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&mn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),gi=Gt.EMPTY;function bi(e){return e instanceof Gt||e&&"closed"in e&&Me(e.remove)&&Me(e.add)&&Me(e.unsubscribe)}function er(e){Me(e)?e():e.unsubscribe()}var ta={Promise:void 0},na={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,dn([e,t],pn(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function ra(e){na.setTimeout(function(){throw e})}function tr(){}function St(e){e()}var yi=function(e){dt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,bi(n)&&n.add(r)):r.destination=sa,r}return t.create=function(n,r,i){return new gn(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Gt),ia=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Ct(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Ct(r)}else Ct(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Ct(n)}},e}(),gn=function(e){dt(t,e);function t(n,r,i){var o=e.call(this)||this,s;return Me(n)||!n?s={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:s=n,o.destination=new ia(s),o}return t}(yi);function Ct(e){ra(e)}function oa(e){throw e}var sa={closed:!0,next:tr,error:oa,complete:tr},aa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ua(e){return e}function la(e){return e.length===0?ua:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var nr=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=fa(t)?t:new gn(t,n,r);return St(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=rr(n),new n(function(i,o){var s=new gn({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[aa]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return la(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=rr(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function rr(e){var t;return(t=e!=null?e:ta.Promise)!==null&&t!==void 0?t:Promise}function ca(e){return e&&Me(e.next)&&Me(e.error)&&Me(e.complete)}function fa(e){return e&&e instanceof yi||ca(e)&&bi(e)}var ha=mi(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vi=function(e){dt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new ir(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ha},t.prototype.next=function(n){var r=this;St(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=hn(r.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(n)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;St(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;St(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?gi:(this.currentObservers=null,a.push(n),new Gt(function(){r.currentObservers=null,mn(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new nr;return n.source=this,n},t.create=function(n,r){return new ir(n,r)},t}(nr),ir=function(e){dt(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:gi},t}(vi),Ci={now:function(){return(Ci.delegate||Date).now()},delegate:void 0},pa=function(e){dt(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Ci);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!n.closed;u+=o?1:2)n.next(a[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),l=0,c=1;c<o.length&&o[c]<=u;c+=2)l=c;l&&o.splice(0,l+1)}},t}(vi);const or=[],sr={},da=(e,t=0)=>{if(or.indexOf(e)==-1){const n=new pa(t);sr[e]=n,or.push(e)}return sr[e]};let Tt="en-UK",_i="true",it=2,ot="";const ma=(e,t,n,r)=>{Tt=e||"en-UK",_i=t||"true",it=+r||0,ot=n||""},ga=(e,t,n={},r=!0)=>{const i=bt(bt({maximumFractionDigits:it,minimumFractionDigits:it},r&&{style:"currency",currency:t,currencyDisplay:_i==="true"?"symbol":"code"}),n);try{if(!ot)return new Intl.NumberFormat(Tt,i).format(e);const s=new Intl.NumberFormat(Tt,i).formatToParts(e),{currencyPart:a="",amountPart:u=""}=s.reduce((c,f)=>(f.type==="currency"?c.currencyPart=f:c.amountPart+=f.value,c),{currencyPart:"",amountPart:""});return ot==="before"?`${a||i.currency||""} ${u}`:`${u} ${a||i.currency||""}`}catch(o){console.info(o);const s=new Intl.NumberFormat(Tt,{maximumFractionDigits:it,minimumFractionDigits:it}).format(e);return ot?ot==="before"?`${i.currency||""} ${s}`:`${s} ${i.currency||""}`:`${i.currency||""} ${s}`}};window.emWidgets={topic:da};const ar=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;const je="__WIDGET_GLOBAL_STYLE_CACHE__";function wi(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function xi(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Ei(e,t,n,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return n=ba(e,t),n;window[je]||(window[je]={}),n=ya(e,t);const o=n.unsubscribe.bind(n),s=()=>{if(window[je][t]){const a=window[je][t];a.refCount>1?a.refCount=a.refCount-1:delete window[je][t]}o()};return n.unsubscribe=s,n}function ba(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,r=>{e&&(n.innerHTML=r,e.appendChild(n))})}function ya(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const r=e.getRootNode(),i=window[je];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),i[t]={sheet:o,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(o)||(r.adoptedStyleSheets=[...s,o])})}const ur=(e,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:e,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)},lr={CasinoButton:`<svg viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
24
24
  <path d="M15.8233 3.85297C16.0588 3.88497 16.2962 3.90865 16.5298 3.95089C18.1241 4.24081 19.4188 5.01137 20.3583 6.34705C20.4076 6.41681 20.462 6.42449 20.5343 6.42449C21.9673 6.42321 23.4002 6.42385 24.8338 6.42385C24.8825 6.42385 24.9311 6.42385 24.9868 6.42385C24.9868 7.45297 24.9868 8.47185 24.9868 9.49841C18.6098 9.49841 12.2374 9.49841 5.85657 9.49841C5.85657 8.47313 5.85657 7.45489 5.85657 6.42385C5.91545 6.42385 5.96793 6.42385 6.02041 6.42385C7.44953 6.42385 8.87865 6.42321 10.3071 6.42641C10.4012 6.42641 10.453 6.39569 10.5062 6.32017C11.381 5.08369 12.5778 4.33361 14.0454 4.00529C14.341 3.93937 14.647 3.91569 14.9478 3.87217C14.9759 3.86833 15.0034 3.85937 15.031 3.85297C15.2966 3.85297 15.5596 3.85297 15.8233 3.85297ZM13.9359 6.34449C14.1062 6.53201 14.247 6.71185 14.4127 6.86417C14.5766 7.01457 14.6162 7.17649 14.5759 7.38897C14.535 7.60465 14.5292 7.82673 14.5062 8.06609C14.7878 7.94449 15.0489 7.83697 15.3055 7.71857C15.3932 7.67825 15.4636 7.68209 15.5494 7.72113C15.8066 7.83825 16.0678 7.94705 16.343 8.06609C16.3122 7.76593 16.286 7.48369 16.2527 7.20273C16.2431 7.12337 16.254 7.06513 16.3122 7.00369C16.4799 6.82833 16.6406 6.64529 16.8031 6.46481C16.8345 6.43025 16.8633 6.39377 16.9068 6.34193C16.5951 6.27537 16.3058 6.21649 16.0191 6.14929C15.9705 6.13777 15.9148 6.09937 15.8886 6.05713C15.7535 5.84081 15.6268 5.61937 15.4962 5.39985C15.4745 5.36337 15.4502 5.32817 15.4207 5.28337C15.2646 5.54705 15.1218 5.79729 14.9682 6.04049C14.9362 6.09169 14.8697 6.13841 14.8108 6.15249C14.5286 6.22097 14.2431 6.27793 13.9359 6.34449Z" />
25
25
  <path d="M24.9957 10.8303C24.9957 13.965 24.9957 17.0933 24.9957 20.2351C25.2908 20.2351 25.5768 20.2351 25.8725 20.2351C25.8725 20.6587 25.8725 21.069 25.8725 21.4901C26.0972 21.4901 26.3122 21.4901 26.5407 21.4901C26.5407 21.4376 26.5407 21.3896 26.5407 21.341C26.5407 17.5029 26.5407 13.6648 26.5426 9.82675C26.5426 9.73459 26.5157 9.67955 26.4408 9.62387C25.902 9.22387 25.7349 8.51411 26.0325 7.91251C26.3199 7.33075 27.0002 7.03123 27.6268 7.20915C28.2687 7.39155 28.6872 8.00019 28.6194 8.66387C28.5784 9.06003 28.3967 9.38451 28.0748 9.62195C27.9986 9.67827 27.9743 9.73395 27.9743 9.82419C27.9762 14.1359 27.9762 18.4475 27.9762 22.7592C27.9762 22.8117 27.9762 22.8648 27.9762 22.9314C27.2754 22.9314 26.5861 22.9314 25.8828 22.9314C25.8828 23.3583 25.8828 23.7723 25.8828 24.2011C25.5832 24.2011 25.2972 24.2011 25.0028 24.2011C25.0028 25.3794 25.0028 26.5423 25.0028 27.7199C25.3324 27.7199 25.6594 27.7199 25.9928 27.7199C25.9928 28.2018 25.9928 28.6696 25.9928 29.1471C18.9484 29.1471 11.9052 29.1471 4.85492 29.1471C4.85492 28.6773 4.85492 28.2095 4.85492 27.7256C5.1794 27.7256 5.5058 27.7256 5.845 27.7256C5.845 22.0859 5.845 16.4629 5.845 10.8309C12.2316 10.8303 18.604 10.8303 24.9957 10.8303ZM23.5551 12.2651C18.1266 12.2651 12.7103 12.2651 7.29268 12.2651C7.29268 15.0933 7.29268 17.9125 7.29268 20.7387C12.7167 20.7387 18.1336 20.7387 23.5551 20.7387C23.5551 17.9112 23.5551 15.092 23.5551 12.2651ZM8.28404 23.3679C13.0482 23.3679 17.8047 23.3679 22.5618 23.3679C22.5618 22.9301 22.5618 22.5 22.5618 22.0725C17.797 22.0725 13.0399 22.0725 8.28404 22.0725C8.28404 22.5103 8.28404 22.9365 8.28404 23.3679ZM18.9138 24.7087C16.581 24.7087 14.2629 24.7087 11.9346 24.7087C12.0063 25.3672 12.0767 26.0117 12.1471 26.6556C14.3391 26.6556 16.5157 26.6556 18.7032 26.6556C18.773 26.0059 18.8428 25.3608 18.9138 24.7087Z" />
26
26
  <path d="M18.6232 13.5765C19.836 13.5765 21.0404 13.5765 22.2564 13.5765C22.2564 15.5227 22.2564 17.467 22.2564 19.419C21.0462 19.419 19.8379 19.419 18.6232 19.419C18.6232 17.4741 18.6232 15.533 18.6232 13.5765ZM18.9873 16.1794C19.1672 16.3784 19.3233 16.5691 19.4993 16.7387C19.6209 16.8558 19.6433 16.9768 19.619 17.1349C19.5832 17.3685 19.5691 17.6059 19.5441 17.8581C19.6024 17.8357 19.6401 17.8229 19.6772 17.8069C19.9038 17.7096 20.1278 17.6078 20.3569 17.5163C20.4068 17.4965 20.4779 17.4958 20.5272 17.5157C20.7556 17.6072 20.9803 17.709 21.2068 17.8062C21.2452 17.8229 21.2856 17.8357 21.3387 17.8549C21.3086 17.5522 21.2779 17.2706 21.2561 16.9877C21.2523 16.9384 21.2721 16.8738 21.3041 16.8366C21.4731 16.6402 21.6504 16.4507 21.8232 16.2581C21.843 16.2363 21.8577 16.2094 21.8833 16.1742C21.6555 16.1256 21.4449 16.0654 21.2305 16.0386C21.0155 16.0117 20.876 15.9214 20.7825 15.7205C20.6897 15.5221 20.5617 15.3397 20.4408 15.1362C20.3006 15.3736 20.1649 15.5886 20.044 15.812C19.98 15.9304 19.8987 15.9912 19.7643 16.0142C19.5108 16.0578 19.2612 16.1205 18.9873 16.1794Z" />
@@ -45,4 +45,4 @@ PERFORMANCE OF THIS SOFTWARE.
45
45
  <path d="M20.9099 12.4008C20.8843 12.5256 20.8459 12.6472 20.8299 12.772C20.8107 12.8872 20.7659 12.9576 20.6283 12.948C20.4523 12.9384 20.2763 12.9448 20.1035 12.9448C20.0107 12.9448 19.9691 12.9864 19.9563 13.0792C19.9019 13.4792 19.8443 13.876 19.7867 14.2728C19.7387 14.6024 19.6843 14.932 19.6331 15.2648C19.5147 15.2776 19.3995 15.2968 19.2843 15.3C19.1659 15.3032 19.0443 15.2904 18.9323 15.2808C18.8619 14.9896 18.9195 14.7176 18.9579 14.452C19.0219 13.9976 19.0923 13.54 19.1691 13.0888C19.1883 12.9736 19.1435 12.9512 19.0539 12.9512C18.8427 12.9512 18.6315 12.9512 18.4139 12.9512C18.3563 12.7016 18.4331 12.4744 18.4907 12.2472C18.5003 12.2184 18.5771 12.1832 18.6251 12.1832C19.3419 12.1768 20.0587 12.1768 20.7755 12.18C20.8203 12.18 20.8715 12.2184 20.9163 12.2408C20.9099 12.292 20.9099 12.3464 20.9099 12.4008Z" fill="#0F4D00"/>
46
46
  <path d="M11.6587 15.2872C11.7579 15.172 11.8347 15.0888 11.9051 14.9992C11.9979 14.884 12.0939 14.7656 12.1707 14.6376C12.2155 14.5672 12.2571 14.5512 12.3307 14.5512C12.8363 14.5544 13.3387 14.5576 13.8443 14.548C13.9275 14.5448 14.0299 14.5064 14.0939 14.4488C14.2155 14.3464 14.1643 14.1736 14.0075 14.1352C13.9627 14.1224 13.9083 14.1224 13.8603 14.1224C13.4315 14.1224 13.0027 14.1224 12.5771 14.1224C12.5291 14.1224 12.4779 14.1224 12.4107 14.1224C12.4235 14.036 12.4363 13.9688 12.4395 13.8984C12.4523 13.7736 12.4619 13.6488 12.4715 13.524C12.4811 13.4056 12.5355 13.3544 12.6635 13.3576C13.0315 13.3672 13.4027 13.364 13.7739 13.3608C13.8571 13.3608 13.9435 13.3544 14.0299 13.3352C14.1515 13.3096 14.2155 13.2232 14.2027 13.1016C14.1931 12.9768 14.1035 12.948 13.9915 12.9448C13.5339 12.9416 13.0731 12.9352 12.6123 12.9416C12.4971 12.9416 12.4299 12.9 12.3819 12.8008C12.3019 12.644 12.2123 12.4904 12.1259 12.3368C12.1035 12.2984 12.0907 12.2568 12.0747 12.2184C12.1195 12.2024 12.1643 12.1736 12.2091 12.1736C12.6827 12.1704 13.1563 12.1704 13.6267 12.1704C13.8603 12.1704 14.0971 12.1768 14.3307 12.1768C14.6795 12.1768 15.0123 12.4008 15.0539 12.7944C15.0795 13.0312 14.8491 13.428 14.5995 13.5496C14.5547 13.572 14.5131 13.5944 14.4491 13.6296C14.5227 13.6744 14.5739 13.7096 14.6315 13.7384C14.9387 13.8952 14.9867 14.0968 14.9515 14.4168C14.8939 14.9128 14.4331 15.2584 13.9691 15.2744C13.2523 15.2968 12.5355 15.2968 11.8219 15.3032C11.7771 15.3032 11.7323 15.2968 11.6587 15.2872Z" fill="#0F4D00"/>
47
47
  </svg>
48
- `};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierError-fvFvP8WT.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}function pa(e){_r(e,"svelte-nkabfs",'.LoadingOverlay{width:100%;height:100%;display:flex;position:relative;top:0;left:0;justify-content:center;align-items:center;z-index:100;background:transparent}.CopyTooltip{transform:translateX(-50%);color:var(--emw--color-typography, #fff);opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:15px;position:fixed;left:50%;top:40%;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:3;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3)}.CopyTooltip::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.Spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CashierReceiptPageWidget{position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word;display:flex;flex-direction:column;justify-content:space-between;height:100%}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.ReceiptWrapper .ImagePlaceholder{height:100%;width:100%;background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.success{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.fail{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.pending{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.cancel{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.rejected{background:#e6e6e6}.ReceiptStatusWrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 30px 0;gap:10px}.ReceiptStatusWrapper .ReceiptStatusIcon.success svg,.ReceiptStatusWrapper .ReceiptStatusIcon.success circle,.ReceiptStatusWrapper .ReceiptStatusIcon.success path{fill:var(--emw--color-valid, #41d195)}.ReceiptStatusWrapper .ReceiptStatusIcon.pending svg,.ReceiptStatusWrapper .ReceiptStatusIcon.pending circle,.ReceiptStatusWrapper .ReceiptStatusIcon.pending path{fill:var(--emw--color-pending, #ff6836)}.ReceiptStatusWrapper .ReceiptStatusIcon.failed svg,.ReceiptStatusWrapper .ReceiptStatusIcon.failed circle,.ReceiptStatusWrapper .ReceiptStatusIcon.failed path{fill:var(--emw--color-error, #ff3636)}.ReceiptStatusWrapper .ReceiptStatusText{text-align:center}.ReceiptStatusWrapper .ReceiptStatusText h3,.ReceiptStatusWrapper .ReceiptStatusText p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:0;margin:10px}.ReceiptStatusWrapper .ReceiptStatusText p{font-size:14px;font-weight:200}.ReceiptStatusWrapper .TryAgainBtn,.ReceiptStatusWrapper .RefreshButton{border-radius:20px;padding:7px 20px;border:none;box-shadow:inset 0px 0px 0px 2px rgba(255, 226, 123, 0.3);color:var(--emw--color-white, #ffffff);background-color:rgba(249, 196, 8, 0.3019607843)}.ReceiptDetailsWrapper{position:relative;display:flex;flex-direction:column;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:20px;margin:10px;z-index:1}.ReceiptDetailsWrapper::before{content:"";position:absolute;inset:0;opacity:0.3;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ReceiptDetailsWrapper .TxnId{cursor:pointer}.ReceiptDetailsWrapper .TxnId .TxnIdText{overflow:hidden;text-overflow:ellipsis;display:inline-block;white-space:nowrap}.ReceiptDetailsWrapper .Amount,.ReceiptDetailsWrapper .Status,.ReceiptDetailsWrapper .TxnId,.ReceiptDetailsWrapper .PaymentMethod,.ReceiptDetailsWrapper .PaymentTime{display:flex;justify-content:space-between;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff))}.ReceiptDetailsWrapper .Amount p,.ReceiptDetailsWrapper .Status p,.ReceiptDetailsWrapper .TxnId p,.ReceiptDetailsWrapper .PaymentMethod p,.ReceiptDetailsWrapper .PaymentTime p{font-weight:200;font-size:12px;margin-right:5px;width:auto}.ReceiptDetailsWrapper .Amount span,.ReceiptDetailsWrapper .Status span,.ReceiptDetailsWrapper .TxnId span,.ReceiptDetailsWrapper .PaymentMethod span,.ReceiptDetailsWrapper .PaymentTime span{font-size:12px;word-break:break-all;font-weight:500;max-width:70%;text-align:right}.ReceiptDetailsWrapper .Status{border-bottom:1px solid rgba(255, 255, 255, 0.276);padding-bottom:10px}.ReceiptDetailsWrapper .Status span{padding:10px;font-size:var(--emw--font-size-small, 12px);border-radius:16px}.ReceiptDetailsWrapper .Status.success span{background-color:rgba(65, 209, 149, 0.1215686275);color:var(--emw--color-valid, #41d195)}.ReceiptDetailsWrapper .Status.pending span{background-color:rgba(255, 104, 54, 0.1215686275);color:var(--emw--color-pending, #ff6836)}.ReceiptDetailsWrapper .Status.failed span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .Status.rejected span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .TxnId{margin-top:15px}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-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-medium, 16px);color:var(--emw--color-gray-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-10, #111)}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--emw--color-gray-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.ReceiptButtonsWrapper{display:grid;grid-template-columns:1fr 1fr 1fr;height:75px;gap:8px;margin:0 10px}.ReceiptButtonsWrapper .GoToButton{cursor:pointer;border-radius:8px;border:none;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-gey-600, rgba(237, 237, 237, 0.0784313725));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px;transition:all 0.3s ease}.ReceiptButtonsWrapper .GoToButton:hover,.ReceiptButtonsWrapper .GoToButton:active{transform:scale(1.05)}.DefaultButton{text-transform:uppercase;font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border:none;background:var(--emw--color-primary, #f9c408);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 12px);min-height:44px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:20px 10px;width:calc(100% - 20px);transition:background 0.3s ease}.DefaultButton:hover{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-hover, #dbac03)}.DefaultButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-active, #fecd1c)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top: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-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}@media(min-width: 750px){.CashierReceiptPage{background-color:transparent}.CashierReceiptPageWidget{position:absolute;width:calc(100% - 20px)}}.CustomButtonSvg svg{width:32px;height:32px;fill:var(--emw--color-primary)}')}function ir(e,t,n){const r=e.slice();return r[70]=t[n],r[72]=n,r}function or(e,t,n){const r=e.slice();return r[73]=t[n],r}function da(e){let t,n,r=tr(e[25])&&e[9]&&e[22],i,o=e[23]&&sr(e),s=r&&ar(e);function a(c,f){if(c[15])return ba;if(c[19]&&!c[20])return ga}let u=a(e),l=u&&u(e);return{c(){o&&o.c(),t=G(),n=E("div"),s&&s.c(),i=G(),l&&l.c(),h(n,"class","CashierReceiptPage")},m(c,f){o&&o.m(c,f),B(c,t,f),B(c,n,f),s&&s.m(n,null),C(n,i),l&&l.m(n,null)},p(c,f){c[23]?o?(o.p(c,f),f[0]&8388608&&Pt(o,1)):(o=sr(c),o.c(),Pt(o,1),o.m(t.parentNode,t)):o&&(Fi(),Hr(o,1,1,()=>{o=null}),Wi()),f[0]&4194816&&(r=tr(c[25])&&c[9]&&c[22]),r?s?s.p(c,f):(s=ar(c),s.c(),s.m(n,i)):s&&(s.d(1),s=null),u===(u=a(c))&&l?l.p(c,f):(l&&l.d(1),l=u&&u(c),l&&(l.c(),l.m(n,null)))},d(c){c&&(H(t),H(n)),o&&o.d(c),s&&s.d(),l&&l.d()}}}function ma(e){let t;return{c(){t=E("div"),t.innerHTML='<div class="Spinner"></div>',h(t,"class","LoadingOverlay")},m(n,r){B(n,t,r)},p:ie,d(n){n&&H(t)}}}function sr(e){let t,n=e[24]("copyTransactionId")+"",r,i,o,s;return{c(){t=E("div"),r=j(n),h(t,"class","CopyTooltip")},m(a,u){B(a,t,u),C(t,r),s=!0},p(a,u){(!s||u[0]&16777216)&&n!==(n=a[24]("copyTransactionId")+"")&&W(r,n)},i(a){s||(a&&We(()=>{s&&(o&&o.end(1),i=Vi(t,An,{duration:100}),i.start())}),s=!0)},o(a){i&&i.invalidate(),a&&(o=zi(t,An,{duration:1e3})),s=!1},d(a){a&&H(t),a&&o&&o.end()}}}function ar(e){let t;return{c(){t=E("cashier-verifications"),F(t,"lang",e[3]),F(t,"translationurl",e[4]),F(t,"endpoint",e[1]),F(t,"clientstylingurl",e[8]),F(t,"clientstyling",e[7]),F(t,"customerid",e[6]),F(t,"playersession",e[2])},m(n,r){B(n,t,r)},p(n,r){r[0]&8&&F(t,"lang",n[3]),r[0]&16&&F(t,"translationurl",n[4]),r[0]&2&&F(t,"endpoint",n[1]),r[0]&256&&F(t,"clientstylingurl",n[8]),r[0]&128&&F(t,"clientstyling",n[7]),r[0]&64&&F(t,"customerid",n[6]),r[0]&4&&F(t,"playersession",n[2])},d(n){n&&H(t)}}}function ga(e){let t,n=e[19]===e[13].Maintenance&&ur(e);return{c(){t=E("cashier-error"),n&&n.c(),F(t,"assetsurl",e[5]),F(t,"translationurl",e[4]),F(t,"clientstylingurl",e[8]),F(t,"clientstyling",e[7]),F(t,"lang",e[3]),F(t,"hidebuttons","true"),F(t,"errorcode",e[19])},m(r,i){B(r,t,i),n&&n.m(t,null)},p(r,i){r[19]===r[13].Maintenance?n?n.p(r,i):(n=ur(r),n.c(),n.m(t,null)):n&&(n.d(1),n=null),i[0]&32&&F(t,"assetsurl",r[5]),i[0]&16&&F(t,"translationurl",r[4]),i[0]&256&&F(t,"clientstylingurl",r[8]),i[0]&128&&F(t,"clientstyling",r[7]),i[0]&8&&F(t,"lang",r[3]),i[0]&524288&&F(t,"errorcode",r[19])},d(r){r&&H(t),n&&n.d()}}}function ba(e){let t,n,r,i,o,s=e[24]("amount")+"",a,u,l,c,f,m,g,v=e[24]("status")+"",d,P,O,N=e[24](`${e[21]}`)+"",A,Y,X,R,V,pe=e[24]("transactionId")+"",ue,q,L,be=e[15].referenceId+"",Se,S,_,b,y=e[24]("payemntMethod")+"",w,M,x,$,z,I,Q,ee=e[24]("paymentTime")+"",de,ce,Ce,fe=It(e[15].time).format("MMM DD, YYYY, HH:mm:ss")+"",te,oe,me,_e,Te,Qe,Re,Le,Je;function Ke(T,U){if(T[21]==="success")return Ca;if(T[21]==="pending")return va;if(T[21]==="failed"||T[21]==="rejected"||T[21]==="canceled")return ya}let xe=Ke(e),se=xe&&xe(e),ae=e[12].length>0&&lr(e);function dt(T,U){return T[15].type?wa:_a}let Ie=dt(e),ye=Ie(e),le=e[16].length&&fr(e);return{c(){t=E("div"),se&&se.c(),n=G(),r=E("div"),i=E("div"),o=E("p"),a=j(s),u=G(),l=E("span"),c=j(e[17]),f=G(),m=E("div"),g=E("p"),d=j(v),P=G(),O=E("span"),A=j(N),X=G(),R=E("div"),V=E("p"),ue=j(pe),q=G(),L=E("span"),Se=j(be),S=G(),_=E("div"),b=E("p"),w=j(y),M=G(),x=E("span"),$=j(e[0]),z=G(),I=E("div"),Q=E("p"),de=j(ee),ce=G(),Ce=E("span"),te=j(fe),oe=G(),me=E("div"),ae&&ae.c(),_e=G(),Te=E("button"),ye.c(),Qe=G(),le&&le.c(),Re=Dt(),h(t,"class","ReceiptStatusWrapper"),h(i,"class","Amount"),h(m,"class",Y=`Status ${e[21]}`),h(L,"class","TxnIdText"),h(R,"class","TxnId"),h(_,"class","PaymentMethod"),h(I,"class","PaymentTime"),h(r,"class","ReceiptDetailsWrapper"),h(me,"class","ReceiptButtonsWrapper"),h(Te,"class","DefaultButton")},m(T,U){B(T,t,U),se&&se.m(t,null),B(T,n,U),B(T,r,U),C(r,i),C(i,o),C(o,a),C(i,u),C(i,l),C(l,c),C(r,f),C(r,m),C(m,g),C(g,d),C(m,P),C(m,O),C(O,A),C(r,X),C(r,R),C(R,V),C(V,ue),C(R,q),C(R,L),C(L,Se),C(r,S),C(r,_),C(_,b),C(b,w),C(_,M),C(_,x),C(x,$),C(r,z),C(r,I),C(I,Q),C(Q,de),C(I,ce),C(I,Ce),C(Ce,te),B(T,oe,U),B(T,me,U),ae&&ae.m(me,null),B(T,_e,U),B(T,Te,U),ye.m(Te,null),B(T,Qe,U),le&&le.m(T,U),B(T,Re,U),Le||(Je=[Fe(L,"click",e[45]),Fe(Te,"click",e[26])],Le=!0)},p(T,U){xe===(xe=Ke(T))&&se?se.p(T,U):(se&&se.d(1),se=xe&&xe(T),se&&(se.c(),se.m(t,null))),U[0]&16777216&&s!==(s=T[24]("amount")+"")&&W(a,s),U[0]&131072&&W(c,T[17]),U[0]&16777216&&v!==(v=T[24]("status")+"")&&W(d,v),U[0]&18874368&&N!==(N=T[24](`${T[21]}`)+"")&&W(A,N),U[0]&2097152&&Y!==(Y=`Status ${T[21]}`)&&h(m,"class",Y),U[0]&16777216&&pe!==(pe=T[24]("transactionId")+"")&&W(ue,pe),U[0]&32768&&be!==(be=T[15].referenceId+"")&&W(Se,be),U[0]&16777216&&y!==(y=T[24]("payemntMethod")+"")&&W(w,y),U[0]&1&&W($,T[0]),U[0]&16777216&&ee!==(ee=T[24]("paymentTime")+"")&&W(de,ee),U[0]&32768&&fe!==(fe=It(T[15].time).format("MMM DD, YYYY, HH:mm:ss")+"")&&W(te,fe),T[12].length>0?ae?ae.p(T,U):(ae=lr(T),ae.c(),ae.m(me,null)):ae&&(ae.d(1),ae=null),Ie===(Ie=dt(T))&&ye?ye.p(T,U):(ye.d(1),ye=Ie(T),ye&&(ye.c(),ye.m(Te,null))),T[16].length?le?le.p(T,U):(le=fr(T),le.c(),le.m(Re.parentNode,Re)):le&&(le.d(1),le=null)},d(T){T&&(H(t),H(n),H(r),H(oe),H(me),H(_e),H(Te),H(Qe),H(Re)),se&&se.d(),ae&&ae.d(),ye.d(),le&&le.d(T),Le=!1,Be(Je)}}}function ur(e){let t,n,r,i=e[24]("receipt.maintenance.title")+"",o,s,a,u=e[24]("receipt.maintenance.text")+"",l;return{c(){t=E("div"),t.innerHTML='<div class="ImagePlaceholder Maintenance"></div>',n=G(),r=E("span"),o=j(i),s=G(),a=E("span"),l=j(u),h(t,"slot","icon"),h(r,"slot","title"),h(r,"class","CashierErrorTitle"),h(a,"slot","text"),h(a,"class","CashierErrorText")},m(c,f){B(c,t,f),B(c,n,f),B(c,r,f),C(r,o),B(c,s,f),B(c,a,f),C(a,l)},p(c,f){f[0]&16777216&&i!==(i=c[24]("receipt.maintenance.title")+"")&&W(o,i),f[0]&16777216&&u!==(u=c[24]("receipt.maintenance.text")+"")&&W(l,u)},d(c){c&&(H(t),H(n),H(r),H(s),H(a))}}}function ya(e){let t,n,r,i,o,s,a,u=e[24](`${e[15].type.toLowerCase()}.fail.title`)+"",l,c,f,m=e[24](`${e[15].type.toLowerCase()}.fail.text`)+"",g;return{c(){t=ge("svg"),n=ge("circle"),r=ge("rect"),i=ge("path"),o=G(),s=E("div"),a=E("h3"),l=j(u),c=G(),f=E("p"),g=j(m),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#D14141"),h(n,"fill-opacity","0.12"),h(r,"x","19.335"),h(r,"y","19"),h(r,"width","33.33"),h(r,"height","33.33"),h(r,"rx","16.665"),h(r,"fill","#FF3636"),h(i,"d","M29.085 41.915L41.585 29.415M41.585 41.915L29.085 29.415"),h(i,"stroke","black"),h(i,"stroke-width","2.09016"),h(i,"stroke-linecap","round"),h(i,"stroke-linejoin","round"),h(t,"class","ReceiptStatusIcon failed"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(s,"class","ReceiptStatusText")},m(v,d){B(v,t,d),C(t,n),C(t,r),C(t,i),B(v,o,d),B(v,s,d),C(s,a),C(a,l),C(s,c),C(s,f),C(f,g)},p(v,d){d[0]&16809984&&u!==(u=v[24](`${v[15].type.toLowerCase()}.fail.title`)+"")&&W(l,u),d[0]&16809984&&m!==(m=v[24](`${v[15].type.toLowerCase()}.fail.text`)+"")&&W(g,m)},d(v){v&&(H(t),H(o),H(s))}}}function va(e){let t,n,r,i,o,s,a,u,l,c=e[24](`${e[15].type.toLowerCase()}.pending.title`)+"",f,m,g,v=e[24](`${e[15].type.toLowerCase()}.pending.text`)+"",d,P,O,N=e[24]("refreshButton")+"",A,Y,X;return{c(){t=ge("svg"),n=ge("circle"),r=ge("rect"),i=ge("path"),o=ge("path"),s=ge("path"),a=G(),u=E("div"),l=E("h3"),f=j(c),m=G(),g=E("p"),d=j(v),P=G(),O=E("button"),A=j(N),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#D19A41"),h(n,"fill-opacity","0.12"),h(r,"x","19"),h(r,"y","19"),h(r,"width","34"),h(r,"height","34"),h(r,"rx","17"),h(r,"fill","#FF6836"),h(i,"d","M36 46C30.4771 46 26 41.5228 26 36C26 30.4772 30.4772 26 36 26C40.4776 26 44.2257 28.9429 45.5 33H43"),h(i,"stroke","black"),h(i,"stroke-width","1.5"),h(i,"stroke-linecap","round"),h(i,"stroke-linejoin","round"),h(o,"d","M36 32V36L38 38"),h(o,"stroke","black"),h(o,"stroke-width","1.5"),h(o,"stroke-linecap","round"),h(o,"stroke-linejoin","round"),h(s,"d","M45.9551 37C45.9848 36.6709 46 36.3373 46 36M39 46C39.3416 45.8876 39.6753 45.7564 40 45.6078M44.7906 41C44.9835 40.6284 45.1555 40.2433 45.305 39.8462M42.1925 44.2292C42.5369 43.9441 42.8631 43.6358 43.1688 43.3065"),h(s,"stroke","black"),h(s,"stroke-width","1.5"),h(s,"stroke-linecap","round"),h(s,"stroke-linejoin","round"),h(t,"class","ReceiptStatusIcon pending"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(u,"class","ReceiptStatusText"),h(O,"class","RefreshButton")},m(R,V){B(R,t,V),C(t,n),C(t,r),C(t,i),C(t,o),C(t,s),B(R,a,V),B(R,u,V),C(u,l),C(l,f),C(u,m),C(u,g),C(g,d),B(R,P,V),B(R,O,V),C(O,A),Y||(X=Fe(O,"click",e[27]),Y=!0)},p(R,V){V[0]&16809984&&c!==(c=R[24](`${R[15].type.toLowerCase()}.pending.title`)+"")&&W(f,c),V[0]&16809984&&v!==(v=R[24](`${R[15].type.toLowerCase()}.pending.text`)+"")&&W(d,v),V[0]&16777216&&N!==(N=R[24]("refreshButton")+"")&&W(A,N)},d(R){R&&(H(t),H(a),H(u),H(P),H(O)),Y=!1,X()}}}function Ca(e){let t,n,r,i,o,s,a=e[24](`${e[15].type.toLowerCase()}.success.title`)+"",u,l,c,f=e[24](`${e[15].type.toLowerCase()}.success.text`)+"",m;return{c(){t=ge("svg"),n=ge("circle"),r=ge("path"),i=G(),o=E("div"),s=E("h3"),u=j(a),l=G(),c=E("p"),m=j(f),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#F9C408"),h(n,"fill-opacity","0.12"),h(r,"d","M36.5 19.3333C27.3167 19.3333 19.8333 26.8166 19.8333 36C19.8333 45.1833 27.3167 52.6666 36.5 52.6666C45.6833 52.6666 53.1667 45.1833 53.1667 36C53.1667 26.8166 45.6833 19.3333 36.5 19.3333ZM44.4667 32.1666L35.0167 41.6166C34.7833 41.85 34.4667 41.9833 34.1333 41.9833C33.8 41.9833 33.4833 41.85 33.25 41.6166L28.5333 36.9C28.05 36.4166 28.05 35.6166 28.5333 35.1333C29.0167 34.65 29.8167 34.65 30.3 35.1333L34.1333 38.9666L42.7 30.4C43.1833 29.9166 43.9833 29.9166 44.4667 30.4C44.95 30.8833 44.95 31.6666 44.4667 32.1666Z"),h(r,"fill","#F9C408"),h(t,"class","ReceiptStatusIcon success"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(o,"class","ReceiptStatusText")},m(g,v){B(g,t,v),C(t,n),C(t,r),B(g,i,v),B(g,o,v),C(o,s),C(s,u),C(o,l),C(o,c),C(c,m)},p(g,v){v[0]&16809984&&a!==(a=g[24](`${g[15].type.toLowerCase()}.success.title`)+"")&&W(u,a),v[0]&16809984&&f!==(f=g[24](`${g[15].type.toLowerCase()}.success.text`)+"")&&W(m,f)},d(g){g&&(H(t),H(i),H(o))}}}function lr(e){let t,n=Bt(e[12]),r=[];for(let i=0;i<n.length;i+=1)r[i]=cr(or(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Dt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);B(i,t,o)},p(i,o){if(o[0]&285216768){n=Bt(i[12]);let s;for(s=0;s<n.length;s+=1){const a=or(i,n,s);r[s]?r[s].p(a,o):(r[s]=cr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),xr(r,i)}}}function cr(e){var m;let t,n,r=((m=rr[`${e[73].type}`])!=null?m:"")+"",i,o=e[24](`${e[73].translationKey}`)+"",s,a,u,l,c;function f(){return e[46](e[73])}return{c(){t=E("button"),n=E("div"),i=G(),s=j(o),a=G(),h(n,"class","CustomButtonSvg"),h(t,"class",u=`${e[73].type} GoToButton`)},m(g,v){B(g,t,v),C(t,n),n.innerHTML=r,C(t,i),C(t,s),C(t,a),l||(c=Fe(t,"click",f),l=!0)},p(g,v){var d;e=g,v[0]&4096&&r!==(r=((d=rr[`${e[73].type}`])!=null?d:"")+"")&&(n.innerHTML=r),v[0]&16781312&&o!==(o=e[24](`${e[73].translationKey}`)+"")&&W(s,o),v[0]&4096&&u!==(u=`${e[73].type} GoToButton`)&&h(t,"class",u)},d(g){g&&H(t),l=!1,c()}}}function _a(e){let t=e[24]("backHome")+"",n;return{c(){n=j(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&16777216&&t!==(t=r[24]("backHome")+"")&&W(n,t)},d(r){r&&H(n)}}}function wa(e){let t=e[24](`back${e[15].type}`)+"",n;return{c(){n=j(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&16809984&&t!==(t=r[24](`back${r[15].type}`)+"")&&W(n,t)},d(r){r&&H(n)}}}function fr(e){let t,n=Bt(e[16]),r=[];for(let i=0;i<n.length;i+=1)r[i]=hr(ir(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Dt()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);B(i,t,o)},p(i,o){if(o[0]&537214976){n=Bt(i[16]);let s;for(s=0;s<n.length;s+=1){const a=ir(i,n,s);r[s]?r[s].p(a,o):(r[s]=hr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&H(t),xr(r,i)}}}function xa(e){let t,n=e[70].defaultValue+"",r;return{c(){t=E("span"),r=j(n),h(t,"class","Label")},m(i,o){B(i,t,o),C(t,r)},p(i,o){o[0]&65536&&n!==(n=i[70].defaultValue+"")&&W(r,n)},d(i){i&&H(t)}}}function Ea(e){return{c:ie,m:ie,p:ie,d:ie}}function Sa(e){let t,n=e[70].description+"",r,i,o,s=e[70].name+"",a,u;return{c(){t=E("span"),r=j(n),i=G(),o=E("a"),a=j(s),h(o,"href",u=e[70].defaultValue),h(o,"target","_blank"),h(o,"rel","noopener noreferrer")},m(l,c){B(l,t,c),C(t,r),C(t,i),C(t,o),C(o,a)},p(l,c){c[0]&65536&&n!==(n=l[70].description+"")&&W(r,n),c[0]&65536&&s!==(s=l[70].name+"")&&W(a,s),c[0]&65536&&u!==(u=l[70].defaultValue)&&h(o,"href",u)},d(l){l&&H(t)}}}function Ta(e){let t,n,r;return{c(){t=E("img"),Jt(t.src,n=e[70].defaultValue)||h(t,"src",n),h(t,"title",r=e[70].description),h(t,"alt","")},m(i,o){B(i,t,o)},p(i,o){o[0]&65536&&!Jt(t.src,n=i[70].defaultValue)&&h(t,"src",n),o[0]&65536&&r!==(r=i[70].description)&&h(t,"title",r)},d(i){i&&H(t)}}}function Ha(e){let t,n=e[70].defaultValue+"";return{c(){t=E("span")},m(r,i){B(r,t,i),t.innerHTML=n},p(r,i){i[0]&65536&&n!==(n=r[70].defaultValue+"")&&(t.innerHTML=n)},d(r){r&&H(t)}}}function Ma(e){let t,n,r=e[70].defaultValue+"",i,o,s;function a(){return e[48](e[70])}return{c(){t=E("div"),n=E("div"),i=j(r),h(t,"class","QRCode")},m(u,l){B(u,t,l),C(t,n),C(n,i),e[47](n),o||(s=Fe(t,"click",a),o=!0)},p(u,l){e=u,l[0]&65536&&r!==(r=e[70].defaultValue+"")&&W(i,r)},d(u){u&&H(t),e[47](null),o=!1,s()}}}function hr(e){let t,n;function r(s,a){return s[70].type===s[14].QRCode?Ma:s[70].type===s[14].Html?Ha:s[70].type===s[14].Image?Ta:s[70].type===s[14].Link?Sa:s[70].type===s[14].Hidden?Ea:xa}let i=r(e),o=i(e);return{c(){t=E("div"),o.c(),n=G(),h(t,"class","ReceiptField")},m(s,a){B(s,t,a),o.m(t,null),C(t,n)},p(s,a){i===(i=r(s))&&o?o.p(s,a):(o.d(1),o=i(s),o&&(o.c(),o.m(t,n)))},d(s){s&&H(t),o.d()}}}function Pa(e){let t;function n(o,s){return o[11]?ma:da}let r=n(e),i=r(e);return{c(){t=E("div"),i.c(),h(t,"class","CashierReceiptPageWidget")},m(o,s){B(o,t,s),i.m(t,null),e[49](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:ie,o:ie,d(o){o&&H(t),i.d(),e[49](null)}}}let Ba="_blank";function Aa(e,t,n){let r;mr(e,oi,p=>n(24,r=p)),It.extend(Ys);let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{local:a="en-US"}=t,{showerrors:u="true"}=t,{translationurl:l}=t,{assetsurl:c=""}=t,{customerid:f}=t,{transactionid:m}=t,{currencydecimals:g="0"}=t,{type:v}=t,{clientstyling:d=""}=t,{clientstylingurl:P=""}=t,{mbsource:O=""}=t,{showverifications:N="true"}=t,{paymentmethod:A=""}=t,Y=!1,X,{customsucceessbuttons:R=""}=t,{custompendingbuttons:V=""}=t,{customfailedbuttons:pe=""}=t,{currencysymbol:ue=""}=t,{currencyposition:q=""}=t,{userroles:L=""}=t,{windowsize:be}=t,{p2p:Se="false"}=t,S=[],_=[];var b;(function(p){p.Success="Success",p.Maintenance="Maintenance"})(b||(b={}));var y;(function(p){p.Unknown="Unknown",p.Text="Text",p.Boolean="Boolean",p.Number="Number",p.Money="Money",p.DateTime="DateTime",p.Lookup="Lookup",p.IpAddress="IpAddress",p.Date="Date",p.Time="Time",p.LookupCollection="LookupCollection",p.Hidden="Hidden",p.Label="Label",p.Password="Password",p.Link="Link",p.Image="Image",p.Html="Html",p.QRCode="QR"})(y||(y={}));const w=(p,[ne,we])=>[...p,...Array.isArray(ne)?[...ne.map(re=>[re,we])]:[[ne,we]]],M=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(w,[]));let x,$=[],z,I,Q=[],ee,de,ce="",Ce=window.navigator.userAgent,fe=!1;const te={promotions:{event:"Cashier:goToPromotions",translationKey:"goToPromotions",type:"PromotionsButton"},tournaments:{event:"Cashier:goToTournaments",translationKey:"goToTournaments",type:"TournamentsButton"},support:{event:"Cashier:goToContact",translationKey:"goToSupport",type:"SupportButton"},merchanthomepage:{event:"Cashier:goToVendorWebsite",translationKey:"goToMerchantHomePage",type:"MerchantHomePageButton"},sports:{event:"Cashier:goToSports",translationKey:"goToSports",type:"SportsButton"},casino:{event:"Cashier:goToCasino",translationKey:"goToCasino",type:"CasinoButton"},livecasino:{event:"Cashier:goToLiveCasino",translationKey:"goToLiveCasino",type:"LiveCasinoButton"},externallink:{event:"Cashier:externalRedirect",translationKey:"externalLink",type:"ExternalLinkButton"},documentupload:{event:"Cashier:uploadDocuments",translationKey:"uploadDocuments",type:"UploadDocumentButton"},home:{event:"Cashier:goToHome",translationKey:"goToHomepage",type:"HomeButton"},close:{event:"CloseCashierReceiptPage",translationKey:"close",type:"CloseButton"}},oe=p=>{n(12,S=[]),p.split(",").forEach(we=>{te[we.trim()]&&S.push(te[we.trim()])})},me=()=>{Us(s)};Sr(()=>(window.addEventListener("message",_e,!1),la(a,ue,q,g),()=>{window.removeEventListener("message",_e)}));const _e=p=>{var ne;switch(p.data.type){case"CloseReceiptInSecondTab":(ne=window.opener)==null||ne.postMessage(p.data);break}},Te=()=>{let p=l;if(p)return fetch(p).then(ne=>ne.json()).then(ne=>{Object.keys(ne).forEach(we=>{zn(we,ne[we])})}).catch(()=>{})};Object.keys(Zn).forEach(p=>{zn(p,Zn[p])});const Qe=()=>{window.postMessage({type:"CloseCashierReceiptPage"},window.location.href)},Re=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:ee,showErrorOutsideReceiptPage:de},window.location.href)},Le=()=>{const p=new URL(`${i}/v1/player/${f}/payment/GetPaymentInfo`),ne=new Headers;ne.append("accept","application/json"),ne.append("Content-Type","application/json"),ne.append("X-SessionId",`${o}`),ne.append("X-Client-Request-Timestamp",It.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),_.indexOf("MM_CHANNEL_BETA")!=-1&&ne.append("MM_CHANNEL","BETA");const we={method:"POST",headers:ne,body:JSON.stringify({TransactionCode:m})};n(11,Y=!0),fetch(p,we).then(re=>re.json()).then(re=>{var mt,En,Sn,Tn;if(re.ResponseCode!==b.Success){n(19,ee=re.ResponseCode),n(20,de=u.toLowerCase()==="false"||!u),Re();return}switch(n(15,x={type:re.Transaction.Type,referenceId:re.Transaction.Code,status:(mt=re.Transaction.Status)==null?void 0:mt.Status,message:(En=re.Transaction.Status)==null?void 0:En.Message,amount:(Sn=re.Transaction.Amounts[0])==null?void 0:Sn.Amount,currency:(Tn=re.Transaction.Amounts[0])==null?void 0:Tn.Currency,time:re.Transaction.Status.Created}),n(16,$=re.ReceiptInfo&&re.ReceiptInfo.ReceiptFields?re.ReceiptInfo.ReceiptFields.map(De=>({type:M.get(De.Type),name:De.Name,description:De.Description,defaultValue:De.DefaultValue,useCopyButton:De.UseCopyButton,usePrintButton:De.UsePrintButton})):[]),re.ReceiptInfo&&re.ReceiptInfo.ReceiptFields&&!A&&n(0,A=$[0].defaultValue),r(Gs(x.status,x.type),{values:{errorText:x.message}}),n(17,z=ca(Number(x.amount),x.currency)),x.status){case"Voided":case"Success":oe(R||"casino, livecasino, tournaments"),n(21,ce="success"),nr(x.type==="Deposit"?"deposit_success":"withdrawal_success",{userID:f,amount:x.amount,currency:x.currency,failureReason:x.message});break;case"PendingNotification":case"PendingConfirmation":case"PendingApprovalStage1":case"PendingApprovalStage2":case"PendingApprovalStage3":case"PendingOfflineNotification":oe(V||"casino, livecasino, tournaments"),n(21,ce="pending");break;case"Rejected":case"Cancelled":case"Failed":oe(pe||"casino, livecasino, tournaments"),n(21,ce=x.status.toLowerCase()),nr(x.type==="Deposit"?"deposit_failed":"withdrawal_failed",{userID:f,amount:x.amount,currency:x.currency,failureReason:x.message}),N==="true"&&n(22,fe=!0);break;default:oe("close")}c?js(c,x.status):Fs(x.status)}).finally(()=>n(11,Y=!1))},Je=p=>{window.postMessage({type:p},window.location.href)},Ke=p=>{p&&window.postMessage({type:"NavigateTo",path:p,target:Ba,externalLink:!1},window.location.href)};let xe,se;const ae=(p,ne=!0)=>Ft(this,null,function*(){const re=p.currentTarget.innerHTML;if(re&&navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(re),ne&&(n(23,xe=!0),clearTimeout(se),se=setTimeout(()=>{n(23,xe=!1)},2e3))}catch(mt){console.error("Clipboard API failed:",mt)}}),dt=()=>{L.length>0&&(_=L.split(","))},Ie=p=>ae(p),ye=p=>Je(p.event);function le(p){at[p?"unshift":"push"](()=>{Q[Q.length]=p,n(18,Q)})}const T=p=>{Ke(p.description)};function U(p){at[p?"unshift":"push"](()=>{I=p,n(10,I)})}return e.$$set=p=>{"endpoint"in p&&n(1,i=p.endpoint),"session"in p&&n(2,o=p.session),"lang"in p&&n(3,s=p.lang),"local"in p&&n(31,a=p.local),"showerrors"in p&&n(32,u=p.showerrors),"translationurl"in p&&n(4,l=p.translationurl),"assetsurl"in p&&n(5,c=p.assetsurl),"customerid"in p&&n(6,f=p.customerid),"transactionid"in p&&n(33,m=p.transactionid),"currencydecimals"in p&&n(34,g=p.currencydecimals),"type"in p&&n(35,v=p.type),"clientstyling"in p&&n(7,d=p.clientstyling),"clientstylingurl"in p&&n(8,P=p.clientstylingurl),"mbsource"in p&&n(36,O=p.mbsource),"showverifications"in p&&n(9,N=p.showverifications),"paymentmethod"in p&&n(0,A=p.paymentmethod),"customsucceessbuttons"in p&&n(37,R=p.customsucceessbuttons),"custompendingbuttons"in p&&n(38,V=p.custompendingbuttons),"customfailedbuttons"in p&&n(39,pe=p.customfailedbuttons),"currencysymbol"in p&&n(40,ue=p.currencysymbol),"currencyposition"in p&&n(41,q=p.currencyposition),"userroles"in p&&n(42,L=p.userroles),"windowsize"in p&&n(43,be=p.windowsize),"p2p"in p&&n(44,Se=p.p2p)},e.$$.update=()=>{e.$$.dirty[1]&2048&&L&&dt(),e.$$.dirty[0]&70|e.$$.dirty[1]&6&&i&&o&&f&&m&&u&&Le(),e.$$.dirty[0]&8&&s&&me(),e.$$.dirty[0]&24&&s&&l&&Te(),e.$$.dirty[0]&1152&&d&&I&&gi(I,d),e.$$.dirty[0]&1280&&P&&I&&bi(I,P),e.$$.dirty[0]&1024|e.$$.dirty[1]&32&&O&&I&&yi(I,`${O}.Style`,X)},[A,i,o,s,l,c,f,d,P,N,I,Y,S,b,y,x,$,z,Q,ee,de,ce,fe,xe,r,Ce,Qe,Le,Je,Ke,ae,a,u,m,g,v,O,R,V,pe,ue,q,L,be,Se,Ie,ye,le,T,U]}class vi extends Or{constructor(t){super(),Pr(this,t,Aa,Pa,bn,{endpoint:1,session:2,lang:3,local:31,showerrors:32,translationurl:4,assetsurl:5,customerid:6,transactionid:33,currencydecimals:34,type:35,clientstyling:7,clientstylingurl:8,mbsource:36,showverifications:9,paymentmethod:0,customsucceessbuttons:37,custompendingbuttons:38,customfailedbuttons:39,currencysymbol:40,currencyposition:41,userroles:42,windowsize:43,p2p:44},pa,[-1,-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),Z()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),Z()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),Z()}get local(){return this.$$.ctx[31]}set local(t){this.$$set({local:t}),Z()}get showerrors(){return this.$$.ctx[32]}set showerrors(t){this.$$set({showerrors:t}),Z()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),Z()}get assetsurl(){return this.$$.ctx[5]}set assetsurl(t){this.$$set({assetsurl:t}),Z()}get customerid(){return this.$$.ctx[6]}set customerid(t){this.$$set({customerid:t}),Z()}get transactionid(){return this.$$.ctx[33]}set transactionid(t){this.$$set({transactionid:t}),Z()}get currencydecimals(){return this.$$.ctx[34]}set currencydecimals(t){this.$$set({currencydecimals:t}),Z()}get type(){return this.$$.ctx[35]}set type(t){this.$$set({type:t}),Z()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),Z()}get showverifications(){return this.$$.ctx[9]}set showverifications(t){this.$$set({showverifications:t}),Z()}get paymentmethod(){return this.$$.ctx[0]}set paymentmethod(t){this.$$set({paymentmethod:t}),Z()}get customsucceessbuttons(){return this.$$.ctx[37]}set customsucceessbuttons(t){this.$$set({customsucceessbuttons:t}),Z()}get custompendingbuttons(){return this.$$.ctx[38]}set custompendingbuttons(t){this.$$set({custompendingbuttons:t}),Z()}get customfailedbuttons(){return this.$$.ctx[39]}set customfailedbuttons(t){this.$$set({customfailedbuttons:t}),Z()}get currencysymbol(){return this.$$.ctx[40]}set currencysymbol(t){this.$$set({currencysymbol:t}),Z()}get currencyposition(){return this.$$.ctx[41]}set currencyposition(t){this.$$set({currencyposition:t}),Z()}get userroles(){return this.$$.ctx[42]}set userroles(t){this.$$set({userroles:t}),Z()}get windowsize(){return this.$$.ctx[43]}set windowsize(t){this.$$set({windowsize:t}),Z()}get p2p(){return this.$$.ctx[44]}set p2p(t){this.$$set({p2p:t}),Z()}}Ar(vi,{endpoint:{},session:{},lang:{},local:{},showerrors:{},translationurl:{},assetsurl:{},customerid:{},transactionid:{},currencydecimals:{},type:{},clientstyling:{},clientstylingurl:{},mbsource:{},showverifications:{},paymentmethod:{},customsucceessbuttons:{},custompendingbuttons:{},customfailedbuttons:{},currencysymbol:{},currencyposition:{},userroles:{},windowsize:{},p2p:{}},[],[],!0);const Oa=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"}));exports.$format=oi;exports.$locale=Oe;exports.CashierReceiptPage_ce=Oa;exports.SvelteComponent=Or;exports.addMessages=wn;exports.append=C;exports.append_styles=_r;exports.attr=h;exports.binding_callbacks=at;exports.component_subscribe=mr;exports.create_custom_element=Ar;exports.create_slot=Hi;exports.detach=H;exports.element=E;exports.empty=Dt;exports.flush=Z;exports.get_all_dirty_from_scope=Bi;exports.get_slot_changes=Mi;exports.init=ni;exports.init$1=Pr;exports.insert=B;exports.listen=Fe;exports.onMount=Sr;exports.safe_not_equal=bn;exports.setClientStyling=gi;exports.setClientStylingURL=bi;exports.setStreamStyling=yi;exports.set_custom_element_data=F;exports.set_data=W;exports.space=G;exports.src_url_equal=Jt;exports.text=j;exports.transition_in=Pt;exports.transition_out=Hr;exports.update_slot_base=Pi;
48
+ `};if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CashierError-CGLAkDGv.cjs")).then(({default:t})=>{!customElements.get("cashier-error")&&customElements.define("cashier-error",t.element)})}function va(e){Mr(e,"svelte-nkabfs",'.LoadingOverlay{width:100%;height:100%;display:flex;position:relative;top:0;left:0;justify-content:center;align-items:center;z-index:100;background:transparent}.CopyTooltip{transform:translateX(-50%);color:var(--emw--color-typography, #fff);opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:15px;position:fixed;left:50%;top:40%;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:#12191f;max-width:600px;z-index:3;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3)}.CopyTooltip::before{content:"";position:absolute;inset:0;opacity:0.2;z-index:-1;pointer-events:none;border-radius:10px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-black, #12191f) 65%)}.Spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top:4px solid var(--emw--color-primary, #f9c405);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.CashierReceiptPageWidget{position:relative}.CashierReceiptPage{border-radius:var(--emw--border-radius-medium-plus, 6px);background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word;display:flex;flex-direction:column;justify-content:space-between;height:100%}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.ReceiptWrapper .ImagePlaceholder{height:100%;width:100%;background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.success{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.fail{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.pending{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.cancel{background:#e6e6e6}.ReceiptWrapper .ImagePlaceholder.rejected{background:#e6e6e6}.ReceiptStatusWrapper{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 30px 0;gap:10px}.ReceiptStatusWrapper .ReceiptStatusIcon.success svg,.ReceiptStatusWrapper .ReceiptStatusIcon.success circle,.ReceiptStatusWrapper .ReceiptStatusIcon.success path{fill:var(--emw--color-valid, #41d195)}.ReceiptStatusWrapper .ReceiptStatusIcon.pending svg,.ReceiptStatusWrapper .ReceiptStatusIcon.pending circle,.ReceiptStatusWrapper .ReceiptStatusIcon.pending path{fill:var(--emw--color-pending, #ff6836)}.ReceiptStatusWrapper .ReceiptStatusIcon.failed svg,.ReceiptStatusWrapper .ReceiptStatusIcon.failed circle,.ReceiptStatusWrapper .ReceiptStatusIcon.failed path{fill:var(--emw--color-error, #ff3636)}.ReceiptStatusWrapper .ReceiptStatusText{text-align:center}.ReceiptStatusWrapper .ReceiptStatusText h3,.ReceiptStatusWrapper .ReceiptStatusText p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));padding:0;margin:10px}.ReceiptStatusWrapper .ReceiptStatusText p{font-size:14px;font-weight:200}.ReceiptStatusWrapper .TryAgainBtn,.ReceiptStatusWrapper .RefreshButton{border-radius:20px;padding:7px 20px;border:none;box-shadow:inset 0px 0px 0px 2px rgba(255, 226, 123, 0.3);color:var(--emw--color-white, #ffffff);background-color:rgba(249, 196, 8, 0.3019607843)}.ReceiptDetailsWrapper{position:relative;display:flex;flex-direction:column;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:20px;margin:10px;z-index:1}.ReceiptDetailsWrapper::before{content:"";position:absolute;inset:0;opacity:0.3;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ReceiptDetailsWrapper .TxnId{cursor:pointer}.ReceiptDetailsWrapper .TxnId .TxnIdText{overflow:hidden;text-overflow:ellipsis;display:inline-block;white-space:nowrap}.ReceiptDetailsWrapper .Amount,.ReceiptDetailsWrapper .Status,.ReceiptDetailsWrapper .TxnId,.ReceiptDetailsWrapper .PaymentMethod,.ReceiptDetailsWrapper .PaymentTime{display:flex;justify-content:space-between;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff))}.ReceiptDetailsWrapper .Amount p,.ReceiptDetailsWrapper .Status p,.ReceiptDetailsWrapper .TxnId p,.ReceiptDetailsWrapper .PaymentMethod p,.ReceiptDetailsWrapper .PaymentTime p{font-weight:200;font-size:12px;margin-right:5px;width:auto}.ReceiptDetailsWrapper .Amount span,.ReceiptDetailsWrapper .Status span,.ReceiptDetailsWrapper .TxnId span,.ReceiptDetailsWrapper .PaymentMethod span,.ReceiptDetailsWrapper .PaymentTime span{font-size:12px;word-break:break-all;font-weight:500;max-width:70%;text-align:right}.ReceiptDetailsWrapper .Status{border-bottom:1px solid rgba(255, 255, 255, 0.276);padding-bottom:10px}.ReceiptDetailsWrapper .Status span{padding:10px;font-size:var(--emw--font-size-small, 12px);border-radius:16px}.ReceiptDetailsWrapper .Status.success span{background-color:rgba(65, 209, 149, 0.1215686275);color:var(--emw--color-valid, #41d195)}.ReceiptDetailsWrapper .Status.pending span{background-color:rgba(255, 104, 54, 0.1215686275);color:var(--emw--color-pending, #ff6836)}.ReceiptDetailsWrapper .Status.failed span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .Status.rejected span{background-color:rgba(209, 65, 65, 0.1215686275);color:var(--emw--color-error, #ff3636)}.ReceiptDetailsWrapper .TxnId{margin-top:15px}.TitleWrapper{display:flex;position:absolute;left:0;bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-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-medium, 16px);color:var(--emw--color-gray-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px) 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-10, #111)}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:130%;text-align:center}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.Reference{color:var(--emw--color-gray-290, #666);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);margin:0}.ReceiptButtonsWrapper{display:grid;grid-template-columns:1fr 1fr 1fr;height:75px;gap:8px;margin:0 10px}.ReceiptButtonsWrapper .GoToButton{cursor:pointer;border-radius:8px;border:none;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-gey-600, rgba(237, 237, 237, 0.0784313725));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px;transition:all 0.3s ease}.ReceiptButtonsWrapper .GoToButton:hover,.ReceiptButtonsWrapper .GoToButton:active{transform:scale(1.05)}.DefaultButton{text-transform:uppercase;font-weight:var(--emw--font-weight-semibold, 600);color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border:none;background:var(--emw--color-primary, #f9c408);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 12px);min-height:44px;font-size:var(--emw--font-size-medium, 16px);font-family:inherit;margin:20px 10px;width:calc(100% - 20px);transition:background 0.3s ease}.DefaultButton:hover{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-hover, #dbac03)}.DefaultButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background:var(--emw--color-active, #fecd1c)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;top: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-medium, 16px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}@media(min-width: 750px){.CashierReceiptPage{background-color:transparent}.CashierReceiptPageWidget{position:absolute;width:calc(100% - 20px)}}.CustomButtonSvg svg{width:32px;height:32px;fill:var(--emw--color-primary)}')}function cr(e,t,n){const r=e.slice();return r[70]=t[n],r[72]=n,r}function fr(e,t,n){const r=e.slice();return r[73]=t[n],r}function Ca(e){let t,n,r=ar(e[25])&&e[9]&&e[22],i,o=e[23]&&hr(e),s=r&&pr(e);function a(c,f){if(c[15])return xa;if(c[19]&&!c[20])return wa}let u=a(e),l=u&&u(e);return{c(){o&&o.c(),t=G(),n=E("div"),s&&s.c(),i=G(),l&&l.c(),h(n,"class","CashierReceiptPage")},m(c,f){o&&o.m(c,f),B(c,t,f),B(c,n,f),s&&s.m(n,null),C(n,i),l&&l.m(n,null)},p(c,f){c[23]?o?(o.p(c,f),f[0]&8388608&&Bt(o,1)):(o=hr(c),o.c(),Bt(o,1),o.m(t.parentNode,t)):o&&(Xi(),Rr(o,1,1,()=>{o=null}),qi()),f[0]&4194816&&(r=ar(c[25])&&c[9]&&c[22]),r?s?s.p(c,f):(s=pr(c),s.c(),s.m(n,i)):s&&(s.d(1),s=null),u===(u=a(c))&&l?l.p(c,f):(l&&l.d(1),l=u&&u(c),l&&(l.c(),l.m(n,null)))},d(c){c&&(M(t),M(n)),o&&o.d(c),s&&s.d(),l&&l.d()}}}function _a(e){let t;return{c(){t=E("div"),t.innerHTML='<div class="Spinner"></div>',h(t,"class","LoadingOverlay")},m(n,r){B(n,t,r)},p:ie,d(n){n&&M(t)}}}function hr(e){let t,n=e[24]("copyTransactionId")+"",r,i,o,s;return{c(){t=E("div"),r=j(n),h(t,"class","CopyTooltip")},m(a,u){B(a,t,u),C(t,r),s=!0},p(a,u){(!s||u[0]&16777216)&&n!==(n=a[24]("copyTransactionId")+"")&&W(r,n)},i(a){s||(a&&Ve(()=>{s&&(o&&o.end(1),i=Qi(t,$n,{duration:100}),i.start())}),s=!0)},o(a){i&&i.invalidate(),a&&(o=Ji(t,$n,{duration:1e3})),s=!1},d(a){a&&M(t),a&&o&&o.end()}}}function pr(e){let t;return{c(){t=E("cashier-verifications"),F(t,"lang",e[3]),F(t,"translationurl",e[4]),F(t,"endpoint",e[1]),F(t,"clientstylingurl",e[8]),F(t,"clientstyling",e[7]),F(t,"customerid",e[6]),F(t,"playersession",e[2])},m(n,r){B(n,t,r)},p(n,r){r[0]&8&&F(t,"lang",n[3]),r[0]&16&&F(t,"translationurl",n[4]),r[0]&2&&F(t,"endpoint",n[1]),r[0]&256&&F(t,"clientstylingurl",n[8]),r[0]&128&&F(t,"clientstyling",n[7]),r[0]&64&&F(t,"customerid",n[6]),r[0]&4&&F(t,"playersession",n[2])},d(n){n&&M(t)}}}function wa(e){let t,n=e[19]===e[13].Maintenance&&dr(e);return{c(){t=E("cashier-error"),n&&n.c(),F(t,"assetsurl",e[5]),F(t,"translationurl",e[4]),F(t,"clientstylingurl",e[8]),F(t,"clientstyling",e[7]),F(t,"lang",e[3]),F(t,"hidebuttons","true"),F(t,"errorcode",e[19])},m(r,i){B(r,t,i),n&&n.m(t,null)},p(r,i){r[19]===r[13].Maintenance?n?n.p(r,i):(n=dr(r),n.c(),n.m(t,null)):n&&(n.d(1),n=null),i[0]&32&&F(t,"assetsurl",r[5]),i[0]&16&&F(t,"translationurl",r[4]),i[0]&256&&F(t,"clientstylingurl",r[8]),i[0]&128&&F(t,"clientstyling",r[7]),i[0]&8&&F(t,"lang",r[3]),i[0]&524288&&F(t,"errorcode",r[19])},d(r){r&&M(t),n&&n.d()}}}function xa(e){let t,n,r,i,o,s=e[24]("amount")+"",a,u,l,c,f,m,g,v=e[24]("status")+"",d,P,O,N=e[24](`${e[21]}`)+"",A,Y,X,R,V,pe=e[24]("transactionId")+"",ue,q,L,be=e[15].referenceId+"",Se,S,_,b,y=e[24]("payemntMethod")+"",w,H,x,$,z,I,Q,te=e[24]("paymentTime")+"",de,ce,Ce,fe=Dt(e[15].time).format("MMM DD, YYYY, HH:mm:ss")+"",ne,oe,me,_e,Te,Je,Le,Ie,Ke;function et(T,U){if(T[21]==="success")return Ta;if(T[21]==="pending")return Sa;if(T[21]==="failed"||T[21]==="rejected"||T[21]==="canceled")return Ea}let xe=et(e),se=xe&&xe(e),ae=e[12].length>0&&mr(e);function mt(T,U){return T[15].type?Ha:Ma}let De=mt(e),ye=De(e),le=e[16].length&&br(e);return{c(){t=E("div"),se&&se.c(),n=G(),r=E("div"),i=E("div"),o=E("p"),a=j(s),u=G(),l=E("span"),c=j(e[17]),f=G(),m=E("div"),g=E("p"),d=j(v),P=G(),O=E("span"),A=j(N),X=G(),R=E("div"),V=E("p"),ue=j(pe),q=G(),L=E("span"),Se=j(be),S=G(),_=E("div"),b=E("p"),w=j(y),H=G(),x=E("span"),$=j(e[0]),z=G(),I=E("div"),Q=E("p"),de=j(te),ce=G(),Ce=E("span"),ne=j(fe),oe=G(),me=E("div"),ae&&ae.c(),_e=G(),Te=E("button"),ye.c(),Je=G(),le&&le.c(),Le=$t(),h(t,"class","ReceiptStatusWrapper"),h(i,"class","Amount"),h(m,"class",Y=`Status ${e[21]}`),h(L,"class","TxnIdText"),h(R,"class","TxnId"),h(_,"class","PaymentMethod"),h(I,"class","PaymentTime"),h(r,"class","ReceiptDetailsWrapper"),h(me,"class","ReceiptButtonsWrapper"),h(Te,"class","DefaultButton")},m(T,U){B(T,t,U),se&&se.m(t,null),B(T,n,U),B(T,r,U),C(r,i),C(i,o),C(o,a),C(i,u),C(i,l),C(l,c),C(r,f),C(r,m),C(m,g),C(g,d),C(m,P),C(m,O),C(O,A),C(r,X),C(r,R),C(R,V),C(V,ue),C(R,q),C(R,L),C(L,Se),C(r,S),C(r,_),C(_,b),C(b,w),C(_,H),C(_,x),C(x,$),C(r,z),C(r,I),C(I,Q),C(Q,de),C(I,ce),C(I,Ce),C(Ce,ne),B(T,oe,U),B(T,me,U),ae&&ae.m(me,null),B(T,_e,U),B(T,Te,U),ye.m(Te,null),B(T,Je,U),le&&le.m(T,U),B(T,Le,U),Ie||(Ke=[We(L,"click",e[45]),We(Te,"click",e[26])],Ie=!0)},p(T,U){xe===(xe=et(T))&&se?se.p(T,U):(se&&se.d(1),se=xe&&xe(T),se&&(se.c(),se.m(t,null))),U[0]&16777216&&s!==(s=T[24]("amount")+"")&&W(a,s),U[0]&131072&&W(c,T[17]),U[0]&16777216&&v!==(v=T[24]("status")+"")&&W(d,v),U[0]&18874368&&N!==(N=T[24](`${T[21]}`)+"")&&W(A,N),U[0]&2097152&&Y!==(Y=`Status ${T[21]}`)&&h(m,"class",Y),U[0]&16777216&&pe!==(pe=T[24]("transactionId")+"")&&W(ue,pe),U[0]&32768&&be!==(be=T[15].referenceId+"")&&W(Se,be),U[0]&16777216&&y!==(y=T[24]("payemntMethod")+"")&&W(w,y),U[0]&1&&W($,T[0]),U[0]&16777216&&te!==(te=T[24]("paymentTime")+"")&&W(de,te),U[0]&32768&&fe!==(fe=Dt(T[15].time).format("MMM DD, YYYY, HH:mm:ss")+"")&&W(ne,fe),T[12].length>0?ae?ae.p(T,U):(ae=mr(T),ae.c(),ae.m(me,null)):ae&&(ae.d(1),ae=null),De===(De=mt(T))&&ye?ye.p(T,U):(ye.d(1),ye=De(T),ye&&(ye.c(),ye.m(Te,null))),T[16].length?le?le.p(T,U):(le=br(T),le.c(),le.m(Le.parentNode,Le)):le&&(le.d(1),le=null)},d(T){T&&(M(t),M(n),M(r),M(oe),M(me),M(_e),M(Te),M(Je),M(Le)),se&&se.d(),ae&&ae.d(),ye.d(),le&&le.d(T),Ie=!1,Ae(Ke)}}}function dr(e){let t,n,r,i=e[24]("receipt.maintenance.title")+"",o,s,a,u=e[24]("receipt.maintenance.text")+"",l;return{c(){t=E("div"),t.innerHTML='<div class="ImagePlaceholder Maintenance"></div>',n=G(),r=E("span"),o=j(i),s=G(),a=E("span"),l=j(u),h(t,"slot","icon"),h(r,"slot","title"),h(r,"class","CashierErrorTitle"),h(a,"slot","text"),h(a,"class","CashierErrorText")},m(c,f){B(c,t,f),B(c,n,f),B(c,r,f),C(r,o),B(c,s,f),B(c,a,f),C(a,l)},p(c,f){f[0]&16777216&&i!==(i=c[24]("receipt.maintenance.title")+"")&&W(o,i),f[0]&16777216&&u!==(u=c[24]("receipt.maintenance.text")+"")&&W(l,u)},d(c){c&&(M(t),M(n),M(r),M(s),M(a))}}}function Ea(e){let t,n,r,i,o,s,a,u=e[24](`${e[15].type.toLowerCase()}.fail.title`)+"",l,c,f,m=e[24](`${e[15].type.toLowerCase()}.fail.text`)+"",g;return{c(){t=ge("svg"),n=ge("circle"),r=ge("rect"),i=ge("path"),o=G(),s=E("div"),a=E("h3"),l=j(u),c=G(),f=E("p"),g=j(m),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#D14141"),h(n,"fill-opacity","0.12"),h(r,"x","19.335"),h(r,"y","19"),h(r,"width","33.33"),h(r,"height","33.33"),h(r,"rx","16.665"),h(r,"fill","#FF3636"),h(i,"d","M29.085 41.915L41.585 29.415M41.585 41.915L29.085 29.415"),h(i,"stroke","black"),h(i,"stroke-width","2.09016"),h(i,"stroke-linecap","round"),h(i,"stroke-linejoin","round"),h(t,"class","ReceiptStatusIcon failed"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(s,"class","ReceiptStatusText")},m(v,d){B(v,t,d),C(t,n),C(t,r),C(t,i),B(v,o,d),B(v,s,d),C(s,a),C(a,l),C(s,c),C(s,f),C(f,g)},p(v,d){d[0]&16809984&&u!==(u=v[24](`${v[15].type.toLowerCase()}.fail.title`)+"")&&W(l,u),d[0]&16809984&&m!==(m=v[24](`${v[15].type.toLowerCase()}.fail.text`)+"")&&W(g,m)},d(v){v&&(M(t),M(o),M(s))}}}function Sa(e){let t,n,r,i,o,s,a,u,l,c=e[24](`${e[15].type.toLowerCase()}.pending.title`)+"",f,m,g,v=e[24](`${e[15].type.toLowerCase()}.pending.text`)+"",d,P,O,N=e[24]("refreshButton")+"",A,Y,X;return{c(){t=ge("svg"),n=ge("circle"),r=ge("rect"),i=ge("path"),o=ge("path"),s=ge("path"),a=G(),u=E("div"),l=E("h3"),f=j(c),m=G(),g=E("p"),d=j(v),P=G(),O=E("button"),A=j(N),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#D19A41"),h(n,"fill-opacity","0.12"),h(r,"x","19"),h(r,"y","19"),h(r,"width","34"),h(r,"height","34"),h(r,"rx","17"),h(r,"fill","#FF6836"),h(i,"d","M36 46C30.4771 46 26 41.5228 26 36C26 30.4772 30.4772 26 36 26C40.4776 26 44.2257 28.9429 45.5 33H43"),h(i,"stroke","black"),h(i,"stroke-width","1.5"),h(i,"stroke-linecap","round"),h(i,"stroke-linejoin","round"),h(o,"d","M36 32V36L38 38"),h(o,"stroke","black"),h(o,"stroke-width","1.5"),h(o,"stroke-linecap","round"),h(o,"stroke-linejoin","round"),h(s,"d","M45.9551 37C45.9848 36.6709 46 36.3373 46 36M39 46C39.3416 45.8876 39.6753 45.7564 40 45.6078M44.7906 41C44.9835 40.6284 45.1555 40.2433 45.305 39.8462M42.1925 44.2292C42.5369 43.9441 42.8631 43.6358 43.1688 43.3065"),h(s,"stroke","black"),h(s,"stroke-width","1.5"),h(s,"stroke-linecap","round"),h(s,"stroke-linejoin","round"),h(t,"class","ReceiptStatusIcon pending"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(u,"class","ReceiptStatusText"),h(O,"class","RefreshButton")},m(R,V){B(R,t,V),C(t,n),C(t,r),C(t,i),C(t,o),C(t,s),B(R,a,V),B(R,u,V),C(u,l),C(l,f),C(u,m),C(u,g),C(g,d),B(R,P,V),B(R,O,V),C(O,A),Y||(X=We(O,"click",e[27]),Y=!0)},p(R,V){V[0]&16809984&&c!==(c=R[24](`${R[15].type.toLowerCase()}.pending.title`)+"")&&W(f,c),V[0]&16809984&&v!==(v=R[24](`${R[15].type.toLowerCase()}.pending.text`)+"")&&W(d,v),V[0]&16777216&&N!==(N=R[24]("refreshButton")+"")&&W(A,N)},d(R){R&&(M(t),M(a),M(u),M(P),M(O)),Y=!1,X()}}}function Ta(e){let t,n,r,i,o,s,a=e[24](`${e[15].type.toLowerCase()}.success.title`)+"",u,l,c,f=e[24](`${e[15].type.toLowerCase()}.success.text`)+"",m;return{c(){t=ge("svg"),n=ge("circle"),r=ge("path"),i=G(),o=E("div"),s=E("h3"),u=j(a),l=G(),c=E("p"),m=j(f),h(n,"cx","36"),h(n,"cy","36"),h(n,"r","36"),h(n,"fill","#F9C408"),h(n,"fill-opacity","0.12"),h(r,"d","M36.5 19.3333C27.3167 19.3333 19.8333 26.8166 19.8333 36C19.8333 45.1833 27.3167 52.6666 36.5 52.6666C45.6833 52.6666 53.1667 45.1833 53.1667 36C53.1667 26.8166 45.6833 19.3333 36.5 19.3333ZM44.4667 32.1666L35.0167 41.6166C34.7833 41.85 34.4667 41.9833 34.1333 41.9833C33.8 41.9833 33.4833 41.85 33.25 41.6166L28.5333 36.9C28.05 36.4166 28.05 35.6166 28.5333 35.1333C29.0167 34.65 29.8167 34.65 30.3 35.1333L34.1333 38.9666L42.7 30.4C43.1833 29.9166 43.9833 29.9166 44.4667 30.4C44.95 30.8833 44.95 31.6666 44.4667 32.1666Z"),h(r,"fill","#F9C408"),h(t,"class","ReceiptStatusIcon success"),h(t,"width","72"),h(t,"height","72"),h(t,"viewBox","0 0 72 72"),h(t,"fill","none"),h(t,"xmlns","http://www.w3.org/2000/svg"),h(o,"class","ReceiptStatusText")},m(g,v){B(g,t,v),C(t,n),C(t,r),B(g,i,v),B(g,o,v),C(o,s),C(s,u),C(o,l),C(o,c),C(c,m)},p(g,v){v[0]&16809984&&a!==(a=g[24](`${g[15].type.toLowerCase()}.success.title`)+"")&&W(u,a),v[0]&16809984&&f!==(f=g[24](`${g[15].type.toLowerCase()}.success.text`)+"")&&W(m,f)},d(g){g&&(M(t),M(i),M(o))}}}function mr(e){let t,n=At(e[12]),r=[];for(let i=0;i<n.length;i+=1)r[i]=gr(fr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);B(i,t,o)},p(i,o){if(o[0]&285216768){n=At(i[12]);let s;for(s=0;s<n.length;s+=1){const a=fr(i,n,s);r[s]?r[s].p(a,o):(r[s]=gr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&M(t),Pr(r,i)}}}function gr(e){var m;let t,n,r=((m=lr[`${e[73].type}`])!=null?m:"")+"",i,o=e[24](`${e[73].translationKey}`)+"",s,a,u,l,c;function f(){return e[46](e[73])}return{c(){t=E("button"),n=E("div"),i=G(),s=j(o),a=G(),h(n,"class","CustomButtonSvg"),h(t,"class",u=`${e[73].type} GoToButton`)},m(g,v){B(g,t,v),C(t,n),n.innerHTML=r,C(t,i),C(t,s),C(t,a),l||(c=We(t,"click",f),l=!0)},p(g,v){var d;e=g,v[0]&4096&&r!==(r=((d=lr[`${e[73].type}`])!=null?d:"")+"")&&(n.innerHTML=r),v[0]&16781312&&o!==(o=e[24](`${e[73].translationKey}`)+"")&&W(s,o),v[0]&4096&&u!==(u=`${e[73].type} GoToButton`)&&h(t,"class",u)},d(g){g&&M(t),l=!1,c()}}}function Ma(e){let t=e[24]("backHome")+"",n;return{c(){n=j(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&16777216&&t!==(t=r[24]("backHome")+"")&&W(n,t)},d(r){r&&M(n)}}}function Ha(e){let t=e[24](`back${e[15].type}`)+"",n;return{c(){n=j(t)},m(r,i){B(r,n,i)},p(r,i){i[0]&16809984&&t!==(t=r[24](`back${r[15].type}`)+"")&&W(n,t)},d(r){r&&M(n)}}}function br(e){let t,n=At(e[16]),r=[];for(let i=0;i<n.length;i+=1)r[i]=yr(cr(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=$t()},m(i,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(i,o);B(i,t,o)},p(i,o){if(o[0]&537214976){n=At(i[16]);let s;for(s=0;s<n.length;s+=1){const a=cr(i,n,s);r[s]?r[s].p(a,o):(r[s]=yr(a),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length}},d(i){i&&M(t),Pr(r,i)}}}function Pa(e){let t,n=e[70].defaultValue+"",r;return{c(){t=E("span"),r=j(n),h(t,"class","Label")},m(i,o){B(i,t,o),C(t,r)},p(i,o){o[0]&65536&&n!==(n=i[70].defaultValue+"")&&W(r,n)},d(i){i&&M(t)}}}function Ba(e){return{c:ie,m:ie,p:ie,d:ie}}function Aa(e){let t,n=e[70].description+"",r,i,o,s=e[70].name+"",a,u;return{c(){t=E("span"),r=j(n),i=G(),o=E("a"),a=j(s),h(o,"href",u=e[70].defaultValue),h(o,"target","_blank"),h(o,"rel","noopener noreferrer")},m(l,c){B(l,t,c),C(t,r),C(t,i),C(t,o),C(o,a)},p(l,c){c[0]&65536&&n!==(n=l[70].description+"")&&W(r,n),c[0]&65536&&s!==(s=l[70].name+"")&&W(a,s),c[0]&65536&&u!==(u=l[70].defaultValue)&&h(o,"href",u)},d(l){l&&M(t)}}}function Oa(e){let t,n,r;return{c(){t=E("img"),Kt(t.src,n=e[70].defaultValue)||h(t,"src",n),h(t,"title",r=e[70].description),h(t,"alt","")},m(i,o){B(i,t,o)},p(i,o){o[0]&65536&&!Kt(t.src,n=i[70].defaultValue)&&h(t,"src",n),o[0]&65536&&r!==(r=i[70].description)&&h(t,"title",r)},d(i){i&&M(t)}}}function Ra(e){let t,n=e[70].defaultValue+"";return{c(){t=E("span")},m(r,i){B(r,t,i),t.innerHTML=n},p(r,i){i[0]&65536&&n!==(n=r[70].defaultValue+"")&&(t.innerHTML=n)},d(r){r&&M(t)}}}function La(e){let t,n,r=e[70].defaultValue+"",i,o,s;function a(){return e[48](e[70])}return{c(){t=E("div"),n=E("div"),i=j(r),h(t,"class","QRCode")},m(u,l){B(u,t,l),C(t,n),C(n,i),e[47](n),o||(s=We(t,"click",a),o=!0)},p(u,l){e=u,l[0]&65536&&r!==(r=e[70].defaultValue+"")&&W(i,r)},d(u){u&&M(t),e[47](null),o=!1,s()}}}function yr(e){let t,n;function r(s,a){return s[70].type===s[14].QRCode?La:s[70].type===s[14].Html?Ra:s[70].type===s[14].Image?Oa:s[70].type===s[14].Link?Aa:s[70].type===s[14].Hidden?Ba:Pa}let i=r(e),o=i(e);return{c(){t=E("div"),o.c(),n=G(),h(t,"class","ReceiptField")},m(s,a){B(s,t,a),o.m(t,null),C(t,n)},p(s,a){i===(i=r(s))&&o?o.p(s,a):(o.d(1),o=i(s),o&&(o.c(),o.m(t,n)))},d(s){s&&M(t),o.d()}}}function Ia(e){let t;function n(o,s){return o[11]?_a:Ca}let r=n(e),i=r(e);return{c(){t=E("div"),i.c(),h(t,"class","CashierReceiptPageWidget")},m(o,s){B(o,t,s),i.m(t,null),e[49](t)},p(o,s){r===(r=n(o))&&i?i.p(o,s):(i.d(1),i=r(o),i&&(i.c(),i.m(t,null)))},i:ie,o:ie,d(o){o&&M(t),i.d(),e[49](null)}}}let Da="_blank";function $a(e,t,n){let r;_r(e,fi,p=>n(24,r=p)),Dt.extend(ea);let{endpoint:i}=t,{session:o}=t,{lang:s="en"}=t,{local:a="en-US"}=t,{showerrors:u="true"}=t,{translationurl:l}=t,{assetsurl:c=""}=t,{customerid:f}=t,{transactionid:m}=t,{currencydecimals:g="0"}=t,{type:v}=t,{clientstyling:d=""}=t,{clientstylingurl:P=""}=t,{mbsource:O=""}=t,{showverifications:N="true"}=t,{paymentmethod:A=""}=t,Y=!1,X,{customsucceessbuttons:R=""}=t,{custompendingbuttons:V=""}=t,{customfailedbuttons:pe=""}=t,{currencysymbol:ue=""}=t,{currencyposition:q=""}=t,{userroles:L=""}=t,{windowsize:be}=t,{p2p:Se="false"}=t,S=[],_=[];var b;(function(p){p.Success="Success",p.Maintenance="Maintenance"})(b||(b={}));var y;(function(p){p.Unknown="Unknown",p.Text="Text",p.Boolean="Boolean",p.Number="Number",p.Money="Money",p.DateTime="DateTime",p.Lookup="Lookup",p.IpAddress="IpAddress",p.Date="Date",p.Time="Time",p.LookupCollection="LookupCollection",p.Hidden="Hidden",p.Label="Label",p.Password="Password",p.Link="Link",p.Image="Image",p.Html="Html",p.QRCode="QR"})(y||(y={}));const w=(p,[re,we])=>[...p,...Array.isArray(re)?[...re.map(J=>[J,we])]:[[re,we]]],H=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(w,[]));let x,$=[],z,I,Q=[],te,de,ce="",Ce=window.navigator.userAgent,fe=!1;const ne={promotions:{event:"Cashier:goToPromotions",translationKey:"goToPromotions",type:"PromotionsButton"},tournaments:{event:"Cashier:goToTournaments",translationKey:"goToTournaments",type:"TournamentsButton"},support:{event:"Cashier:goToContact",translationKey:"goToSupport",type:"SupportButton"},merchanthomepage:{event:"Cashier:goToVendorWebsite",translationKey:"goToMerchantHomePage",type:"MerchantHomePageButton"},sports:{event:"Cashier:goToSports",translationKey:"goToSports",type:"SportsButton"},casino:{event:"Cashier:goToCasino",translationKey:"goToCasino",type:"CasinoButton"},livecasino:{event:"Cashier:goToLiveCasino",translationKey:"goToLiveCasino",type:"LiveCasinoButton"},externallink:{event:"Cashier:externalRedirect",translationKey:"externalLink",type:"ExternalLinkButton"},documentupload:{event:"Cashier:uploadDocuments",translationKey:"uploadDocuments",type:"UploadDocumentButton"},home:{event:"Cashier:goToHome",translationKey:"goToHomepage",type:"HomeButton"},close:{event:"CloseCashierReceiptPage",translationKey:"close",type:"CloseButton"}},oe=p=>{n(12,S=[]),p.split(",").forEach(we=>{ne[we.trim()]&&S.push(ne[we.trim()])})},me=()=>{zs(s)};Ar(()=>(window.addEventListener("message",_e,!1),ma(a,ue,q,g),()=>{window.removeEventListener("message",_e)}));const _e=p=>{var re;switch(p.data.type){case"CloseReceiptInSecondTab":(re=window.opener)==null||re.postMessage(p.data);break}},Te=()=>{let p=l;if(p)return fetch(p).then(re=>re.json()).then(re=>{Object.keys(re).forEach(we=>{Jn(we,re[we])})}).catch(()=>{})};Object.keys(Kn).forEach(p=>{Jn(p,Kn[p])});const Je=()=>{window.postMessage({type:"CloseCashierReceiptPage"},window.location.href)},Le=()=>{window.postMessage({type:"ErrorResponseCode",errorResponseCode:te,showErrorOutsideReceiptPage:de},window.location.href)},Ie=()=>{const p=new URL(`${i}/v1/player/${f}/payment/GetPaymentInfo`),re=new Headers;re.append("accept","application/json"),re.append("Content-Type","application/json"),re.append("X-SessionId",`${o}`),re.append("X-Client-Request-Timestamp",Dt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")),_.indexOf("MM_CHANNEL_BETA")!=-1&&re.append("MM_CHANNEL","BETA");const we={method:"POST",headers:re,body:JSON.stringify({TransactionCode:m})};n(11,Y=!0),fetch(p,we).then(J=>J.json()).then(J=>{var gt,Sn,Tn,Mn,Hn,Pn,Bn,An,On;if(J.ResponseCode!==b.Success){n(19,te=J.ResponseCode),n(20,de=u.toLowerCase()==="false"||!u),Le();return}switch(n(15,x={type:J.Transaction.Type,referenceId:J.Transaction.Code,status:(gt=J.Transaction.Status)==null?void 0:gt.Status,message:(Sn=J.Transaction.Status)==null?void 0:Sn.Message,amount:(Tn=J.Transaction.Amounts[0])==null?void 0:Tn.Amount,currency:(Mn=J.Transaction.Amounts[0])==null?void 0:Mn.Currency,time:J.Transaction.Status.Created}),n(16,$=J.ReceiptInfo&&J.ReceiptInfo.ReceiptFields?J.ReceiptInfo.ReceiptFields.map(He=>({type:H.get(He.Type),name:He.Name,description:He.Description,defaultValue:He.DefaultValue,useCopyButton:He.UseCopyButton,usePrintButton:He.UsePrintButton})):[]),J.ReceiptInfo&&J.ReceiptInfo.ReceiptFields&&!A&&n(0,A=$[0].defaultValue),r(Ys(x.status,x.type),{values:{errorText:x.message}}),n(17,z=ga(Number(x.amount),x.currency)),x.status){case"Voided":case"Success":if(oe(R||"casino, livecasino, tournaments"),n(21,ce="success"),x.type==="Deposit"){const He=(Pn=(Hn=J.Transaction)==null?void 0:Hn.Flags)==null?void 0:Pn.NewDepositCustomer,$e=(Bn=J==null?void 0:J.Transaction)==null?void 0:Bn.Payloads;window.postMessage({type:He==="True"?"FirstDeposit":"ConfirmedDeposit",method:A,amount:x.amount,currency:x.currency,depositType:(An=$e==null?void 0:$e.TagManagerDepositType)!=null?An:"",publicPaymentId:(On=$e==null?void 0:$e.TagManagerCode)!=null?On:""},window.location.href)}ur(x.type==="Deposit"?"deposit_success":"withdrawal_success",{userID:f,amount:x.amount,currency:x.currency,failureReason:x.message});break;case"PendingNotification":case"PendingConfirmation":case"PendingApprovalStage1":case"PendingApprovalStage2":case"PendingApprovalStage3":case"PendingOfflineNotification":oe(V||"casino, livecasino, tournaments"),n(21,ce="pending");break;case"Rejected":case"Cancelled":case"Failed":oe(pe||"casino, livecasino, tournaments"),n(21,ce=x.status.toLowerCase()),ur(x.type==="Deposit"?"deposit_failed":"withdrawal_failed",{userID:f,amount:x.amount,currency:x.currency,failureReason:x.message}),N==="true"&&n(22,fe=!0);break;default:oe("close")}c?Zs(c,x.status):Xs(x.status)}).finally(()=>n(11,Y=!1))},Ke=p=>{window.postMessage({type:p},window.location.href)},et=p=>{p&&window.postMessage({type:"NavigateTo",path:p,target:Da,externalLink:!1},window.location.href)};let xe,se;const ae=(p,re=!0)=>Wt(this,null,function*(){const J=p.currentTarget.innerHTML;if(J&&navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(J),re&&(n(23,xe=!0),clearTimeout(se),se=setTimeout(()=>{n(23,xe=!1)},2e3))}catch(gt){console.error("Clipboard API failed:",gt)}}),mt=()=>{L.length>0&&(_=L.split(","))},De=p=>ae(p),ye=p=>Ke(p.event);function le(p){ut[p?"unshift":"push"](()=>{Q[Q.length]=p,n(18,Q)})}const T=p=>{et(p.description)};function U(p){ut[p?"unshift":"push"](()=>{I=p,n(10,I)})}return e.$$set=p=>{"endpoint"in p&&n(1,i=p.endpoint),"session"in p&&n(2,o=p.session),"lang"in p&&n(3,s=p.lang),"local"in p&&n(31,a=p.local),"showerrors"in p&&n(32,u=p.showerrors),"translationurl"in p&&n(4,l=p.translationurl),"assetsurl"in p&&n(5,c=p.assetsurl),"customerid"in p&&n(6,f=p.customerid),"transactionid"in p&&n(33,m=p.transactionid),"currencydecimals"in p&&n(34,g=p.currencydecimals),"type"in p&&n(35,v=p.type),"clientstyling"in p&&n(7,d=p.clientstyling),"clientstylingurl"in p&&n(8,P=p.clientstylingurl),"mbsource"in p&&n(36,O=p.mbsource),"showverifications"in p&&n(9,N=p.showverifications),"paymentmethod"in p&&n(0,A=p.paymentmethod),"customsucceessbuttons"in p&&n(37,R=p.customsucceessbuttons),"custompendingbuttons"in p&&n(38,V=p.custompendingbuttons),"customfailedbuttons"in p&&n(39,pe=p.customfailedbuttons),"currencysymbol"in p&&n(40,ue=p.currencysymbol),"currencyposition"in p&&n(41,q=p.currencyposition),"userroles"in p&&n(42,L=p.userroles),"windowsize"in p&&n(43,be=p.windowsize),"p2p"in p&&n(44,Se=p.p2p)},e.$$.update=()=>{e.$$.dirty[1]&2048&&L&&mt(),e.$$.dirty[0]&70|e.$$.dirty[1]&6&&i&&o&&f&&m&&u&&Ie(),e.$$.dirty[0]&8&&s&&me(),e.$$.dirty[0]&24&&s&&l&&Te(),e.$$.dirty[0]&1152&&d&&I&&wi(I,d),e.$$.dirty[0]&1280&&P&&I&&xi(I,P),e.$$.dirty[0]&1024|e.$$.dirty[1]&32&&O&&I&&Ei(I,`${O}.Style`,X)},[A,i,o,s,l,c,f,d,P,N,I,Y,S,b,y,x,$,z,Q,te,de,ce,fe,xe,r,Ce,Je,Ie,Ke,et,ae,a,u,m,g,v,O,R,V,pe,ue,q,L,be,Se,De,ye,le,T,U]}class Si extends kr{constructor(t){super(),Ir(this,t,$a,Ia,yn,{endpoint:1,session:2,lang:3,local:31,showerrors:32,translationurl:4,assetsurl:5,customerid:6,transactionid:33,currencydecimals:34,type:35,clientstyling:7,clientstylingurl:8,mbsource:36,showverifications:9,paymentmethod:0,customsucceessbuttons:37,custompendingbuttons:38,customfailedbuttons:39,currencysymbol:40,currencyposition:41,userroles:42,windowsize:43,p2p:44},va,[-1,-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),Z()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),Z()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),Z()}get local(){return this.$$.ctx[31]}set local(t){this.$$set({local:t}),Z()}get showerrors(){return this.$$.ctx[32]}set showerrors(t){this.$$set({showerrors:t}),Z()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),Z()}get assetsurl(){return this.$$.ctx[5]}set assetsurl(t){this.$$set({assetsurl:t}),Z()}get customerid(){return this.$$.ctx[6]}set customerid(t){this.$$set({customerid:t}),Z()}get transactionid(){return this.$$.ctx[33]}set transactionid(t){this.$$set({transactionid:t}),Z()}get currencydecimals(){return this.$$.ctx[34]}set currencydecimals(t){this.$$set({currencydecimals:t}),Z()}get type(){return this.$$.ctx[35]}set type(t){this.$$set({type:t}),Z()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get mbsource(){return this.$$.ctx[36]}set mbsource(t){this.$$set({mbsource:t}),Z()}get showverifications(){return this.$$.ctx[9]}set showverifications(t){this.$$set({showverifications:t}),Z()}get paymentmethod(){return this.$$.ctx[0]}set paymentmethod(t){this.$$set({paymentmethod:t}),Z()}get customsucceessbuttons(){return this.$$.ctx[37]}set customsucceessbuttons(t){this.$$set({customsucceessbuttons:t}),Z()}get custompendingbuttons(){return this.$$.ctx[38]}set custompendingbuttons(t){this.$$set({custompendingbuttons:t}),Z()}get customfailedbuttons(){return this.$$.ctx[39]}set customfailedbuttons(t){this.$$set({customfailedbuttons:t}),Z()}get currencysymbol(){return this.$$.ctx[40]}set currencysymbol(t){this.$$set({currencysymbol:t}),Z()}get currencyposition(){return this.$$.ctx[41]}set currencyposition(t){this.$$set({currencyposition:t}),Z()}get userroles(){return this.$$.ctx[42]}set userroles(t){this.$$set({userroles:t}),Z()}get windowsize(){return this.$$.ctx[43]}set windowsize(t){this.$$set({windowsize:t}),Z()}get p2p(){return this.$$.ctx[44]}set p2p(t){this.$$set({p2p:t}),Z()}}$r(Si,{endpoint:{},session:{},lang:{},local:{},showerrors:{},translationurl:{},assetsurl:{},customerid:{},transactionid:{},currencydecimals:{},type:{},clientstyling:{},clientstylingurl:{},mbsource:{},showverifications:{},paymentmethod:{},customsucceessbuttons:{},custompendingbuttons:{},customfailedbuttons:{},currencysymbol:{},currencyposition:{},userroles:{},windowsize:{},p2p:{}},[],[],!0);const ka=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"}));exports.$format=fi;exports.$locale=Re;exports.CashierReceiptPage_ce=ka;exports.SvelteComponent=kr;exports.addMessages=xn;exports.append=C;exports.append_styles=Mr;exports.attr=h;exports.binding_callbacks=ut;exports.component_subscribe=_r;exports.create_custom_element=$r;exports.create_slot=Ri;exports.detach=M;exports.element=E;exports.empty=$t;exports.flush=Z;exports.get_all_dirty_from_scope=Di;exports.get_slot_changes=Li;exports.init=ui;exports.init$1=Ir;exports.insert=B;exports.listen=We;exports.onMount=Ar;exports.safe_not_equal=yn;exports.setClientStyling=wi;exports.setClientStylingURL=xi;exports.setStreamStyling=Ei;exports.set_custom_element_data=F;exports.set_data=W;exports.space=G;exports.src_url_equal=Kt;exports.text=j;exports.transition_in=Bt;exports.transition_out=Rr;exports.update_slot_base=Ii;