@everymatrix/player-account-balance-modal-nd 1.45.2 → 1.45.4

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,15 +1,19 @@
1
- "use strict";var dr=Object.defineProperty,pr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var gr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var Rt=(e,t,n)=>t in e?dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t)=>{for(var n in t||(t={}))gr.call(t,n)&&Rt(e,n,t[n]);if(un)for(var n of un(t))br.call(t,n)&&Rt(e,n,t[n]);return e},Nt=(e,t)=>pr(e,mr(t));var le=(e,t,n)=>Rt(e,typeof t!="symbol"?t+"":t,n);var It=(e,t,n)=>new Promise((r,i)=>{var o=h=>{try{l(n.next(h))}catch(u){i(u)}},s=h=>{try{l(n.throw(h))}catch(u){i(u)}},l=h=>h.done?r(h.value):Promise.resolve(h.value).then(o,s);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ue(){}function In(e){return e()}function hn(){return Object.create(null)}function $e(e){e.forEach(In)}function tn(e){return typeof e=="function"}function Pn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function vr(e){return Object.keys(e).length===0}function Ln(e,...t){if(e==null){for(const r of t)r(void 0);return ue}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function yr(e,t,n){e.$$.on_destroy.push(Ln(t,n))}function C(e,t){e.appendChild(t)}function Er(e,t,n){const r=xr(e);if(!r.getElementById(t)){const i=W("style");i.id=t,i.textContent=n,_r(r,i)}}function xr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _r(e,t){return C(e.head||e,t),t.sheet}function je(e,t,n){e.insertBefore(t,n||null)}function Ce(e){e.parentNode&&e.parentNode.removeChild(e)}function Dn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function W(e){return document.createElement(e)}function cn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function _e(e){return document.createTextNode(e)}function de(){return _e(" ")}function mt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function P(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tr(e){return Array.from(e.childNodes)}function Se(e,t){t=""+t,e.data!==t&&(e.data=t)}function Br(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let tt;function et(e){tt=e}function Sr(){if(!tt)throw new Error("Function called outside component initialization");return tt}function wr(e){Sr().$$.on_mount.push(e)}const Pe=[],jt=[];let Le=[];const fn=[],Ar=Promise.resolve();let Vt=!1;function Cr(){Vt||(Vt=!0,Ar.then(Y))}function kt(e){Le.push(e)}const Pt=new Set;let Ne=0;function Y(){if(Ne!==0)return;const e=tt;do{try{for(;Ne<Pe.length;){const t=Pe[Ne];Ne++,et(t),Hr(t.$$)}}catch(t){throw Pe.length=0,Ne=0,t}for(et(null),Pe.length=0,Ne=0;jt.length;)jt.pop()();for(let t=0;t<Le.length;t+=1){const n=Le[t];Pt.has(n)||(Pt.add(n),n())}Le.length=0}while(Pe.length);for(;fn.length;)fn.pop()();Vt=!1,Pt.clear(),et(e)}function Hr(e){if(e.fragment!==null){e.update(),$e(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(kt)}}function Or(e){const t=[],n=[];Le.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Le=t}const Rr=new Set;function Mr(e,t){e&&e.i&&(Rr.delete(e),e.i(t))}function gt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),kt(()=>{const o=e.$$.on_mount.map(In).filter(tn);e.$$.on_destroy?e.$$.on_destroy.push(...o):$e(o),e.$$.on_mount=[]}),i.forEach(kt)}function Ir(e,t){const n=e.$$;n.fragment!==null&&(Or(n.after_update),$e(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Pr(e,t){e.$$.dirty[0]===-1&&(Pe.push(e),Cr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lr(e,t,n,r,i,o,s=null,l=[-1]){const h=tt;et(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ue,not_equal:i,bound:hn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:hn(),dirty:l,skip_bound:!1,root:t.target||h.$$.root};s&&s(u.root);let c=!1;if(u.ctx=n?n(e,t.props||{},(g,b,..._)=>{const T=_.length?_[0]:b;return u.ctx&&i(u.ctx[g],u.ctx[g]=T)&&(!u.skip_bound&&u.bound[g]&&u.bound[g](T),c&&Pr(e,g)),b}):[],u.update(),c=!0,$e(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const g=Tr(t.target);u.fragment&&u.fragment.l(g),g.forEach(Ce)}else u.fragment&&u.fragment.c();t.intro&&Mr(e.$$.fragment),Nr(e,t.target,t.anchor),Y()}et(h)}let Un;typeof HTMLElement=="function"&&(Un=class extends HTMLElement{constructor(t,n,r){super();le(this,"$$ctor");le(this,"$$s");le(this,"$$c");le(this,"$$cn",!1);le(this,"$$d",{});le(this,"$$r",!1);le(this,"$$p_d",{});le(this,"$$l",{});le(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return It(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=W("slot"),o!=="default"&&P(s,"name",o)},m:function(u,c){je(u,s,c)},d:function(u){u&&Ce(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Br(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=ct(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Nt(Mt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=ct(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ct(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function ct(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dr(e,t,n,r,i,o){let s=class extends Un{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(h){var u;h=ct(l,h,t),this.$$d[l]=h,(u=this.$$c)==null||u.$set({[l]:h})}})}),r.forEach(l=>{Object.defineProperty(s.prototype,l,{get(){var h;return(h=this.$$c)==null?void 0:h[l]}})}),e.element=s,s}class Ur{constructor(){le(this,"$$");le(this,"$$set")}$destroy(){Ir(this,1),this.$destroy=ue}$on(t,n){if(!tn(n))return ue;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!vr(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Fr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fr);const Ie=[];function Gr(e,t){return{subscribe:yt(e,t).subscribe}}function yt(e,t=ue){let n;const r=new Set;function i(l){if(Pn(e,l)&&(e=l,n)){const h=!Ie.length;for(const u of r)u[1](),Ie.push(u,e);if(h){for(let u=0;u<Ie.length;u+=2)Ie[u][0](Ie[u+1]);Ie.length=0}}}function o(l){i(l(e))}function s(l,h=ue){const u=[l,h];return r.add(u),r.size===1&&(n=t(i,o)||ue),l(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function Ve(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Gr(n,(s,l)=>{let h=!1;const u=[];let c=0,g=ue;const b=()=>{if(c)return;g();const T=t(r?u[0]:u,s,l);o?s(T):g=tn(T)?T:ue},_=i.map((T,O)=>Ln(T,A=>{u[O]=A,c&=~(1<<O),h&&b()},()=>{c|=1<<O}));return h=!0,b(),function(){$e(_),g(),h=!1}})}var $r=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr=function(t){return kr(t)&&!Xr(t)};function kr(e){return!!e&&typeof e=="object"}function Xr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Zr(e)}var zr=typeof Symbol=="function"&&Symbol.for,Wr=zr?Symbol.for("react.element"):60103;function Zr(e){return e.$$typeof===Wr}function qr(e){return Array.isArray(e)?[]:{}}function nt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?De(qr(e),e,t):e}function Jr(e,t,n){return e.concat(t).map(function(r){return nt(r,n)})}function Qr(e,t){if(!t.customMerge)return De;var n=t.customMerge(e);return typeof n=="function"?n:De}function Yr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dn(e){return Object.keys(e).concat(Yr(e))}function Fn(e,t){try{return t in e}catch(n){return!1}}function Kr(e,t){return Fn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ei(e,t,n){var r={};return n.isMergeableObject(e)&&dn(e).forEach(function(i){r[i]=nt(e[i],n)}),dn(t).forEach(function(i){Kr(e,i)||(Fn(e,i)&&n.isMergeableObject(t[i])?r[i]=Qr(i,n)(e[i],t[i],n):r[i]=nt(t[i],n))}),r}function De(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Jr,n.isMergeableObject=n.isMergeableObject||Vr,n.cloneUnlessOtherwiseSpecified=nt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):ei(e,t,n):nt(t,n)}De.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return De(r,i,n)},{})};var ti=De,ni=ti;const ri=jr(ni);var Xt=function(e,t){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Xt(e,t)};function Et(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var L=function(){return L=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)};function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Lt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var R;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(R||(R={}));var k;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(k||(k={}));var Ue;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ue||(Ue={}));function pn(e){return e.type===k.literal}function oi(e){return e.type===k.argument}function Gn(e){return e.type===k.number}function $n(e){return e.type===k.date}function jn(e){return e.type===k.time}function Vn(e){return e.type===k.select}function kn(e){return e.type===k.plural}function ai(e){return e.type===k.pound}function Xn(e){return e.type===k.tag}function zn(e){return!!(e&&typeof e=="object"&&e.type===Ue.number)}function zt(e){return!!(e&&typeof e=="object"&&e.type===Ue.dateTime)}var Wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,si=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function li(e){var t={};return e.replace(si,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ui=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ui).filter(function(b){return b.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],h=s.slice(1),u=0,c=h;u<c.length;u++){var g=c[u];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:h})}return n}function ci(e){return e.replace(/^(.*?)-/,"")}var mn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zn=/^(@+)?(\+|#+)?[rs]?$/g,fi=/(\*)(0+)|(#+)(0+)|(0+)/g,qn=/^(0+)$/;function gn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Jn(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 di(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function bn(e){var t={},n=Jn(e);return n||t}function pi(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ci(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=L(L(L({},t),{notation:"scientific"}),i.options.reduce(function(h,u){return L(L({},h),bn(u))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),i.options.reduce(function(h,u){return L(L({},h),bn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(fi,function(h,u,c,g,b,_){if(u)t.minimumIntegerDigits=c.length;else{if(g&&b)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(mn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(mn,function(h,u,c,g,b,_){return c==="*"?t.minimumFractionDigits=u.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:b&&_?(t.minimumFractionDigits=b.length,t.maximumFractionDigits=b.length+_.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=L(L({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=L(L({},t),gn(o)));continue}if(Zn.test(i.stem)){t=L(L({},t),gn(i.stem));continue}var s=Jn(i.stem);s&&(t=L(L({},t),s));var l=di(i.stem);l&&(t=L(L({},t),l))}return t}var ht={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"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"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mi(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),l=o<2?1:3+(o>>1),h="a",u=gi(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=h;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function gi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ht[r||""]||ht[n||""]||ht["".concat(n,"-001")]||ht["001"];return i[0]}var Dt,bi=new RegExp("^".concat(Wn.source,"*")),vi=new RegExp("".concat(Wn.source,"*$"));function N(e,t){return{start:e,end:t}}var yi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ei=!!String.fromCodePoint,xi=!!Object.fromEntries,_i=!!String.prototype.codePointAt,Ti=!!String.prototype.trimStart,Bi=!!String.prototype.trimEnd,Si=!!Number.isSafeInteger,wi=Si?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wt=!0;try{var Ai=Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wt=((Dt=Ai.exec("a"))===null||Dt===void 0?void 0:Dt[0])==="a"}catch(e){Wt=!1}var vn=yi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Zt=Ei?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},yn=xi?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],l=o[1];n[s]=l}return n},Qn=_i?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Ci=Ti?function(t){return t.trimStart()}:function(t){return t.replace(bi,"")},Hi=Bi?function(t){return t.trimEnd()}:function(t){return t.replace(vi,"")};function Yn(e,t){return new RegExp(e,t)}var qt;if(Wt){var En=Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(t,n){var r;En.lastIndex=n;var i=En.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else qt=function(t,n){for(var r=[];;){var i=Qn(t,n);if(i===void 0||Kn(i)||Ni(i))break;r.push(i),n+=i>=65536?2:1}return Zt.apply(void 0,r)};var Oi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:k.pound,location:N(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(R.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Jt(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:k.literal,value:"<".concat(i,"/>"),location:N(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Jt(this.char()))return this.error(R.INVALID_TAG,N(l,this.clonePosition()));var h=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(R.UNMATCHED_CLOSING_TAG,N(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:k.tag,value:i,children:s,location:N(r,this.clonePosition())},err:null}:this.error(R.INVALID_TAG,N(l,this.clonePosition())))}else return this.error(R.UNCLOSED_TAG,N(r,this.clonePosition()))}else return this.error(R.INVALID_TAG,N(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Mi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var h=N(r,this.clonePosition());return{val:{type:k.literal,value:i,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ri(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Zt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Zt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(R.EMPTY_ARGUMENT,N(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(R.MALFORMED_ARGUMENT,N(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:k.argument,value:i,location:N(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(R.MALFORMED_ARGUMENT,N(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=qt(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=N(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(l){case"":return this.error(R.EXPECT_ARGUMENT_TYPE,N(s,h));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var b=Hi(g.val);if(b.length===0)return this.error(R.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var _=N(c,this.clonePosition());u={style:b,styleLocation:_}}var T=this.tryParseArgumentClose(i);if(T.err)return T;var O=N(i,this.clonePosition());if(u&&vn(u==null?void 0:u.style,"::",0)){var A=Ci(u.style.slice(2));if(l==="number"){var g=this.parseNumberSkeletonFromString(A,u.styleLocation);return g.err?g:{val:{type:k.number,value:r,location:O,style:g.val},err:null}}else{if(A.length===0)return this.error(R.EXPECT_DATE_TIME_SKELETON,O);var G=A;this.locale&&(G=mi(A,this.locale));var b={type:Ue.dateTime,pattern:G,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?li(G):{}},D=l==="date"?k.date:k.time;return{val:{type:D,value:r,location:O,style:b},err:null}}}return{val:{type:l==="number"?k.number:l==="date"?k.date:k.time,value:r,location:O,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS,N(E,L({},E)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),U=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),w=this.parseIdentifierIfPossible(),U=g.val}var re=this.tryParsePluralOrSelectOptions(t,l,n,w);if(re.err)return re;var T=this.tryParseArgumentClose(i);if(T.err)return T;var Q=N(i,this.clonePosition());return l==="select"?{val:{type:k.select,value:r,options:yn(re.val),location:Q},err:null}:{val:{type:k.plural,value:r,options:yn(re.val),offset:U,pluralType:l==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(R.INVALID_ARGUMENT_TYPE,N(s,h))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,N(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hi(t)}catch(i){return this.error(R.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ue.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pi(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,l=[],h=new Set,u=i.value,c=i.location;;){if(u.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var b=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR,R.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;c=N(g,this.clonePosition()),u=this.message.slice(g.offset,this.offset())}else break}if(h.has(u))return this.error(n==="select"?R.DUPLICATE_SELECT_ARGUMENT_SELECTOR:R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,n,r);if(T.err)return T;var O=this.tryParseArgumentClose(_);if(O.err)return O;l.push([u,{value:T.val,location:N(_,this.clonePosition())}]),h.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return l.length===0?this.error(n==="select"?R.EXPECT_SELECT_ARGUMENT_SELECTOR:R.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(R.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var h=N(i,this.clonePosition());return o?(s*=r,wi(s)?{val:s,err:null}:this.error(n,h)):this.error(t,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Qn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Jt(e){return e>=97&&e<=122||e>=65&&e<=90}function Ri(e){return Jt(e)||e===47}function Mi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ni(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Qt(e){e.forEach(function(t){if(delete t.location,Vn(t)||kn(t))for(var n in t.options)delete t.options[n].location,Qt(t.options[n].value);else Gn(t)&&zn(t.style)||($n(t)||jn(t))&&zt(t.style)?delete t.style.location:Xn(t)&&Qt(t.children)})}function Ii(e,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Oi(e,t).parse();if(n.err){var r=SyntaxError(R[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Qt(n.val),n.val}function Ut(e,t){var n=t&&t.cache?t.cache:Gi,r=t&&t.serializer?t.serializer:Fi,i=t&&t.strategy?t.strategy:Li;return i(e,{cache:n,serializer:r})}function Pi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function er(e,t,n,r){var i=Pi(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function tr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function nn(e,t,n,r,i){return n.bind(t,e,r,i)}function Li(e,t){var n=e.length===1?er:tr;return nn(e,this,n,t.cache.create(),t.serializer)}function Di(e,t){return nn(e,this,tr,t.cache.create(),t.serializer)}function Ui(e,t){return nn(e,this,er,t.cache.create(),t.serializer)}var Fi=function(){return JSON.stringify(arguments)};function rn(){this.cache=Object.create(null)}rn.prototype.get=function(e){return this.cache[e]};rn.prototype.set=function(e,t){this.cache[e]=t};var Gi={create:function(){return new rn}},Ft={variadic:Di,monadic:Ui},Fe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Fe||(Fe={}));var xt=function(e){Et(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xn=function(e){Et(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Fe.INVALID_VALUE,o)||this}return t}(xt),$i=function(e){Et(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Fe.INVALID_VALUE,i)||this}return t}(xt),ji=function(e){Et(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Fe.MISSING_VALUE,r)||this}return t}(xt),ne;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ne||(ne={}));function Vi(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ne.literal||n.type!==ne.literal?t.push(n):r.value+=n.value,t},[])}function ki(e){return typeof e=="function"}function ft(e,t,n,r,i,o,s){if(e.length===1&&pn(e[0]))return[{type:ne.literal,value:e[0].value}];for(var l=[],h=0,u=e;h<u.length;h++){var c=u[h];if(pn(c)){l.push({type:ne.literal,value:c.value});continue}if(ai(c)){typeof o=="number"&&l.push({type:ne.literal,value:n.getNumberFormat(t).format(o)});continue}var g=c.value;if(!(i&&g in i))throw new ji(g,s);var b=i[g];if(oi(c)){(!b||typeof b=="string"||typeof b=="number")&&(b=typeof b=="string"||typeof b=="number"?String(b):""),l.push({type:typeof b=="string"?ne.literal:ne.object,value:b});continue}if($n(c)){var _=typeof c.style=="string"?r.date[c.style]:zt(c.style)?c.style.parsedOptions:void 0;l.push({type:ne.literal,value:n.getDateTimeFormat(t,_).format(b)});continue}if(jn(c)){var _=typeof c.style=="string"?r.time[c.style]:zt(c.style)?c.style.parsedOptions:r.time.medium;l.push({type:ne.literal,value:n.getDateTimeFormat(t,_).format(b)});continue}if(Gn(c)){var _=typeof c.style=="string"?r.number[c.style]:zn(c.style)?c.style.parsedOptions:void 0;_&&_.scale&&(b=b*(_.scale||1)),l.push({type:ne.literal,value:n.getNumberFormat(t,_).format(b)});continue}if(Xn(c)){var T=c.children,O=c.value,A=i[O];if(!ki(A))throw new $i(O,"function",s);var G=ft(T,t,n,r,i,o),D=A(G.map(function(U){return U.value}));Array.isArray(D)||(D=[D]),l.push.apply(l,D.map(function(U){return{type:typeof U=="string"?ne.literal:ne.object,value:U}}))}if(Vn(c)){var E=c.options[b]||c.options.other;if(!E)throw new xn(c.value,b,Object.keys(c.options),s);l.push.apply(l,ft(E.value,t,n,r,i));continue}if(kn(c)){var E=c.options["=".concat(b)];if(!E){if(!Intl.PluralRules)throw new xt(`Intl.PluralRules is not available in this environment.
1
+ "use strict";var dr=Object.defineProperty,pr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var gr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var Rt=(e,t,n)=>t in e?dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mt=(e,t)=>{for(var n in t||(t={}))gr.call(t,n)&&Rt(e,n,t[n]);if(un)for(var n of un(t))br.call(t,n)&&Rt(e,n,t[n]);return e},Nt=(e,t)=>pr(e,mr(t));var se=(e,t,n)=>Rt(e,typeof t!="symbol"?t+"":t,n);var It=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{l(n.next(c))}catch(u){i(u)}},s=c=>{try{l(n.throw(c))}catch(u){i(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function le(){}function In(e){return e()}function hn(){return Object.create(null)}function Ge(e){e.forEach(In)}function tn(e){return typeof e=="function"}function Pn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function vr(e){return Object.keys(e).length===0}function Ln(e,...t){if(e==null){for(const r of t)r(void 0);return le}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function yr(e,t,n){e.$$.on_destroy.push(Ln(t,n))}function H(e,t){e.appendChild(t)}function Er(e,t,n){const r=xr(e);if(!r.getElementById(t)){const i=z("style");i.id=t,i.textContent=n,_r(r,i)}}function xr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function _r(e,t){return H(e.head||e,t),t.sheet}function $e(e,t,n){e.insertBefore(t,n||null)}function Ae(e){e.parentNode&&e.parentNode.removeChild(e)}function Dn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function z(e){return document.createElement(e)}function cn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function xe(e){return document.createTextNode(e)}function fe(){return xe(" ")}function pt(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function P(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tr(e){return Array.from(e.childNodes)}function Be(e,t){t=""+t,e.data!==t&&(e.data=t)}function Br(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let tt;function et(e){tt=e}function Sr(){if(!tt)throw new Error("Function called outside component initialization");return tt}function wr(e){Sr().$$.on_mount.push(e)}const Ie=[],jt=[];let Pe=[];const fn=[],Ar=Promise.resolve();let Vt=!1;function Cr(){Vt||(Vt=!0,Ar.then(J))}function kt(e){Pe.push(e)}const Pt=new Set;let Me=0;function J(){if(Me!==0)return;const e=tt;do{try{for(;Me<Ie.length;){const t=Ie[Me];Me++,et(t),Hr(t.$$)}}catch(t){throw Ie.length=0,Me=0,t}for(et(null),Ie.length=0,Me=0;jt.length;)jt.pop()();for(let t=0;t<Pe.length;t+=1){const n=Pe[t];Pt.has(n)||(Pt.add(n),n())}Pe.length=0}while(Ie.length);for(;fn.length;)fn.pop()();Vt=!1,Pt.clear(),et(e)}function Hr(e){if(e.fragment!==null){e.update(),Ge(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(kt)}}function Or(e){const t=[],n=[];Pe.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Pe=t}const Rr=new Set;function Mr(e,t){e&&e.i&&(Rr.delete(e),e.i(t))}function mt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),kt(()=>{const o=e.$$.on_mount.map(In).filter(tn);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ge(o),e.$$.on_mount=[]}),i.forEach(kt)}function Ir(e,t){const n=e.$$;n.fragment!==null&&(Or(n.after_update),Ge(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Pr(e,t){e.$$.dirty[0]===-1&&(Ie.push(e),Cr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lr(e,t,n,r,i,o,s=null,l=[-1]){const c=tt;et(e);const u=e.$$={fragment:null,ctx:[],props:o,update:le,not_equal:i,bound:hn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:hn(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};s&&s(u.root);let f=!1;if(u.ctx=n?n(e,t.props||{},(g,b,...B)=>{const T=B.length?B[0]:b;return u.ctx&&i(u.ctx[g],u.ctx[g]=T)&&(!u.skip_bound&&u.bound[g]&&u.bound[g](T),f&&Pr(e,g)),b}):[],u.update(),f=!0,Ge(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const g=Tr(t.target);u.fragment&&u.fragment.l(g),g.forEach(Ae)}else u.fragment&&u.fragment.c();t.intro&&Mr(e.$$.fragment),Nr(e,t.target,t.anchor),J()}et(c)}let Un;typeof HTMLElement=="function"&&(Un=class extends HTMLElement{constructor(t,n,r){super();se(this,"$$ctor");se(this,"$$s");se(this,"$$c");se(this,"$$cn",!1);se(this,"$$d",{});se(this,"$$r",!1);se(this,"$$p_d",{});se(this,"$$l",{});se(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const i=this.$$c.$on(t,n);this.$$l_u.set(n,i)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return It(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let s;return{c:function(){s=z("slot"),o!=="default"&&P(s,"name",o)},m:function(u,f){$e(u,s,f)},d:function(u){u&&Ae(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Br(this);for(const o of this.$$s)o in r&&(n[o]=[t(o)]);for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=ht(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Nt(Mt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const s=ht(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const s of this.$$l[o]){const l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ht(t,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function ht(e,t,n,r){var o;const i=(o=n[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Dr(e,t,n,r,i,o){let s=class extends Un{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(c){var u;c=ht(l,c,t),this.$$d[l]=c,(u=this.$$c)==null||u.$set({[l]:c})}})}),r.forEach(l=>{Object.defineProperty(s.prototype,l,{get(){var c;return(c=this.$$c)==null?void 0:c[l]}})}),e.element=s,s}class Ur{constructor(){se(this,"$$");se(this,"$$set")}$destroy(){Ir(this,1),this.$destroy=le}$on(t,n){if(!tn(n))return le;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!vr(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Fr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fr);const Ne=[];function Gr(e,t){return{subscribe:vt(e,t).subscribe}}function vt(e,t=le){let n;const r=new Set;function i(l){if(Pn(e,l)&&(e=l,n)){const c=!Ne.length;for(const u of r)u[1](),Ne.push(u,e);if(c){for(let u=0;u<Ne.length;u+=2)Ne[u][0](Ne[u+1]);Ne.length=0}}}function o(l){i(l(e))}function s(l,c=le){const u=[l,c];return r.add(u),r.size===1&&(n=t(i,o)||le),l(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function je(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Gr(n,(s,l)=>{let c=!1;const u=[];let f=0,g=le;const b=()=>{if(f)return;g();const T=t(r?u[0]:u,s,l);o?s(T):g=tn(T)?T:le},B=i.map((T,O)=>Ln(T,A=>{u[O]=A,f&=~(1<<O),c&&b()},()=>{f|=1<<O}));return c=!0,b(),function(){Ge(B),g(),c=!1}})}var $r=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr=function(t){return kr(t)&&!Xr(t)};function kr(e){return!!e&&typeof e=="object"}function Xr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Zr(e)}var zr=typeof Symbol=="function"&&Symbol.for,Wr=zr?Symbol.for("react.element"):60103;function Zr(e){return e.$$typeof===Wr}function qr(e){return Array.isArray(e)?[]:{}}function nt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Le(qr(e),e,t):e}function Qr(e,t,n){return e.concat(t).map(function(r){return nt(r,n)})}function Jr(e,t){if(!t.customMerge)return Le;var n=t.customMerge(e);return typeof n=="function"?n:Le}function Yr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function dn(e){return Object.keys(e).concat(Yr(e))}function Fn(e,t){try{return t in e}catch(n){return!1}}function Kr(e,t){return Fn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ei(e,t,n){var r={};return n.isMergeableObject(e)&&dn(e).forEach(function(i){r[i]=nt(e[i],n)}),dn(t).forEach(function(i){Kr(e,i)||(Fn(e,i)&&n.isMergeableObject(t[i])?r[i]=Jr(i,n)(e[i],t[i],n):r[i]=nt(t[i],n))}),r}function Le(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Qr,n.isMergeableObject=n.isMergeableObject||Vr,n.cloneUnlessOtherwiseSpecified=nt;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):ei(e,t,n):nt(t,n)}Le.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Le(r,i,n)},{})};var ti=Le,ni=ti;const ri=jr(ni);var Xt=function(e,t){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Xt(e,t)};function yt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var L=function(){return L=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)};function ii(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Lt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(M||(M={}));var V;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(V||(V={}));var De;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(De||(De={}));function pn(e){return e.type===V.literal}function oi(e){return e.type===V.argument}function Gn(e){return e.type===V.number}function $n(e){return e.type===V.date}function jn(e){return e.type===V.time}function Vn(e){return e.type===V.select}function kn(e){return e.type===V.plural}function ai(e){return e.type===V.pound}function Xn(e){return e.type===V.tag}function zn(e){return!!(e&&typeof e=="object"&&e.type===De.number)}function zt(e){return!!(e&&typeof e=="object"&&e.type===De.dateTime)}var Wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,si=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function li(e){var t={};return e.replace(si,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ui=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hi(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ui).filter(function(b){return b.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],c=s.slice(1),u=0,f=c;u<f.length;u++){var g=f[u];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:c})}return n}function ci(e){return e.replace(/^(.*?)-/,"")}var mn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zn=/^(@+)?(\+|#+)?[rs]?$/g,fi=/(\*)(0+)|(#+)(0+)|(0+)/g,qn=/^(0+)$/;function gn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zn,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Qn(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 di(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!qn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function bn(e){var t={},n=Qn(e);return n||t}function pi(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ci(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=L(L(L({},t),{notation:"scientific"}),i.options.reduce(function(c,u){return L(L({},c),bn(u))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),i.options.reduce(function(c,u){return L(L({},c),bn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(fi,function(c,u,f,g,b,B){if(u)t.minimumIntegerDigits=f.length;else{if(g&&b)throw new Error("We currently do not support maximum integer digits");if(B)throw new Error("We currently do not support exact integer digits")}return""});continue}if(qn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(mn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(mn,function(c,u,f,g,b,B){return f==="*"?t.minimumFractionDigits=u.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:b&&B?(t.minimumFractionDigits=b.length,t.maximumFractionDigits=b.length+B.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=L(L({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=L(L({},t),gn(o)));continue}if(Zn.test(i.stem)){t=L(L({},t),gn(i.stem));continue}var s=Qn(i.stem);s&&(t=L(L({},t),s));var l=di(i.stem);l&&(t=L(L({},t),l))}return t}var ut={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"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"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mi(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),l=o<2?1:3+(o>>1),c="a",u=gi(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=c;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function gi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=ut[r||""]||ut[n||""]||ut["".concat(n,"-001")]||ut["001"];return i[0]}var Dt,bi=new RegExp("^".concat(Wn.source,"*")),vi=new RegExp("".concat(Wn.source,"*$"));function N(e,t){return{start:e,end:t}}var yi=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ei=!!String.fromCodePoint,xi=!!Object.fromEntries,_i=!!String.prototype.codePointAt,Ti=!!String.prototype.trimStart,Bi=!!String.prototype.trimEnd,Si=!!Number.isSafeInteger,wi=Si?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Wt=!0;try{var Ai=Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Wt=((Dt=Ai.exec("a"))===null||Dt===void 0?void 0:Dt[0])==="a"}catch(e){Wt=!1}var vn=yi?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Zt=Ei?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},yn=xi?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],l=o[1];n[s]=l}return n},Jn=_i?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Ci=Ti?function(t){return t.trimStart()}:function(t){return t.replace(bi,"")},Hi=Bi?function(t){return t.trimEnd()}:function(t){return t.replace(vi,"")};function Yn(e,t){return new RegExp(e,t)}var qt;if(Wt){var En=Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");qt=function(t,n){var r;En.lastIndex=n;var i=En.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else qt=function(t,n){for(var r=[];;){var i=Jn(t,n);if(i===void 0||Kn(i)||Ni(i))break;r.push(i),n+=i>=65536?2:1}return Zt.apply(void 0,r)};var Oi=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:V.pound,location:N(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(M.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Qt(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(i,"/>"),location:N(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qt(this.char()))return this.error(M.INVALID_TAG,N(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(M.UNMATCHED_CLOSING_TAG,N(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:i,children:s,location:N(r,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,N(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,N(r,this.clonePosition()))}else return this.error(M.INVALID_TAG,N(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Mi(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var c=N(r,this.clonePosition());return{val:{type:V.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ri(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Zt.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Zt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,N(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,N(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:i,location:N(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(M.MALFORMED_ARGUMENT,N(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=qt(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=N(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,N(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var b=Hi(g.val);if(b.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var B=N(f,this.clonePosition());u={style:b,styleLocation:B}}var T=this.tryParseArgumentClose(i);if(T.err)return T;var O=N(i,this.clonePosition());if(u&&vn(u==null?void 0:u.style,"::",0)){var A=Ci(u.style.slice(2));if(l==="number"){var g=this.parseNumberSkeletonFromString(A,u.styleLocation);return g.err?g:{val:{type:V.number,value:r,location:O,style:g.val},err:null}}else{if(A.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,O);var G=A;this.locale&&(G=mi(A,this.locale));var b={type:De.dateTime,pattern:G,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?li(G):{}},D=l==="date"?V.date:V.time;return{val:{type:D,value:r,location:O,style:b},err:null}}}return{val:{type:l==="number"?V.number:l==="date"?V.date:V.time,value:r,location:O,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,N(_,L({},_)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),U=0;if(l!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),w=this.parseIdentifierIfPossible(),U=g.val}var ne=this.tryParsePluralOrSelectOptions(t,l,n,w);if(ne.err)return ne;var T=this.tryParseArgumentClose(i);if(T.err)return T;var Q=N(i,this.clonePosition());return l==="select"?{val:{type:V.select,value:r,options:yn(ne.val),location:Q},err:null}:{val:{type:V.plural,value:r,options:yn(ne.val),offset:U,pluralType:l==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,N(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,N(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=hi(t)}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,n)}return{val:{type:De.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pi(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,l=[],c=new Set,u=i.value,f=i.location;;){if(u.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var b=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(b.err)return b;f=N(g,this.clonePosition()),u=this.message.slice(g.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(s=!0),this.bumpSpace();var B=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var T=this.parseMessage(t+1,n,r);if(T.err)return T;var O=this.tryParseArgumentClose(B);if(O.err)return O;l.push([u,{value:T.val,location:N(B,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,f=o.location}return l.length===0?this.error(n==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var c=N(i,this.clonePosition());return o?(s*=r,wi(s)?{val:s,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Jn(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(vn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Kn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function Qt(e){return e>=97&&e<=122||e>=65&&e<=90}function Ri(e){return Qt(e)||e===47}function Mi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Kn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ni(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Jt(e){e.forEach(function(t){if(delete t.location,Vn(t)||kn(t))for(var n in t.options)delete t.options[n].location,Jt(t.options[n].value);else Gn(t)&&zn(t.style)||($n(t)||jn(t))&&zt(t.style)?delete t.style.location:Xn(t)&&Jt(t.children)})}function Ii(e,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Oi(e,t).parse();if(n.err){var r=SyntaxError(M[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Jt(n.val),n.val}function Ut(e,t){var n=t&&t.cache?t.cache:Gi,r=t&&t.serializer?t.serializer:Fi,i=t&&t.strategy?t.strategy:Li;return i(e,{cache:n,serializer:r})}function Pi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function er(e,t,n,r){var i=Pi(r)?r:n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,r),t.set(i,o)),o}function tr(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,r),t.set(i,o)),o}function nn(e,t,n,r,i){return n.bind(t,e,r,i)}function Li(e,t){var n=e.length===1?er:tr;return nn(e,this,n,t.cache.create(),t.serializer)}function Di(e,t){return nn(e,this,tr,t.cache.create(),t.serializer)}function Ui(e,t){return nn(e,this,er,t.cache.create(),t.serializer)}var Fi=function(){return JSON.stringify(arguments)};function rn(){this.cache=Object.create(null)}rn.prototype.get=function(e){return this.cache[e]};rn.prototype.set=function(e,t){this.cache[e]=t};var Gi={create:function(){return new rn}},Ft={variadic:Di,monadic:Ui},Ue;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ue||(Ue={}));var Et=function(e){yt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),xn=function(e){yt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ue.INVALID_VALUE,o)||this}return t}(Et),$i=function(e){yt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Ue.INVALID_VALUE,i)||this}return t}(Et),ji=function(e){yt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Ue.MISSING_VALUE,r)||this}return t}(Et),te;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(te||(te={}));function Vi(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==te.literal||n.type!==te.literal?t.push(n):r.value+=n.value,t},[])}function ki(e){return typeof e=="function"}function ct(e,t,n,r,i,o,s){if(e.length===1&&pn(e[0]))return[{type:te.literal,value:e[0].value}];for(var l=[],c=0,u=e;c<u.length;c++){var f=u[c];if(pn(f)){l.push({type:te.literal,value:f.value});continue}if(ai(f)){typeof o=="number"&&l.push({type:te.literal,value:n.getNumberFormat(t).format(o)});continue}var g=f.value;if(!(i&&g in i))throw new ji(g,s);var b=i[g];if(oi(f)){(!b||typeof b=="string"||typeof b=="number")&&(b=typeof b=="string"||typeof b=="number"?String(b):""),l.push({type:typeof b=="string"?te.literal:te.object,value:b});continue}if($n(f)){var B=typeof f.style=="string"?r.date[f.style]:zt(f.style)?f.style.parsedOptions:void 0;l.push({type:te.literal,value:n.getDateTimeFormat(t,B).format(b)});continue}if(jn(f)){var B=typeof f.style=="string"?r.time[f.style]:zt(f.style)?f.style.parsedOptions:r.time.medium;l.push({type:te.literal,value:n.getDateTimeFormat(t,B).format(b)});continue}if(Gn(f)){var B=typeof f.style=="string"?r.number[f.style]:zn(f.style)?f.style.parsedOptions:void 0;B&&B.scale&&(b=b*(B.scale||1)),l.push({type:te.literal,value:n.getNumberFormat(t,B).format(b)});continue}if(Xn(f)){var T=f.children,O=f.value,A=i[O];if(!ki(A))throw new $i(O,"function",s);var G=ct(T,t,n,r,i,o),D=A(G.map(function(U){return U.value}));Array.isArray(D)||(D=[D]),l.push.apply(l,D.map(function(U){return{type:typeof U=="string"?te.literal:te.object,value:U}}))}if(Vn(f)){var _=f.options[b]||f.options.other;if(!_)throw new xn(f.value,b,Object.keys(f.options),s);l.push.apply(l,ct(_.value,t,n,r,i));continue}if(kn(f)){var _=f.options["=".concat(b)];if(!_){if(!Intl.PluralRules)throw new Et(`Intl.PluralRules is not available in this environment.
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,Fe.MISSING_INTL_API,s);var w=n.getPluralRules(t,{type:c.pluralType}).select(b-(c.offset||0));E=c.options[w]||c.options.other}if(!E)throw new xn(c.value,b,Object.keys(c.options),s);l.push.apply(l,ft(E.value,t,n,r,i,b-(c.offset||0)));continue}}return Vi(l)}function Xi(e,t){return t?L(L(L({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=L(L({},e[r]),t[r]||{}),n},{})):e}function zi(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Xi(e[r],t[r]),n},L({},e)):e}function Gt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Wi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.number),strategy:Ft.variadic}),getDateTimeFormat:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.dateTime),strategy:Ft.variadic}),getPluralRules:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.pluralRules),strategy:Ft.variadic})}}var Zi=function(){function e(t,n,r,i){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(h){var u=o.formatToParts(h);if(u.length===1)return u[0].value;var c=u.reduce(function(g,b){return!g.length||b.type!==ne.literal||typeof g[g.length-1]!="string"?g.push(b.value):g[g.length-1]+=b.value,g},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(h){return ft(o.ast,o.locales,o.formatters,o.formats,h,void 0,o.message)},this.resolvedOptions=function(){var h;return{locale:((h=o.resolvedLocale)===null||h===void 0?void 0:h.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var l=ii(s,["formatters"]);this.ast=e.__parse(t,L(L({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zi(e.formats,r),this.formatters=i&&i.formatters||Wi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ii,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function qi(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const we={},Ji=(e,t,n)=>n&&(t in we||(we[t]={}),e in we[t]||(we[t][e]=n),n),nr=(e,t)=>{if(t==null)return;if(t in we&&e in we[t])return we[t][e];const n=_t(t);for(let r=0;r<n.length;r++){const i=n[r],o=Yi(i,e);if(o)return Ji(e,t,o)}};let on;const it=yt({});function Qi(e){return on[e]||null}function rr(e){return e in on}function Yi(e,t){if(!rr(e))return null;const n=Qi(e);return qi(n,t)}function Ki(e){if(e==null)return;const t=_t(e);for(let n=0;n<t.length;n++){const r=t[n];if(rr(r))return r}}function ir(e,...t){delete we[e],it.update(n=>(n[e]=ri.all([n[e]||{},...t]),n))}Ve([it],([e])=>Object.keys(e));it.subscribe(e=>on=e);const dt={};function eo(e,t){dt[e].delete(t),dt[e].size===0&&delete dt[e]}function or(e){return dt[e]}function to(e){return _t(e).map(t=>{const n=or(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Yt(e){return e==null?!1:_t(e).some(t=>{var n;return(n=or(t))==null?void 0:n.size})}function no(e,t){return Promise.all(t.map(r=>(eo(e,r),r().then(i=>i.default||i)))).then(r=>ir(e,...r))}const Ke={};function ar(e){if(!Yt(e))return e in Ke?Ke[e]:Promise.resolve();const t=to(e);return Ke[e]=Promise.all(t.map(([n,r])=>no(n,r))).then(()=>{if(Yt(e))return ar(e);delete Ke[e]}),Ke[e]}const ro={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"}}},io={fallbackLocale:null,loadingDelay:200,formats:ro,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},oo=io;function Ge(){return oo}const $t=yt(!1);var ao=Object.defineProperty,so=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,Tn=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,co=(e,t)=>{for(var n in t||(t={}))uo.call(t,n)&&Tn(e,n,t[n]);if(_n)for(var n of _n(t))ho.call(t,n)&&Tn(e,n,t[n]);return e},fo=(e,t)=>so(e,lo(t));let Kt;const bt=yt(null);function Bn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function _t(e,t=Ge().fallbackLocale){const n=Bn(e);return t?[...new Set([...n,...Bn(t)])]:n}function He(){return Kt!=null?Kt:void 0}bt.subscribe(e=>{Kt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const po=e=>{if(e&&Ki(e)&&Yt(e)){const{loadingDelay:t}=Ge();let n;return typeof window!="undefined"&&He()!=null&&t?n=window.setTimeout(()=>$t.set(!0),t):$t.set(!0),ar(e).then(()=>{bt.set(e)}).finally(()=>{clearTimeout(n),$t.set(!1)})}return bt.set(e)},ke=fo(co({},bt),{set:po}),Tt=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var mo=Object.defineProperty,vt=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Sn=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,an=(e,t)=>{for(var n in t||(t={}))sr.call(t,n)&&Sn(e,n,t[n]);if(vt)for(var n of vt(t))lr.call(t,n)&&Sn(e,n,t[n]);return e},Xe=(e,t)=>{var n={};for(var r in e)sr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vt)for(var r of vt(e))t.indexOf(r)<0&&lr.call(e,r)&&(n[r]=e[r]);return n};const rt=(e,t)=>{const{formats:n}=Ge();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},go=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Xe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=rt("number",r)),new Intl.NumberFormat(n,i)}),bo=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Xe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=rt("date",r):Object.keys(i).length===0&&(i=rt("date","short")),new Intl.DateTimeFormat(n,i)}),vo=Tt(e=>{var t=e,{locale:n,format:r}=t,i=Xe(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=rt("time",r):Object.keys(i).length===0&&(i=rt("time","short")),new Intl.DateTimeFormat(n,i)}),yo=(e={})=>{var t=e,{locale:n=He()}=t,r=Xe(t,["locale"]);return go(an({locale:n},r))},Eo=(e={})=>{var t=e,{locale:n=He()}=t,r=Xe(t,["locale"]);return bo(an({locale:n},r))},xo=(e={})=>{var t=e,{locale:n=He()}=t,r=Xe(t,["locale"]);return vo(an({locale:n},r))},_o=Tt((e,t=He())=>new Zi(e,t,Ge().formats,{ignoreTag:Ge().ignoreTag})),To=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:h=He(),default:u}=s;if(h==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=nr(e,h);if(!c)c=(o=(i=(r=(n=Ge()).handleMissingMessage)==null?void 0:r.call(n,{locale:h,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let g=c;try{g=_o(c,h).format(l)}catch(b){b instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,b.message)}return g},Bo=(e,t)=>xo(t).format(e),So=(e,t)=>Eo(t).format(e),wo=(e,t)=>yo(t).format(e),Ao=(e,t=He())=>nr(e,t),Co=Ve([ke,it],()=>To);Ve([ke],()=>Bo);Ve([ke],()=>So);Ve([ke],()=>wo);Ve([ke,it],()=>Ao);function wn(e,t){ir(e,t)}function Ho(e){ke.set(e)}const An={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit"},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款"},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen"},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita"},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt"},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır"},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит"},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit"},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit"},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés"},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać"},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit"},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit"},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"}};var en={exports:{}};/** @license
3
+ `,Ue.MISSING_INTL_API,s);var w=n.getPluralRules(t,{type:f.pluralType}).select(b-(f.offset||0));_=f.options[w]||f.options.other}if(!_)throw new xn(f.value,b,Object.keys(f.options),s);l.push.apply(l,ct(_.value,t,n,r,i,b-(f.offset||0)));continue}}return Vi(l)}function Xi(e,t){return t?L(L(L({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=L(L({},e[r]),t[r]||{}),n},{})):e}function zi(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Xi(e[r],t[r]),n},L({},e)):e}function Gt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Wi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.number),strategy:Ft.variadic}),getDateTimeFormat:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.dateTime),strategy:Ft.variadic}),getPluralRules:Ut(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Lt([void 0],n,!1)))},{cache:Gt(e.pluralRules),strategy:Ft.variadic})}}var Zi=function(){function e(t,n,r,i){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var f=u.reduce(function(g,b){return!g.length||b.type!==te.literal||typeof g[g.length-1]!="string"?g.push(b.value):g[g.length-1]+=b.value,g},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return ct(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var l=ii(s,["formatters"]);this.ast=e.__parse(t,L(L({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zi(e.formats,r),this.formatters=i&&i.formatters||Wi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ii,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function qi(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const o=n.slice(i,n.length).join(".");if(o in r){r=r[o];break}}r=r[n[i]]}else r=void 0;return r}const Se={},Qi=(e,t,n)=>n&&(t in Se||(Se[t]={}),e in Se[t]||(Se[t][e]=n),n),nr=(e,t)=>{if(t==null)return;if(t in Se&&e in Se[t])return Se[t][e];const n=xt(t);for(let r=0;r<n.length;r++){const i=n[r],o=Yi(i,e);if(o)return Qi(e,t,o)}};let on;const it=vt({});function Ji(e){return on[e]||null}function rr(e){return e in on}function Yi(e,t){if(!rr(e))return null;const n=Ji(e);return qi(n,t)}function Ki(e){if(e==null)return;const t=xt(e);for(let n=0;n<t.length;n++){const r=t[n];if(rr(r))return r}}function ir(e,...t){delete Se[e],it.update(n=>(n[e]=ri.all([n[e]||{},...t]),n))}je([it],([e])=>Object.keys(e));it.subscribe(e=>on=e);const ft={};function eo(e,t){ft[e].delete(t),ft[e].size===0&&delete ft[e]}function or(e){return ft[e]}function to(e){return xt(e).map(t=>{const n=or(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Yt(e){return e==null?!1:xt(e).some(t=>{var n;return(n=or(t))==null?void 0:n.size})}function no(e,t){return Promise.all(t.map(r=>(eo(e,r),r().then(i=>i.default||i)))).then(r=>ir(e,...r))}const Ke={};function ar(e){if(!Yt(e))return e in Ke?Ke[e]:Promise.resolve();const t=to(e);return Ke[e]=Promise.all(t.map(([n,r])=>no(n,r))).then(()=>{if(Yt(e))return ar(e);delete Ke[e]}),Ke[e]}const ro={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"}}},io={fallbackLocale:null,loadingDelay:200,formats:ro,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},oo=io;function Fe(){return oo}const $t=vt(!1);var ao=Object.defineProperty,so=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,Tn=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,co=(e,t)=>{for(var n in t||(t={}))uo.call(t,n)&&Tn(e,n,t[n]);if(_n)for(var n of _n(t))ho.call(t,n)&&Tn(e,n,t[n]);return e},fo=(e,t)=>so(e,lo(t));let Kt;const gt=vt(null);function Bn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function xt(e,t=Fe().fallbackLocale){const n=Bn(e);return t?[...new Set([...n,...Bn(t)])]:n}function Ce(){return Kt!=null?Kt:void 0}gt.subscribe(e=>{Kt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const po=e=>{if(e&&Ki(e)&&Yt(e)){const{loadingDelay:t}=Fe();let n;return typeof window!="undefined"&&Ce()!=null&&t?n=window.setTimeout(()=>$t.set(!0),t):$t.set(!0),ar(e).then(()=>{gt.set(e)}).finally(()=>{clearTimeout(n),$t.set(!1)})}return gt.set(e)},Ve=fo(co({},gt),{set:po}),_t=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var mo=Object.defineProperty,bt=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Sn=(e,t,n)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,an=(e,t)=>{for(var n in t||(t={}))sr.call(t,n)&&Sn(e,n,t[n]);if(bt)for(var n of bt(t))lr.call(t,n)&&Sn(e,n,t[n]);return e},ke=(e,t)=>{var n={};for(var r in e)sr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&bt)for(var r of bt(e))t.indexOf(r)<0&&lr.call(e,r)&&(n[r]=e[r]);return n};const rt=(e,t)=>{const{formats:n}=Fe();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},go=_t(e=>{var t=e,{locale:n,format:r}=t,i=ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=rt("number",r)),new Intl.NumberFormat(n,i)}),bo=_t(e=>{var t=e,{locale:n,format:r}=t,i=ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=rt("date",r):Object.keys(i).length===0&&(i=rt("date","short")),new Intl.DateTimeFormat(n,i)}),vo=_t(e=>{var t=e,{locale:n,format:r}=t,i=ke(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=rt("time",r):Object.keys(i).length===0&&(i=rt("time","short")),new Intl.DateTimeFormat(n,i)}),yo=(e={})=>{var t=e,{locale:n=Ce()}=t,r=ke(t,["locale"]);return go(an({locale:n},r))},Eo=(e={})=>{var t=e,{locale:n=Ce()}=t,r=ke(t,["locale"]);return bo(an({locale:n},r))},xo=(e={})=>{var t=e,{locale:n=Ce()}=t,r=ke(t,["locale"]);return vo(an({locale:n},r))},_o=_t((e,t=Ce())=>new Zi(e,t,Fe().formats,{ignoreTag:Fe().ignoreTag})),To=(e,t={})=>{var n,r,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:c=Ce(),default:u}=s;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=nr(e,c);if(!f)f=(o=(i=(r=(n=Fe()).handleMissingMessage)==null?void 0:r.call(n,{locale:c,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!l)return f;let g=f;try{g=_o(f,c).format(l)}catch(b){b instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,b.message)}return g},Bo=(e,t)=>xo(t).format(e),So=(e,t)=>Eo(t).format(e),wo=(e,t)=>yo(t).format(e),Ao=(e,t=Ce())=>nr(e,t),Co=je([Ve,it],()=>To);je([Ve],()=>Bo);je([Ve],()=>So);je([Ve],()=>wo);je([Ve,it],()=>Ao);function wn(e,t){ir(e,t)}function Ho(e){Ve.set(e)}const An={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit"},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款"},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen"},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita"},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt"},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır"},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит"},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit"},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit"},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés"},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać"},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit"},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit"},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar"},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito"}};var en={exports:{}};/** @license
4
4
  * eventsource.js
5
5
  * Available under MIT License (MIT)
6
6
  * https://github.com/Yaffle/EventSource/
7
- */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,l=n.ActiveXObject,h=n.EventSource,u=n.document,c=n.Promise,g=n.fetch,b=n.Response,_=n.TextDecoder,T=n.TextEncoder,O=n.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(a){u.readyState="complete"},!1)),o==null&&l!=null&&(o=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function f(){}return f.prototype=a,new f}),Date.now||(Date.now=function(){return new Date().getTime()}),O==null){var A=g;g=function(a,f){var m=f.signal;return A(a,{headers:f.headers,credentials:f.credentials,cache:f.cache}).then(function(d){var B=d.body.getReader();return m._reader=B,m._aborted&&m._reader.cancel(),{status:d.status,statusText:d.statusText,headers:d.headers,body:{getReader:function(){return B}}}})},O=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function G(){this.bitsNeeded=0,this.codePoint=0}G.prototype.decode=function(a){function f(F,j,S){if(S===1)return F>=128>>j&&F<<j<=2047;if(S===2)return F>=2048>>j&&F<<j<=55295||F>=57344>>j&&F<<j<=65535;if(S===3)return F>=65536>>j&&F<<j<=1114111;throw new Error}function m(F,j){if(F===6*1)return j>>6>15?3:j>31?2:1;if(F===6*2)return j>15?3:2;if(F===6*3)return 3;throw new Error}for(var d=65533,B="",v=this.bitsNeeded,x=this.codePoint,$=0;$<a.length;$+=1){var M=a[$];v!==0&&(M<128||M>191||!f(x<<6|M&63,v-6,m(v,x)))&&(v=0,x=d,B+=String.fromCharCode(x)),v===0?(M>=0&&M<=127?(v=0,x=M):M>=192&&M<=223?(v=6*1,x=M&31):M>=224&&M<=239?(v=6*2,x=M&15):M>=240&&M<=247?(v=6*3,x=M&7):(v=0,x=d),v!==0&&!f(x,v,m(v,x))&&(v=0,x=d)):(v-=6,x=x<<6|M&63),v===0&&(x<=65535?B+=String.fromCharCode(x):(B+=String.fromCharCode(55296+(x-65535-1>>10)),B+=String.fromCharCode(56320+(x-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=x,B};var D=function(){try{return new _().decode(new T().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(_==null||T==null||!D())&&(_=G);var E=function(){};function w(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=E}w.prototype.open=function(a,f){this._abort(!0);var m=this,d=this._xhr,B=1,v=0;this._abort=function(S){m._sendTimeout!==0&&(i(m._sendTimeout),m._sendTimeout=0),(B===1||B===2||B===3)&&(B=4,d.onload=E,d.onerror=E,d.onabort=E,d.onprogress=E,d.onreadystatechange=E,d.abort(),v!==0&&(i(v),v=0),S||(m.readyState=4,m.onabort(null),m.onreadystatechange())),B=0};var x=function(){if(B===1){var S=0,z="",ve=void 0;if("contentType"in d)S=200,z="OK",ve=d.contentType;else try{S=d.status,z=d.statusText,ve=d.getResponseHeader("Content-Type")}catch(Qe){S=0,z="",ve=void 0}S!==0&&(B=2,m.readyState=2,m.status=S,m.statusText=z,m._contentType=ve,m.onreadystatechange())}},$=function(){if(x(),B===2||B===3){B=3;var S="";try{S=d.responseText}catch(z){}m.readyState=3,m.responseText=S,m.onprogress()}},M=function(S,z){if((z==null||z.preventDefault==null)&&(z={preventDefault:E}),$(),B===1||B===2||B===3){if(B=4,v!==0&&(i(v),v=0),m.readyState=4,S==="load")m.onload(z);else if(S==="error")m.onerror(z);else if(S==="abort")m.onabort(z);else throw new TypeError;m.onreadystatechange()}},F=function(S){d!=null&&(d.readyState===4?(!("onload"in d)||!("onerror"in d)||!("onabort"in d))&&M(d.responseText===""?"error":"load",S):d.readyState===3?"onprogress"in d||$():d.readyState===2&&x())},j=function(){v=r(function(){j()},500),d.readyState===3&&$()};"onload"in d&&(d.onload=function(S){M("load",S)}),"onerror"in d&&(d.onerror=function(S){M("error",S)}),"onabort"in d&&(d.onabort=function(S){M("abort",S)}),"onprogress"in d&&(d.onprogress=$),"onreadystatechange"in d&&(d.onreadystatechange=function(S){F(S)}),("contentType"in d||!("ontimeout"in o.prototype))&&(f+=(f.indexOf("?")===-1?"?":"&")+"padding=true"),d.open(a,f,!0),"readyState"in d&&(v=r(function(){j()},0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(a){return this._contentType},w.prototype.setRequestHeader=function(a,f){var m=this._xhr;"setRequestHeader"in m&&m.setRequestHeader(a,f)},w.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var a=this;a._sendTimeout=r(function(){a._sendTimeout=0,a.send()},4);return}var f=this._xhr;"withCredentials"in f&&(f.withCredentials=this.withCredentials);try{f.send(void 0)}catch(m){throw m}};function U(a){return a.replace(/[A-Z]/g,function(f){return String.fromCharCode(f.charCodeAt(0)+32)})}function re(a){for(var f=Object.create(null),m=a.split(`\r
8
- `),d=0;d<m.length;d+=1){var B=m[d],v=B.split(": "),x=v.shift(),$=v.join(": ");f[U(x)]=$}this._map=f}re.prototype.get=function(a){return this._map[U(a)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function Q(){}Q.prototype.open=function(a,f,m,d,B,v,x){a.open("GET",B);var $=0;a.onprogress=function(){var F=a.responseText,j=F.slice($);$+=j.length,m(j)},a.onerror=function(F){F.preventDefault(),d(new Error("NetworkError"))},a.onload=function(){d(null)},a.onabort=function(){d(null)},a.onreadystatechange=function(){if(a.readyState===o.HEADERS_RECEIVED){var F=a.status,j=a.statusText,S=a.getResponseHeader("Content-Type"),z=a.getAllResponseHeaders();f(F,j,S,new re(z))}},a.withCredentials=v;for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&a.setRequestHeader(M,x[M]);return a.send(),a};function X(a){this._headers=a}X.prototype.get=function(a){return this._headers.get(a)};function I(){}I.prototype.open=function(a,f,m,d,B,v,x){var $=null,M=new O,F=M.signal,j=new _;return g(B,{headers:x,credentials:v?"include":"same-origin",signal:F,cache:"no-store"}).then(function(S){return $=S.body.getReader(),f(S.status,S.statusText,S.headers.get("Content-Type"),new X(S.headers)),new c(function(z,ve){var Qe=function(){$.read().then(function(oe){if(oe.done)z(void 0);else{var K=j.decode(oe.value,{stream:!0});m(K),Qe()}}).catch(function(oe){ve(oe)})};Qe()})}).catch(function(S){if(S.name!=="AbortError")return S}).then(function(S){d(S)}),{abort:function(){$!=null&&$.cancel(),M.abort()}}};function y(){this._listeners=Object.create(null)}function V(a){r(function(){throw a},0)}y.prototype.dispatchEvent=function(a){a.target=this;var f=this._listeners[a.type];if(f!=null)for(var m=f.length,d=0;d<m;d+=1){var B=f[d];try{typeof B.handleEvent=="function"?B.handleEvent(a):B.call(this,a)}catch(v){V(v)}}},y.prototype.addEventListener=function(a,f){a=String(a);var m=this._listeners,d=m[a];d==null&&(d=[],m[a]=d);for(var B=!1,v=0;v<d.length;v+=1)d[v]===f&&(B=!0);B||d.push(f)},y.prototype.removeEventListener=function(a,f){a=String(a);var m=this._listeners,d=m[a];if(d!=null){for(var B=[],v=0;v<d.length;v+=1)d[v]!==f&&B.push(d[v]);B.length===0?delete m[a]:m[a]=B}};function he(a){this.type=a,this.target=void 0}function ot(a,f){he.call(this,a),this.data=f.data,this.lastEventId=f.lastEventId}ot.prototype=Object.create(he.prototype);function ge(a,f){he.call(this,a),this.status=f.status,this.statusText=f.statusText,this.headers=f.headers}ge.prototype=Object.create(he.prototype);function ze(a,f){he.call(this,a),this.error=f.error}ze.prototype=Object.create(he.prototype);var We=-1,pe=0,Te=1,be=2,Ze=-1,me=0,Oe=1,at=2,Bt=3,st=/^text\/event\-stream(;.*)?$/i,St=1e3,wt=18e6,qe=function(a,f){var m=a==null?f:parseInt(a,10);return m!==m&&(m=f),Je(m)},Je=function(a){return Math.min(Math.max(a,St),wt)},Be=function(a,f,m){try{typeof f=="function"&&f.call(a,m)}catch(d){V(d)}};function ie(a,f){y.call(this),f=f||{},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,p(this,a,f)}function At(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var Ct=g!=null&&b!=null&&"body"in b.prototype;function p(a,f,m){f=String(f);var d=!!m.withCredentials,B=m.lastEventIdQueryParameterName||"lastEventId",v=Je(1e3),x=qe(m.heartbeatTimeout,45e3),$="",M=v,F=!1,j=0,S=m.headers||{},z=m.Transport,ve=Ct&&z==null?void 0:new w(z!=null?new z:At()),Qe=z!=null&&typeof z!="string"?new z:ve==null?new I:new Q,oe=void 0,K=0,ce=We,Re="",lt="",ye="",ut="",ee=me,Ht=0,Ae=0,cr=function(q,Z,ae,se){if(ce===pe)if(q===200&&ae!=null&&st.test(ae)){ce=Te,F=Date.now(),M=v,a.readyState=Te;var te=new ge("open",{status:q,statusText:Z,headers:se});a.dispatchEvent(te),Be(a,a.onopen,te)}else{var J="";q!==200?(Z&&(Z=Z.replace(/\s+/g," ")),J="EventSource's response has a status "+q+" "+Z+" that is not 200. Aborting the connection."):J="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",Ot();var te=new ge("error",{status:q,statusText:Z,headers:se});a.dispatchEvent(te),Be(a,a.onerror,te),console.error(J)}},fr=function(q){if(ce===Te){for(var Z=-1,ae=0;ae<q.length;ae+=1){var se=q.charCodeAt(ae);(se===10||se===13)&&(Z=ae)}var te=(Z!==-1?ut:"")+q.slice(0,Z+1);ut=(Z===-1?ut:"")+q.slice(Z+1),q!==""&&(F=Date.now(),j+=q.length);for(var J=0;J<te.length;J+=1){var se=te.charCodeAt(J);if(ee===Ze&&se===10)ee=me;else if(ee===Ze&&(ee=me),se===13||se===10){if(ee!==me){ee===Oe&&(Ae=J+1);var Ee=te.slice(Ht,Ae-1),xe=te.slice(Ae+(Ae<J&&te.charCodeAt(Ae)===32?1:0),J);Ee==="data"?(Re+=`
9
- `,Re+=xe):Ee==="id"?lt=xe:Ee==="event"?ye=xe:Ee==="retry"?(v=qe(xe,v),M=v):Ee==="heartbeatTimeout"&&(x=qe(xe,x),K!==0&&(i(K),K=r(function(){Ye()},x)))}if(ee===me){if(Re!==""){$=lt,ye===""&&(ye="message");var Me=new ot(ye,{data:Re.slice(1),lastEventId:lt});if(a.dispatchEvent(Me),ye==="open"?Be(a,a.onopen,Me):ye==="message"?Be(a,a.onmessage,Me):ye==="error"&&Be(a,a.onerror,Me),ce===be)return}Re="",ye=""}ee=se===13?Ze:me}else ee===me&&(Ht=J,ee=Oe),ee===Oe?se===58&&(Ae=J+1,ee=at):ee===at&&(ee=Bt)}}},ln=function(q){if(ce===Te||ce===pe){ce=We,K!==0&&(i(K),K=0),K=r(function(){Ye()},M),M=Je(Math.min(v*16,M*2)),a.readyState=pe;var Z=new ze("error",{error:q});a.dispatchEvent(Z),Be(a,a.onerror,Z),q!=null&&console.error(q)}},Ot=function(){ce=be,oe!=null&&(oe.abort(),oe=void 0),K!==0&&(i(K),K=0),a.readyState=be},Ye=function(){if(K=0,ce!==We){if(!F&&oe!=null)ln(new Error("No activity within "+x+" milliseconds. "+(ce===pe?"No response received.":j+" chars received.")+" Reconnecting.")),oe!=null&&(oe.abort(),oe=void 0);else{var q=Math.max((F||Date.now())+x-Date.now(),1);F=!1,K=r(function(){Ye()},q)}return}F=!1,j=0,K=r(function(){Ye()},x),ce=pe,Re="",ye="",lt=$,ut="",Ht=0,Ae=0,ee=me;var Z=f;if(f.slice(0,5)!=="data:"&&f.slice(0,5)!=="blob:"&&$!==""){var ae=f.indexOf("?");Z=ae===-1?f:f.slice(0,ae+1)+f.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,Me){return Me===B?"":xe}),Z+=(f.indexOf("?")===-1?"?":"&")+B+"="+encodeURIComponent($)}var se=a.withCredentials,te={};te.Accept="text/event-stream";var J=a.headers;if(J!=null)for(var Ee in J)Object.prototype.hasOwnProperty.call(J,Ee)&&(te[Ee]=J[Ee]);try{oe=Qe.open(ve,cr,fr,ln,Z,se,te)}catch(xe){throw Ot(),xe}};a.url=f,a.readyState=pe,a.withCredentials=d,a.headers=S,a._close=Ot,Ye()}ie.prototype=Object.create(y.prototype),ie.prototype.CONNECTING=pe,ie.prototype.OPEN=Te,ie.prototype.CLOSED=be,ie.prototype.close=function(){this._close()},ie.CONNECTING=pe,ie.OPEN=Te,ie.CLOSED=be,ie.prototype.withCredentials=void 0;var H=h;o!=null&&(h==null||!("withCredentials"in h.prototype))&&(H=ie),function(a){{var f=a(t);f!==void 0&&(e.exports=f)}}(function(a){a.EventSourcePolyfill=ie,a.NativeEventSource=h,a.EventSource=H})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:$r:globalThis)})(en,en.exports);var Oo=en.exports;/*!
7
+ */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,l=n.ActiveXObject,c=n.EventSource,u=n.document,f=n.Promise,g=n.fetch,b=n.Response,B=n.TextDecoder,T=n.TextEncoder,O=n.AbortController;if(typeof window!="undefined"&&typeof u!="undefined"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(a){u.readyState="complete"},!1)),o==null&&l!=null&&(o=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function h(){}return h.prototype=a,new h}),Date.now||(Date.now=function(){return new Date().getTime()}),O==null){var A=g;g=function(a,h){var m=h.signal;return A(a,{headers:h.headers,credentials:h.credentials,cache:h.cache}).then(function(d){var E=d.body.getReader();return m._reader=E,m._aborted&&m._reader.cancel(),{status:d.status,statusText:d.statusText,headers:d.headers,body:{getReader:function(){return E}}}})},O=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function G(){this.bitsNeeded=0,this.codePoint=0}G.prototype.decode=function(a){function h(F,$,S){if(S===1)return F>=128>>$&&F<<$<=2047;if(S===2)return F>=2048>>$&&F<<$<=55295||F>=57344>>$&&F<<$<=65535;if(S===3)return F>=65536>>$&&F<<$<=1114111;throw new Error}function m(F,$){if(F===6*1)return $>>6>15?3:$>31?2:1;if(F===6*2)return $>15?3:2;if(F===6*3)return 3;throw new Error}for(var d=65533,E="",v=this.bitsNeeded,x=this.codePoint,R=0;R<a.length;R+=1){var C=a[R];v!==0&&(C<128||C>191||!h(x<<6|C&63,v-6,m(v,x)))&&(v=0,x=d,E+=String.fromCharCode(x)),v===0?(C>=0&&C<=127?(v=0,x=C):C>=192&&C<=223?(v=6*1,x=C&31):C>=224&&C<=239?(v=6*2,x=C&15):C>=240&&C<=247?(v=6*3,x=C&7):(v=0,x=d),v!==0&&!h(x,v,m(v,x))&&(v=0,x=d)):(v-=6,x=x<<6|C&63),v===0&&(x<=65535?E+=String.fromCharCode(x):(E+=String.fromCharCode(55296+(x-65535-1>>10)),E+=String.fromCharCode(56320+(x-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=x,E};var D=function(){try{return new B().decode(new T().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(B==null||T==null||!D())&&(B=G);var _=function(){};function w(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=_,this.onload=_,this.onerror=_,this.onreadystatechange=_,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=_}w.prototype.open=function(a,h){this._abort(!0);var m=this,d=this._xhr,E=1,v=0;this._abort=function(S){m._sendTimeout!==0&&(i(m._sendTimeout),m._sendTimeout=0),(E===1||E===2||E===3)&&(E=4,d.onload=_,d.onerror=_,d.onabort=_,d.onprogress=_,d.onreadystatechange=_,d.abort(),v!==0&&(i(v),v=0),S||(m.readyState=4,m.onabort(null),m.onreadystatechange())),E=0};var x=function(){if(E===1){var S=0,X="",be=void 0;if("contentType"in d)S=200,X="OK",be=d.contentType;else try{S=d.status,X=d.statusText,be=d.getResponseHeader("Content-Type")}catch(Je){S=0,X="",be=void 0}S!==0&&(E=2,m.readyState=2,m.status=S,m.statusText=X,m._contentType=be,m.onreadystatechange())}},R=function(){if(x(),E===2||E===3){E=3;var S="";try{S=d.responseText}catch(X){}m.readyState=3,m.responseText=S,m.onprogress()}},C=function(S,X){if((X==null||X.preventDefault==null)&&(X={preventDefault:_}),R(),E===1||E===2||E===3){if(E=4,v!==0&&(i(v),v=0),m.readyState=4,S==="load")m.onload(X);else if(S==="error")m.onerror(X);else if(S==="abort")m.onabort(X);else throw new TypeError;m.onreadystatechange()}},F=function(S){d!=null&&(d.readyState===4?(!("onload"in d)||!("onerror"in d)||!("onabort"in d))&&C(d.responseText===""?"error":"load",S):d.readyState===3?"onprogress"in d||R():d.readyState===2&&x())},$=function(){v=r(function(){$()},500),d.readyState===3&&R()};"onload"in d&&(d.onload=function(S){C("load",S)}),"onerror"in d&&(d.onerror=function(S){C("error",S)}),"onabort"in d&&(d.onabort=function(S){C("abort",S)}),"onprogress"in d&&(d.onprogress=R),"onreadystatechange"in d&&(d.onreadystatechange=function(S){F(S)}),("contentType"in d||!("ontimeout"in o.prototype))&&(h+=(h.indexOf("?")===-1?"?":"&")+"padding=true"),d.open(a,h,!0),"readyState"in d&&(v=r(function(){$()},0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(a){return this._contentType},w.prototype.setRequestHeader=function(a,h){var m=this._xhr;"setRequestHeader"in m&&m.setRequestHeader(a,h)},w.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var a=this;a._sendTimeout=r(function(){a._sendTimeout=0,a.send()},4);return}var h=this._xhr;"withCredentials"in h&&(h.withCredentials=this.withCredentials);try{h.send(void 0)}catch(m){throw m}};function U(a){return a.replace(/[A-Z]/g,function(h){return String.fromCharCode(h.charCodeAt(0)+32)})}function ne(a){for(var h=Object.create(null),m=a.split(`\r
8
+ `),d=0;d<m.length;d+=1){var E=m[d],v=E.split(": "),x=v.shift(),R=v.join(": ");h[U(x)]=R}this._map=h}ne.prototype.get=function(a){return this._map[U(a)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function Q(){}Q.prototype.open=function(a,h,m,d,E,v,x){a.open("GET",E);var R=0;a.onprogress=function(){var F=a.responseText,$=F.slice(R);R+=$.length,m($)},a.onerror=function(F){F.preventDefault(),d(new Error("NetworkError"))},a.onload=function(){d(null)},a.onabort=function(){d(null)},a.onreadystatechange=function(){if(a.readyState===o.HEADERS_RECEIVED){var F=a.status,$=a.statusText,S=a.getResponseHeader("Content-Type"),X=a.getAllResponseHeaders();h(F,$,S,new ne(X))}},a.withCredentials=v;for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&a.setRequestHeader(C,x[C]);return a.send(),a};function k(a){this._headers=a}k.prototype.get=function(a){return this._headers.get(a)};function I(){}I.prototype.open=function(a,h,m,d,E,v,x){var R=null,C=new O,F=C.signal,$=new B;return g(E,{headers:x,credentials:v?"include":"same-origin",signal:F,cache:"no-store"}).then(function(S){return R=S.body.getReader(),h(S.status,S.statusText,S.headers.get("Content-Type"),new k(S.headers)),new f(function(X,be){var Je=function(){R.read().then(function(ie){if(ie.done)X(void 0);else{var Y=$.decode(ie.value,{stream:!0});m(Y),Je()}}).catch(function(ie){be(ie)})};Je()})}).catch(function(S){if(S.name!=="AbortError")return S}).then(function(S){d(S)}),{abort:function(){R!=null&&R.cancel(),C.abort()}}};function y(){this._listeners=Object.create(null)}function j(a){r(function(){throw a},0)}y.prototype.dispatchEvent=function(a){a.target=this;var h=this._listeners[a.type];if(h!=null)for(var m=h.length,d=0;d<m;d+=1){var E=h[d];try{typeof E.handleEvent=="function"?E.handleEvent(a):E.call(this,a)}catch(v){j(v)}}},y.prototype.addEventListener=function(a,h){a=String(a);var m=this._listeners,d=m[a];d==null&&(d=[],m[a]=d);for(var E=!1,v=0;v<d.length;v+=1)d[v]===h&&(E=!0);E||d.push(h)},y.prototype.removeEventListener=function(a,h){a=String(a);var m=this._listeners,d=m[a];if(d!=null){for(var E=[],v=0;v<d.length;v+=1)d[v]!==h&&E.push(d[v]);E.length===0?delete m[a]:m[a]=E}};function ue(a){this.type=a,this.target=void 0}function ot(a,h){ue.call(this,a),this.data=h.data,this.lastEventId=h.lastEventId}ot.prototype=Object.create(ue.prototype);function me(a,h){ue.call(this,a),this.status=h.status,this.statusText=h.statusText,this.headers=h.headers}me.prototype=Object.create(ue.prototype);function Xe(a,h){ue.call(this,a),this.error=h.error}Xe.prototype=Object.create(ue.prototype);var ze=-1,de=0,_e=1,ge=2,He=-1,pe=0,We=1,Ze=2,Tt=3,Bt=/^text\/event\-stream(;.*)?$/i,at=1e3,St=18e6,qe=function(a,h){var m=a==null?h:parseInt(a,10);return m!==m&&(m=h),Qe(m)},Qe=function(a){return Math.min(Math.max(a,at),St)},Te=function(a,h,m){try{typeof h=="function"&&h.call(a,m)}catch(d){j(d)}};function re(a,h){y.call(this),h=h||{},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,Ct(this,a,h)}function wt(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var At=g!=null&&b!=null&&"body"in b.prototype;function Ct(a,h,m){h=String(h);var d=!!m.withCredentials,E=m.lastEventIdQueryParameterName||"lastEventId",v=Qe(1e3),x=qe(m.heartbeatTimeout,45e3),R="",C=v,F=!1,$=0,S=m.headers||{},X=m.Transport,be=At&&X==null?void 0:new w(X!=null?new X:wt()),Je=X!=null&&typeof X!="string"?new X:be==null?new I:new Q,ie=void 0,Y=0,he=ze,Oe="",st="",ve="",lt="",K=pe,Ht=0,we=0,cr=function(Z,W,oe,ae){if(he===de)if(Z===200&&oe!=null&&Bt.test(oe)){he=_e,F=Date.now(),C=v,a.readyState=_e;var ee=new me("open",{status:Z,statusText:W,headers:ae});a.dispatchEvent(ee),Te(a,a.onopen,ee)}else{var q="";Z!==200?(W&&(W=W.replace(/\s+/g," ")),q="EventSource's response has a status "+Z+" "+W+" that is not 200. Aborting the connection."):q="EventSource's response has a Content-Type specifying an unsupported type: "+(oe==null?"-":oe.replace(/\s+/g," "))+". Aborting the connection.",Ot();var ee=new me("error",{status:Z,statusText:W,headers:ae});a.dispatchEvent(ee),Te(a,a.onerror,ee),console.error(q)}},fr=function(Z){if(he===_e){for(var W=-1,oe=0;oe<Z.length;oe+=1){var ae=Z.charCodeAt(oe);(ae===10||ae===13)&&(W=oe)}var ee=(W!==-1?lt:"")+Z.slice(0,W+1);lt=(W===-1?lt:"")+Z.slice(W+1),Z!==""&&(F=Date.now(),$+=Z.length);for(var q=0;q<ee.length;q+=1){var ae=ee.charCodeAt(q);if(K===He&&ae===10)K=pe;else if(K===He&&(K=pe),ae===13||ae===10){if(K!==pe){K===We&&(we=q+1);var ye=ee.slice(Ht,we-1),Ee=ee.slice(we+(we<q&&ee.charCodeAt(we)===32?1:0),q);ye==="data"?(Oe+=`
9
+ `,Oe+=Ee):ye==="id"?st=Ee:ye==="event"?ve=Ee:ye==="retry"?(v=qe(Ee,v),C=v):ye==="heartbeatTimeout"&&(x=qe(Ee,x),Y!==0&&(i(Y),Y=r(function(){Ye()},x)))}if(K===pe){if(Oe!==""){R=st,ve===""&&(ve="message");var Re=new ot(ve,{data:Oe.slice(1),lastEventId:st});if(a.dispatchEvent(Re),ve==="open"?Te(a,a.onopen,Re):ve==="message"?Te(a,a.onmessage,Re):ve==="error"&&Te(a,a.onerror,Re),he===ge)return}Oe="",ve=""}K=ae===13?He:pe}else K===pe&&(Ht=q,K=We),K===We?ae===58&&(we=q+1,K=Ze):K===Ze&&(K=Tt)}}},ln=function(Z){if(he===_e||he===de){he=ze,Y!==0&&(i(Y),Y=0),Y=r(function(){Ye()},C),C=Qe(Math.min(v*16,C*2)),a.readyState=de;var W=new Xe("error",{error:Z});a.dispatchEvent(W),Te(a,a.onerror,W),Z!=null&&console.error(Z)}},Ot=function(){he=ge,ie!=null&&(ie.abort(),ie=void 0),Y!==0&&(i(Y),Y=0),a.readyState=ge},Ye=function(){if(Y=0,he!==ze){if(!F&&ie!=null)ln(new Error("No activity within "+x+" milliseconds. "+(he===de?"No response received.":$+" chars received.")+" Reconnecting.")),ie!=null&&(ie.abort(),ie=void 0);else{var Z=Math.max((F||Date.now())+x-Date.now(),1);F=!1,Y=r(function(){Ye()},Z)}return}F=!1,$=0,Y=r(function(){Ye()},x),he=de,Oe="",ve="",st=R,lt="",Ht=0,we=0,K=pe;var W=h;if(h.slice(0,5)!=="data:"&&h.slice(0,5)!=="blob:"&&R!==""){var oe=h.indexOf("?");W=oe===-1?h:h.slice(0,oe+1)+h.slice(oe+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ee,Re){return Re===E?"":Ee}),W+=(h.indexOf("?")===-1?"?":"&")+E+"="+encodeURIComponent(R)}var ae=a.withCredentials,ee={};ee.Accept="text/event-stream";var q=a.headers;if(q!=null)for(var ye in q)Object.prototype.hasOwnProperty.call(q,ye)&&(ee[ye]=q[ye]);try{ie=Je.open(be,cr,fr,ln,W,ae,ee)}catch(Ee){throw Ot(),Ee}};a.url=h,a.readyState=de,a.withCredentials=d,a.headers=S,a._close=Ot,Ye()}re.prototype=Object.create(y.prototype),re.prototype.CONNECTING=de,re.prototype.OPEN=_e,re.prototype.CLOSED=ge,re.prototype.close=function(){this._close()},re.CONNECTING=de,re.OPEN=_e,re.CLOSED=ge,re.prototype.withCredentials=void 0;var p=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(p=re),function(a){{var h=a(t);h!==void 0&&(e.exports=h)}}(function(a){a.EventSourcePolyfill=re,a.NativeEventSource=c,a.EventSource=p})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:$r:globalThis)})(en,en.exports);var Oo=en.exports;/*!
10
10
  * currency.js - v2.0.4
11
11
  * http://scurker.github.io/currency.js
12
12
  *
13
13
  * Copyright (c) 2021 Jason Wilson
14
14
  * Released under MIT license
15
- */var Ro={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:Po,fromCents:!1},ur=function(t){return Math.round(t)},sn=function(t){return Math.pow(10,t)},Mo=function(t,n){return ur(t/n)*n},No=/(\d)(?=(\d{3})+\b)/g,Io=/(\d)(?=(\d\d)+\d\b)/g;function fe(e,t){var n=this;if(!(n instanceof fe))return new fe(e,t);var r=Object.assign({},Ro,t),i=sn(r.precision),o=pt(e,r);n.intValue=o,n.value=o/i,r.increment=r.increment||1/i,r.useVedic?r.groups=Io:r.groups=No,this.s=r,this.p=i}function pt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=0,i=t.decimal,o=t.errorOnInvalid,s=t.precision,l=t.fromCents,h=sn(s),u=typeof e=="number",c=e instanceof fe;if(c&&l)return e.intValue;if(u||c)r=c?e.value:e;else if(typeof e=="string"){var g=new RegExp("[^-\\d"+i+"]","g"),b=new RegExp("\\"+i,"g");r=e.replace(/\((.*)\)/,"-$1").replace(g,"").replace(b,"."),r=r||0}else{if(o)throw Error("Invalid Input");r=0}return l||(r*=h,r=r.toFixed(4)),n?ur(r):r}function Po(e,t){var n=t.pattern,r=t.negativePattern,i=t.symbol,o=t.separator,s=t.decimal,l=t.groups,h=(""+e).replace(/^-/,"").split("."),u=h[0],c=h[1];return(e.value>=0?n:r).replace("!",i).replace("#",u.replace(l,"$1"+o)+(c?s+c:""))}fe.prototype={add:function(t){var n=this.intValue,r=this.s,i=this.p;return fe((n+=pt(t,r))/(r.fromCents?1:i),r)},subtract:function(t){var n=this.intValue,r=this.s,i=this.p;return fe((n-=pt(t,r))/(r.fromCents?1:i),r)},multiply:function(t){var n=this.intValue,r=this.s;return fe((n*=t)/(r.fromCents?1:sn(r.precision)),r)},divide:function(t){var n=this.intValue,r=this.s;return fe(n/=pt(t,r,!1),r)},distribute:function(t){for(var n=this.intValue,r=this.p,i=this.s,o=[],s=Math[n>=0?"floor":"ceil"](n/t),l=Math.abs(n-s*t),h=i.fromCents?1:r;t!==0;t--){var u=fe(s/h,i);l-- >0&&(u=u[n>=0?"add":"subtract"](1/h)),o.push(u)}return o},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,n=this.p;return~~(t%n)},format:function(t){var n=this.s;return typeof t=="function"?t(this,n):n.format(this,Object.assign({},n,t))},toString:function(){var t=this.intValue,n=this.p,r=this.s;return Mo(t/n,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};function Lo(e){Er(e,"svelte-bn5dkz",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Cn(e,t,n){const r=e.slice();return r[47]=t[n],r}function Hn(e,t,n){const r=e.slice();return r[50]=t[n],r}function On(e){let t,n,r,i,o,s,l,h,u=e[5]("Title")+"",c,g,b,_,T,O,A=e[5]("DepositButton")+"",G,D,E,w,U,re,Q=gt(Object.keys(e[1])),X=[];for(let I=0;I<Q.length;I+=1)X[I]=Mn(Cn(e,Q,I));return{c(){t=W("div"),n=W("div"),i=de(),o=W("div"),s=W("div"),l=W("div"),h=W("p"),c=_e(u),g=de(),b=W("div");for(let I=0;I<X.length;I+=1)X[I].c();_=de(),T=W("div"),O=W("button"),G=_e(A),P(n,"class",r="BalanceModalClose "+(e[3]?"Open":"")),P(h,"class","BalanceModalTitle"),P(l,"class","BalanceModalHeader"),P(b,"class","BalanceModalBody"),P(O,"class","BalanceModalAction"),P(T,"class","BalanceModalFooter"),P(s,"class",D="ModalContent "+(e[3]?"Open":"")),P(o,"class",E="BalanceModal "+(e[3]?"Open":"")),P(t,"class",w="BalanceModalWrapper "+(e[3]?"Open":""))},m(I,y){je(I,t,y),C(t,n),C(t,i),C(t,o),C(o,s),C(s,l),C(l,h),C(h,c),C(s,g),C(s,b);for(let V=0;V<X.length;V+=1)X[V]&&X[V].m(b,null);C(s,_),C(s,T),C(T,O),C(O,G),U||(re=[mt(n,"click",e[24]),mt(O,"click",e[25])],U=!0)},p(I,y){if(y[0]&8&&r!==(r="BalanceModalClose "+(I[3]?"Open":""))&&P(n,"class",r),y[0]&32&&u!==(u=I[5]("Title")+"")&&Se(c,u),y[0]&178){Q=gt(Object.keys(I[1]));let V;for(V=0;V<Q.length;V+=1){const he=Cn(I,Q,V);X[V]?X[V].p(he,y):(X[V]=Mn(he),X[V].c(),X[V].m(b,null))}for(;V<X.length;V+=1)X[V].d(1);X.length=Q.length}y[0]&32&&A!==(A=I[5]("DepositButton")+"")&&Se(G,A),y[0]&8&&D!==(D="ModalContent "+(I[3]?"Open":""))&&P(s,"class",D),y[0]&8&&E!==(E="BalanceModal "+(I[3]?"Open":""))&&P(o,"class",E),y[0]&8&&w!==(w="BalanceModalWrapper "+(I[3]?"Open":""))&&P(t,"class",w)},d(I){I&&Ce(t),Dn(X,I),U=!1,$e(re)}}}function Rn(e){let t,n,r=e[5](e[47])+"",i,o,s=(e[50].productType?e[5](e[50].productType):"")+"",l,h,u,c,g=(e[50].amount?e[7](e[50].amount):"0")+"",b,_,T,O;return{c(){t=W("div"),n=W("p"),i=_e(r),o=de(),l=_e(s),h=de(),u=W("p"),c=W("span"),b=_e(g),_=de(),T=W("span"),O=_e(e[4]),P(n,"class","BalanceModalText"),P(c,"class","BalanceModalAmount"),P(T,"class","BalanceModalCurrency"),P(u,"class","BalanceModalValue"),P(t,"class","BalanceModalRowLine")},m(A,G){je(A,t,G),C(t,n),C(n,i),C(n,o),C(n,l),C(t,h),C(t,u),C(u,c),C(c,b),C(u,_),C(u,T),C(T,O)},p(A,G){G[0]&34&&r!==(r=A[5](A[47])+"")&&Se(i,r),G[0]&34&&s!==(s=(A[50].productType?A[5](A[50].productType):"")+"")&&Se(l,s),G[0]&2&&g!==(g=(A[50].amount?A[7](A[50].amount):"0")+"")&&Se(b,g),G[0]&16&&Se(O,A[4])},d(A){A&&Ce(t)}}}function Mn(e){let t,n,r=gt(e[1][e[47]]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Rn(Hn(e,r,o));return{c(){t=W("div");for(let o=0;o<i.length;o+=1)i[o].c();n=de(),P(t,"class","BalanceModalRowBoth")},m(o,s){je(o,t,s);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null);C(t,n)},p(o,s){if(s[0]&178){r=gt(o[1][o[47]]);let l;for(l=0;l<r.length;l+=1){const h=Hn(o,r,l);i[l]?i[l].p(h,s):(i[l]=Rn(h),i[l].c(),i[l].m(t,n))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&Ce(t),Dn(i,o)}}}function Nn(e){let t,n,r;return{c(){t=W("div"),P(t,"class","ShowBalanceModalOverlay")},m(i,o){je(i,t,o),n||(r=mt(t,"click",e[26]),n=!0)},p:ue,d(i){i&&Ce(t),n=!1,r()}}}function Do(e){let t,n,r,i,o=(e[1].Total?e[7](e[1].Total[0].amount):"0")+"",s,l,h,u,c,g,b,_,T,O,A,G,D=e[2]&&On(e),E=e[2]&&Nn(e);return{c(){t=W("div"),n=W("div"),r=W("div"),i=W("p"),s=_e(o),l=de(),h=_e(e[4]),u=de(),c=W("span"),g=cn("svg"),b=cn("path"),T=de(),D&&D.c(),O=de(),E&&E.c(),P(b,"id","arrow"),P(b,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),P(b,"transform","translate(-274.511 -441.088)"),P(b,"fill","#d1d1d1"),P(g,"xmlns","http://www.w3.org/2000/svg"),P(g,"width","14"),P(g,"height","6.835"),P(g,"viewBox","0 0 14 6.835"),P(c,"class",_=e[3]?"TriangleActive":"TriangleInactive"),P(r,"class","BalanceValue"),P(n,"class","ShowBalance")},m(w,U){je(w,t,U),C(t,n),C(n,r),C(r,i),C(i,s),C(i,l),C(i,h),C(r,u),C(r,c),C(c,g),C(g,b),C(n,T),D&&D.m(n,null),C(t,O),E&&E.m(t,null),e[27](t),A||(G=mt(r,"click",e[23]),A=!0)},p(w,U){U[0]&2&&o!==(o=(w[1].Total?w[7](w[1].Total[0].amount):"0")+"")&&Se(s,o),U[0]&16&&Se(h,w[4]),U[0]&8&&_!==(_=w[3]?"TriangleActive":"TriangleInactive")&&P(c,"class",_),w[2]?D?D.p(w,U):(D=On(w),D.c(),D.m(n,null)):D&&(D.d(1),D=null),w[2]?E?E.p(w,U):(E=Nn(w),E.c(),E.m(t,null)):E&&(E.d(1),E=null)},i:ue,o:ue,d(w){w&&Ce(t),D&&D.d(),E&&E.d(),e[27](null),A=!1,G()}}}function Uo(e,t,n){let r;yr(e,Co,p=>n(5,r=p));let{userid:i=""}=t,{session:o=""}=t,{endpoint:s=""}=t,{lang:l="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{customlocaleidentifier:g=""}=t,{gmversion:b=""}=t,{displaybalanceoption:_="All"}=t,{totalcalculationmode:T="totalRealAmount"}=t,{currencyseparator:O=""}=t,{currencydecimal:A=""}=t,{currencyprecision:G=""}=t,D,E,w,U=!1,re=!1,Q=!1,X="",I=[];const y={},V=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],he=()=>{fetch(c).then(p=>p.json()).then(p=>Object.keys(p).forEach(H=>wn(H,p[H]))).catch(p=>console.log(p))};Object.keys(An).forEach(p=>wn(p,An[p]));const ot=()=>{switch(T){case"totalAmount":return(p,H,a)=>a.walletType!=="CreditLine"?p+a.affectedAmount:p;case"totalCashAmount":return(p,H,a)=>a.walletType!=="CreditLine"&&(H==="Bonus"||H==="Real")?p+a.affectedAmount:p;case"totalRealAmount":return(p,H,a)=>a.walletType!=="CreditLine"&&H==="Real"?p+a.affectedAmount:a.walletType==="CreditLine"&&H==="Real"?p-Math.abs(a.affectedAmount):p;case"totalWithdrawableAmount":return(p,H,a)=>a.walletType!=="CreditLine"&&(H==="Real"||H==="RealNegativeRemainder")?p+a.affectedAmount:H==="DepositWagering"?p-a.affectedAmount:p}},ge=p=>{switch(p){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(2,re=!0),setTimeout(()=>n(3,Q=!0),150);break;case"closebalance":n(3,Q=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(2,re=!1)},150);break}},ze=()=>{if(g.includes(l))return g},We=p=>g?new Intl.NumberFormat(ze(),{useGrouping:!0}).format(p):O&&A?fe(p,{separator:O,decimal:A,symbol:"",precision:parseInt(G||"2",10)}).format():fe(p,{separator:".",decimal:",",symbol:"",precision:parseInt(G||"2",10)}).format(),pe=()=>It(this,null,function*(){var H,a;const p=new URL(`${s}/v1/player/${i}/account`);try{U=!0;const f=yield fetch(p,{method:"GET",headers:{"X-SessionID":o}}),m=yield f.json();if(f.ok)U=!1,window.postMessage({type:"BalancedFetched"},window.location.href),I=m.items,n(4,X=Object.keys(m.totalAmount)[0]),n(1,y.Total=[{amount:m.totalAmount[X]}],y),n(1,y.Real=[{amount:(H=I.find(d=>d.displayName==="Casino"))==null?void 0:H.balanceAmount}],y),n(1,y.Bonus=[{amount:(a=I.find(d=>d.displayName==="UBS"))==null?void 0:a.balanceAmount}],y);else throw U=!1,new Error("Failed to fetch balance data !")}catch(f){U=!1,console.log("Balance error: ",f)}finally{U=!1}}),Te=()=>{U=!0;const p=new URL(`${s}/v2/player/${i}/balance`),H=new Headers;H.append("X-SessionID",o),fetch(p,{method:"GET",headers:H}).then(f=>f.json()).then(f=>{U=!1;const[m,d]=Object.entries(f[T])[0];if(n(4,X=m),n(1,y.Total=[{amount:d}],y),!f.items[0].productType){const v=Object.values(f.totalBonusAmount)[0];n(1,y.Bonus=[{amount:v}],y);for(const x of f.items)x.type==="Real"&&(x.creditLine&&n(1,y.Credit=[{amount:x.creditLine}],y),y.Real?n(1,y.Real[0].amount+=x.amount,y):n(1,y.Real=[{amount:x.amount}],y));return}let B=f.items;n(1,y.Bonus=[],y),n(1,y.Real=[],y),n(1,y.Credit=[],y),_&&_!=="All"&&(B=f.items.filter(v=>v.productType===_));for(const v of B){if(v.type==="Real"){v.creditLine&&y.Credit.push({amount:v.creditLine,productType:v.productType});const x=y.Real.findIndex($=>$.productType===v.productType);x>0?n(1,y.Real[x].amount+=v.amount,y):y.Real.push({amount:v.amount,productType:v.productType});continue}if(v.type==="Bonus"){const x=y.Bonus.findIndex($=>$.productType===v.productType);x>0?n(1,y.Bonus[x].amount+=v.amount,y):y.Bonus.push({amount:v.amount,productType:v.productType})}}}).catch(f=>{throw U=!1,new Error("Failed to fetch balance data !")})},be=()=>{if(w&&w.close(),o.length<1)return;let p,H;switch(b){case"gm16":p=new URL(`${s}/v2/player/${i}/information/updates`),H=m=>m.data&&m.data.type==="BALANCE_UPDATE_V2"&&me(m.data.body);break;case"gmcore":p=new URL(`${s}/v1/player/${i}/balance/updates`),H=m=>m.data&&Ze(m.data.body);break}const a={accept:"text/event-stream","X-SessionId":o},f=new Oo.EventSourcePolyfill(p,{headers:a});w=f,f.addEventListener("message",H)},Ze=p=>{var f,m;let H;try{H=JSON.parse(p)}catch(d){console.log("Balance stream failed: ",d),be()}let a="0";I=I.map(d=>(H.balanceChange&&H.balanceChange[d.id]&&(d=Nt(Mt({},d),{balanceAmount:H.balanceChange[d.id].afterAmount})),a=(parseFloat(d==null?void 0:d.balanceAmount)+parseFloat(a)).toString(),d)),n(1,y.Real=[{amount:(f=I[0])==null?void 0:f.balanceAmount}],y),n(1,y.Bonus=[{amount:(m=I[1])==null?void 0:m.balanceAmount}],y),n(1,y.Total=[{amount:Number(a)}],y)},me=p=>{let H;try{H=JSON.parse(p)}catch(f){console.log("Balance stream failed: ",f),be()}const a=H.body;for(const[f,m]of Object.entries(a)){for(const d of y[f])!d.productType||m.productType&&m.productType===d.productType&&(d.amount=m.afterAmount);n(1,y.Total[0].amount=D(y.Total[0].amount,f,m),y)}},Oe=()=>{ge("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},at=()=>{V.includes(T)||(console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${V}. Using default value ('${V[2]}').`),n(9,T=V[2]))},Bt=()=>{switch(Ho(l),at(),D=ot(),b){case"gmcore":pe();break;case"gm16":Te();break;default:throw Error(`Invalid apiversion attribute: ${b}`)}},st=p=>p.data&&p.data.type==="LogoutSuccessfull"&&w.close(),St=()=>{const p=document.createElement("style");p.innerHTML=h,E.appendChild(p)},wt=()=>{const p=new URL(u),H=document.createElement("style");fetch(p.href).then(a=>a.text()).then(a=>{H.innerHTML=a,setTimeout(()=>{E.appendChild(H)},1)})},qe=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};wr(()=>(window.addEventListener("message",st,!1),()=>{window.removeEventListener("message",st),w&&w.close()}));const Je=()=>ge("balance"),Be=()=>ge("closebalance"),ie=()=>Oe(),At=()=>ge("closeBalance");function Ct(p){jt[p?"unshift":"push"](()=>{E=p,n(0,E)})}return e.$$set=p=>{"userid"in p&&n(10,i=p.userid),"session"in p&&n(11,o=p.session),"endpoint"in p&&n(12,s=p.endpoint),"lang"in p&&n(13,l=p.lang),"clientstyling"in p&&n(14,h=p.clientstyling),"clientstylingurl"in p&&n(15,u=p.clientstylingurl),"translationurl"in p&&n(16,c=p.translationurl),"customlocaleidentifier"in p&&n(17,g=p.customlocaleidentifier),"gmversion"in p&&n(18,b=p.gmversion),"displaybalanceoption"in p&&n(19,_=p.displaybalanceoption),"totalcalculationmode"in p&&n(9,T=p.totalcalculationmode),"currencyseparator"in p&&n(20,O=p.currencyseparator),"currencydecimal"in p&&n(21,A=p.currencydecimal),"currencyprecision"in p&&n(22,G=p.currencyprecision)},e.$$.update=()=>{e.$$.dirty[0]&8192&&l&&ze(),e.$$.dirty[0]&801792&&s&&i&&o&&l&&b&&_&&Bt(),e.$$.dirty[0]&7680&&s&&i&&o&&T&&be(),e.$$.dirty[0]&16385&&h&&E&&St(),e.$$.dirty[0]&32769&&u&&E&&wt(),e.$$.dirty[0]&65536&&c&&he(),e.$$.dirty[0]&2&&y.Total&&qe()},[E,y,re,Q,X,r,ge,We,Oe,T,i,o,s,l,h,u,c,g,b,_,O,A,G,Je,Be,ie,At,Ct]}class hr extends Ur{constructor(t){super(),Lr(this,t,Uo,Do,Pn,{userid:10,session:11,endpoint:12,lang:13,clientstyling:14,clientstylingurl:15,translationurl:16,customlocaleidentifier:17,gmversion:18,displaybalanceoption:19,totalcalculationmode:9,currencyseparator:20,currencydecimal:21,currencyprecision:22},Lo,[-1,-1])}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Y()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),Y()}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),Y()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Y()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Y()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Y()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),Y()}get customlocaleidentifier(){return this.$$.ctx[17]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),Y()}get gmversion(){return this.$$.ctx[18]}set gmversion(t){this.$$set({gmversion:t}),Y()}get displaybalanceoption(){return this.$$.ctx[19]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),Y()}get totalcalculationmode(){return this.$$.ctx[9]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),Y()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(t){this.$$set({currencyseparator:t}),Y()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(t){this.$$set({currencydecimal:t}),Y()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(t){this.$$set({currencyprecision:t}),Y()}}Dr(hr,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=hr;
15
+ */var Ro={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:Po,fromCents:!1},ur=function(t){return Math.round(t)},sn=function(t){return Math.pow(10,t)},Mo=function(t,n){return ur(t/n)*n},No=/(\d)(?=(\d{3})+\b)/g,Io=/(\d)(?=(\d\d)+\d\b)/g;function ce(e,t){var n=this;if(!(n instanceof ce))return new ce(e,t);var r=Object.assign({},Ro,t),i=sn(r.precision),o=dt(e,r);n.intValue=o,n.value=o/i,r.increment=r.increment||1/i,r.useVedic?r.groups=Io:r.groups=No,this.s=r,this.p=i}function dt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=0,i=t.decimal,o=t.errorOnInvalid,s=t.precision,l=t.fromCents,c=sn(s),u=typeof e=="number",f=e instanceof ce;if(f&&l)return e.intValue;if(u||f)r=f?e.value:e;else if(typeof e=="string"){var g=new RegExp("[^-\\d"+i+"]","g"),b=new RegExp("\\"+i,"g");r=e.replace(/\((.*)\)/,"-$1").replace(g,"").replace(b,"."),r=r||0}else{if(o)throw Error("Invalid Input");r=0}return l||(r*=c,r=r.toFixed(4)),n?ur(r):r}function Po(e,t){var n=t.pattern,r=t.negativePattern,i=t.symbol,o=t.separator,s=t.decimal,l=t.groups,c=(""+e).replace(/^-/,"").split("."),u=c[0],f=c[1];return(e.value>=0?n:r).replace("!",i).replace("#",u.replace(l,"$1"+o)+(f?s+f:""))}ce.prototype={add:function(t){var n=this.intValue,r=this.s,i=this.p;return ce((n+=dt(t,r))/(r.fromCents?1:i),r)},subtract:function(t){var n=this.intValue,r=this.s,i=this.p;return ce((n-=dt(t,r))/(r.fromCents?1:i),r)},multiply:function(t){var n=this.intValue,r=this.s;return ce((n*=t)/(r.fromCents?1:sn(r.precision)),r)},divide:function(t){var n=this.intValue,r=this.s;return ce(n/=dt(t,r,!1),r)},distribute:function(t){for(var n=this.intValue,r=this.p,i=this.s,o=[],s=Math[n>=0?"floor":"ceil"](n/t),l=Math.abs(n-s*t),c=i.fromCents?1:r;t!==0;t--){var u=ce(s/c,i);l-- >0&&(u=u[n>=0?"add":"subtract"](1/c)),o.push(u)}return o},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,n=this.p;return~~(t%n)},format:function(t){var n=this.s;return typeof t=="function"?t(this,n):n.format(this,Object.assign({},n,t))},toString:function(){var t=this.intValue,n=this.p,r=this.s;return Mo(t/n,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};function Lo(e){Er(e,"svelte-bn5dkz",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Cn(e,t,n){const r=e.slice();return r[48]=t[n],r}function Hn(e,t,n){const r=e.slice();return r[51]=t[n],r}function On(e){let t,n,r,i,o,s,l,c,u=e[5]("Title")+"",f,g,b,B,T,O,A=e[5]("DepositButton")+"",G,D,_,w,U,ne,Q=mt(Object.keys(e[1])),k=[];for(let I=0;I<Q.length;I+=1)k[I]=Mn(Cn(e,Q,I));return{c(){t=z("div"),n=z("div"),i=fe(),o=z("div"),s=z("div"),l=z("div"),c=z("p"),f=xe(u),g=fe(),b=z("div");for(let I=0;I<k.length;I+=1)k[I].c();B=fe(),T=z("div"),O=z("button"),G=xe(A),P(n,"class",r="BalanceModalClose "+(e[3]?"Open":"")),P(c,"class","BalanceModalTitle"),P(l,"class","BalanceModalHeader"),P(b,"class","BalanceModalBody"),P(O,"class","BalanceModalAction"),P(T,"class","BalanceModalFooter"),P(s,"class",D="ModalContent "+(e[3]?"Open":"")),P(o,"class",_="BalanceModal "+(e[3]?"Open":"")),P(t,"class",w="BalanceModalWrapper "+(e[3]?"Open":""))},m(I,y){$e(I,t,y),H(t,n),H(t,i),H(t,o),H(o,s),H(s,l),H(l,c),H(c,f),H(s,g),H(s,b);for(let j=0;j<k.length;j+=1)k[j]&&k[j].m(b,null);H(s,B),H(s,T),H(T,O),H(O,G),U||(ne=[pt(n,"click",e[24]),pt(O,"click",e[25])],U=!0)},p(I,y){if(y[0]&8&&r!==(r="BalanceModalClose "+(I[3]?"Open":""))&&P(n,"class",r),y[0]&32&&u!==(u=I[5]("Title")+"")&&Be(f,u),y[0]&178){Q=mt(Object.keys(I[1]));let j;for(j=0;j<Q.length;j+=1){const ue=Cn(I,Q,j);k[j]?k[j].p(ue,y):(k[j]=Mn(ue),k[j].c(),k[j].m(b,null))}for(;j<k.length;j+=1)k[j].d(1);k.length=Q.length}y[0]&32&&A!==(A=I[5]("DepositButton")+"")&&Be(G,A),y[0]&8&&D!==(D="ModalContent "+(I[3]?"Open":""))&&P(s,"class",D),y[0]&8&&_!==(_="BalanceModal "+(I[3]?"Open":""))&&P(o,"class",_),y[0]&8&&w!==(w="BalanceModalWrapper "+(I[3]?"Open":""))&&P(t,"class",w)},d(I){I&&Ae(t),Dn(k,I),U=!1,Ge(ne)}}}function Rn(e){let t,n,r=e[5](e[48])+"",i,o,s=(e[51].productType?e[5](e[51].productType):"")+"",l,c,u,f,g=(e[51].amount?e[7](e[51].amount):"0")+"",b,B,T,O;return{c(){t=z("div"),n=z("p"),i=xe(r),o=fe(),l=xe(s),c=fe(),u=z("p"),f=z("span"),b=xe(g),B=fe(),T=z("span"),O=xe(e[4]),P(n,"class","BalanceModalText"),P(f,"class","BalanceModalAmount"),P(T,"class","BalanceModalCurrency"),P(u,"class","BalanceModalValue"),P(t,"class","BalanceModalRowLine")},m(A,G){$e(A,t,G),H(t,n),H(n,i),H(n,o),H(n,l),H(t,c),H(t,u),H(u,f),H(f,b),H(u,B),H(u,T),H(T,O)},p(A,G){G[0]&34&&r!==(r=A[5](A[48])+"")&&Be(i,r),G[0]&34&&s!==(s=(A[51].productType?A[5](A[51].productType):"")+"")&&Be(l,s),G[0]&2&&g!==(g=(A[51].amount?A[7](A[51].amount):"0")+"")&&Be(b,g),G[0]&16&&Be(O,A[4])},d(A){A&&Ae(t)}}}function Mn(e){let t,n,r=mt(e[1][e[48]]),i=[];for(let o=0;o<r.length;o+=1)i[o]=Rn(Hn(e,r,o));return{c(){t=z("div");for(let o=0;o<i.length;o+=1)i[o].c();n=fe(),P(t,"class","BalanceModalRowBoth")},m(o,s){$e(o,t,s);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null);H(t,n)},p(o,s){if(s[0]&178){r=mt(o[1][o[48]]);let l;for(l=0;l<r.length;l+=1){const c=Hn(o,r,l);i[l]?i[l].p(c,s):(i[l]=Rn(c),i[l].c(),i[l].m(t,n))}for(;l<i.length;l+=1)i[l].d(1);i.length=r.length}},d(o){o&&Ae(t),Dn(i,o)}}}function Nn(e){let t,n,r;return{c(){t=z("div"),P(t,"class","ShowBalanceModalOverlay")},m(i,o){$e(i,t,o),n||(r=pt(t,"click",e[26]),n=!0)},p:le,d(i){i&&Ae(t),n=!1,r()}}}function Do(e){let t,n,r,i,o=(e[1].Total?e[7](e[1].Total[0].amount):"0")+"",s,l,c,u,f,g,b,B,T,O,A,G,D=e[2]&&On(e),_=e[2]&&Nn(e);return{c(){t=z("div"),n=z("div"),r=z("div"),i=z("p"),s=xe(o),l=fe(),c=xe(e[4]),u=fe(),f=z("span"),g=cn("svg"),b=cn("path"),T=fe(),D&&D.c(),O=fe(),_&&_.c(),P(b,"id","arrow"),P(b,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),P(b,"transform","translate(-274.511 -441.088)"),P(b,"fill","#d1d1d1"),P(g,"xmlns","http://www.w3.org/2000/svg"),P(g,"width","14"),P(g,"height","6.835"),P(g,"viewBox","0 0 14 6.835"),P(f,"class",B=e[3]?"TriangleActive":"TriangleInactive"),P(r,"class","BalanceValue"),P(n,"class","ShowBalance")},m(w,U){$e(w,t,U),H(t,n),H(n,r),H(r,i),H(i,s),H(i,l),H(i,c),H(r,u),H(r,f),H(f,g),H(g,b),H(n,T),D&&D.m(n,null),H(t,O),_&&_.m(t,null),e[27](t),A||(G=pt(r,"click",e[23]),A=!0)},p(w,U){U[0]&2&&o!==(o=(w[1].Total?w[7](w[1].Total[0].amount):"0")+"")&&Be(s,o),U[0]&16&&Be(c,w[4]),U[0]&8&&B!==(B=w[3]?"TriangleActive":"TriangleInactive")&&P(f,"class",B),w[2]?D?D.p(w,U):(D=On(w),D.c(),D.m(n,null)):D&&(D.d(1),D=null),w[2]?_?_.p(w,U):(_=Nn(w),_.c(),_.m(t,null)):_&&(_.d(1),_=null)},i:le,o:le,d(w){w&&Ae(t),D&&D.d(),_&&_.d(),e[27](null),A=!1,G()}}}function Uo(e,t,n){let r;yr(e,Co,p=>n(5,r=p));let{userid:i=""}=t,{session:o=""}=t,{endpoint:s=""}=t,{lang:l="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{customlocaleidentifier:g=""}=t,{gmversion:b=""}=t,{displaybalanceoption:B="All"}=t,{totalcalculationmode:T="totalRealAmount"}=t,{currencyseparator:O=""}=t,{currencydecimal:A=""}=t,{currencyprecision:G=""}=t,D,_,w,U=!1,ne=!1,Q=!1,k="",I=[];const y={},j=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],ue=()=>{fetch(f).then(p=>p.json()).then(p=>Object.keys(p).forEach(a=>wn(a,p[a]))).catch(p=>console.log(p))};Object.keys(An).forEach(p=>wn(p,An[p]));const ot=()=>{switch(T){case"totalAmount":return(p,a,h)=>h.walletType!=="CreditLine"&&h.affectedAmount?p+h.affectedAmount:p;case"totalCashAmount":return(p,a,h)=>h.walletType!=="CreditLine"&&(a==="Bonus"||a==="Real")&&h.affectedAmount?p+h.affectedAmount:p;case"totalRealAmount":return(p,a,h)=>h.walletType!=="CreditLine"&&a==="Real"&&h.affectedAmount?p+h.affectedAmount:h.walletType==="CreditLine"&&a==="Real"&&h.affectedAmount?p-Math.abs(h.affectedAmount):p;case"totalWithdrawableAmount":return(p,a,h)=>h.walletType!=="CreditLine"&&(a==="Real"||a==="RealNegativeRemainder")&&h.affectedAmount?p+h.affectedAmount:a==="DepositWagering"&&h.affectedAmount?p-h.affectedAmount:p}},me=p=>{switch(p){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(2,ne=!0),setTimeout(()=>n(3,Q=!0),150);break;case"closebalance":n(3,Q=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(2,ne=!1)},150);break}},Xe=()=>{if(g.includes(l))return g},ze=p=>g?new Intl.NumberFormat(Xe(),{useGrouping:!0}).format(p):O&&A?ce(p,{separator:O,decimal:A,symbol:"",precision:parseInt(G||"2",10)}).format():ce(p,{separator:".",decimal:",",symbol:"",precision:parseInt(G||"2",10)}).format(),de=()=>It(this,null,function*(){var a,h;const p=new URL(`${s}/v1/player/${i}/account`);try{U=!0;const m=yield fetch(p,{method:"GET",headers:{"X-SessionID":o}}),d=yield m.json();if(m.ok)U=!1,window.postMessage({type:"BalancedFetched"},window.location.href),I=d.items,n(4,k=Object.keys(d.totalAmount)[0]),n(1,y.Total=[{amount:d.totalAmount[k]}],y),n(1,y.Real=[{amount:(a=I.find(E=>E.displayName==="Casino"))==null?void 0:a.balanceAmount}],y),n(1,y.Bonus=[{amount:(h=I.find(E=>E.displayName==="UBS"))==null?void 0:h.balanceAmount}],y);else throw U=!1,new Error("Failed to fetch balance data !")}catch(m){U=!1,console.log("Balance error: ",m)}finally{U=!1}}),_e=()=>{U=!0;const p=new URL(`${s}/v2/player/${i}/balance`),a=new Headers;a.append("X-SessionID",o),fetch(p,{method:"GET",headers:a}).then(m=>m.json()).then(m=>{U=!1;const[d,E]=Object.entries(m[T])[0];if(n(4,k=d),n(1,y.Total=[{amount:E}],y),n(1,y.Real=[],y),n(1,y.Bonus=[],y),n(1,y.Credit=[],y),!m.items[0].productType){T==="totalRealAmount"&&delete y.Real;const x=Object.values(m.totalBonusAmount)[0];y.Bonus.push({amount:x});for(const R of m.items)R.type==="Real"&&(R.creditLine&&y.Credit.length===0&&y.Credit.push({amount:R.creditLine}),T!=="totalRealAmount"&&(y.Real.length===0?y.Real.push({amount:R.amount}):n(1,y.Real[0].amount+=R.amount,y)));return}let v=m.items;B&&B!=="All"&&(v=m.items.filter(x=>x.productType===B));for(const x of v){if(x.type==="Real"){x.creditLine&&y.Credit.push({amount:x.creditLine,productType:x.productType});const R=y.Real.findIndex(C=>C.productType===x.productType);R>0?n(1,y.Real[R].amount+=x.amount,y):y.Real.push({amount:x.amount,productType:x.productType});continue}if(x.type==="Bonus"){const R=y.Bonus.findIndex(C=>C.productType===x.productType);R>0?n(1,y.Bonus[R].amount+=x.amount,y):y.Bonus.push({amount:x.amount,productType:x.productType})}}}).catch(m=>{throw U=!1,new Error("Failed to fetch balance data !")})},ge=()=>{if(w&&w.close(),o.length<1)return;let p,a;switch(b){case"gm16":p=new URL(`${s}/v2/player/${i}/information/updates`),a=d=>We(d.data);break;case"gmcore":p=new URL(`${s}/v1/player/${i}/balance/updates`),a=d=>pe(d.data);break}const h={accept:"text/event-stream","X-SessionId":o},m=new Oo.EventSourcePolyfill(p,{headers:h});w=m,m.addEventListener("message",a)},He=p=>{let a;try{a=JSON.parse(p)}catch(h){console.log("Balance stream failed: ",h);return}return a},pe=p=>{var d,E;const a=He(p);a||ge();let h="0";const m=a.balanceChange;I=I.map(v=>(m&&m[v.id]&&(v=Nt(Mt({},v),{balanceAmount:m[v.id].afterAmount})),h=(parseFloat(v==null?void 0:v.balanceAmount)+parseFloat(h)).toString(),v)),n(1,y.Real=[{amount:(d=I[0])==null?void 0:d.balanceAmount}],y),n(1,y.Bonus=[{amount:(E=I[1])==null?void 0:E.balanceAmount}],y),n(1,y.Total=[{amount:Number(h)}],y)},We=p=>{const a=He(p);(!a||a.type!=="BALANCE_UPDATE_V2")&&ge();const h=a.body.balanceChange;for(const[m,d]of Object.entries(h))if(n(1,y.Total[0].amount=D(y.Total[0].amount,m,d),y),!!y[m])for(const E of y[m])(!E.productType||d.productType&&d.productType===E.productType)&&(E.amount=d.afterAmount)},Ze=()=>{me("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Tt=()=>{j.includes(T)||(console.error(`
16
+ Unsupported value ('${T}') for totalcalculationmode parameter.
17
+ Only the following values are supported ${j}.
18
+ Using default value ('${j[0]}').
19
+ `),n(9,T=j[0]))},Bt=()=>{switch(Ho(l),Tt(),D=ot(),b){case"gmcore":de();break;case"gm16":_e();break;default:throw Error(`Invalid apiversion attribute: ${b}`)}},at=p=>p.data&&p.data.type==="LogoutSuccessfull"&&w.close(),St=()=>{const p=document.createElement("style");p.innerHTML=c,_.appendChild(p)},qe=()=>{const p=new URL(u),a=document.createElement("style");fetch(p.href).then(h=>h.text()).then(h=>{a.innerHTML=h,setTimeout(()=>{_.appendChild(a)},1)})},Qe=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};wr(()=>(window.addEventListener("message",at,!1),()=>{window.removeEventListener("message",at),w&&w.close()}));const Te=()=>me("balance"),re=()=>me("closebalance"),wt=()=>Ze(),At=()=>me("closeBalance");function Ct(p){jt[p?"unshift":"push"](()=>{_=p,n(0,_)})}return e.$$set=p=>{"userid"in p&&n(10,i=p.userid),"session"in p&&n(11,o=p.session),"endpoint"in p&&n(12,s=p.endpoint),"lang"in p&&n(13,l=p.lang),"clientstyling"in p&&n(14,c=p.clientstyling),"clientstylingurl"in p&&n(15,u=p.clientstylingurl),"translationurl"in p&&n(16,f=p.translationurl),"customlocaleidentifier"in p&&n(17,g=p.customlocaleidentifier),"gmversion"in p&&n(18,b=p.gmversion),"displaybalanceoption"in p&&n(19,B=p.displaybalanceoption),"totalcalculationmode"in p&&n(9,T=p.totalcalculationmode),"currencyseparator"in p&&n(20,O=p.currencyseparator),"currencydecimal"in p&&n(21,A=p.currencydecimal),"currencyprecision"in p&&n(22,G=p.currencyprecision)},e.$$.update=()=>{e.$$.dirty[0]&8192&&l&&Xe(),e.$$.dirty[0]&801792&&s&&i&&o&&l&&b&&B&&Bt(),e.$$.dirty[0]&269312&&s&&i&&o&&b&&ge(),e.$$.dirty[0]&16385&&c&&_&&St(),e.$$.dirty[0]&32769&&u&&_&&qe(),e.$$.dirty[0]&65536&&f&&ue(),e.$$.dirty[0]&2&&y.Total&&Qe()},[_,y,ne,Q,k,r,me,ze,Ze,T,i,o,s,l,c,u,f,g,b,B,O,A,G,Te,re,wt,At,Ct]}class hr extends Ur{constructor(t){super(),Lr(this,t,Uo,Do,Pn,{userid:10,session:11,endpoint:12,lang:13,clientstyling:14,clientstylingurl:15,translationurl:16,customlocaleidentifier:17,gmversion:18,displaybalanceoption:19,totalcalculationmode:9,currencyseparator:20,currencydecimal:21,currencyprecision:22},Lo,[-1,-1])}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),J()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),J()}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),J()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),J()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),J()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),J()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),J()}get customlocaleidentifier(){return this.$$.ctx[17]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),J()}get gmversion(){return this.$$.ctx[18]}set gmversion(t){this.$$set({gmversion:t}),J()}get displaybalanceoption(){return this.$$.ctx[19]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),J()}get totalcalculationmode(){return this.$$.ctx[9]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),J()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(t){this.$$set({currencyseparator:t}),J()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(t){this.$$set({currencydecimal:t}),J()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(t){this.$$set({currencyprecision:t}),J()}}Dr(hr,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=hr;