@everymatrix/player-account-balance-modal 1.0.10 → 1.0.13
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,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function g(){}function C(e){return e()}function P(){return Object.create(null)}function J(e){e.forEach(C)}function L(e){return"function"==typeof e}function N(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return g;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ee(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode.removeChild(e)}function e(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function re(){return t(" ")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function oe(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ae(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let E;function b(e){E=e}const y=[],R=[],I=[],x=[],D=Promise.resolve();let U=!1;function G(e){I.push(e)}const k=new Set;let F=0;function B(){const e=E;do{for(;F<y.length;){const e=y[F];F++,b(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),J(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(G))}for(b(null),y.length=0,F=0;R.length;)R.pop()();for(let e=0;e<I.length;e+=1){const r=I[e];k.has(r)||(k.add(r),r())}}while(I.length=0,y.length);for(;x.length;)x.pop()();U=!1,k.clear(),b(e)}const $=new Set;function j(r,e,t,n,o,a,i,s=[-1]){var l=E;b(r);const c=r.$$={fragment:null,ctx:null,props:a,update:g,not_equal:o,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),h&&(n=e,-1===(e=r).$$.dirty[0]&&(y.push(e),U||(U=!0,D.then(B)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),h=!0,J(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const g=Array.from(a.childNodes);c.fragment&&c.fragment.l(g),g.forEach(ne)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&($.delete(s),s.i(void 0));{var u=r;i=e.target;t=e.anchor;n=e.customElement;const{fragment:p,on_mount:f,on_destroy:d,after_update:m}=u.$$;p&&p.m(i,t),n||G(()=>{var e=f.map(C).filter(L);d?d.push(...e):J(e),u.$$.on_mount=[]}),m.forEach(G)}B()}b(l)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(C).filter(L);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){J(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(J(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=g}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const n=[];function X(r,o=g){let a;const i=new Set;function s(e){if(N(r,e)&&(r=e,a)){const e=!n.length;for(const e of i)e[1](),n.push(e,r);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=g){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||g),e(r),()=>{i.delete(n),0===i.size&&(a(),a=null)}}}}function r(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:X(t,t=>{let n=!1;const r=[];let o=0,a=g;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),h?t(e):a=L(e)?e:g)},e=c.map((e,t)=>O(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){J(e),a()}}).subscribe}}function K(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===z));var t}var z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function Y(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Z(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function W(e,t){try{return t in e}catch(e){return!1}}function q(r,o,a){var i={};return a.isMergeableObject(r)&&Z(r).forEach(function(e){i[e]=s(r[e],a)}),Z(o).forEach(function(t){var e,n;(!W(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(W(r,t)&&a.isMergeableObject(o[t])?i[t]=function(e){if(!e.customMerge)return l;e=e.customMerge(t);return"function"==typeof e?e:l}(a)(r[t],o[t],a):i[t]=s(o[t],a))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Y,n.isMergeableObject=n.isMergeableObject||K,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):q(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var Q=l,se=function(e,t){return(se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,v,T,A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ce(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function he(e){return e.type===v.literal}function ue(e){return e.type===v.number}function pe(e){return e.type===v.date}function fe(e){return e.type===v.time}function de(e){return e.type===v.select}function me(e){return e.type===v.plural}function be(e){return e.type===v.tag}function ge(e){return e&&"object"==typeof e&&e.type===T.number}function ye(e){return e&&"object"==typeof e&&e.type===T.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=v=v||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=T=T||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ee=/(?:[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;var Be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,Ae=/(\*)(0+)|(#+)(0+)|(0+)/g,we=/^(0+)$/;function _e(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Te,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function He(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 Se(e){return He(e)||{}}function Me(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=A(A(A({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return A(A({},e),Se(t))},{}));continue;case"engineering":i=A(A(A({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return A(A({},e),Se(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ae,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(we.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ve.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ve,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=A(A({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=A(A({},i),_e(a)))}else Te.test(o.stem)?i=A(A({},i),_e(o.stem)):((a=He(o.stem))&&(i=A(A({},i),a)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!we.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=A(A({},i),r)))}return i}var Ce={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Pe=new RegExp("^".concat(o.source,"*")),Le=new RegExp("".concat(o.source,"*$"));function w(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Oe=!!Object.fromEntries,Re=!!String.prototype.codePointAt,Ie=!!String.prototype.trimStart,xe=!!String.prototype.trimEnd,De=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ue=!0;try{Ue="a"===(null==(i=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:i[0])}catch(g){Ue=!1}var Ge,ke,Fe=o?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$e=Ne?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},je=Oe?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},Ve=Re?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},Xe=Ie?function(e){return e.trimStart()}:function(e){return e.replace(Pe,"")},Ke=xe?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function ze(e,t){return new RegExp(e,t)}ke=Ue?(Ge=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ge.lastIndex=t,null!=(t=Ge.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Ve(e,t);if(void 0===o||We(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),t+=65536<=o?2:1}return $e.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{a=this.clonePosition();this.bump(),r.push({type:v.pound,location:w(a,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(r,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ze(this.char()))return this.error(m.INVALID_TAG,w(e,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,w(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:r,children:t,location:w(n,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,w(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,w(n,this.clonePosition()))}return this.error(m.INVALID_TAG,w(n,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=w(n,this.clonePosition());return{val:{type:v.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ze(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $e.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),$e(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ke(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,w(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(f=Ke(d.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:w(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(r)).err)return c;var h=w(r,this.clonePosition());if(l&&Fe(null==l?void 0:l.style,"::",0)){var u=Xe(l.style.slice(2));if("number"===i)return(d=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?d:{val:{type:v.number,value:n,location:h,style:d.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,f=(this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Ce[t||""]||Ce[n||""]||Ce["".concat(n,"-001")]||Ce["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(u,this.locale)),{type:T.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},p.replace(Ee,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}});return{val:{type:"date"===i?v.date:v.time,value:n,location:h,style:f},err:null}}return{val:{type:"number"===i?v.number:"date"===i?v.date:v.time,value:n,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,w(p,A({},p)));this.bumpSpace();var d,f=this.parseIdentifierIfPossible(),h=0;if("select"!==i&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=d.val}l=this.tryParsePluralOrSelectOptions(e,i,t,f);if(l.err)return l;if((c=this.tryParseArgumentClose(r)).err)return c;u=w(r,this.clonePosition());return"select"===i?{val:{type:v.select,value:n,options:je(l.val),location:u},err:null}:{val:{type:v.plural,value:n,options:je(l.val),offset:h,pluralType:"plural"===i?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,w(a,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Be).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:T.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Me(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=w(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;a.push([s,{value:c.val,location:w(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:a,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=w(r,this.clonePosition());return o?De(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ve(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(Fe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&We(this.char());)this.bump()},a.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Ye=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ze(e){return 97<=e&&e<=122||65<=e&&e<=90}function We(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function qe(e,t){t=A({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Ye(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,de(e)||me(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else ue(e)&&ge(e.style)||(pe(e)||fe(e))&&ye(e.style)?delete e.style.location:be(e)&&n(e.children)})}(e.val),e.val}function Qe(e,t){var n=t&&t.cache?t.cache:ot,r=t&&t.serializer?t.serializer:nt;return(t&&t.strategy?t.strategy:function(e,t){return tt(e,this,1===e.length?Je:et,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Je(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function et(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function tt(e,t,n,r,o){return n.bind(t,e,r,o)}var nt=function(){return JSON.stringify(arguments)};function rt(){this.cache=Object.create(null)}rt.prototype.get=function(e){return this.cache[e]},rt.prototype.set=function(e,t){this.cache[e]=t};var _,i,ot={create:function(){return new rt}},at={variadic:function(e,t){return tt(e,this,et,t.cache.create(),t.serializer)},monadic:function(e,t){return tt(e,this,Je,t.cache.create(),t.serializer)}};(i=_=_||{}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API";le(gt,ct=Error),gt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var H,it,st,lt,ct,ht=gt,ut=(le(bt,lt=ht),bt),pt=(le(mt,st=ht),mt),ft=(le(dt,it=ht),dt);function dt(e,t){return it.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),_.MISSING_VALUE,t)||this}function mt(e,t,n){return st.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),_.INVALID_VALUE,n)||this}function bt(e,t,n,r){return lt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),_.INVALID_VALUE,r)||this}function gt(e,t,n){e=ct.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function yt(e,t,n,r,o,a,i){if(1===e.length&&he(e[0]))return[{type:H.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(he(h))s.push({type:H.literal,value:h.value});else if(h.type===v.pound)"number"==typeof a&&s.push({type:H.literal,value:n.getNumberFormat(t).format(a)});else{var u=h.value;if(!(o&&u in o))throw new ft(u,i);u=o[u];if(h.type===v.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?H.literal:H.object,value:u});else if(pe(h)){var p="string"==typeof h.style?r.date[h.style]:ye(h.style)?h.style.parsedOptions:void 0;s.push({type:H.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(fe(h))p="string"==typeof h.style?r.time[h.style]:ye(h.style)?h.style.parsedOptions:r.time.medium,s.push({type:H.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(ue(h))(p="string"==typeof h.style?r.number[h.style]:ge(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:H.literal,value:n.getNumberFormat(t,p).format(u)});else{if(be(h)){var f=h.children,d=h.value,m=o[d];if("function"!=typeof m)throw new pt(d,"function",i);d=m(yt(f,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?H.literal:H.object,value:e}}))}if(de(h)){if(!(b=h.options[u]||h.options.other))throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(b.value,t,n,r,o))}else if(me(h)){if(!(b=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new ht('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),b=h.options[m]||h.options.other}if(!b)throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(b.value,t,n,r,o,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===H.literal&&t.type===H.literal?n.value+=t.value:e.push(t),e},[])}function Et(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(o=H=H||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(c,"defaultLocale",{get:function(){return c.memoizedDefaultLocale||(c.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),c.memoizedDefaultLocale},enumerable:!1,configurable:!0}),c.memoizedDefaultLocale=null,c.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},c.__parse=qe,c.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"}}};var Bt=c;function c(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=c.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===H.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return yt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=c.resolveLocale(t),"string"==typeof e){if(this.message=e,!c.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=c.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=c.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?A(A(A({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=A(A({},n[t]),r[t]||{}),e},{})):n),e},A({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:at.variadic}),getDateTimeFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.dateTime),strategy:at.variadic}),getPluralRules:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.pluralRules),strategy:at.variadic})}}const h={},vt=(e,t,n)=>n&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=n),n),Tt=(t,n)=>{if(null!=n){if(n in h&&t in h[n])return h[n][t];var r=Rt(n);for(let e=0;e<r.length;e++){var o=function(e,n){if(!wt(e))return null;e=function(e){return At[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const o=r.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const r=o.slice(e,o.length).join(".");if(r in t){t=t[r];break}}t=t[o[e]]}else t=void 0;return t}}(r[e],t);if(o)return vt(t,n,o)}}};let At;const u=X({});function wt(e){return e in At}function _t(t,...n){delete h[t],u.update(e=>(e[t]=Q.all([e[t]||{},...n]),e))}r([u],([e])=>Object.keys(e)),u.subscribe(e=>At=e);const Ht={};function St(e){return Ht[e]}function Mt(e){return null!=e&&Rt(e).some(e=>{return null==(e=St(e))?void 0:e.size})}const p={};function Ct(e){if(!Mt(e))return e in p?p[e]:Promise.resolve();const t=Rt(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return p[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return Ht[t].delete(n),0===Ht[t].size&&delete Ht[t],e().then(e=>e.default||e)}));return n.then(e=>_t(r,...e))}})).then(()=>{if(Mt(e))return Ct(e);delete p[e]}),p[e]}function f(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const d={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Pt=X(!1);let Lt;const Nt=X(null);function Ot(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Rt(e,t=d.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}function S(){return null!=Lt?Lt:void 0}Nt.subscribe(e=>{Lt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const M=Object.assign(Object.assign({},Nt),{set:t=>{if(t&&function(e){if(null!=e){var t=Rt(e);for(let e=0;e<t.length;e++){var n=t[e];if(wt(n))return n}}}(t)&&Mt(t)){var n=d["loadingDelay"];let e;return"undefined"!=typeof window&&null!=S()&&n?e=window.setTimeout(()=>Pt.set(!0),n):Pt.set(!0),Ct(t).then(()=>{Nt.set(t)}).finally(()=>{clearTimeout(e),Pt.set(!1)})}return Nt.set(t)}}),It=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},xt=(e,t)=>{var n=d["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=xt("number",n)),new Intl.NumberFormat(t,e)}),Ut=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=xt("date",n):0===Object.keys(e).length&&(e=xt("date","short")),new Intl.DateTimeFormat(t,e)}),Gt=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=xt("time",n):0===Object.keys(e).length&&(e=xt("time","short")),new Intl.DateTimeFormat(t,e)}),kt=It((e,t=S())=>new Bt(e,t,d.formats,{ignoreTag:d.ignoreTag})),Ft=r([M,u],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=S(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Tt(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=d).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=kt(l,i).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),$t=(r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Gt(Object.assign({locale:t},e))})(t).format(e)),r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Ut(Object.assign({locale:t},e))})(t).format(e)),r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),r([M,u],()=>(e,t=S())=>Tt(e,t)),{en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},zh:{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}});var jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt=function(n){var A=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jt:globalThis,L=t.setTimeout,N=t.clearTimeout,O=t.XMLHttpRequest,r=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,f=t.TextDecoder,l=t.TextEncoder,d=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==O&&null!=o&&(O=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==d&&(c=p,p=function(e,t){var n=t.signal;return c(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},d=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function h(){this.bitsNeeded=0,this.codePoint=0}h.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):r=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=l&&function(){try{return"test"===(new f).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=h);function m(){}function R(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function b(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[b(a)]=o}this._map=t}function I(){}function y(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function E(e){L(function(){throw e},0)}function B(e){this.type=e,this.target=void 0}function U(e,t){B.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function G(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function k(e,t){B.call(this,e),this.error=t.error}R.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(N(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&(N(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==r&&(N(r),r=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=L(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=L(function(){c()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(e){return this._contentType},R.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},R.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=L(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[b(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),I.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===O.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new g(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new d,c=l.signal,h=new f;return p(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new u(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=h.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},D.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){E(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},U.prototype=Object.create(B.prototype),G.prototype=Object.create(B.prototype),k.prototype=Object.create(B.prototype);function F(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function $(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){E(e)}}var w=-1,_=-1,V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,a,i,c,h,u,p,f,d,n,s,m,b,g,y,E,B,v,T,A,w,_,H,S,M,C,P;D.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),h=F(e.heartbeatTimeout,45e3),u="",p=c,f=!1,d=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new R(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==r?O:r)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:I),b=void 0,y=-1,T=v=B=E="",_=w=A=g=0,H=function(e,t,n,r){var o,a;0===y&&(200===e&&null!=n&&V.test(n)?(y=1,f=Date.now(),p=c,l.readyState=1,o=new G("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",C(),o=new G("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onerror,o),console.error(a)))},S=function(e){if(1===y){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(f=Date.now(),d+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===A&&i==="\n".charCodeAt(0))A=0;else if(-1===A&&(A=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==A&&(1===A&&(_=o+1),s=r.slice(w,_-1),a=r.slice(_+(_<o&&r.charCodeAt(_)===" ".charCodeAt(0)?1:0),o),"data"===s?E=E+"\n"+a:"id"===s?B=a:"event"===s?v=a:"retry"===s?(c=F(a,c),p=c):"heartbeatTimeout"===s&&(h=F(a,h),0!==g&&(N(g),g=L(function(){P()},h)))),0===A){if(""!==E){u=B;var s=new U(v=""===v?"message":v,{data:E.slice(1),lastEventId:B});if(l.dispatchEvent(s),"open"===v?$(l,l.onopen,s):"message"===v?$(l,l.onmessage,s):"error"===v&&$(l,l.onerror,s),2===y)return}v=E=""}A=i==="\r".charCodeAt(0)?-1:0}else 0===A&&(w=o,A=1),1===A?i===":".charCodeAt(0)&&(_=o+1,A=2):2===A&&(A=3)}}},M=function(e){var t;1!==y&&0!==y||(y=-1,0!==g&&(N(g),g=0),g=L(function(){P()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new k("error",{error:e}),l.dispatchEvent(t),$(l,l.onerror,t),null!=e&&console.error(e))},C=function(){y=2,null!=b&&(b.abort(),b=void 0),0!==g&&(N(g),g=0),l.readyState=2},P=function(){if(g=0,-1===y){f=!1,d=0,g=L(function(){P()},h),B=u,T=v=E="",A=_=w=y=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==u&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{b=m.open(s,H,S,M,e,t,n)}catch(e){throw C(),e}}else f||null==b?(e=Math.max((f||Date.now())+h-Date.now(),1),f=!1,g=L(function(){P()},e)):(M(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":d+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,P()}var X=null!=p&&null!=s&&"body"in s.prototype,T=((v.prototype=Object.create(D.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0,a),t=(null==O||null!=a&&"withCredentials"in a.prototype||(T=v),L(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","[37m24 февраля "+(e=function(e){return"[97m[1m"+e+"[22m[37m"})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"[39m","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),function(e){e.EventSourcePolyfill=v,e.NativeEventSource=a,e.EventSource=T}(e));return 0,n.exports}();function Xt(n){let r,o,U,a,i,s,l,G,c,h,u,p,k,f,d,m,F,b,g,$,y,E,B,j,v,T,V,A,w,X,_,H,S,K,M,C,z,P,Y,Z,L,N,W,q,Q,O=n[3]("balanceModal.balanceTitle")+"",R=n[3]("balanceModal.totalBalance")+"",I=n[3]("balanceModal.cashBalance")+"",x=n[3]("balanceModal.bonusBalance")+"",D=n[3]("balanceModal.depositButton")+"";return{c(){r=e("div"),o=e("div"),U=re(),a=e("div"),i=e("div"),s=e("p"),l=t(O),G=re(),c=e("div"),h=e("div"),u=e("p"),p=t(R),k=re(),f=e("p"),d=e("span"),m=t(n[1]),F=re(),b=e("span"),g=t(n[2]),$=re(),y=e("div"),E=e("p"),B=t(I),j=re(),v=e("p"),(T=e("span")).textContent=""+n[4].get("Casino").balanceAmount,V=re(),A=e("span"),w=t(n[2]),X=re(),_=e("div"),H=e("p"),S=t(x),K=re(),M=e("p"),(C=e("span")).textContent=""+n[4].get("UBS").balanceAmount,z=re(),P=e("span"),Y=t(n[2]),Z=re(),L=e("div"),N=e("button"),W=t(D),oe(o,"class","BalanceModalClose"),oe(s,"class","BalanceModalTitle"),oe(s,"part","BalanceModalTitle"),oe(i,"class","BalanceModalHeader"),oe(i,"part","BalanceModalHeader"),oe(u,"class","BalanceModalText"),oe(u,"part","BalanceModalText"),oe(d,"class","BalanceModalAmount"),oe(d,"part","BalanceModalAmount"),oe(b,"class","BalanceModalCurrency"),oe(b,"part","BalanceModalCurrency"),oe(f,"class","BalanceModalValue"),oe(f,"part","BalanceModalValue"),oe(h,"class","BalanceModalRow"),oe(h,"part","BalanceModalRow"),oe(E,"class","BalanceModalText"),oe(E,"part","BalanceModalText"),oe(T,"class","BalanceModalAmount"),oe(T,"part","BalanceModalAmount"),oe(A,"class","BalanceModalCurrency"),oe(A,"part","BalanceModalCurrency"),oe(v,"class","BalanceModalValue"),oe(v,"part","BalanceModalValue"),oe(y,"class","BalanceModalRow"),oe(y,"part","BalanceModalRow"),oe(H,"class","BalanceModalText"),oe(H,"part","BalanceModalText"),oe(C,"class","BalanceModalAmount"),oe(C,"part","BalanceModalAmount"),oe(P,"class","BalanceModalCurrency"),oe(P,"part","BalanceModalCurrency"),oe(M,"class","BalanceModalValue"),oe(M,"part","BalanceModalValue"),oe(_,"class","BalanceModalRow"),oe(_,"part","BalanceModalRow"),oe(c,"class","BalanceModalBody"),oe(c,"part","BalanceModalBody"),oe(N,"class","BalanceModalAction"),oe(N,"part","BalanceModalAction"),oe(L,"class","BalanceModalFooter"),oe(L,"part","BalanceModalFooter"),oe(a,"class","BalanceModal"),oe(a,"part","BalanceModal"),oe(r,"class","BalanceModalWrapper"),oe(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,U),ee(r,a),ee(a,i),ee(i,s),ee(s,l),ee(a,G),ee(a,c),ee(c,h),ee(h,u),ee(u,p),ee(h,k),ee(h,f),ee(f,d),ee(d,m),ee(f,F),ee(f,b),ee(b,g),ee(c,$),ee(c,y),ee(y,E),ee(E,B),ee(y,j),ee(y,v),ee(v,T),ee(v,V),ee(v,A),ee(A,w),ee(c,X),ee(c,_),ee(_,H),ee(H,S),ee(_,K),ee(_,M),ee(M,C),ee(M,z),ee(M,P),ee(P,Y),ee(a,Z),ee(a,L),ee(L,N),ee(N,W),q||(Q=[ie(o,"click",n[12]),ie(N,"click",n[13])],q=!0)},p(e,t){8&t&&O!==(O=e[3]("balanceModal.balanceTitle")+"")&&ae(l,O),8&t&&R!==(R=e[3]("balanceModal.totalBalance")+"")&&ae(p,R),2&t&&ae(m,e[1]),4&t&&ae(g,e[2]),8&t&&I!==(I=e[3]("balanceModal.cashBalance")+"")&&ae(B,I),4&t&&ae(w,e[2]),8&t&&x!==(x=e[3]("balanceModal.bonusBalance")+"")&&ae(S,x),4&t&&ae(Y,e[2]),8&t&&D!==(D=e[3]("balanceModal.depositButton")+"")&&ae(W,D)},d(e){e&&ne(r),q=!1,J(Q)}}}function Kt(n){let r,o,a;return{c(){oe(r=e("div"),"class","ShowBalanceModalOverlay"),oe(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=ie(r,"click",n[14]),o=!0)},p:g,d(e){e&&ne(r),o=!1,a()}}}function zt(n){let r,o,a,i,s,l,c,h,u,p,f,d,m=n[0]&&Xt(n),b=n[0]&&Kt(n);return{c(){r=e("div"),o=e("p"),a=t(n[1]),i=re(),s=t(n[2]),l=re(),(c=e("span")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',h=re(),m&&m.c(),u=re(),b&&b.c(),p=t(""),this.c=g,oe(o,"class","BalanceValue"),oe(o,"part","BalanceValue"),oe(r,"class","ShowBalance"),oe(r,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(r,h),m&&m.m(r,null),te(e,u,t),b&&b.m(e,t),te(e,p,t),f||(d=ie(o,"click",n[11]),f=!0)},p(e,[t]){2&t&&ae(a,e[1]),4&t&&ae(s,e[2]),e[0]?m?m.p(e,t):((m=Xt(e)).c(),m.m(r,null)):m&&(m.d(1),m=null),e[0]?b?b.p(e,t):((b=Kt(e)).c(),b.m(p.parentNode,p)):b&&(b.d(1),b=null)},i:g,o:g,d(e){e&&ne(r),m&&m.d(),e&&ne(u),b&&b.d(e),e&&ne(p),f=!1,d()}}}function Yt(t,e,o){let n;var r=Ft;t.$$.on_destroy.push(O(r,e=>o(3,n=e)));let a,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,h=!1,u="",p="",f=!1,d=new Map;Object.keys($t).forEach(e=>{_t(e,$t[e])});const m=e=>{switch(e){case"balance":o(0,h=!0);break;case"closebalance":o(0,h=!1)}},b=(e,t)=>{let n=new Vt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});a&&a.close(),(a=n).addEventListener("message",r=>{try{let e=JSON.parse(r.data)["balanceChange"],t=d.get("Casino"),n=d.get("UBS");e&&e[t.id]&&d.set("Casino",Object.assign(Object.assign({},t),{balanceAmount:e[t.id].afterAmount})),e&&e[n.id]&&d.set("UBS",Object.assign(Object.assign({},n),{balanceAmount:e[n.id].afterAmount})),t=d.get("Casino"),n=d.get("UBS"),o(1,u=(parseFloat(t.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}catch(r){console.log("Balance stream failed: ",r),b(`${l}/player/${i}/balance/updates`,s)}})},g=()=>{m("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href)},y=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&a.close()};return r=()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y),a&&a.close()}),function(){if(E)return E;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),t.$$set=e=>{"userid"in e&&o(7,i=e.userid),"session"in e&&o(8,s=e.session),"endpoint"in e&&o(9,l=e.endpoint),"lang"in e&&o(10,c=e.lang)},t.$$.update=()=>{var e;1920&t.$$.dirty&&l&&i&&s&&c&&(e=c,M.set(e),(async e=>{try{f=!0;const t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw f=!1,new Error("Failed to fetch balance data !");{f=!1,n.items.map(e=>d.set(e.displayName,e));const e=d.get("Casino"),r=d.get("UBS");o(2,p=e.currency),o(1,u=(parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}}catch(e){f=!1,console.log("Balance error: ",e)}finally{f=!1}})(`${l}/player/${i}/account`)),896&t.$$.dirty&&l&&i&&s&&b(`${l}/player/${i}/balance/updates`,s)},[h,u,p,n,d,m,g,i,s,l,c,()=>m("balance"),()=>m("closebalance"),()=>g(),()=>m("closebalance")]}class Zt extends V{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:\"\";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",j(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Yt,zt,N,{userid:7,session:8,endpoint:9,lang:10},null),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),B()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),B()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),B()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),B()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",Zt),Zt});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function g(){}function C(e){return e()}function P(){return Object.create(null)}function J(e){e.forEach(C)}function L(e){return"function"==typeof e}function N(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function O(e,...t){if(null==e)return g;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ee(e,t){e.appendChild(t)}function te(e,t,n){e.insertBefore(t,n||null)}function ne(e){e.parentNode.removeChild(e)}function e(e){return document.createElement(e)}function t(e){return document.createTextNode(e)}function re(){return t(" ")}function ie(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function oe(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ae(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let E;function b(e){E=e}const y=[],R=[],I=[],x=[],D=Promise.resolve();let U=!1;function G(e){I.push(e)}const k=new Set;let F=0;function B(){const e=E;do{for(;F<y.length;){const e=y[F];F++,b(e),t=n=void 0;var t,n=e.$$;null!==n.fragment&&(n.update(),J(n.before_update),t=n.dirty,n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(G))}for(b(null),y.length=0,F=0;R.length;)R.pop()();for(let e=0;e<I.length;e+=1){const r=I[e];k.has(r)||(k.add(r),r())}}while(I.length=0,y.length);for(;x.length;)x.pop()();U=!1,k.clear(),b(e)}const $=new Set;function j(r,e,t,n,o,a,i,s=[-1]){var l=E;b(r);const c=r.$$={fragment:null,ctx:null,props:a,update:g,not_equal:o,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:P(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};i&&i(c.root);let h=!1;if(c.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return c.ctx&&o(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),h&&(n=e,-1===(e=r).$$.dirty[0]&&(y.push(e),U||(U=!0,D.then(B)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31)),t}):[],c.update(),h=!0,J(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){a=e.target;const g=Array.from(a.childNodes);c.fragment&&c.fragment.l(g),g.forEach(ne)}else c.fragment&&c.fragment.c();e.intro&&(s=r.$$.fragment)&&s.i&&($.delete(s),s.i(void 0));{var u=r;i=e.target;t=e.anchor;n=e.customElement;const{fragment:p,on_mount:f,on_destroy:d,after_update:m}=u.$$;p&&p.m(i,t),n||G(()=>{var e=f.map(C).filter(L);d?d.push(...e):J(e),u.$$.on_mount=[]}),m.forEach(G)}B()}b(l)}let V;"function"==typeof HTMLElement&&(V=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(C).filter(L);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){J(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(J(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=g}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const n=[];function X(r,o=g){let a;const i=new Set;function s(e){if(N(r,e)&&(r=e,a)){const e=!n.length;for(const e of i)e[1](),n.push(e,r);if(e){for(let e=0;e<n.length;e+=2)n[e][0](n[e+1]);n.length=0}}}return{set:s,update:function(e){s(e(r))},subscribe:function(e,t=g){const n=[e,t];return i.add(n),1===i.size&&(a=o(s)||g),e(r),()=>{i.delete(n),0===i.size&&(a(),a=null)}}}}function r(e,s,t){const l=!Array.isArray(e),c=l?[e]:e,h=s.length<2;return{subscribe:X(t,t=>{let n=!1;const r=[];let o=0,a=g;const i=()=>{var e;o||(a(),e=s(l?r[0]:r,t),h?t(e):a=L(e)?e:g)},e=c.map((e,t)=>O(e,e=>{r[t]=e,o&=~(1<<t),n&&i()},()=>{o|=1<<t}));return n=!0,i(),function(){J(e),a()}}).subscribe}}function K(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===z));var t}var z="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function Y(e,t,n){return e.concat(t).map(function(e){return s(e,n)})}function Z(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function W(e,t){try{return t in e}catch(e){return!1}}function q(r,o,a){var i={};return a.isMergeableObject(r)&&Z(r).forEach(function(e){i[e]=s(r[e],a)}),Z(o).forEach(function(t){var e,n;(!W(e=r,n=t)||Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n))&&(W(r,t)&&a.isMergeableObject(o[t])?i[t]=function(e){if(!e.customMerge)return l;e=e.customMerge(t);return"function"==typeof e?e:l}(a)(r[t],o[t],a):i[t]=s(o[t],a))}),i}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Y,n.isMergeableObject=n.isMergeableObject||K,n.cloneUnlessOtherwiseSpecified=s;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):q(e,t,n):s(t,n)}l.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,n)},{});throw new Error("first argument should be an array")};var Q=l,se=function(e,t){return(se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var m,v,T,A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ce(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function he(e){return e.type===v.literal}function ue(e){return e.type===v.number}function pe(e){return e.type===v.date}function fe(e){return e.type===v.time}function de(e){return e.type===v.select}function me(e){return e.type===v.plural}function be(e){return e.type===v.tag}function ge(e){return e&&"object"==typeof e&&e.type===T.number}function ye(e){return e&&"object"==typeof e&&e.type===T.dateTime}(o=m=m||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=v=v||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=T=T||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ee=/(?:[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;var Be=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Te=/^(@+)?(\+|#+)?[rs]?$/g,Ae=/(\*)(0+)|(#+)(0+)|(0+)/g,we=/^(0+)$/;function _e(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Te,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function He(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 Se(e){return He(e)||{}}function Me(e){for(var i={},t=0,n=e;t<n.length;t++){var r,o=n[t];switch(o.stem){case"percent":case"%":i.style="percent";continue;case"%x100":i.style="percent",i.scale=100;continue;case"currency":i.style="currency",i.currency=o.options[0];continue;case"group-off":case",_":i.useGrouping=!1;continue;case"precision-integer":case".":i.maximumFractionDigits=0;continue;case"measure-unit":case"unit":i.style="unit",i.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":i.notation="compact",i.compactDisplay="short";continue;case"compact-long":case"KK":i.notation="compact",i.compactDisplay="long";continue;case"scientific":i=A(A(A({},i),{notation:"scientific"}),o.options.reduce(function(e,t){return A(A({},e),Se(t))},{}));continue;case"engineering":i=A(A(A({},i),{notation:"engineering"}),o.options.reduce(function(e,t){return A(A({},e),Se(t))},{}));continue;case"notation-simple":i.notation="standard";continue;case"unit-width-narrow":i.currencyDisplay="narrowSymbol",i.unitDisplay="narrow";continue;case"unit-width-short":i.currencyDisplay="code",i.unitDisplay="short";continue;case"unit-width-full-name":i.currencyDisplay="name",i.unitDisplay="long";continue;case"unit-width-iso-code":i.currencyDisplay="symbol";continue;case"scale":i.scale=parseFloat(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ae,function(e,t,n,r,o,a){if(t)i.minimumIntegerDigits=n.length;else{if(r&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(we.test(o.stem))i.minimumIntegerDigits=o.stem.length;else if(ve.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ve,function(e,t,n,r,o,a){return"*"===n?i.minimumFractionDigits=t.length:r&&"#"===r[0]?i.maximumFractionDigits=r.length:o&&a?(i.minimumFractionDigits=o.length,i.maximumFractionDigits=o.length+a.length):(i.minimumFractionDigits=t.length,i.maximumFractionDigits=t.length),""});var a=o.options[0];"w"===a?i=A(A({},i),{trailingZeroDisplay:"stripIfInteger"}):a&&(i=A(A({},i),_e(a)))}else Te.test(o.stem)?i=A(A({},i),_e(o.stem)):((a=He(o.stem))&&(i=A(A({},i),a)),(r=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!we.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem))&&(i=A(A({},i),r)))}return i}var Ce={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var Pe=new RegExp("^".concat(o.source,"*")),Le=new RegExp("".concat(o.source,"*$"));function w(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Oe=!!Object.fromEntries,Re=!!String.prototype.codePointAt,Ie=!!String.prototype.trimStart,xe=!!String.prototype.trimEnd,De=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ue=!0;try{Ue="a"===(null==(i=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:i[0])}catch(g){Ue=!1}var Ge,ke,Fe=o?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$e=Ne?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,a=0;a<o;){if(1114111<(n=e[a++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},je=Oe?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],a=o[0],o=o[1];t[a]=o}return t},Ve=Re?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},Xe=Ie?function(e){return e.trimStart()}:function(e){return e.replace(Pe,"")},Ke=xe?function(e){return e.trimEnd()}:function(e){return e.replace(Le,"")};function ze(e,t){return new RegExp(e,t)}ke=Ue?(Ge=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Ge.lastIndex=t,null!=(t=Ge.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var o=Ve(e,t);if(void 0===o||We(o)||(33<=(n=o)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094))break;r.push(o),t+=65536<=o?2:1}return $e.apply(void 0,r)};a.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},a.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o,a=this.char();if(123===a){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===a&&0<e)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(m.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{a=this.clonePosition();this.bump(),r.push({type:v.pound,location:w(a,this.clonePosition())})}}}return{val:r,err:null}},a.prototype.parseTag=function(e,t){var n=this.clonePosition(),r=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(r,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ze(this.char()))return this.error(m.INVALID_TAG,w(e,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(m.UNMATCHED_CLOSING_TAG,w(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:r,children:t,location:w(n,this.clonePosition())},err:null}:this.error(m.INVALID_TAG,w(e,this.clonePosition())))}return this.error(m.UNCLOSED_TAG,w(n,this.clonePosition()))}return this.error(m.INVALID_TAG,w(n,this.clonePosition()))},a.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},a.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{o=this.tryParseUnquoted(e,t);if(o)r+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}n=w(n,this.clonePosition());return{val:{type:v.literal,value:r,location:n},err:null}},a.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Ze(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},a.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $e.apply(void 0,t)},a.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),$e(n))},a.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(m.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(m.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},a.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ke(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},a.prototype.parseArgumentOptions=function(e,t,n,r){var o,a=this.clonePosition(),i=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(i){case"":return this.error(m.EXPECT_ARGUMENT_TYPE,w(a,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((d=this.parseSimpleArgStyleIfPossible()).err)return d;if(0===(f=Ke(d.val)).length)return this.error(m.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:w(c,this.clonePosition())}}if((c=this.tryParseArgumentClose(r)).err)return c;var h=w(r,this.clonePosition());if(l&&Fe(null==l?void 0:l.style,"::",0)){var u=Xe(l.style.slice(2));if("number"===i)return(d=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?d:{val:{type:v.number,value:n,location:h,style:d.val},err:null};if(0===u.length)return this.error(m.EXPECT_DATE_TIME_SKELETON,h);var p=u,f=(this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var a=0;r+1<e.length&&e.charAt(r+1)===o;)a++,r++;var i=1+(1&a),s=a<2?1:3+(a>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(Ce[t||""]||Ce[n||""]||Ce["".concat(n,"-001")]||Ce["001"])[0]}(t);for("H"!=l&&"k"!=l||(s=0);0<s--;)n+="a";for(;0<i--;)n=l+n}else n+="J"===o?"H":o}return n}(u,this.locale)),{type:T.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},p.replace(Ee,function(e){var t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"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":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][t-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][t-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][t-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][t-1];break;case"k":o.hourCycle="h24",o.hour=["numeric","2-digit"][t-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":o.minute=["numeric","2-digit"][t-1];break;case"s":o.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":o.timeZoneName=t<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""}),o):{}});return{val:{type:"date"===i?v.date:v.time,value:n,location:h,style:f},err:null}}return{val:{type:"number"===i?v.number:"date"===i?v.date:v.time,value:n,location:h,style:null!=(u=null==l?void 0:l.style)?u:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,w(p,A({},p)));this.bumpSpace();var d,f=this.parseIdentifierIfPossible(),h=0;if("select"!==i&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(d=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return d;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=d.val}l=this.tryParsePluralOrSelectOptions(e,i,t,f);if(l.err)return l;if((c=this.tryParseArgumentClose(r)).err)return c;u=w(r,this.clonePosition());return"select"===i?{val:{type:v.select,value:n,options:je(l.val),location:u},err:null}:{val:{type:v.plural,value:n,options:je(l.val),offset:h,pluralType:"plural"===i?"cardinal":"ordinal",location:u},err:null};default:return this.error(m.INVALID_ARGUMENT_TYPE,w(a,s))}},a.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},a.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},a.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Be).filter(function(e){return 0<e.length});n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],o=o.slice(1),i=0,s=o;i<s.length;i++)if(0===s[i].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:o})}return t}(e)}catch(e){return this.error(m.INVALID_NUMBER_SKELETON,t)}return{val:{type:T.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Me(n):{}},err:null}},a.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o=!1,a=[],i=new Set,s=r.value,l=r.location;;){if(0===s.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR,m.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=w(c,this.clonePosition()),s=this.message.slice(c.offset,this.offset())}if(i.has(s))return this.error("select"===t?m.DUPLICATE_SELECT_ARGUMENT_SELECTOR:m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(o=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));c=this.parseMessage(e+1,t,n);if(c.err)return c;var u=this.tryParseArgumentClose(h);if(u.err)return u;a.push([s,{value:c.val,location:w(h,this.clonePosition())}]),i.add(s),this.bumpSpace(),s=(u=this.parseIdentifierIfPossible()).value,l=u.location}return 0===a.length?this.error("select"===t?m.EXPECT_SELECT_ARGUMENT_SELECTOR:m.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(m.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:a,err:null}},a.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var i=this.char();if(!(48<=i&&i<=57))break;o=!0,a=10*a+(i-48),this.bump()}r=w(r,this.clonePosition());return o?De(a*=n)?{val:a,err:null}:this.error(t,r):this.error(e,r)},a.prototype.offset=function(){return this.position.offset},a.prototype.isEOF=function(){return this.offset()===this.message.length},a.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},a.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ve(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},a.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},a.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},a.prototype.bumpIf=function(e){if(Fe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},a.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},a.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},a.prototype.bumpSpace=function(){for(;!this.isEOF()&&We(this.char());)this.bump()},a.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var Ye=a;function a(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function Ze(e){return 97<=e&&e<=122||65<=e&&e<=90}function We(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function qe(e,t){t=A({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Ye(e,t).parse();if(e.err)throw(n=SyntaxError(m[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,de(e)||me(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else ue(e)&&ge(e.style)||(pe(e)||fe(e))&&ye(e.style)?delete e.style.location:be(e)&&n(e.children)})}(e.val),e.val}function Qe(e,t){var n=t&&t.cache?t.cache:ot,r=t&&t.serializer?t.serializer:nt;return(t&&t.strategy?t.strategy:function(e,t){return tt(e,this,1===e.length?Je:et,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Je(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(n);return void 0===o&&(o=e.call(this,r),t.set(n,o)),o}function et(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),o=t.get(n);return void 0===o&&(o=e.apply(this,r),t.set(n,o)),o}function tt(e,t,n,r,o){return n.bind(t,e,r,o)}var nt=function(){return JSON.stringify(arguments)};function rt(){this.cache=Object.create(null)}rt.prototype.get=function(e){return this.cache[e]},rt.prototype.set=function(e,t){this.cache[e]=t};var _,i,ot={create:function(){return new rt}},at={variadic:function(e,t){return tt(e,this,et,t.cache.create(),t.serializer)},monadic:function(e,t){return tt(e,this,Je,t.cache.create(),t.serializer)}};(i=_=_||{}).MISSING_VALUE="MISSING_VALUE",i.INVALID_VALUE="INVALID_VALUE",i.MISSING_INTL_API="MISSING_INTL_API";le(gt,ct=Error),gt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var H,it,st,lt,ct,ht=gt,ut=(le(bt,lt=ht),bt),pt=(le(mt,st=ht),mt),ft=(le(dt,it=ht),dt);function dt(e,t){return it.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),_.MISSING_VALUE,t)||this}function mt(e,t,n){return st.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),_.INVALID_VALUE,n)||this}function bt(e,t,n,r){return lt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),_.INVALID_VALUE,r)||this}function gt(e,t,n){e=ct.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function yt(e,t,n,r,o,a,i){if(1===e.length&&he(e[0]))return[{type:H.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var h=c[l];if(he(h))s.push({type:H.literal,value:h.value});else if(h.type===v.pound)"number"==typeof a&&s.push({type:H.literal,value:n.getNumberFormat(t).format(a)});else{var u=h.value;if(!(o&&u in o))throw new ft(u,i);u=o[u];if(h.type===v.argument)u&&"string"!=typeof u&&"number"!=typeof u||(u="string"==typeof u||"number"==typeof u?String(u):""),s.push({type:"string"==typeof u?H.literal:H.object,value:u});else if(pe(h)){var p="string"==typeof h.style?r.date[h.style]:ye(h.style)?h.style.parsedOptions:void 0;s.push({type:H.literal,value:n.getDateTimeFormat(t,p).format(u)})}else if(fe(h))p="string"==typeof h.style?r.time[h.style]:ye(h.style)?h.style.parsedOptions:r.time.medium,s.push({type:H.literal,value:n.getDateTimeFormat(t,p).format(u)});else if(ue(h))(p="string"==typeof h.style?r.number[h.style]:ge(h.style)?h.style.parsedOptions:void 0)&&p.scale&&(u*=p.scale||1),s.push({type:H.literal,value:n.getNumberFormat(t,p).format(u)});else{if(be(h)){var f=h.children,d=h.value,m=o[d];if("function"!=typeof m)throw new pt(d,"function",i);d=m(yt(f,t,n,r,o,a).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),s.push.apply(s,d.map(function(e){return{type:"string"==typeof e?H.literal:H.object,value:e}}))}if(de(h)){if(!(b=h.options[u]||h.options.other))throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(b.value,t,n,r,o))}else if(me(h)){if(!(b=h.options["=".concat(u)])){if(!Intl.PluralRules)throw new ht('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_.MISSING_INTL_API,i);var m=n.getPluralRules(t,{type:h.pluralType}).select(u-(h.offset||0)),b=h.options[m]||h.options.other}if(!b)throw new ut(h.value,u,Object.keys(h.options),i);s.push.apply(s,yt(b.value,t,n,r,o,u-(h.offset||0)))}}}}return(e=s).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===H.literal&&t.type===H.literal?n.value+=t.value:e.push(t),e},[])}function Et(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(o=H=H||{})[o.literal=0]="literal",o[o.object=1]="object",Object.defineProperty(c,"defaultLocale",{get:function(){return c.memoizedDefaultLocale||(c.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),c.memoizedDefaultLocale},enumerable:!1,configurable:!0}),c.memoizedDefaultLocale=null,c.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},c.__parse=qe,c.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"}}};var Bt=c;function c(e,t,n,r){var o,a,i=this;if(void 0===t&&(t=c.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=i.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===H.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return yt(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=c.resolveLocale(t),"string"==typeof e){if(this.message=e,!c.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=c.__parse(e,{ignoreTag:null==r?void 0:r.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=c.formats,(a=n)?Object.keys(o).reduce(function(e,t){var n,r;return e[t]=(n=o[t],(r=a[t])?A(A(A({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=A(A({},n[t]),r[t]||{}),e},{})):n),e},A({},o)):o),this.formatters=r&&r.formatters||{getNumberFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:at.variadic}),getDateTimeFormat:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.dateTime),strategy:at.variadic}),getPluralRules:Qe(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ce([void 0],t,!1)))},{cache:Et(t.pluralRules),strategy:at.variadic})}}const h={},vt=(e,t,n)=>n&&(t in h||(h[t]={}),e in h[t]||(h[t][e]=n),n),Tt=(t,n)=>{if(null!=n){if(n in h&&t in h[n])return h[n][t];var r=Rt(n);for(let e=0;e<r.length;e++){var o=function(e,n){if(!wt(e))return null;e=function(e){return At[e]||null}(e);{var r=n;if(null==r)return;if(r in e)return e[r];const o=r.split(".");let t=e;for(let e=0;e<o.length;e++)if("object"==typeof t){if(0<e){const r=o.slice(e,o.length).join(".");if(r in t){t=t[r];break}}t=t[o[e]]}else t=void 0;return t}}(r[e],t);if(o)return vt(t,n,o)}}};let At;const u=X({});function wt(e){return e in At}function _t(t,...n){delete h[t],u.update(e=>(e[t]=Q.all([e[t]||{},...n]),e))}r([u],([e])=>Object.keys(e)),u.subscribe(e=>At=e);const Ht={};function St(e){return Ht[e]}function Mt(e){return null!=e&&Rt(e).some(e=>{return null==(e=St(e))?void 0:e.size})}const p={};function Ct(e){if(!Mt(e))return e in p?p[e]:Promise.resolve();const t=Rt(e).map(e=>{var t=St(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return p[e]=Promise.all(t.map(([e,t])=>{{var r=e;e=t;const n=Promise.all(e.map(e=>{var t=r,n=e;return Ht[t].delete(n),0===Ht[t].size&&delete Ht[t],e().then(e=>e.default||e)}));return n.then(e=>_t(r,...e))}})).then(()=>{if(Mt(e))return Ct(e);delete p[e]}),p[e]}function f(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}const d={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Pt=X(!1);let Lt;const Nt=X(null);function Ot(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function Rt(e,t=d.fallbackLocale){e=Ot(e);return t?[...new Set([...e,...Ot(t)])]:e}function S(){return null!=Lt?Lt:void 0}Nt.subscribe(e=>{Lt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const M=Object.assign(Object.assign({},Nt),{set:t=>{if(t&&function(e){if(null!=e){var t=Rt(e);for(let e=0;e<t.length;e++){var n=t[e];if(wt(n))return n}}}(t)&&Mt(t)){var n=d["loadingDelay"];let e;return"undefined"!=typeof window&&null!=S()&&n?e=window.setTimeout(()=>Pt.set(!0),n):Pt.set(!0),Ct(t).then(()=>{Nt.set(t)}).finally(()=>{clearTimeout(e),Pt.set(!1)})}return Nt.set(t)}}),It=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},xt=(e,t)=>{var n=d["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Dt=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=xt("number",n)),new Intl.NumberFormat(t,e)}),Ut=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=xt("date",n):0===Object.keys(e).length&&(e=xt("date","short")),new Intl.DateTimeFormat(t,e)}),Gt=It(e=>{var{locale:t,format:n}=e,e=f(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=xt("time",n):0===Object.keys(e).length&&(e=xt("time","short")),new Intl.DateTimeFormat(t,e)}),kt=It((e,t=S())=>new Bt(e,t,d.formats,{ignoreTag:d.ignoreTag})),Ft=r([M,u],()=>(e,t={})=>{var n,r;let o=t;"object"==typeof e&&(e=(o=e).id);var{values:a,locale:i=S(),default:s}=o;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Tt(e,i);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(r=null!=(n=null==(n=(r=d).handleMissingMessage)?void 0:n.call(r,{locale:i,id:e,defaultValue:s}))?n:s)?r:e;if(!a)return l;let c=l;try{c=kt(l,i).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c}),$t=(r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Gt(Object.assign({locale:t},e))})(t).format(e)),r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Ut(Object.assign({locale:t},e))})(t).format(e)),r([M],()=>(e,t)=>((e={})=>{var{locale:t=S()}=e,e=f(e,["locale"]);return Dt(Object.assign({locale:t},e))})(t).format(e)),r([M,u],()=>(e,t=S())=>Tt(e,t)),{en:{balanceModal:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"}},zh:{balanceModal:{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"}},de:{balanceModal:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"}},it:{balanceModal:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"}},fr:{balanceModal:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"}},es:{balanceModal:{balanceTitle:"Tu saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo de bonificación",depositButton:"Depositar"}},tr:{balanceModal:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"}},ru:{balanceModal:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"}},ro:{balanceModal:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"}},hr:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus saldo",depositButton:"Polog"}},hu:{balanceModal:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"}},pl:{balanceModal:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"}},pt:{balanceModal:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"}},sl:{balanceModal:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"}},sr:{balanceModal:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"}}});var jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt=function(n){var A=n={path:void 0,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},e=n.exports,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jt:globalThis,L=t.setTimeout,N=t.clearTimeout,O=t.XMLHttpRequest,r=t.XDomainRequest,o=t.ActiveXObject,a=t.EventSource,i=t.document,u=t.Promise,p=t.fetch,s=t.Response,f=t.TextDecoder,l=t.TextEncoder,d=t.AbortController;{var c;"undefined"==typeof window||void 0===i||"readyState"in i||null!=i.body||(i.readyState="loading",window.addEventListener("load",function(e){i.readyState="complete"},!1)),null==O&&null!=o&&(O=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==d&&(c=p,p=function(e,t){var n=t.signal;return c(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},d=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}})}function h(){this.bitsNeeded=0,this.codePoint=0}h.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",o=this.bitsNeeded,a=this.codePoint,i=0;i<e.length;i+=1){var s=e[i];0!==o&&(s<128||191<s||!t(a<<6|63&s,o-6,n(o,a)))&&(o=0,a=65533,r+=String.fromCharCode(a)),0===o?(a=0<=s&&s<=127?(o=0,s):192<=s&&s<=223?(o=6,31&s):224<=s&&s<=239?(o=12,15&s):240<=s&&s<=247?(o=18,7&s):(o=0,65533),0===o||t(a,o,n(o,a))||(o=0,a=65533)):(o-=6,a=a<<6|63&s),0===o&&(a<=65535?r+=String.fromCharCode(a):r=(r+=String.fromCharCode(55296+(a-65535-1>>10)))+String.fromCharCode(56320+(a-65535-1&1023)))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=l&&function(){try{return"test"===(new f).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(f=h);function m(){}function R(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=m,this.onload=m,this.onerror=m,this.onreadystatechange=m,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=m}function b(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var o=n[r].split(": "),a=o.shift(),o=o.join(": ");t[b(a)]=o}this._map=t}function I(){}function y(e){this._headers=e}function x(){}function D(){this._listeners=Object.create(null)}function E(e){L(function(){throw e},0)}function B(e){this.type=e,this.target=void 0}function U(e,t){B.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function G(e,t){B.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function k(e,t){B.call(this,e),this.error=t.error}R.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:m}),l(),1===i||2===i||3===i){if(i=4,0!==r&&(N(r),r=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}}var o=this,a=this._xhr,i=1,r=0,s=(this._abort=function(e){0!==o._sendTimeout&&(N(o._sendTimeout),o._sendTimeout=0),1!==i&&2!==i&&3!==i||(i=4,a.onload=m,a.onerror=m,a.onabort=m,a.onprogress=m,a.onreadystatechange=m,a.abort(),0!==r&&(N(r),r=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),i=0},function(){if(1===i){var t=0,n="",r=void 0;if("contentType"in a)t=200,n="OK",r=a.contentType;else try{t=a.status,n=a.statusText,r=a.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(i=2,o.readyState=2,o.status=t,o.statusText=n,o._contentType=r,o.onreadystatechange())}}),l=function(){if(s(),2===i||3===i){i=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},c=function(){r=L(function(){c()},500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){n("load",e)}),"onerror"in a&&(a.onerror=function(e){n("error",e)}),"onabort"in a&&(a.onabort=function(e){n("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){e=e,null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||n(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&s())}),!("contentType"in a)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(e,t,!0),"readyState"in a&&(r=L(function(){c()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(e){return this._contentType},R.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},R.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==i||null==i.readyState||"complete"===i.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=L(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[b(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),I.prototype.open=function(o,a,t,n,e,r,i){o.open("GET",e);var s,l=0;for(s in o.onprogress=function(){var e=o.responseText.slice(l);l+=e.length,t(e)},o.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},o.onload=function(){n(null)},o.onabort=function(){n(null)},o.onreadystatechange=function(){var e,t,n,r;o.readyState===O.HEADERS_RECEIVED&&(e=o.status,t=o.statusText,n=o.getResponseHeader("Content-Type"),r=o.getAllResponseHeaders(),a(e,t,n,new g(r)))},o.withCredentials=r,i)Object.prototype.hasOwnProperty.call(i,s)&&o.setRequestHeader(s,i[s]);return o.send(),o},y.prototype.get=function(e){return this._headers.get(e)},x.prototype.open=function(e,t,o,n,r,a,i){var s=null,l=new d,c=l.signal,h=new f;return p(r,{headers:i,credentials:a?"include":"same-origin",signal:c,cache:"no-store"}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new u(function(t,n){function r(){s.read().then(function(e){e.done?t(void 0):(e=h.decode(e.value,{stream:!0}),o(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=s&&s.cancel(),l.abort()}}},D.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var o=t[r];try{"function"==typeof o.handleEvent?o.handleEvent(e):o.call(this,e)}catch(e){E(e)}}},D.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var o=!1,a=0;a<r.length;a+=1)r[a]===t&&(o=!0);o||r.push(t)},D.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var o=[],a=0;a<r.length;a+=1)r[a]!==t&&o.push(r[a]);0===o.length?delete n[e]:n[e]=o}},U.prototype=Object.create(B.prototype),G.prototype=Object.create(B.prototype),k.prototype=Object.create(B.prototype);function F(e,t){e=null==e?t:parseInt(e,10);return j(e=e!=e?t:e)}function $(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){E(e)}}var w=-1,_=-1,V=/^text\/event\-stream(;.*)?$/i,j=function(e){return Math.min(Math.max(e,1e3),18e6)};function v(e,t){var l,a,i,c,h,u,p,f,d,n,s,m,b,g,y,E,B,v,T,A,w,_,H,S,M,C,P;D.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,a=e,e=t,a=String(a),t=Boolean(e.withCredentials),i=e.lastEventIdQueryParameterName||"lastEventId",c=j(1e3),h=F(e.heartbeatTimeout,45e3),u="",p=c,f=!1,d=0,n=e.headers||{},e=e.Transport,s=X&&null==e?void 0:new R(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==r?O:r)),m=new(null!=e&&"string"!=typeof e?e:null==s?x:I),b=void 0,y=-1,T=v=B=E="",_=w=A=g=0,H=function(e,t,n,r){var o,a;0===y&&(200===e&&null!=n&&V.test(n)?(y=1,f=Date.now(),p=c,l.readyState=1,o=new G("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onopen,o)):(a="",a=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",C(),o=new G("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(o),$(l,l.onerror,o),console.error(a)))},S=function(e){if(1===y){for(var t=-1,n=0;n<e.length;n+=1)(i=e.charCodeAt(n))!=="\n".charCodeAt(0)&&i!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(f=Date.now(),d+=e.length);for(var o=0;o<r.length;o+=1){var a,i=r.charCodeAt(o);if(-1===A&&i==="\n".charCodeAt(0))A=0;else if(-1===A&&(A=0),i==="\r".charCodeAt(0)||i==="\n".charCodeAt(0)){if(0!==A&&(1===A&&(_=o+1),s=r.slice(w,_-1),a=r.slice(_+(_<o&&r.charCodeAt(_)===" ".charCodeAt(0)?1:0),o),"data"===s?E=E+"\n"+a:"id"===s?B=a:"event"===s?v=a:"retry"===s?(c=F(a,c),p=c):"heartbeatTimeout"===s&&(h=F(a,h),0!==g&&(N(g),g=L(function(){P()},h)))),0===A){if(""!==E){u=B;var s=new U(v=""===v?"message":v,{data:E.slice(1),lastEventId:B});if(l.dispatchEvent(s),"open"===v?$(l,l.onopen,s):"message"===v?$(l,l.onmessage,s):"error"===v&&$(l,l.onerror,s),2===y)return}v=E=""}A=i==="\r".charCodeAt(0)?-1:0}else 0===A&&(w=o,A=1),1===A?i===":".charCodeAt(0)&&(_=o+1,A=2):2===A&&(A=3)}}},M=function(e){var t;1!==y&&0!==y||(y=-1,0!==g&&(N(g),g=0),g=L(function(){P()},p),p=j(Math.min(16*c,2*p)),l.readyState=0,t=new k("error",{error:e}),l.dispatchEvent(t),$(l,l.onerror,t),null!=e&&console.error(e))},C=function(){y=2,null!=b&&(b.abort(),b=void 0),0!==g&&(N(g),g=0),l.readyState=2},P=function(){if(g=0,-1===y){f=!1,d=0,g=L(function(){P()},h),B=u,T=v=E="",A=_=w=y=0;var e=a,t=("data:"!==a.slice(0,5)&&"blob:"!==a.slice(0,5)&&""!==u&&(e=-1===(t=a.indexOf("?"))?a:a.slice(0,t+1)+a.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===i?"":e}),e+=(-1===a.indexOf("?")?"?":"&")+i+"="+encodeURIComponent(u)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);try{b=m.open(s,H,S,M,e,t,n)}catch(e){throw C(),e}}else f||null==b?(e=Math.max((f||Date.now())+h-Date.now(),1),f=!1,g=L(function(){P()},e)):(M(new Error("No activity within "+h+" milliseconds. "+(0===y?"No response received.":d+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0))},l.url=a,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=C,P()}var X=null!=p&&null!=s&&"body"in s.prototype,T=((v.prototype=Object.create(D.prototype)).CONNECTING=0,v.prototype.OPEN=1,v.prototype.CLOSED=2,v.prototype.close=function(){this._close()},v.CONNECTING=0,v.OPEN=1,v.CLOSED=2,v.prototype.withCredentials=void 0,a),t=(null==O||null!=a&&"withCredentials"in a.prototype||(T=v),L(function(){var e;-1!==["Asia/Anadyr","Asia/Barnaul","Asia/Chita","Asia/Irkutsk","Asia/Kamchatka","Asia/Khandyga","Asia/Krasnoyarsk","Asia/Magadan","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Sakhalin","Asia/Srednekolymsk","Asia/Tomsk","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Europe/Astrakhan","Europe/Kaliningrad","Europe/Kirov","Europe/Moscow","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Ulyanovsk","Europe/Volgograd","W-SU"].indexOf((new Intl.DateTimeFormat).resolvedOptions().timeZone)&&(e=["","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","","[37m24 февраля "+(e=function(e){return"[97m[1m"+e+"[22m[37m"})("Россия напала на Украину")+".","","Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского вторжения. "+e("91% украинцев полностью поддерживает своего президента Владимира Зеленского")+" и его ответные действия на нападение России.","","Весь мир осудил необоснованное вторжение и решил ввести "+e("невиданные ранее санкции против России")+". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных граждан.","","В то же время, "+e("российское правительство ограничивает доступ граждан к внешней информации")+", насаждая однобокие формулировки и версии происходящего.","","В качестве надежного источника информации загрузите безопасный браузер Tor:","",e("https://www.torproject.org/"),"","И посетите:","",e("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian"),"","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦","",e("Прекратите эту бессмысленную войну! Остановите военного преступника Путина!")+"[39m","","🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦",""].join("\n"),alert(e),window.open("http://www.change.org/NetVoyne"))},15e3),function(e){e.EventSourcePolyfill=v,e.NativeEventSource=a,e.EventSource=T}(e));return 0,n.exports}();function Xt(n){let r,o,U,a,i,s,l,G,c,h,u,p,k,f,d,m,F,b,g,$,y,E,B,j,v,T,V,A,w,X,_,H,S,K,M,C,z,P,Y,Z,L,N,W,q,Q,O=n[3]("balanceModal.balanceTitle")+"",R=n[3]("balanceModal.totalBalance")+"",I=n[3]("balanceModal.cashBalance")+"",x=n[3]("balanceModal.bonusBalance")+"",D=n[3]("balanceModal.depositButton")+"";return{c(){r=e("div"),o=e("div"),U=re(),a=e("div"),i=e("div"),s=e("p"),l=t(O),G=re(),c=e("div"),h=e("div"),u=e("p"),p=t(R),k=re(),f=e("p"),d=e("span"),m=t(n[1]),F=re(),b=e("span"),g=t(n[2]),$=re(),y=e("div"),E=e("p"),B=t(I),j=re(),v=e("p"),(T=e("span")).textContent=""+n[4].get("Casino").balanceAmount,V=re(),A=e("span"),w=t(n[2]),X=re(),_=e("div"),H=e("p"),S=t(x),K=re(),M=e("p"),(C=e("span")).textContent=""+n[4].get("UBS").balanceAmount,z=re(),P=e("span"),Y=t(n[2]),Z=re(),L=e("div"),N=e("button"),W=t(D),oe(o,"class","BalanceModalClose"),oe(s,"class","BalanceModalTitle"),oe(s,"part","BalanceModalTitle"),oe(i,"class","BalanceModalHeader"),oe(i,"part","BalanceModalHeader"),oe(u,"class","BalanceModalText"),oe(u,"part","BalanceModalText"),oe(d,"class","BalanceModalAmount"),oe(d,"part","BalanceModalAmount"),oe(b,"class","BalanceModalCurrency"),oe(b,"part","BalanceModalCurrency"),oe(f,"class","BalanceModalValue"),oe(f,"part","BalanceModalValue"),oe(h,"class","BalanceModalRow"),oe(h,"part","BalanceModalRow"),oe(E,"class","BalanceModalText"),oe(E,"part","BalanceModalText"),oe(T,"class","BalanceModalAmount"),oe(T,"part","BalanceModalAmount"),oe(A,"class","BalanceModalCurrency"),oe(A,"part","BalanceModalCurrency"),oe(v,"class","BalanceModalValue"),oe(v,"part","BalanceModalValue"),oe(y,"class","BalanceModalRow"),oe(y,"part","BalanceModalRow"),oe(H,"class","BalanceModalText"),oe(H,"part","BalanceModalText"),oe(C,"class","BalanceModalAmount"),oe(C,"part","BalanceModalAmount"),oe(P,"class","BalanceModalCurrency"),oe(P,"part","BalanceModalCurrency"),oe(M,"class","BalanceModalValue"),oe(M,"part","BalanceModalValue"),oe(_,"class","BalanceModalRow"),oe(_,"part","BalanceModalRow"),oe(c,"class","BalanceModalBody"),oe(c,"part","BalanceModalBody"),oe(N,"class","BalanceModalAction"),oe(N,"part","BalanceModalAction"),oe(L,"class","BalanceModalFooter"),oe(L,"part","BalanceModalFooter"),oe(a,"class","BalanceModal"),oe(a,"part","BalanceModal"),oe(r,"class","BalanceModalWrapper"),oe(r,"part","BalanceModalWrapper")},m(e,t){te(e,r,t),ee(r,o),ee(r,U),ee(r,a),ee(a,i),ee(i,s),ee(s,l),ee(a,G),ee(a,c),ee(c,h),ee(h,u),ee(u,p),ee(h,k),ee(h,f),ee(f,d),ee(d,m),ee(f,F),ee(f,b),ee(b,g),ee(c,$),ee(c,y),ee(y,E),ee(E,B),ee(y,j),ee(y,v),ee(v,T),ee(v,V),ee(v,A),ee(A,w),ee(c,X),ee(c,_),ee(_,H),ee(H,S),ee(_,K),ee(_,M),ee(M,C),ee(M,z),ee(M,P),ee(P,Y),ee(a,Z),ee(a,L),ee(L,N),ee(N,W),q||(Q=[ie(o,"click",n[12]),ie(N,"click",n[13])],q=!0)},p(e,t){8&t&&O!==(O=e[3]("balanceModal.balanceTitle")+"")&&ae(l,O),8&t&&R!==(R=e[3]("balanceModal.totalBalance")+"")&&ae(p,R),2&t&&ae(m,e[1]),4&t&&ae(g,e[2]),8&t&&I!==(I=e[3]("balanceModal.cashBalance")+"")&&ae(B,I),4&t&&ae(w,e[2]),8&t&&x!==(x=e[3]("balanceModal.bonusBalance")+"")&&ae(S,x),4&t&&ae(Y,e[2]),8&t&&D!==(D=e[3]("balanceModal.depositButton")+"")&&ae(W,D)},d(e){e&&ne(r),q=!1,J(Q)}}}function Kt(n){let r,o,a;return{c(){oe(r=e("div"),"class","ShowBalanceModalOverlay"),oe(r,"part","ShowBalanceModalOverlay")},m(e,t){te(e,r,t),o||(a=ie(r,"click",n[14]),o=!0)},p:g,d(e){e&&ne(r),o=!1,a()}}}function zt(n){let r,o,a,i,s,l,c,h,u,p,f,d,m=n[0]&&Xt(n),b=n[0]&&Kt(n);return{c(){r=e("div"),o=e("p"),a=t(n[1]),i=re(),s=t(n[2]),l=re(),(c=e("span")).innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',h=re(),m&&m.c(),u=re(),b&&b.c(),p=t(""),this.c=g,oe(o,"class","BalanceValue"),oe(o,"part","BalanceValue"),oe(r,"class","ShowBalance"),oe(r,"part","ShowBalance")},m(e,t){te(e,r,t),ee(r,o),ee(o,a),ee(o,i),ee(o,s),ee(o,l),ee(o,c),ee(r,h),m&&m.m(r,null),te(e,u,t),b&&b.m(e,t),te(e,p,t),f||(d=ie(o,"click",n[11]),f=!0)},p(e,[t]){2&t&&ae(a,e[1]),4&t&&ae(s,e[2]),e[0]?m?m.p(e,t):((m=Xt(e)).c(),m.m(r,null)):m&&(m.d(1),m=null),e[0]?b?b.p(e,t):((b=Kt(e)).c(),b.m(p.parentNode,p)):b&&(b.d(1),b=null)},i:g,o:g,d(e){e&&ne(r),m&&m.d(),e&&ne(u),b&&b.d(e),e&&ne(p),f=!1,d()}}}function Yt(t,e,o){let n;var r=Ft;t.$$.on_destroy.push(O(r,e=>o(3,n=e)));let a,{userid:i=""}=e,{session:s=""}=e,{endpoint:l=""}=e,{lang:c="en"}=e,h=!1,u="",p="",f=!1,d=new Map;Object.keys($t).forEach(e=>{_t(e,$t[e])});const m=e=>{switch(e){case"balance":o(0,h=!0);break;case"closebalance":o(0,h=!1)}},b=(e,t)=>{let n=new Vt.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":t}});a&&a.close(),(a=n).addEventListener("message",r=>{try{let e=JSON.parse(r.data)["balanceChange"],t=d.get("Casino"),n=d.get("UBS");e&&e[t.id]&&d.set("Casino",Object.assign(Object.assign({},t),{balanceAmount:e[t.id].afterAmount})),e&&e[n.id]&&d.set("UBS",Object.assign(Object.assign({},n),{balanceAmount:e[n.id].afterAmount})),t=d.get("Casino"),n=d.get("UBS"),o(1,u=(parseFloat(t.balanceAmount)+parseFloat(n.balanceAmount)).toFixed(2))}catch(r){console.log("Balance stream failed: ",r),b(`${l}/player/${i}/balance/updates`,s)}})},g=()=>{m("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),"function"==typeof gtag&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},y=e=>{e.data&&"LogoutSuccessfull"===e.data.type&&a.close()};return r=()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y),a&&a.close()}),function(){if(E)return E;throw new Error("Function called outside component initialization")}().$$.on_mount.push(r),t.$$set=e=>{"userid"in e&&o(7,i=e.userid),"session"in e&&o(8,s=e.session),"endpoint"in e&&o(9,l=e.endpoint),"lang"in e&&o(10,c=e.lang)},t.$$.update=()=>{var e;1920&t.$$.dirty&&l&&i&&s&&c&&(e=c,M.set(e),(async e=>{try{f=!0;const t=await fetch(e,{method:"GET",headers:{"X-SessionID":s}}),n=await t.json();if(!t.ok)throw f=!1,new Error("Failed to fetch balance data !");{f=!1,n.items.map(e=>d.set(e.displayName,e));const e=d.get("Casino"),r=d.get("UBS");o(2,p=e.currency),o(1,u=(parseFloat(e.balanceAmount)+parseFloat(r.balanceAmount)).toFixed(2))}}catch(e){f=!1,console.log("Balance error: ",e)}finally{f=!1}})(`${l}/player/${i}/account`)),896&t.$$.dirty&&l&&i&&s&&b(`${l}/player/${i}/balance/updates`,s)},[h,u,p,n,d,m,g,i,s,l,c,()=>m("balance"),()=>m("closebalance"),()=>g(),()=>m("closebalance")]}class Zt extends V{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-50%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-color-primary, #D0046C) 1A;border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:\"\";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:\"\";background:var(--emfe-w-color-secondary, #FD2839);position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalRow{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow:last-child{border-bottom:none}.BalanceModalRow .BalanceModalText{color:var(--emfe-w-color-gray-300, #58586B);font-size:14px;text-transform:capitalize}.BalanceModalRow .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-color-contrast, #07072A)}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-color-primary, #D0046C);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover{background:var(--emfe-w-color-primary-600, #99034F)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}</style>",j(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Yt,zt,N,{userid:7,session:8,endpoint:9,lang:10},null),e&&(e.target&&te(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["userid","session","endpoint","lang"]}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),B()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),B()}get endpoint(){return this.$$.ctx[9]}set endpoint(e){this.$$set({endpoint:e}),B()}get lang(){return this.$$.ctx[10]}set lang(e){this.$$set({lang:e}),B()}}return customElements.get("player-account-balance-modal")||customElements.define("player-account-balance-modal",Zt),Zt});
|
|
2
2
|
//# sourceMappingURL=player-account-balance-modal.js.map
|