@everymatrix/casino-coinroyale-list 0.1.0 → 0.1.3
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.
- package/components/CasinoCoinroyaleList-CuhGQxUf.cjs +18 -0
- package/components/{CasinoCoinroyaleList--nXAh6wX.js → CasinoCoinroyaleList-MGA7IeTn.js} +2015 -2048
- package/components/{CasinoCoinroyaleList-G4jjy7Zr.js → CasinoCoinroyaleList-kYiVzFkP.js} +1376 -1409
- package/es2015/casino-coinroyale-list.cjs +1 -1
- package/es2015/casino-coinroyale-list.js +1 -1
- package/esnext/casino-coinroyale-list.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-CayB6jRX.js +519 -0
- package/stencil/index-b2193545-DrvOqGyq.js +503 -0
- package/stencil/index-b2193545-lC_KoC4p.cjs +1 -0
- package/stencil/{ui-skeleton-1cb75d00-CUSs6C3A.cjs → ui-skeleton-1cb75d00-6KKxtHwu.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-CXHx_pAM.js → ui-skeleton-1cb75d00-BAHBT-wb.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-z2mX3TRi.js → ui-skeleton-1cb75d00-BPfsKHrC.js} +1 -1
- package/stencil/{ui-skeleton-CCXvjIzA.cjs → ui-skeleton-CaX4F6ue.cjs} +1 -1
- package/stencil/{ui-skeleton-4ifa-7wH.js → ui-skeleton-QVfoKja7.js} +2 -2
- package/stencil/{ui-skeleton-Bk5dn5mu.js → ui-skeleton-b2oavT4f.js} +2 -2
- package/components/CasinoCoinroyaleList-OxX4ILrd.cjs +0 -18
- package/stencil/index-b2193545-BcYyCldH.js +0 -519
- package/stencil/index-b2193545-CPztmidm.js +0 -503
- package/stencil/index-b2193545-D1Z0k4-D.cjs +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";var yr=Object.defineProperty,_r=Object.defineProperties;var wr=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var dt=(e,t,n)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ve=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&dt(e,n,t[n]);if(zt)for(var n of zt(t))Er.call(t,n)&&dt(e,n,t[n]);return e},mt=(e,t)=>_r(e,wr(t));var J=(e,t,n)=>(dt(e,typeof t!="symbol"?t+"":t,n),n);var te=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{s(n.next(l))}catch(u){i(u)}},o=l=>{try{s(n.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CaX4F6ue.cjs");function K(){}function In(e){return e()}function Yt(){return Object.create(null)}function Ae(e){e.forEach(In)}function Rt(e){return typeof e=="function"}function Dn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Xe;function tt(e,t){return e===t?!0:(Xe||(Xe=document.createElement("a")),Xe.href=t,e===Xe.href)}function Tr(e){return Object.keys(e).length===0}function kn(e,...t){if(e==null){for(const r of t)r(void 0);return K}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Sr(e,t,n){e.$$.on_destroy.push(kn(t,n))}function d(e,t){e.appendChild(t)}function Cr(e,t,n){const r=Pr(e);if(!r.getElementById(t)){const i=y("style");i.id=t,i.textContent=n,Or(r,i)}}function Pr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Or(e,t){return d(e.head||e,t),t.sheet}function z(e,t,n){e.insertBefore(t,n||null)}function F(e){e.parentNode&&e.parentNode.removeChild(e)}function $t(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function y(e){return document.createElement(e)}function B(e){return document.createTextNode(e)}function H(){return B(" ")}function Ft(){return B("")}function se(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Hr(e){return Array.from(e.childNodes)}function I(e,t){t=""+t,e.data!==t&&(e.data=t)}function ye(e,t,n){e.classList.toggle(t,!!n)}function Mr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let Fe;function $e(e){Fe=e}function Br(){if(!Fe)throw new Error("Function called outside component initialization");return Fe}function Ar(e){Br().$$.on_mount.push(e)}const Ee=[],Et=[];let Te=[];const Vt=[],Lr=Promise.resolve();let Tt=!1;function Nr(){Tt||(Tt=!0,Lr.then(ne))}function St(e){Te.push(e)}const pt=new Set;let _e=0;function ne(){if(_e!==0)return;const e=Fe;do{try{for(;_e<Ee.length;){const t=Ee[_e];_e++,$e(t),Ir(t.$$)}}catch(t){throw Ee.length=0,_e=0,t}for($e(null),Ee.length=0,_e=0;Et.length;)Et.pop()();for(let t=0;t<Te.length;t+=1){const n=Te[t];pt.has(n)||(pt.add(n),n())}Te.length=0}while(Ee.length);for(;Vt.length;)Vt.pop()();Tt=!1,pt.clear(),$e(e)}function Ir(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(St)}}function Dr(e){const t=[],n=[];Te.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Te=t}const kr=new Set;function Ur(e,t){e&&e.i&&(kr.delete(e),e.i(t))}function Pe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Rr(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),St(()=>{const a=e.$$.on_mount.map(In).filter(Rt);e.$$.on_destroy?e.$$.on_destroy.push(...a):Ae(a),e.$$.on_mount=[]}),i.forEach(St)}function $r(e,t){const n=e.$$;n.fragment!==null&&(Dr(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Fr(e,t){e.$$.dirty[0]===-1&&(Ee.push(e),Nr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Gr(e,t,n,r,i,a,o=null,s=[-1]){const l=Fe;$e(e);const u=e.$$={fragment:null,ctx:[],props:a,update:K,not_equal:i,bound:Yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Yt(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};o&&o(u.root);let c=!1;if(u.ctx=n(e,t.props||{},(h,f,...m)=>{const g=m.length?m[0]:f;return u.ctx&&i(u.ctx[h],u.ctx[h]=g)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](g),c&&Fr(e,h)),f}),u.update(),c=!0,Ae(u.before_update),u.fragment=r(u.ctx),t.target){if(t.hydrate){const h=Hr(t.target);u.fragment&&u.fragment.l(h),h.forEach(F)}else u.fragment&&u.fragment.c();t.intro&&Ur(e.$$.fragment),Rr(e,t.target,t.anchor),ne()}$e(l)}let Un;typeof HTMLElement=="function"&&(Un=class extends HTMLElement{constructor(t,n,r){super();J(this,"$$ctor");J(this,"$$s");J(this,"$$c");J(this,"$$cn",!1);J(this,"$$d",{});J(this,"$$r",!1);J(this,"$$p_d",{});J(this,"$$l",{});J(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 te(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(a){return()=>{let o;return{c:function(){o=y("slot"),a!=="default"&&v(o,"name",a)},m:function(u,c){z(u,o,c)},d:function(u){u&&F(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Mr(this);for(const a of this.$$s)a in r&&(n[a]=[t(a)]);for(const a of this.attributes){const o=this.$$g_p(a.name);o in this.$$d||(this.$$d[o]=Ze(o,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:mt(Ve({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const o=Ze(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const o of this.$$l[a]){const s=this.$$c.$on(a,o);this.$$l_u.set(o,s)}this.$$l={}}})}attributeChangedCallback(t,n,r){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ze(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 Ze(e,t,n,r){var a;const i=(a=n[e])==null?void 0:a.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 jr(e,t,n,r,i,a){let o=class extends Un{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=Ze(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),r.forEach(s=>{Object.defineProperty(o.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=o,o}class Wr{constructor(){J(this,"$$");J(this,"$$set")}$destroy(){$r(this,1),this.$destroy=K}$on(t,n){if(!Rt(n))return K;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&&!Tr(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zr="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zr);const Xt=e=>window.postMessage(e,window.location.href),Yr="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",qt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e",Qt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",Vr="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function be(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function X(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function re(e){X(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||nt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Xr(e,t){X(2,arguments);var n=re(e).getTime(),r=be(t);return new Date(n+r)}var qr={};function st(){return qr}function Qr(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Zr(e){return X(1,arguments),e instanceof Date||nt(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Jr(e){if(X(1,arguments),!Zr(e)&&typeof e!="number")return!1;var t=re(e);return!isNaN(Number(t))}function Kr(e,t){X(2,arguments);var n=be(t);return Xr(e,-n)}var ei=864e5;function ti(e){X(1,arguments);var t=re(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/ei)+1}function rt(e){X(1,arguments);var t=1,n=re(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Rn(e){X(1,arguments);var t=re(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=rt(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var o=rt(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function ni(e){X(1,arguments);var t=Rn(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=rt(n);return r}var ri=6048e5;function ii(e){X(1,arguments);var t=re(e),n=rt(t).getTime()-ni(t).getTime();return Math.round(n/ri)+1}function it(e,t){var n,r,i,a,o,s,l,u;X(1,arguments);var c=st(),h=be((n=(r=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=re(e),m=f.getUTCDay(),g=(m<h?7:0)+m-h;return f.setUTCDate(f.getUTCDate()-g),f.setUTCHours(0,0,0,0),f}function $n(e,t){var n,r,i,a,o,s,l,u;X(1,arguments);var c=re(e),h=c.getUTCFullYear(),f=st(),m=be((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,m),g.setUTCHours(0,0,0,0);var b=it(g,t),_=new Date(0);_.setUTCFullYear(h,0,m),_.setUTCHours(0,0,0,0);var w=it(_,t);return c.getTime()>=b.getTime()?h+1:c.getTime()>=w.getTime()?h:h-1}function ai(e,t){var n,r,i,a,o,s,l,u;X(1,arguments);var c=st(),h=be((n=(r=(i=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=$n(e,t),m=new Date(0);m.setUTCFullYear(f,0,h),m.setUTCHours(0,0,0,0);var g=it(m,t);return g}var oi=6048e5;function si(e,t){X(1,arguments);var n=re(e),r=it(n,t).getTime()-ai(n,t).getTime();return Math.round(r/oi)+1}function M(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var fe={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return M(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):M(r+1,2)},d:function(t,n){return M(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return M(t.getUTCHours()%12||12,n.length)},H:function(t,n){return M(t.getUTCHours(),n.length)},m:function(t,n){return M(t.getUTCMinutes(),n.length)},s:function(t,n){return M(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,n.length)}},we={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ui={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return fe.y(t,n)},Y:function(t,n,r,i){var a=$n(t,i),o=a>0?a:1-a;if(n==="YY"){var s=o%100;return M(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):M(o,n.length)},R:function(t,n){var r=Rn(t);return M(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return M(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return fe.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var a=si(t,i);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,n.length)},I:function(t,n,r){var i=ii(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):fe.d(t,n)},D:function(t,n,r){var i=ti(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return M(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var a=t.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return M(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),a=i===0?7:i;switch(n){case"i":return String(a);case"ii":return M(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),a=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),a;switch(i===12?a=we.noon:i===0?a=we.midnight:a=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),a;switch(i>=17?a=we.evening:i>=12?a=we.afternoon:i>=4?a=we.morning:a=we.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return fe.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fe.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fe.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fe.s(t,n)},S:function(t,n){return fe.S(t,n)},X:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Jt(o);case"XXXX":case"XX":return ge(o);case"XXXXX":case"XXX":default:return ge(o,":")}},x:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"x":return Jt(o);case"xxxx":case"xx":return ge(o);case"xxxxx":case"xxx":default:return ge(o,":")}},O:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Zt(o,":");case"OOOO":default:return"GMT"+ge(o,":")}},z:function(t,n,r,i){var a=i._originalDate||t,o=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Zt(o,":");case"zzzz":default:return"GMT"+ge(o,":")}},t:function(t,n,r,i){var a=i._originalDate||t,o=Math.floor(a.getTime()/1e3);return M(o,n.length)},T:function(t,n,r,i){var a=i._originalDate||t,o=a.getTime();return M(o,n.length)}};function Zt(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(a===0)return n+String(i);var o=t;return n+String(i)+o+M(a,2)}function Jt(e,t){if(e%60===0){var n=e>0?"-":"+";return n+M(Math.abs(e)/60,2)}return ge(e,t)}function ge(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),a=M(Math.floor(i/60),2),o=M(i%60,2);return r+a+n+o}var Kt=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Fn=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},li=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return Kt(t,n);var o;switch(i){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",Kt(i,n)).replace("{{time}}",Fn(a,n))},ci={p:Fn,P:li},fi=["D","DD"],hi=["YY","YYYY"];function di(e){return fi.indexOf(e)!==-1}function mi(e){return hi.indexOf(e)!==-1}function en(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var pi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gi=function(t,n,r){var i,a=pi[t];return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function gt(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var bi={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yi={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_i={date:gt({formats:bi,defaultWidth:"full"}),time:gt({formats:vi,defaultWidth:"full"}),dateTime:gt({formats:yi,defaultWidth:"full"})},wi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xi=function(t,n,r,i){return wi[t]};function ke(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Ei={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ti={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Si={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ci={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Pi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Oi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Hi=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Mi={ordinalNumber:Hi,era:ke({values:Ei,defaultWidth:"wide"}),quarter:ke({values:Ti,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ke({values:Si,defaultWidth:"wide"}),day:ke({values:Ci,defaultWidth:"wide"}),dayPeriod:ke({values:Pi,defaultWidth:"wide",formattingValues:Oi,defaultFormattingWidth:"wide"})};function Ue(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Ai(s,function(h){return h.test(o)}):Bi(s,function(h){return h.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Bi(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Ai(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Li(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var Ni=/^(\d+)(th|st|nd|rd)?/i,Ii=/\d+/i,Di={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ki={any:[/^b/i,/^(a|c)/i]},Ui={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ri={any:[/1/i,/2/i,/3/i,/4/i]},$i={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Fi={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ji={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Wi={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Yi={ordinalNumber:Li({matchPattern:Ni,parsePattern:Ii,valueCallback:function(t){return parseInt(t,10)}}),era:Ue({matchPatterns:Di,defaultMatchWidth:"wide",parsePatterns:ki,defaultParseWidth:"any"}),quarter:Ue({matchPatterns:Ui,defaultMatchWidth:"wide",parsePatterns:Ri,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ue({matchPatterns:$i,defaultMatchWidth:"wide",parsePatterns:Fi,defaultParseWidth:"any"}),day:Ue({matchPatterns:Gi,defaultMatchWidth:"wide",parsePatterns:ji,defaultParseWidth:"any"}),dayPeriod:Ue({matchPatterns:Wi,defaultMatchWidth:"any",parsePatterns:zi,defaultParseWidth:"any"})},Vi={code:"en-US",formatDistance:gi,formatLong:_i,formatRelative:xi,localize:Mi,match:Yi,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qi=/^'([^]*?)'?$/,Zi=/''/g,Ji=/[a-zA-Z]/;function Ki(e,t,n){var r,i,a,o,s,l,u,c,h,f,m,g,b,_;X(2,arguments);var w=String(t),E=st(),x=(r=(i=void 0)!==null&&i!==void 0?i:E.locale)!==null&&r!==void 0?r:Vi,A=be((a=(o=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&o!==void 0?o:(u=E.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=be((h=(f=(m=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&f!==void 0?f:(b=E.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var D=re(e);if(!Jr(D))throw new RangeError("Invalid time value");var q=Qr(D),ie=Kr(D,q),R={firstWeekContainsDate:A,weekStartsOn:T,locale:x,_originalDate:D},Q=w.match(qi).map(function(L){var G=L[0];if(G==="p"||G==="P"){var Y=ci[G];return Y(L,x.formatLong)}return L}).join("").match(Xi).map(function(L){if(L==="''")return"'";var G=L[0];if(G==="'")return ea(L);var Y=ui[G];if(Y)return mi(L)&&en(L,t,String(e)),di(L)&&en(L,t,String(e)),Y(ie,L,x.localize,R);if(G.match(Ji))throw new RangeError("Format string contains an unescaped latin alphabet character `"+G+"`");return L}).join("");return Q}function ea(e){var t=e.match(Qi);return t?t[1].replace(Zi,"'"):e}var Ge=(e=>(e.lotteries="lotteries",e.outcome="outcome",e.draw="draw",e))(Ge||{}),Se=(e=>(e.en="en",e.default="*",e))(Se||{});const ta=e=>te(exports,null,function*(){const{path:t,params:n={},options:r={}}=e,i=new URL(t);return Object.keys(n).map(a=>{i.searchParams.append(a,n[a])}),yield na(i,r)}),na=(n,...r)=>te(exports,[n,...r],function*(e,t={}){let i;try{i=yield fetch(e,t),i=yield i.text(),i=JSON.parse(i)}catch(a){throw new Error(a.message)}return i}),tn=(e,t,n)=>te(exports,null,function*(){const{session:r}=n,i={headers:Ve({"Content-Type":"application/json",accept:"text/plain"},r?{"x-SessionId":r}:{})},o={[Ge.lotteries]:()=>({path:"/wof/lotteries",params:{filter:"Types[]=flipCoin"},options:i}),[Ge.outcome]:()=>{const{id:s}=n;return{path:`/wof/outcome/${s}`,params:{filter:"Types[]=flipCoin"},options:i}}}[e]();return o.path=t+"/v1"+o.path,yield ta(o)}),nn={lotteries:(e,t)=>te(exports,null,function*(){const n=yield tn(Ge.lotteries,e,{session:t});return(n==null?void 0:n.items)||[]}),outcome:(e,t,n)=>te(exports,null,function*(){return yield tn(Ge.outcome,e,{session:t,id:n})})},ra=e=>{var t;return((t=e==null?void 0:e.current)==null?void 0:t.remainingTimes)>0&&(e==null?void 0:e.next)},xe=[];function ia(e,t){return{subscribe:ut(e,t).subscribe}}function ut(e,t=K){let n;const r=new Set;function i(s){if(Dn(e,s)&&(e=s,n)){const l=!xe.length;for(const u of r)u[1](),xe.push(u,e);if(l){for(let u=0;u<xe.length;u+=2)xe[u][0](xe[u+1]);xe.length=0}}}function a(s){i(s(e))}function o(s,l=K){const u=[s,l];return r.add(u),r.size===1&&(n=t(i,a)||K),s(e),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Le(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 a=t.length<2;return ia(n,(o,s)=>{let l=!1;const u=[];let c=0,h=K;const f=()=>{if(c)return;h();const g=t(r?u[0]:u,o,s);a?o(g):h=Rt(g)?g:K},m=i.map((g,b)=>kn(g,_=>{u[b]=_,c&=~(1<<b),l&&f()},()=>{c|=1<<b}));return l=!0,f(),function(){Ae(m),h(),l=!1}})}function aa(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oa=function(t){return sa(t)&&!ua(t)};function sa(e){return!!e&&typeof e=="object"}function ua(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||fa(e)}var la=typeof Symbol=="function"&&Symbol.for,ca=la?Symbol.for("react.element"):60103;function fa(e){return e.$$typeof===ca}function ha(e){return Array.isArray(e)?[]:{}}function je(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oe(ha(e),e,t):e}function da(e,t,n){return e.concat(t).map(function(r){return je(r,n)})}function ma(e,t){if(!t.customMerge)return Oe;var n=t.customMerge(e);return typeof n=="function"?n:Oe}function pa(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function rn(e){return Object.keys(e).concat(pa(e))}function Gn(e,t){try{return t in e}catch(n){return!1}}function ga(e,t){return Gn(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ba(e,t,n){var r={};return n.isMergeableObject(e)&&rn(e).forEach(function(i){r[i]=je(e[i],n)}),rn(t).forEach(function(i){ga(e,i)||(Gn(e,i)&&n.isMergeableObject(t[i])?r[i]=ma(i,n)(e[i],t[i],n):r[i]=je(t[i],n))}),r}function Oe(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||da,n.isMergeableObject=n.isMergeableObject||oa,n.cloneUnlessOtherwiseSpecified=je;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):ba(e,t,n):je(t,n)}Oe.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Oe(r,i,n)},{})};var va=Oe,ya=va;const _a=aa(ya);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Ct=function(e,t){return Ct=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])},Ct(e,t)};function le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ct(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var O=function(){return O=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},O.apply(this,arguments)};function wa(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 Pt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ot(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ce(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||t)}function bt(e,t){var n=t&&t.cache?t.cache:Oa,r=t&&t.serializer?t.serializer:Ca,i=t&&t.strategy?t.strategy:Ea;return i(e,{cache:n,serializer:r})}function xa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jn(e,t,n,r){var i=xa(r)?r:n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.call(this,r),t.set(i,a)),a}function Wn(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a=="undefined"&&(a=e.apply(this,r),t.set(i,a)),a}function Gt(e,t,n,r,i){return n.bind(t,e,r,i)}function Ea(e,t){var n=e.length===1?jn:Wn;return Gt(e,this,n,t.cache.create(),t.serializer)}function Ta(e,t){return Gt(e,this,Wn,t.cache.create(),t.serializer)}function Sa(e,t){return Gt(e,this,jn,t.cache.create(),t.serializer)}var Ca=function(){return JSON.stringify(arguments)},Pa=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),Oa={create:function(){return new Pa}},vt={variadic:Ta,monadic:Sa},C;(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"})(C||(C={}));var N;(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"})(N||(N={}));var He;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(He||(He={}));function an(e){return e.type===N.literal}function Ha(e){return e.type===N.argument}function zn(e){return e.type===N.number}function Yn(e){return e.type===N.date}function Vn(e){return e.type===N.time}function Xn(e){return e.type===N.select}function qn(e){return e.type===N.plural}function Ma(e){return e.type===N.pound}function Qn(e){return e.type===N.tag}function Zn(e){return!!(e&&typeof e=="object"&&e.type===He.number)}function Ht(e){return!!(e&&typeof e=="object"&&e.type===He.dateTime)}var Jn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ba=/(?:[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 Aa(e){var t={};return e.replace(Ba,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 La=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Na(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(La).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],l=o.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Ia(e){return e.replace(/^(.*?)-/,"")}var on=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Kn=/^(@+)?(\+|#+)?[rs]?$/g,Da=/(\*)(0+)|(#+)(0+)|(0+)/g,er=/^(0+)$/;function sn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Kn,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 tr(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 ka(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)),!er.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function un(e){var t={},n=tr(e);return n||t}function Ua(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=Ia(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=O(O(O({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return O(O({},l),un(u))},{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return O(O({},l),un(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(Da,function(l,u,c,h,f,m){if(u)t.minimumIntegerDigits=c.length;else{if(h&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(er.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(on.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(on,function(l,u,c,h,f,m){return c==="*"?t.minimumFractionDigits=u.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:f&&m?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+m.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?t=O(O({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=O(O({},t),sn(a)));continue}if(Kn.test(i.stem)){t=O(O({},t),sn(i.stem));continue}var o=tr(i.stem);o&&(t=O(O({},t),o));var s=ka(i.stem);s&&(t=O(O({},t),s))}return t}var qe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ra(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),l="a",u=$a(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=l;for(;o-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function $a(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=qe[r||""]||qe[n||""]||qe["".concat(n,"-001")]||qe["001"];return i[0]}var yt,Fa=new RegExp("^".concat(Jn.source,"*")),Ga=new RegExp("".concat(Jn.source,"*$"));function P(e,t){return{start:e,end:t}}var ja=!!String.prototype.startsWith&&"_a".startsWith("a",1),Wa=!!String.fromCodePoint,za=!!Object.fromEntries,Ya=!!String.prototype.codePointAt,Va=!!String.prototype.trimStart,Xa=!!String.prototype.trimEnd,qa=!!Number.isSafeInteger,Qa=qa?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Mt=!0;try{var Za=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mt=((yt=Za.exec("a"))===null||yt===void 0?void 0:yt[0])==="a"}catch(e){Mt=!1}var ln=ja?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Bt=Wa?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},cn=za?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},nr=Ya?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},Ja=Va?function(t){return t.trimStart()}:function(t){return t.replace(Fa,"")},Ka=Xa?function(t){return t.trimEnd()}:function(t){return t.replace(Ga,"")};function rr(e,t){return new RegExp(e,t)}var At;if(Mt){var fn=rr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");At=function(t,n){var r;fn.lastIndex=n;var i=fn.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else At=function(t,n){for(var r=[];;){var i=nr(t,n);if(i===void 0||ir(i)||ro(i))break;r.push(i),n+=i>=65536?2:1}return Bt.apply(void 0,r)};var eo=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 a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:N.pound,location:P(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(C.UNMATCHED_CLOSING_TAG,P(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Lt(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.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:N.literal,value:"<".concat(i,"/>"),location:P(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Lt(this.char()))return this.error(C.INVALID_TAG,P(s,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(C.UNMATCHED_CLOSING_TAG,P(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:N.tag,value:i,children:o,location:P(r,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,P(s,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,P(r,this.clonePosition()))}else return this.error(C.INVALID_TAG,P(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&no(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=P(r,this.clonePosition());return{val:{type:N.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!to(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 Bt.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(),Bt(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,P(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(C.MALFORMED_ARGUMENT,P(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:N.argument,value:i,location:P(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,P(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(C.MALFORMED_ARGUMENT,P(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=At(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=P(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,P(o,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Ka(h.val);if(f.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,P(this.clonePosition(),this.clonePosition()));var m=P(c,this.clonePosition());u={style:f,styleLocation:m}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=P(i,this.clonePosition());if(u&&ln(u==null?void 0:u.style,"::",0)){var _=Ja(u.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(_,u.styleLocation);return h.err?h:{val:{type:N.number,value:r,location:b,style:h.val},err:null}}else{if(_.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,b);var w=_;this.locale&&(w=Ra(_,this.locale));var f={type:He.dateTime,pattern:w,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Aa(w):{}},E=s==="date"?N.date:N.time;return{val:{type:E,value:r,location:b,style:f},err:null}}}return{val:{type:s==="number"?N.number:s==="date"?N.date:N.time,value:r,location:b,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,P(x,O({},x)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),T=h.val}var D=this.tryParsePluralOrSelectOptions(t,s,n,A);if(D.err)return D;var g=this.tryParseArgumentClose(i);if(g.err)return g;var q=P(i,this.clonePosition());return s==="select"?{val:{type:N.select,value:r,options:cn(D.val),location:q},err:null}:{val:{type:N.plural,value:r,options:cn(D.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:q},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,P(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,P(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(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,P(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=Na(t)}catch(i){return this.error(C.INVALID_NUMBER_SKELETON,n)}return{val:{type:He.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ua(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=P(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(o=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,P(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var b=this.tryParseArgumentClose(m);if(b.err)return b;s.push([u,{value:g.val,location:P(m,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,c=a.location}return s.length===0?this.error(n==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,P(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(C.MISSING_OTHER_CLAUSE,P(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var l=P(i,this.clonePosition());return a?(o*=r,Qa(o)?{val:o,err:null}:this.error(n,l)):this.error(t,l)},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=nr(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(ln(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()&&ir(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 Lt(e){return e>=97&&e<=122||e>=65&&e<=90}function to(e){return Lt(e)||e===47}function no(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 ir(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ro(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 Nt(e){e.forEach(function(t){if(delete t.location,Xn(t)||qn(t))for(var n in t.options)delete t.options[n].location,Nt(t.options[n].value);else zn(t)&&Zn(t.style)||(Yn(t)||Vn(t))&&Ht(t.style)?delete t.style.location:Qn(t)&&Nt(t.children)})}function io(e,t){t===void 0&&(t={}),t=O({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new eo(e,t).parse();if(n.err){var r=SyntaxError(C[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Nt(n.val),n.val}var Me;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Me||(Me={}));var lt=function(e){le(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),hn=function(e){le(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Me.INVALID_VALUE,a)||this}return t}(lt),ao=function(e){le(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Me.INVALID_VALUE,i)||this}return t}(lt),oo=function(e){le(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,'"'),Me.MISSING_VALUE,r)||this}return t}(lt),V;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(V||(V={}));function so(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==V.literal||n.type!==V.literal?t.push(n):r.value+=n.value,t},[])}function uo(e){return typeof e=="function"}function Je(e,t,n,r,i,a,o){if(e.length===1&&an(e[0]))return[{type:V.literal,value:e[0].value}];for(var s=[],l=0,u=e;l<u.length;l++){var c=u[l];if(an(c)){s.push({type:V.literal,value:c.value});continue}if(Ma(c)){typeof a=="number"&&s.push({type:V.literal,value:n.getNumberFormat(t).format(a)});continue}var h=c.value;if(!(i&&h in i))throw new oo(h,o);var f=i[h];if(Ha(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?V.literal:V.object,value:f});continue}if(Yn(c)){var m=typeof c.style=="string"?r.date[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;s.push({type:V.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(Vn(c)){var m=typeof c.style=="string"?r.time[c.style]:Ht(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:V.literal,value:n.getDateTimeFormat(t,m).format(f)});continue}if(zn(c)){var m=typeof c.style=="string"?r.number[c.style]:Zn(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f=f*(m.scale||1)),s.push({type:V.literal,value:n.getNumberFormat(t,m).format(f)});continue}if(Qn(c)){var g=c.children,b=c.value,_=i[b];if(!uo(_))throw new ao(b,"function",o);var w=Je(g,t,n,r,i,a),E=_(w.map(function(T){return T.value}));Array.isArray(E)||(E=[E]),s.push.apply(s,E.map(function(T){return{type:typeof T=="string"?V.literal:V.object,value:T}}))}if(Xn(c)){var x=c.options[f]||c.options.other;if(!x)throw new hn(c.value,f,Object.keys(c.options),o);s.push.apply(s,Je(x.value,t,n,r,i));continue}if(qn(c)){var x=c.options["=".concat(f)];if(!x){if(!Intl.PluralRules)throw new lt(`Intl.PluralRules is not available in this environment.
|
|
15
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
16
|
+
`,Me.MISSING_INTL_API,o);var A=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));x=c.options[A]||c.options.other}if(!x)throw new hn(c.value,f,Object.keys(c.options),o);s.push.apply(s,Je(x.value,t,n,r,i,f-(c.offset||0)));continue}}return so(s)}function lo(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=O(O({},e[r]),t[r]||{}),n},{})):e}function co(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=lo(e[r],t[r]),n},O({},e)):e}function _t(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function fo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Ce([void 0],n,!1)))},{cache:_t(e.number),strategy:vt.variadic}),getDateTimeFormat:bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Ce([void 0],n,!1)))},{cache:_t(e.dateTime),strategy:vt.variadic}),getPluralRules:bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Ce([void 0],n,!1)))},{cache:_t(e.pluralRules),strategy:vt.variadic})}}var ho=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=a.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,f){return!h.length||f.type!==V.literal||typeof h[h.length-1]!="string"?h.push(f.value):h[h.length-1]+=f.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Je(a.ast,a.locales,a.formatters,a.formats,l,void 0,a.message)},this.resolvedOptions=function(){var l;return{locale:((l=a.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.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 o=i||{};o.formatters;var s=wa(o,["formatters"]);this.ast=e.__parse(t,O(O({},s),{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=co(e.formats,r),this.formatters=i&&i.formatters||fo(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=io,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 mo(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 a=n.slice(i,n.length).join(".");if(a in r){r=r[a];break}}r=r[n[i]]}else r=void 0;return r}const he={},po=(e,t,n)=>n&&(t in he||(he[t]={}),e in he[t]||(he[t][e]=n),n),ar=(e,t)=>{if(t==null)return;if(t in he&&e in he[t])return he[t][e];const n=ct(t);for(let r=0;r<n.length;r++){const i=n[r],a=bo(i,e);if(a)return po(e,t,a)}};let jt;const ze=ut({});function go(e){return jt[e]||null}function or(e){return e in jt}function bo(e,t){if(!or(e))return null;const n=go(e);return mo(n,t)}function vo(e){if(e==null)return;const t=ct(e);for(let n=0;n<t.length;n++){const r=t[n];if(or(r))return r}}function sr(e,...t){delete he[e],ze.update(n=>(n[e]=_a.all([n[e]||{},...t]),n))}Le([ze],([e])=>Object.keys(e));ze.subscribe(e=>jt=e);const Ke={};function yo(e,t){Ke[e].delete(t),Ke[e].size===0&&delete Ke[e]}function ur(e){return Ke[e]}function _o(e){return ct(e).map(t=>{const n=ur(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function It(e){return e==null?!1:ct(e).some(t=>{var n;return(n=ur(t))==null?void 0:n.size})}function wo(e,t){return Promise.all(t.map(r=>(yo(e,r),r().then(i=>i.default||i)))).then(r=>sr(e,...r))}const Re={};function lr(e){if(!It(e))return e in Re?Re[e]:Promise.resolve();const t=_o(e);return Re[e]=Promise.all(t.map(([n,r])=>wo(n,r))).then(()=>{if(It(e))return lr(e);delete Re[e]}),Re[e]}const xo={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"}}},Eo={fallbackLocale:null,loadingDelay:200,formats:xo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},To=Eo;function Be(){return To}const wt=ut(!1);var So=Object.defineProperty,Co=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,mn=(e,t,n)=>t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mo=(e,t)=>{for(var n in t)Oo.call(t,n)&&mn(e,n,t[n]);if(dn)for(var n of dn(t))Ho.call(t,n)&&mn(e,n,t[n]);return e},Bo=(e,t)=>Co(e,Po(t));let Dt;const at=ut(null);function pn(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function ct(e,t=Be().fallbackLocale){const n=pn(e);return t?[...new Set([...n,...pn(t)])]:n}function ve(){return Dt!=null?Dt:void 0}at.subscribe(e=>{Dt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ao=e=>{if(e&&vo(e)&&It(e)){const{loadingDelay:t}=Be();let n;return typeof window!="undefined"&&ve()!=null&&t?n=window.setTimeout(()=>wt.set(!0),t):wt.set(!0),lr(e).then(()=>{at.set(e)}).finally(()=>{clearTimeout(n),wt.set(!1)})}return at.set(e)},Ne=Bo(Mo({},at),{set:Ao}),ft=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var Lo=Object.defineProperty,ot=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,gn=(e,t,n)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t)=>{for(var n in t||(t={}))cr.call(t,n)&&gn(e,n,t[n]);if(ot)for(var n of ot(t))fr.call(t,n)&&gn(e,n,t[n]);return e},Ie=(e,t)=>{var n={};for(var r in e)cr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ot)for(var r of ot(e))t.indexOf(r)<0&&fr.call(e,r)&&(n[r]=e[r]);return n};const We=(e,t)=>{const{formats:n}=Be();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},No=ft(e=>{var t=e,{locale:n,format:r}=t,i=Ie(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=We("number",r)),new Intl.NumberFormat(n,i)}),Io=ft(e=>{var t=e,{locale:n,format:r}=t,i=Ie(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=We("date",r):Object.keys(i).length===0&&(i=We("date","short")),new Intl.DateTimeFormat(n,i)}),Do=ft(e=>{var t=e,{locale:n,format:r}=t,i=Ie(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=We("time",r):Object.keys(i).length===0&&(i=We("time","short")),new Intl.DateTimeFormat(n,i)}),ko=(e={})=>{var t=e,{locale:n=ve()}=t,r=Ie(t,["locale"]);return No(Wt({locale:n},r))},Uo=(e={})=>{var t=e,{locale:n=ve()}=t,r=Ie(t,["locale"]);return Io(Wt({locale:n},r))},Ro=(e={})=>{var t=e,{locale:n=ve()}=t,r=Ie(t,["locale"]);return Do(Wt({locale:n},r))},$o=ft((e,t=ve())=>new ho(e,t,Be().formats,{ignoreTag:Be().ignoreTag})),Fo=(e,t={})=>{var n,r,i,a;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:s,locale:l=ve(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ar(e,l);if(!c)c=(a=(i=(r=(n=Be()).handleMissingMessage)==null?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?a: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(!s)return c;let h=c;try{h=$o(c,l).format(s)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return h},Go=(e,t)=>Ro(t).format(e),jo=(e,t)=>Uo(t).format(e),Wo=(e,t)=>ko(t).format(e),zo=(e,t=ve())=>ar(e,t),Yo=Le([Ne,ze],()=>Fo);Le([Ne],()=>Go);Le([Ne],()=>jo);Le([Ne],()=>Wo);Le([Ne,ze],()=>zo);function bn(e,t){sr(e,t)}function Vo(e){Ne.set(e)}const vn={en:{headerTitle:"Coin Royales",infoTooltip:"Flip a virtual coin and take a chance to win!",play:"Play",history:"History",rules:"Rules",noCoinYet:"There are no available Coin Royale",noHistoryYet:"There is no history yet",more:"More",rulesDescription:"Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",terms:"Terms&Conditions link",prizeAgenda:"Prize agenda",tournamentTicket:"Tournament ticket",freeSpins:"Free spins",bonusMoney:"Bonus Money",loyaltyPoints:"Loyalty Points&Coins",luckyWheel:"LuckyWheel",mysteryChest:"Mystery Chest",coinRoyale:"Coin Royale",customRewards:"Custom Rewards"}};function ue(e){return typeof e=="function"}function hr(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var xt=hr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
17
|
+
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function kt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ht=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Pt(o),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ue(c))try{c()}catch(b){a=b instanceof xt?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=Pt(h),m=f.next();!m.done;m=f.next()){var g=m.value;try{yn(g)}catch(b){a=a!=null?a:[],b instanceof xt?a=Ce(Ce([],Ot(a)),Ot(b.errors)):a.push(b)}}}catch(b){r={error:b}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(a)throw new xt(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)yn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&kt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&kt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),dr=ht.EMPTY;function mr(e){return e instanceof ht||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function yn(e){ue(e)?e():e.unsubscribe()}var Xo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qo={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Ce([e,t],Ot(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Qo(e){qo.setTimeout(function(){throw e})}function _n(){}function et(e){e()}var pr=function(e){le(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,mr(n)&&n.add(r)):r.destination=Ko,r}return t.create=function(n,r,i){return new Ut(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ht),Zo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Qe(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Qe(r)}else Qe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Qe(n)}},e}(),Ut=function(e){le(t,e);function t(n,r,i){var a=e.call(this)||this,o;return ue(n)||!n?o={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0}:o=n,a.destination=new Zo(o),a}return t}(pr);function Qe(e){Qo(e)}function Jo(e){throw e}var Ko={closed:!0,next:_n,error:Jo,complete:_n},es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ts(e){return e}function ns(e){return e.length===0?ts:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var wn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,a=is(t)?t:new Ut(t,n,r);return et(function(){var o=i,s=o.operator,l=o.source;a.add(s?s.call(a,l):l?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=xn(n),new n(function(i,a){var o=new Ut({next:function(s){try{t(s)}catch(l){a(l),o.unsubscribe()}},error:a,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[es]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ns(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=xn(t),new t(function(r,i){var a;n.subscribe(function(o){return a=o},function(o){return i(o)},function(){return r(a)})})},e.create=function(t){return new e(t)},e}();function xn(e){var t;return(t=e!=null?e:Xo.Promise)!==null&&t!==void 0?t:Promise}function rs(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}function is(e){return e&&e instanceof pr||rs(e)&&mr(e)}var as=hr(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),gr=function(e){le(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new En(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new as},t.prototype.next=function(n){var r=this;et(function(){var i,a;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Pt(r.currentObservers),s=o.next();!s.done;s=o.next()){var l=s.value;l.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;et(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;et(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?dr:(this.currentObservers=null,s.push(n),new ht(function(){r.currentObservers=null,kt(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},t.prototype.asObservable=function(){var n=new wn;return n.source=this,n},t.create=function(n,r){return new En(n,r)},t}(wn),En=function(e){le(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:dr},t}(gr),br={now:function(){return(br.delegate||Date).now()},delegate:void 0},os=function(e){le(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=br);var a=e.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return t.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;i||(a.push(n),!o&&a.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,s=o.slice(),l=0;l<s.length&&!n.closed;l+=a?1:2)n.next(s[l]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,a=n._buffer,o=n._infiniteTimeWindow,s=(o?1:2)*r;if(r<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var l=i.now(),u=0,c=1;c<a.length&&a[c]<=l;c+=2)u=c;u&&a.splice(0,u+1)}},t}(gr);const Tn=[],Sn={},ss=(e,t=0)=>{if(Tn.indexOf(e)==-1){const n=new os(t);Sn[e]=n,Tn.push(e)}return Sn[e]};window.emWidgets={topic:ss};const us=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function ls(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function cs(e,t){const n=new URL(t);fetch(n.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,e&&e.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function fs(e,t,n){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(t,i=>{r.innerHTML=i,e&&e.appendChild(r)})}}function hs(e){Cr(e,"svelte-rd1kop",`.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 16px);overflow:hidden}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}`)}function Cn(e,t,n){const r=e.slice();return r[36]=t[n],r}function Pn(e,t,n){const r=e.slice();return r[39]=t[n],r[41]=n,r}function On(e,t,n){const r=e.slice();return r[33]=t[n],r[35]=n,r}function Hn(e){let t,n,r,i,a,o=e[10]("infoTooltip")+"",s,l,u;return{c(){t=y("div"),n=y("div"),r=y("button"),i=H(),a=y("span"),s=B(o),v(r,"class","icon-button close"),v(n,"class","tooltip"),v(t,"class","tooltip-backdrop")},m(c,h){z(c,t,h),d(t,n),d(n,r),d(n,i),d(n,a),d(a,s),l||(u=se(r,"click",e[13]),l=!0)},p(c,h){h[0]&1024&&o!==(o=c[10]("infoTooltip")+"")&&I(s,o)},d(c){c&&F(t),l=!1,u()}}}function ds(e){let t,n,r=e[10]("rulesDescription")+"",i,a,o,s,l,u=e[10]("prizeAgenda")+"",c,h,f,m,g=e[10]("tournamentTicket")+"",b,_,w,E=e[10]("freeSpins")+"",x,A,T,D=e[10]("bonusMoney")+"",q,ie,R,Q=e[10]("loyaltyPoints")+"",L,G,Y,ae=e[10]("luckyWheel")+"",k,de,ee,$=e[10]("mysteryChest")+"",p,S,j,oe=e[10]("coinRoyale")+"",Ye,me,ce,pe=e[10]("customRewards")+"",De,W=e[8]&&Mn(e);return{c(){t=y("div"),n=y("span"),i=B(r),a=H(),W&&W.c(),o=H(),s=y("section"),l=y("span"),c=B(u),h=H(),f=y("ul"),m=y("li"),b=B(g),_=H(),w=y("li"),x=B(E),A=H(),T=y("li"),q=B(D),ie=H(),R=y("li"),L=B(Q),G=H(),Y=y("li"),k=B(ae),de=H(),ee=y("li"),p=B($),S=H(),j=y("li"),Ye=B(oe),me=H(),ce=y("li"),De=B(pe),v(n,"class","coins-rules__description"),v(l,"class","coins-rules__prize-title"),v(m,"class","coins-rules__list__item"),v(w,"class","coins-rules__list__item"),v(T,"class","coins-rules__list__item"),v(R,"class","coins-rules__list__item"),v(Y,"class","coins-rules__list__item"),v(ee,"class","coins-rules__list__item"),v(j,"class","coins-rules__list__item"),v(ce,"class","coins-rules__list__item"),v(f,"class","coins-rules__list"),v(t,"class","coins-rules")},m(U,Z){z(U,t,Z),d(t,n),d(n,i),d(t,a),W&&W.m(t,null),d(t,o),d(t,s),d(s,l),d(l,c),d(s,h),d(s,f),d(f,m),d(m,b),d(f,_),d(f,w),d(w,x),d(f,A),d(f,T),d(T,q),d(f,ie),d(f,R),d(R,L),d(f,G),d(f,Y),d(Y,k),d(f,de),d(f,ee),d(ee,p),d(f,S),d(f,j),d(j,Ye),d(f,me),d(f,ce),d(ce,De)},p(U,Z){Z[0]&1024&&r!==(r=U[10]("rulesDescription")+"")&&I(i,r),U[8]?W?W.p(U,Z):(W=Mn(U),W.c(),W.m(t,o)):W&&(W.d(1),W=null),Z[0]&1024&&u!==(u=U[10]("prizeAgenda")+"")&&I(c,u),Z[0]&1024&&g!==(g=U[10]("tournamentTicket")+"")&&I(b,g),Z[0]&1024&&E!==(E=U[10]("freeSpins")+"")&&I(x,E),Z[0]&1024&&D!==(D=U[10]("bonusMoney")+"")&&I(q,D),Z[0]&1024&&Q!==(Q=U[10]("loyaltyPoints")+"")&&I(L,Q),Z[0]&1024&&ae!==(ae=U[10]("luckyWheel")+"")&&I(k,ae),Z[0]&1024&&$!==($=U[10]("mysteryChest")+"")&&I(p,$),Z[0]&1024&&oe!==(oe=U[10]("coinRoyale")+"")&&I(Ye,oe),Z[0]&1024&&pe!==(pe=U[10]("customRewards")+"")&&I(De,pe)},d(U){U&&F(t),W&&W.d()}}}function ms(e){let t;function n(a,o){return a[9].length>0?vs:bs}let r=n(e),i=r(e);return{c(){i.c(),t=Ft()},m(a,o){i.m(a,o),z(a,t,o)},p(a,o){r===(r=n(a))&&i?i.p(a,o):(i.d(1),i=r(a),i&&(i.c(),i.m(t.parentNode,t)))},d(a){a&&F(t),i.d(a)}}}function ps(e){let t;function n(a,o){return a[6].length>0?_s:ys}let r=n(e),i=r(e);return{c(){i.c(),t=Ft()},m(a,o){i.m(a,o),z(a,t,o)},p(a,o){r===(r=n(a))&&i?i.p(a,o):(i.d(1),i=r(a),i&&(i.c(),i.m(t.parentNode,t)))},d(a){a&&F(t),i.d(a)}}}function gs(e){let t;return{c(){t=y("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>',v(t,"class","coins-loader")},m(n,r){z(n,t,r)},p:K,d(n){n&&F(t)}}}function Mn(e){let t,n,r=e[10]("terms")+"",i,a,o;return{c(){t=y("a"),n=y("span"),i=B(r),a=H(),o=y("span"),v(o,"class","arrow-icon"),v(t,"class","coins-rules__terms"),v(t,"href",e[0]),v(t,"target","_blank")},m(s,l){z(s,t,l),d(t,n),d(n,i),d(t,a),d(t,o)},p(s,l){l[0]&1024&&r!==(r=s[10]("terms")+"")&&I(i,r),l[0]&1&&v(t,"href",s[0])},d(s){s&&F(t)}}}function bs(e){let t,n=e[10]("noHistoryYet")+"",r;return{c(){t=y("div"),r=B(n),v(t,"class","coins-empty")},m(i,a){z(i,t,a),d(t,r)},p(i,a){a[0]&1024&&n!==(n=i[10]("noHistoryYet")+"")&&I(r,n)},d(i){i&&F(t)}}}function vs(e){let t,n=Pe(e[9]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Ln(Cn(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=Ft()},m(i,a){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(i,a);z(i,t,a)},p(i,a){if(a[0]&17920){n=Pe(i[9]);let o;for(o=0;o<n.length;o+=1){const s=Cn(i,n,o);r[o]?r[o].p(s,a):(r[o]=Ln(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(i){i&&F(t),$t(r,i)}}}function Bn(e){var g,b;let t,n,r,i,a=((g=e[39])==null?void 0:g.name)+"",o,s,l,u,c,h,f=((b=e[39])==null?void 0:b.date)+"",m;return{c(){var _;t=y("div"),n=y("span"),n.textContent=`${e[41]+1}`,r=H(),i=y("p"),o=B(a),s=H(),l=y("img"),c=H(),h=y("span"),m=B(f),v(n,"class","index"),tt(l.src,u=(_=e[39])!=null&&_.state?Qt:qt)||v(l,"src",u),v(l,"alt",""),v(i,"class","name"),v(h,"class","time"),v(t,"class","coins-history__list__item")},m(_,w){z(_,t,w),d(t,n),d(t,r),d(t,i),d(i,o),d(i,s),d(i,l),d(t,c),d(t,h),d(h,m)},p(_,w){var E,x,A;w[0]&512&&a!==(a=((E=_[39])==null?void 0:E.name)+"")&&I(o,a),w[0]&512&&!tt(l.src,u=(x=_[39])!=null&&x.state?Qt:qt)&&v(l,"src",u),w[0]&512&&f!==(f=((A=_[39])==null?void 0:A.date)+"")&&I(m,f)},d(_){_&&F(t)}}}function An(e){let t,n=e[10]("more")+"",r,i,a,o,s,l;function u(){return e[24](e[36])}return{c(){t=y("button"),r=B(n),i=H(),a=y("img"),tt(a.src,o=Vr)||v(a,"src",o),v(a,"alt","More"),v(t,"class","coins-history__more")},m(c,h){z(c,t,h),d(t,r),d(t,i),d(t,a),s||(l=se(t,"click",u),s=!0)},p(c,h){e=c,h[0]&1024&&n!==(n=e[10]("more")+"")&&I(r,n)},d(c){c&&F(t),s=!1,l()}}}function Ln(e){var h;let t,n,r=e[36].name+"",i,a,o,s,l=Pe(e[36].outcomes.slice(0,e[36].endPos)),u=[];for(let f=0;f<l.length;f+=1)u[f]=Bn(Pn(e,l,f));let c=((h=e[36].outcomes)==null?void 0:h.length)>3&&e[36].endPos===3&&An(e);return{c(){t=y("div"),n=y("div"),i=B(r),a=H();for(let f=0;f<u.length;f+=1)u[f].c();o=H(),c&&c.c(),s=H(),v(n,"class","coins-history__title"),v(t,"class","coins-history__list")},m(f,m){z(f,t,m),d(t,n),d(n,i),d(t,a);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(t,null);d(t,o),c&&c.m(t,null),d(t,s)},p(f,m){var g;if(m[0]&512&&r!==(r=f[36].name+"")&&I(i,r),m[0]&512){l=Pe(f[36].outcomes.slice(0,f[36].endPos));let b;for(b=0;b<l.length;b+=1){const _=Pn(f,l,b);u[b]?u[b].p(_,m):(u[b]=Bn(_),u[b].c(),u[b].m(t,o))}for(;b<u.length;b+=1)u[b].d(1);u.length=l.length}((g=f[36].outcomes)==null?void 0:g.length)>3&&f[36].endPos===3?c?c.p(f,m):(c=An(f),c.c(),c.m(t,s)):c&&(c.d(1),c=null)},d(f){f&&F(t),$t(u,f),c&&c.d()}}}function ys(e){let t,n=e[10]("noCoinYet")+"",r;return{c(){t=y("div"),r=B(n),v(t,"class","coins-empty")},m(i,a){z(i,t,a),d(t,r)},p(i,a){a[0]&1024&&n!==(n=i[10]("noCoinYet")+"")&&I(r,n)},d(i){i&&F(t)}}}function _s(e){let t,n=Pe(e[6]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Nn(On(e,n,i));return{c(){t=y("div");for(let i=0;i<r.length;i+=1)r[i].c();v(t,"class","coins-list")},m(i,a){z(i,t,a);for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(t,null)},p(i,a){if(a[0]&65602){n=Pe(i[6]);let o;for(o=0;o<n.length;o+=1){const s=On(i,n,o);r[o]?r[o].p(s,a):(r[o]=Nn(s),r[o].c(),r[o].m(t,null))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(i){i&&F(t),$t(r,i)}}}function Nn(e){var _,w;let t,n=(e[33].program.name[e[1]]||e[33].program.name[Se.default])+"",r,i,a,o,s,l,u,c=((w=(_=e[33])==null?void 0:_.current)==null?void 0:w.remainingTimes)+"",h,f,m,g;function b(){return e[23](e[33])}return{c(){t=y("button"),r=B(n),i=H(),a=y("div"),o=y("img"),l=H(),u=y("span"),h=B(c),f=H(),tt(o.src,s=Yr)||v(o,"src",s),v(o,"alt","Key"),v(a,"class","coins-list__item__keys"),v(t,"class","coins-list__item")},m(E,x){z(E,t,x),d(t,r),d(t,i),d(t,a),d(a,o),d(a,l),d(a,u),d(u,h),d(t,f),m||(g=se(t,"click",b),m=!0)},p(E,x){var A,T;e=E,x[0]&66&&n!==(n=(e[33].program.name[e[1]]||e[33].program.name[Se.default])+"")&&I(r,n),x[0]&64&&c!==(c=((T=(A=e[33])==null?void 0:A.current)==null?void 0:T.remainingTimes)+"")&&I(h,c)},d(E){E&&F(t),m=!1,g()}}}function ws(e){let t,n,r,i,a,o,s,l,u,c=e[10]("headerTitle")+"",h,f,m,g,b,_,w,E=e[10]("play")+"",x,A,T,D=e[10]("history")+"",q,ie,R,Q=e[10]("rules")+"",L,G,Y,ae,k=e[7]&&Hn(e);function de(p,S){return p[5]||p[4]?gs:p[3]===1?ps:p[3]===2?ms:ds}let ee=de(e),$=ee(e);return{c(){t=y("div"),n=y("button"),r=H(),i=y("div"),k&&k.c(),a=H(),o=y("div"),s=y("button"),l=H(),u=y("div"),h=B(c),f=H(),m=y("button"),g=H(),b=y("div"),_=y("div"),w=y("button"),x=B(E),A=H(),T=y("button"),q=B(D),ie=H(),R=y("button"),L=B(Q),G=H(),$.c(),v(n,"class","overlay"),v(s,"class","icon-button help"),v(u,"class","coins-header__title"),v(m,"class","icon-button close"),v(o,"class","coins-header"),v(w,"data-index","1"),v(w,"class","coins-tabs__tab"),ye(w,"active",e[3]===1),v(T,"data-index","2"),v(T,"class","coins-tabs__tab"),ye(T,"active",e[3]===2),v(R,"data-index","3"),v(R,"class","coins-tabs__tab"),ye(R,"active",e[3]===3),v(_,"class","coins-tabs__container"),v(b,"class","coins-tabs"),v(i,"class","drawer "+(e[11]?"mobile":"")),v(t,"part","CustomStylingContainer")},m(p,S){z(p,t,S),d(t,n),d(t,r),d(t,i),k&&k.m(i,null),d(i,a),d(i,o),d(o,s),d(o,l),d(o,u),d(u,h),d(o,f),d(o,m),d(i,g),d(i,b),d(b,_),d(_,w),d(w,x),d(_,A),d(_,T),d(T,q),d(_,ie),d(_,R),d(R,L),d(i,G),$.m(i,null),e[25](t),Y||(ae=[se(n,"click",e[12]),se(s,"click",e[13]),se(m,"click",e[12]),se(w,"click",e[15]),se(T,"click",e[15]),se(R,"click",e[15])],Y=!0)},p(p,S){p[7]?k?k.p(p,S):(k=Hn(p),k.c(),k.m(i,a)):k&&(k.d(1),k=null),S[0]&1024&&c!==(c=p[10]("headerTitle")+"")&&I(h,c),S[0]&1024&&E!==(E=p[10]("play")+"")&&I(x,E),S[0]&8&&ye(w,"active",p[3]===1),S[0]&1024&&D!==(D=p[10]("history")+"")&&I(q,D),S[0]&8&&ye(T,"active",p[3]===2),S[0]&1024&&Q!==(Q=p[10]("rules")+"")&&I(L,Q),S[0]&8&&ye(R,"active",p[3]===3),ee===(ee=de(p))&&$?$.p(p,S):($.d(1),$=ee(p),$&&($.c(),$.m(i,null)))},i:K,o:K,d(p){p&&F(t),k&&k.d(),$.d(),e[25](null),Y=!1,Ae(ae)}}}function xs(e,t,n){let r;Sr(e,Yo,p=>n(10,r=p));let{terms:i=""}=t,{lang:a=Se.en}=t,{endpoint:o=""}=t,{session:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{mbsource:h}=t,f=window.navigator.userAgent,m=us(f),g,b=1,_=!1,w=!1,E=[],x=!1,A=!1,T;const D=p=>/(https?:\/\/[^\s]+)/g.test(p),q=()=>{Xt({type:"CloseCoinRoyaleDrawer"})},ie=()=>{n(7,x=!x)},R=()=>te(this,null,function*(){n(4,_=!0);let p=E.map(S=>({id:S.program.id,name:S.program.name[a]||S.program.name[Se.default],partitions:S.program.wheelOfFortune.partitions,endPos:0,outcomes:[]}));if(p.length>0){const S=p.map((j,oe)=>te(this,null,function*(){const me=(yield nn.outcome(o,s,j==null?void 0:j.id)).items||[];if(me.length===0){p[oe]=null;return}p[oe]=mt(Ve({},j),{endPos:me.length>3?3:me.length,outcomes:me.map(ce=>{var U;const pe=((U=j.partitions[ce.draw.result.wheelOfFortunePartitionIndex])==null?void 0:U.name)||{},De=ce.draw.state==="fulfilled",W=Ki(new Date(ce.draw.time),"LLL d, yyyy HH:mm:ss");return{name:pe[a]||pe[Se.default],state:De,date:W}})})}));yield Promise.all(S)}n(9,T=p.filter(S=>!!S)),n(4,_=!1)}),Q=()=>te(this,null,function*(){n(5,w=!0);const p=yield nn.lotteries(o,s);n(6,E=p.filter(S=>ra(S))),n(5,w=!1)}),L=p=>{var j;const S=T.findIndex(oe=>oe.id===p);n(9,T[S].endPos=(j=T[S].outcomes)==null?void 0:j.length,T)},G=p=>te(this,null,function*(){n(3,b=+p.target.getAttribute("data-index")),b===2&&(yield R())}),Y=()=>{fetch(c).then(S=>S.json()).then(S=>{Object.keys(S).forEach(j=>{bn(j,S[j])})})};Object.keys(vn).forEach(p=>{bn(p,vn[p])});const ae=()=>{Vo(a)},k=p=>{Xt({type:"OpenCoinRoyaleDetails",data:p})};Ar(()=>{n(8,A=D(i)),Q()});const de=p=>{k(p)},ee=p=>L(p.id);function $(p){Et[p?"unshift":"push"](()=>{g=p,n(2,g)})}return e.$$set=p=>{"terms"in p&&n(0,i=p.terms),"lang"in p&&n(1,a=p.lang),"endpoint"in p&&n(17,o=p.endpoint),"session"in p&&n(18,s=p.session),"clientstyling"in p&&n(19,l=p.clientstyling),"clientstylingurl"in p&&n(20,u=p.clientstylingurl),"translationurl"in p&&n(21,c=p.translationurl),"mbsource"in p&&n(22,h=p.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&2&&a&&ae(),e.$$.dirty[0]&524292&&l&&g&&ls(g,l),e.$$.dirty[0]&1048580&&u&&g&&cs(g,u),e.$$.dirty[0]&2097152&&c&&Y(),e.$$.dirty[0]&4194308&&h&&g&&fs(g,`${h}.Style`)},[i,a,g,b,_,w,E,x,A,T,r,m,q,ie,L,G,k,o,s,l,u,c,h,de,ee,$]}class vr extends Wr{constructor(t){super(),Gr(this,t,xs,ws,Dn,{terms:0,lang:1,endpoint:17,session:18,clientstyling:19,clientstylingurl:20,translationurl:21,mbsource:22},hs,[-1,-1])}get terms(){return this.$$.ctx[0]}set terms(t){this.$$set({terms:t}),ne()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),ne()}get endpoint(){return this.$$.ctx[17]}set endpoint(t){this.$$set({endpoint:t}),ne()}get session(){return this.$$.ctx[18]}set session(t){this.$$set({session:t}),ne()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),ne()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),ne()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),ne()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),ne()}}jr(vr,{terms:{},lang:{},endpoint:{},session:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=vr;
|