@everymatrix/tournament-details-page 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ "use strict";var yu=Object.defineProperty,bu=Object.defineProperties;var _u=Object.getOwnPropertyDescriptors;var gs=Object.getOwnPropertySymbols;var xu=Object.prototype.hasOwnProperty,wu=Object.prototype.propertyIsEnumerable;var ys=e=>{throw TypeError(e)};var ri=(e,t,r)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,on=(e,t)=>{for(var r in t||(t={}))xu.call(t,r)&&ri(e,r,t[r]);if(gs)for(var r of gs(t))wu.call(t,r)&&ri(e,r,t[r]);return e},an=(e,t)=>bu(e,_u(t));var ce=(e,t,r)=>ri(e,typeof t!="symbol"?t+"":t,r),ni=(e,t,r)=>t.has(e)||ys("Cannot "+r);var p=(e,t,r)=>(ni(e,t,"read from private field"),r?r.call(e):t.get(e)),k=(e,t,r)=>t.has(e)?ys("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),R=(e,t,r,n)=>(ni(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ge=(e,t,r)=>(ni(e,t,"access private method"),r);var ii=(e,t,r)=>new Promise((n,i)=>{var s=a=>{try{u(r.next(a))}catch(l){i(l)}},o=a=>{try{u(r.throw(a))}catch(l){i(l)}},u=a=>a.done?n(a.value):Promise.resolve(a.value).then(s,o);u((r=r.apply(e,t)).next())});const Eu="5";var Qs,Ks,eo;typeof window!="undefined"&&((eo=(Ks=(Qs=window.__svelte)!=null?Qs:window.__svelte={}).v)!=null?eo:Ks.v=new Set).add(Eu);const Su=1,Cu=2,to=4,Tu=8,Mu=16,Ou=1,Au=2,ro="[",Hn="[!",Gi="]",or={},_e=Symbol(),Hu="http://www.w3.org/1999/xhtml",di=!1;var no=Array.isArray,Bu=Array.prototype.indexOf,Bn=Array.from,yn=Object.keys,Zr=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,$u=Object.getOwnPropertyDescriptors,Pu=Object.prototype,Ru=Array.prototype,io=Object.getPrototypeOf,bs=Object.isExtensible;const Gt=()=>{};function so(e){for(var t=0;t<e.length;t++)e[t]()}function oo(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const we=2,bn=4,tn=8,ao=1<<24,Rt=16,Lt=32,zt=64,ji=128,qe=512,Te=1024,Be=2048,It=4096,Fe=8192,Ht=16384,$n=32768,Er=65536,_s=1<<17,uo=1<<18,lr=1<<19,lo=1<<20,Ot=1<<25,ar=32768,pi=1<<21,Vi=1<<22,jt=1<<23,si=Symbol("$state"),Lu=Symbol("legacy props"),Iu=Symbol(""),vr=new class extends Error{constructor(){super(...arguments);ce(this,"name","StaleReactionError");ce(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Pn=3,fr=8;function fo(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nu(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Du(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ku(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Uu(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gu(){throw new Error("https://svelte.dev/e/hydration_failed")}function ju(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yu(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let U=!1;function it(e){U=e}let N;function Me(e){if(e===null)throw rn(),or;return N=e}function Sr(){return Me(at(N))}function X(e){if(U){if(at(N)!==null)throw rn(),or;N=e}}function ho(e=1){if(U){for(var t=e,r=N;t--;)r=at(r);N=r}}function _n(e=!0){for(var t=0,r=N;;){if(r.nodeType===fr){var n=r.data;if(n===Gi){if(t===0)return r;t-=1}else(n===ro||n===Hn)&&(t+=1)}var i=at(r);e&&r.remove(),r=i}}function co(e){if(!e||e.nodeType!==fr)throw rn(),or;return e.data}function po(e){return e===this.v}function vo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function mo(e){return!vo(e,this.v)}let Xu=!1,Ie=null;function Cr(e){Ie=e}function Yi(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,l:null}}function zi(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)Fo(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e!=null?e:{}}function go(){return!0}let Wt=[];function yo(){var e=Wt;Wt=[],so(e)}function Rn(e){if(Wt.length===0&&!Yr){var t=Wt;queueMicrotask(()=>{t===Wt&&yo()})}Wt.push(e)}function Wu(){for(;Wt.length>0;)yo()}function bo(e){var t=Y;if(t===null)return L.f|=jt,e;if(t.f&$n)Tr(e,t);else{if(!(t.f&ji))throw e;t.b.error(e)}}function Tr(e,t){for(;t!==null;){if(t.f&ji)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const qu=-7169;function be(e,t){e.f=e.f&qu|t}function Zi(e){e.f&qe||e.deps===null?be(e,Te):be(e,It)}function _o(e){if(e!==null)for(const t of e)!(t.f&we)||!(t.f&ar)||(t.f^=ar,_o(t.deps))}function xo(e,t,r){e.f&Be?t.add(e):e.f&It&&r.add(e),_o(e.deps),be(e,Te)}const un=new Set;let ee=null,xe=null,Xe=[],Ln=null,vi=!1,Yr=!1;var gr,yr,Jt,Qt,Jr,br,_r,Qe,mi,gi,wo,Eo;const Mn=class Mn{constructor(){k(this,Qe);ce(this,"committed",!1);ce(this,"current",new Map);ce(this,"previous",new Map);k(this,gr,new Set);k(this,yr,new Set);k(this,Jt,0);k(this,Qt,0);k(this,Jr,null);k(this,br,new Set);k(this,_r,new Set);ce(this,"skipped_effects",new Set);ce(this,"is_fork",!1)}is_deferred(){return this.is_fork||p(this,Qt)>0}process(t){var i;Xe=[],this.apply();var r=[],n=[];for(const s of t)ge(this,Qe,mi).call(this,s,r,n);this.is_fork||ge(this,Qe,wo).call(this),this.is_deferred()?(ge(this,Qe,gi).call(this,n),ge(this,Qe,gi).call(this,r)):(ee=null,xs(n),xs(r),(i=p(this,Jr))==null||i.resolve()),xe=null}capture(t,r){r!==_e&&!this.previous.has(t)&&this.previous.set(t,r),t.f&jt||(this.current.set(t,t.v),xe==null||xe.set(t,t.v))}activate(){ee=this,this.apply()}deactivate(){ee===this&&(ee=null,xe=null)}flush(){if(this.activate(),Xe.length>0){if(So(),ee!==null&&ee!==this)return}else p(this,Jt)===0&&this.process([]);this.deactivate()}discard(){for(const t of p(this,yr))t(this);p(this,yr).clear()}increment(t){R(this,Jt,p(this,Jt)+1),t&&R(this,Qt,p(this,Qt)+1)}decrement(t){R(this,Jt,p(this,Jt)-1),t&&R(this,Qt,p(this,Qt)-1),this.revive()}revive(){for(const t of p(this,br))p(this,_r).delete(t),be(t,Be),$t(t);for(const t of p(this,_r))be(t,It),$t(t);this.flush()}oncommit(t){p(this,gr).add(t)}ondiscard(t){p(this,yr).add(t)}settled(){var t;return((t=p(this,Jr))!=null?t:R(this,Jr,oo())).promise}static ensure(){if(ee===null){const t=ee=new Mn;un.add(ee),Yr||Mn.enqueue(()=>{ee===t&&t.flush()})}return ee}static enqueue(t){Rn(t)}apply(){}};gr=new WeakMap,yr=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Jr=new WeakMap,br=new WeakMap,_r=new WeakMap,Qe=new WeakSet,mi=function(t,r,n){t.f^=Te;for(var i=t.first,s=null;i!==null;){var o=i.f,u=(o&(Lt|zt))!==0,a=u&&(o&Te)!==0,l=a||(o&Fe)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){u?i.f^=Te:s!==null&&o&(bn|tn|ao)?s.b.defer_effect(i):o&bn?r.push(i):nn(i)&&(o&Rt&&p(this,br).add(i),Xr(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===s&&(s=null),i=d.next,d=d.parent}},gi=function(t){for(var r=0;r<t.length;r+=1)xo(t[r],p(this,br),p(this,_r))},wo=function(){if(p(this,Qt)===0){for(const t of p(this,gr))t();p(this,gr).clear()}p(this,Jt)===0&&ge(this,Qe,Eo).call(this)},Eo=function(){var i;if(un.size>1){this.previous.clear();var t=xe,r=!0;for(const s of un){if(s===this){r=!1;continue}const o=[];for(const[a,l]of this.current){if(s.current.has(a))if(r&&l!==s.current.get(a))s.current.set(a,l);else continue;o.push(a)}if(o.length===0)continue;const u=[...s.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var n=Xe;Xe=[];const a=new Set,l=new Map;for(const f of o)Co(f,u,a,l);if(Xe.length>0){ee=s,s.apply();for(const f of Xe)ge(i=s,Qe,mi).call(i,f,[],[]);s.deactivate()}Xe=n}}ee=null,xe=t}this.committed=!0,un.delete(this)};let _t=Mn;function dt(e){var t=Yr;Yr=!0;try{for(var r;;){if(Wu(),Xe.length===0&&(ee==null||ee.flush(),Xe.length===0))return Ln=null,r;So()}}finally{Yr=t}}function So(){var e=ir;vi=!0;var t=null;try{var r=0;for(wn(!0);Xe.length>0;){var n=_t.ensure();if(r++>1e3){var i,s;Ju()}n.process(Xe),Vt.clear()}}finally{vi=!1,wn(e),Ln=null}}function Ju(){try{Fu()}catch(e){Tr(e,Ln)}}let rt=null;function xs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Ht|Fe))&&nn(n)&&(rt=new Set,Xr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Zo(n):n.fn=null),(rt==null?void 0:rt.size)>0)){Vt.clear();for(const i of rt){if(i.f&(Ht|Fe))continue;const s=[i];let o=i.parent;for(;o!==null;)rt.has(o)&&(rt.delete(o),s.push(o)),o=o.parent;for(let u=s.length-1;u>=0;u--){const a=s[u];a.f&(Ht|Fe)||Xr(a)}}rt.clear()}}rt=null}}function Co(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&we?Co(i,t,r,n):s&(Vi|Rt)&&!(s&Be)&&To(i,t,n)&&(be(i,Be),$t(i))}}function To(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&we&&To(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function $t(e){for(var t=Ln=e;t.parent!==null;){t=t.parent;var r=t.f;if(vi&&t===Y&&r&Rt&&!(r&uo))return;if(r&(zt|Lt)){if(!(r&Te))return;t.f^=Te}}Xe.push(t)}function Qu(e){let t=0,r=ur(0),n;return()=>{qi()&&(E(r),jo(()=>(t===0&&(n=Nn(()=>e(()=>zr(r)))),t+=1,()=>{Rn(()=>{t-=1,t===0&&(n==null||n(),n=void 0,zr(r))})})))}}var Ku=Er|lr|ji;function el(e,t,r){new tl(e,t,r)}var ke,Qr,vt,Kt,mt,ze,Pe,gt,Ct,kt,er,Tt,tr,xr,wr,Ut,On,ve,Mo,Oo,yi,cn,dn,bi;class tl{constructor(t,r,n){k(this,ve);ce(this,"parent");ce(this,"is_pending",!1);k(this,ke);k(this,Qr,U?N:null);k(this,vt);k(this,Kt);k(this,mt);k(this,ze,null);k(this,Pe,null);k(this,gt,null);k(this,Ct,null);k(this,kt,null);k(this,er,0);k(this,Tt,0);k(this,tr,!1);k(this,xr,new Set);k(this,wr,new Set);k(this,Ut,null);k(this,On,Qu(()=>(R(this,Ut,ur(p(this,er))),()=>{R(this,Ut,null)})));R(this,ke,t),R(this,vt,r),R(this,Kt,n),this.parent=Y.b,this.is_pending=!!p(this,vt).pending,R(this,mt,Qi(()=>{if(Y.b=this,U){const s=p(this,Qr);Sr(),s.nodeType===fr&&s.data===Hn?ge(this,ve,Oo).call(this):(ge(this,ve,Mo).call(this),p(this,Tt)===0&&(this.is_pending=!1))}else{var i=ge(this,ve,yi).call(this);try{R(this,ze,We(()=>n(i)))}catch(s){this.error(s)}p(this,Tt)>0?ge(this,ve,dn).call(this):this.is_pending=!1}return()=>{var s;(s=p(this,kt))==null||s.remove()}},Ku)),U&&R(this,ke,N)}defer_effect(t){xo(t,p(this,xr),p(this,wr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!p(this,vt).pending}update_pending_count(t){ge(this,ve,bi).call(this,t),R(this,er,p(this,er)+t),p(this,Ut)&&Mr(p(this,Ut),p(this,er))}get_effect_pending(){return p(this,On).call(this),E(p(this,Ut))}error(t){var r=p(this,vt).onerror;let n=p(this,vt).failed;if(p(this,tr)||!r&&!n)throw t;p(this,ze)&&(Ae(p(this,ze)),R(this,ze,null)),p(this,Pe)&&(Ae(p(this,Pe)),R(this,Pe,null)),p(this,gt)&&(Ae(p(this,gt)),R(this,gt,null)),U&&(Me(p(this,Qr)),ho(),Me(_n()));var i=!1,s=!1;const o=()=>{if(i){Zu();return}i=!0,s&&zu(),_t.ensure(),R(this,er,0),p(this,gt)!==null&&nr(p(this,gt),()=>{R(this,gt,null)}),this.is_pending=this.has_pending_snippet(),R(this,ze,ge(this,ve,cn).call(this,()=>(R(this,tr,!1),We(()=>p(this,Kt).call(this,p(this,ke)))))),p(this,Tt)>0?ge(this,ve,dn).call(this):this.is_pending=!1};var u=L;try{Ce(null),s=!0,r==null||r(t,o),s=!1}catch(a){Tr(a,p(this,mt)&&p(this,mt).parent)}finally{Ce(u)}n&&Rn(()=>{R(this,gt,ge(this,ve,cn).call(this,()=>{_t.ensure(),R(this,tr,!0);try{return We(()=>{n(p(this,ke),()=>t,()=>o)})}catch(a){return Tr(a,p(this,mt).parent),null}finally{R(this,tr,!1)}}))})}}ke=new WeakMap,Qr=new WeakMap,vt=new WeakMap,Kt=new WeakMap,mt=new WeakMap,ze=new WeakMap,Pe=new WeakMap,gt=new WeakMap,Ct=new WeakMap,kt=new WeakMap,er=new WeakMap,Tt=new WeakMap,tr=new WeakMap,xr=new WeakMap,wr=new WeakMap,Ut=new WeakMap,On=new WeakMap,ve=new WeakSet,Mo=function(){try{R(this,ze,We(()=>p(this,Kt).call(this,p(this,ke))))}catch(t){this.error(t)}},Oo=function(){const t=p(this,vt).pending;t&&(R(this,Pe,We(()=>t(p(this,ke)))),_t.enqueue(()=>{var r=ge(this,ve,yi).call(this);R(this,ze,ge(this,ve,cn).call(this,()=>(_t.ensure(),We(()=>p(this,Kt).call(this,r))))),p(this,Tt)>0?ge(this,ve,dn).call(this):(nr(p(this,Pe),()=>{R(this,Pe,null)}),this.is_pending=!1)}))},yi=function(){var t=p(this,ke);return this.is_pending&&(R(this,kt,Le()),p(this,ke).before(p(this,kt)),t=p(this,kt)),t},cn=function(t){var r=Y,n=L,i=Ie;Je(p(this,mt)),Ce(p(this,mt)),Cr(p(this,mt).ctx);try{return t()}catch(s){return bo(s),null}finally{Je(r),Ce(n),Cr(i)}},dn=function(){const t=p(this,vt).pending;p(this,ze)!==null&&(R(this,Ct,document.createDocumentFragment()),p(this,Ct).append(p(this,kt)),qo(p(this,ze),p(this,Ct))),p(this,Pe)===null&&R(this,Pe,We(()=>t(p(this,ke))))},bi=function(t){var r;if(!this.has_pending_snippet()){this.parent&&ge(r=this.parent,ve,bi).call(r,t);return}if(R(this,Tt,p(this,Tt)+t),p(this,Tt)===0){this.is_pending=!1;for(const n of p(this,xr))be(n,Be),$t(n);for(const n of p(this,wr))be(n,It),$t(n);p(this,xr).clear(),p(this,wr).clear(),p(this,Pe)&&nr(p(this,Pe),()=>{R(this,Pe,null)}),p(this,Ct)&&(p(this,ke).before(p(this,Ct)),R(this,Ct,null))}};function rl(e,t,r,n){const i=In;if(r.length===0&&e.length===0){n(t.map(i));return}var s=ee,o=Y,u=nl();function a(){Promise.all(r.map(l=>il(l))).then(l=>{u();try{n([...t.map(i),...l])}catch(f){o.f&Ht||Tr(f,o)}s==null||s.deactivate(),xn()}).catch(l=>{Tr(l,o)})}e.length>0?Promise.all(e).then(()=>{u();try{return a()}finally{s==null||s.deactivate(),xn()}}):a()}function nl(){var e=Y,t=L,r=Ie,n=ee;return function(s=!0){Je(e),Ce(t),Cr(r),s&&(n==null||n.activate())}}function xn(){Je(null),Ce(null),Cr(null)}function In(e){var t=we|Be,r=L!==null&&L.f&we?L:null;return Y!==null&&(Y.f|=lr),{ctx:Ie,deps:null,effects:null,equals:po,f:t,fn:e,reactions:null,rv:0,v:_e,wv:0,parent:r!=null?r:Y,ac:null}}function il(e,t,r){let n=Y;n===null&&Nu();var i=n.b,s=void 0,o=ur(_e),u=!L,a=new Map;return dl(()=>{var v;var l=oo();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===ee&&f.committed&&f.deactivate(),xn()})}catch(_){l.reject(_),xn()}var f=ee;if(u){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(v=a.get(f))==null||v.reject(vr),a.delete(f),a.set(f,l)}const c=(_,x=void 0)=>{if(f.activate(),x)x!==vr&&(o.f|=jt,Mr(o,x));else{o.f&jt&&(o.f^=jt),Mr(o,_);for(const[h,g]of a){if(a.delete(h),h===f)break;g.reject(vr)}}u&&(i.update_pending_count(-1),f.decrement(d))};l.promise.then(c,_=>c(null,_||"unknown"))}),Uo(()=>{for(const l of a.values())l.reject(vr)}),new Promise(l=>{function f(d){function c(){d===s?l(o):f(s)}d.then(c,c)}f(s)})}function sl(e){const t=In(e);return Jo(t),t}function ol(e){const t=In(e);return t.equals=mo,t}function Ao(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Ae(t[r])}}function al(e){for(var t=e.parent;t!==null;){if(!(t.f&we))return t.f&Ht?null:t;t=t.parent}return null}function Xi(e){var t,r=Y;Je(al(e));try{e.f&=~ar,Ao(e),t=ta(e)}finally{Je(r)}return t}function Ho(e){var t=Xi(e);if(!e.equals(t)&&(e.wv=Ko(),(!(ee!=null&&ee.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){be(e,Te);return}Yt||(xe!==null?(qi()||ee!=null&&ee.is_fork)&&xe.set(e,t):Zi(e))}let _i=new Set;const Vt=new Map;let Bo=!1;function ur(e,t){var r={f:0,v:e,reactions:null,equals:po,rv:0,wv:0};return r}function fe(e,t){const r=ur(e);return Jo(r),r}function Wi(e,t=!1,r=!0){const n=ur(e);return t||(n.equals=mo),n}function J(e,t,r=!1){L!==null&&(!ot||L.f&_s)&&go()&&L.f&(we|Rt|Vi|_s)&&!(He!=null&&He.includes(e))&&Yu();let n=r?At(t):t;return Mr(e,n)}function Mr(e,t){if(!e.equals(t)){var r=e.v;Yt?Vt.set(e,t):Vt.set(e,r),e.v=t;var n=_t.ensure();if(n.capture(e,r),e.f&we){const i=e;e.f&Be&&Xi(i),Zi(i)}e.wv=Ko(),$o(e,Be),Y!==null&&Y.f&Te&&!(Y.f&(Lt|zt))&&(Ye===null?vl([e]):Ye.push(e)),!n.is_fork&&_i.size>0&&!Bo&&ul()}return t}function ul(){Bo=!1;var e=ir;wn(!0);const t=Array.from(_i);try{for(const r of t)r.f&Te&&be(r,It),nn(r)&&Xr(r)}finally{wn(e)}_i.clear()}function zr(e){J(e,e.v+1)}function $o(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,u=(o&Be)===0;if(u&&be(s,t),o&we){var a=s;xe==null||xe.delete(a),o&ar||(o&qe&&(s.f|=ar),$o(a,It))}else u&&(o&Rt&&rt!==null&&rt.add(s),$t(s))}}function At(e){if(typeof e!="object"||e===null||si in e)return e;const t=io(e);if(t!==Pu&&t!==Ru)return e;var r=new Map,n=no(e),i=fe(0),s=sr,o=u=>{if(sr===s)return u();var a=L,l=sr;Ce(null),Ss(s);var f=u();return Ce(a),Ss(l),f};return n&&r.set("length",fe(e.length)),new Proxy(e,{defineProperty(u,a,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ju();var f=r.get(a);return f===void 0?f=o(()=>{var d=fe(l.value);return r.set(a,d),d}):J(f,l.value,!0),!0},deleteProperty(u,a){var l=r.get(a);if(l===void 0){if(a in u){const f=o(()=>fe(_e));r.set(a,f),zr(i)}}else J(l,_e),zr(i);return!0},get(u,a,l){var v;if(a===si)return e;var f=r.get(a),d=a in u;if(f===void 0&&(!d||(v=mr(u,a))!=null&&v.writable)&&(f=o(()=>{var _=At(d?u[a]:_e),x=fe(_);return x}),r.set(a,f)),f!==void 0){var c=E(f);return c===_e?void 0:c}return Reflect.get(u,a,l)},getOwnPropertyDescriptor(u,a){var l=Reflect.getOwnPropertyDescriptor(u,a);if(l&&"value"in l){var f=r.get(a);f&&(l.value=E(f))}else if(l===void 0){var d=r.get(a),c=d==null?void 0:d.v;if(d!==void 0&&c!==_e)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(u,a){var c;if(a===si)return!0;var l=r.get(a),f=l!==void 0&&l.v!==_e||Reflect.has(u,a);if(l!==void 0||Y!==null&&(!f||(c=mr(u,a))!=null&&c.writable)){l===void 0&&(l=o(()=>{var v=f?At(u[a]):_e,_=fe(v);return _}),r.set(a,l));var d=E(l);if(d===_e)return!1}return f},set(u,a,l,f){var M;var d=r.get(a),c=a in u;if(n&&a==="length")for(var v=l;v<d.v;v+=1){var _=r.get(v+"");_!==void 0?J(_,_e):v in u&&(_=o(()=>fe(_e)),r.set(v+"",_))}if(d===void 0)(!c||(M=mr(u,a))!=null&&M.writable)&&(d=o(()=>fe(void 0)),J(d,At(l)),r.set(a,d));else{c=d.v!==_e;var x=o(()=>At(l));J(d,x)}var h=Reflect.getOwnPropertyDescriptor(u,a);if(h!=null&&h.set&&h.set.call(f,l),!c){if(n&&typeof a=="string"){var g=r.get("length"),A=Number(a);Number.isInteger(A)&&A>=g.v&&J(g,A+1)}zr(i)}return!0},ownKeys(u){E(i);var a=Reflect.ownKeys(u).filter(d=>{var c=r.get(d);return c===void 0||c.v!==_e});for(var[l,f]of r)f.v!==_e&&!(l in u)&&a.push(l);return a},setPrototypeOf(){Vu()}})}var ws,Po,Ro,Lo;function xi(){if(ws===void 0){ws=window,Po=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ro=mr(t,"firstChild").get,Lo=mr(t,"nextSibling").get,bs(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bs(r)&&(r.__t=void 0)}}function Le(e=""){return document.createTextNode(e)}function st(e){return Ro.call(e)}function at(e){return Lo.call(e)}function q(e,t){if(!U)return st(e);var r=st(N);if(r===null)r=N.appendChild(Le());else if(t&&r.nodeType!==Pn){var n=Le();return r==null||r.before(n),Me(n),n}return Me(r),r}function Dt(e,t=!1){if(!U){var r=st(e);return r instanceof Comment&&r.data===""?at(r):r}if(t&&(N==null?void 0:N.nodeType)!==Pn){var n=Le();return N==null||N.before(n),Me(n),n}return N}function se(e,t=1,r=!1){let n=U?N:e;for(var i;t--;)i=n,n=at(n);if(!U)return n;if(r&&(n==null?void 0:n.nodeType)!==Pn){var s=Le();return n===null?i==null||i.after(s):n.before(s),Me(s),s}return Me(n),n}function Io(e){e.textContent=""}function No(){return!1}function Do(e){var t=L,r=Y;Ce(null),Je(null);try{return e()}finally{Ce(t),Je(r)}}function ko(e){Y===null&&(L===null&&Uu(),ku()),Yt&&Du()}function ll(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ut(e,t,r){var u;var n=Y;n!==null&&n.f&Fe&&(e|=Fe);var i={ctx:Ie,deps:null,nodes:null,f:e|Be|qe,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Xr(i),i.f|=$n}catch(a){throw Ae(i),a}else t!==null&&$t(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&lr)&&(s=s.first,e&Rt&&e&Er&&s!==null&&(s.f|=Er)),s!==null&&(s.parent=n,n!==null&&ll(s,n),L!==null&&L.f&we&&!(e&zt))){var o=L;((u=o.effects)!=null?u:o.effects=[]).push(s)}return i}function qi(){return L!==null&&!ot}function Uo(e){const t=ut(tn,null,!1);return be(t,Te),t.teardown=e,t}function Ji(e){var i;ko();var t=Y.f,r=!L&&(t&Lt)!==0&&(t&$n)===0;if(r){var n=Ie;((i=n.e)!=null?i:n.e=[]).push(e)}else return Fo(e)}function Fo(e){return ut(bn|lo,e,!1)}function Go(e){return ko(),ut(tn|lo,e,!0)}function fl(e){_t.ensure();const t=ut(zt|lr,e,!0);return()=>{Ae(t)}}function hl(e){_t.ensure();const t=ut(zt|lr,e,!0);return(r={})=>new Promise(n=>{r.outro?nr(t,()=>{Ae(t),n(void 0)}):(Ae(t),n(void 0))})}function cl(e){return ut(bn,e,!1)}function dl(e){return ut(Vi|lr,e,!0)}function jo(e,t=0){return ut(tn|t,e,!0)}function K(e,t=[],r=[],n=[]){rl(n,t,r,i=>{ut(tn,()=>e(...i.map(E)),!0)})}function Qi(e,t=0){var r=ut(Rt|t,e,!0);return r}function We(e){return ut(Lt|lr,e,!0)}function Vo(e){var t=e.teardown;if(t!==null){const r=Yt,n=L;Es(!0),Ce(null);try{t.call(null)}finally{Es(r),Ce(n)}}}function Yo(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Do(()=>{i.abort(vr)});var n=r.next;r.f&zt?r.parent=null:Ae(r,t),r=n}}function pl(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Lt||Ae(t),t=r}}function Ae(e,t=!0){var r=!1;(t||e.f&uo)&&e.nodes!==null&&e.nodes.end!==null&&(zo(e.nodes.start,e.nodes.end),r=!0),Yo(e,t&&!r),En(e,0),be(e,Ht);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Vo(e);var i=e.parent;i!==null&&i.first!==null&&Zo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function zo(e,t){for(;e!==null;){var r=e===t?null:at(e);e.remove(),e=r}}function Zo(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function nr(e,t,r=!0){var n=[];Xo(e,n,!0);var i=()=>{r&&Ae(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var u of n)u.out(o)}else i()}function Xo(e,t,r){if(!(e.f&Fe)){e.f^=Fe;var n=e.nodes&&e.nodes.t;if(n!==null)for(const u of n)(u.is_global||r)&&t.push(u);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Er)!==0||(i.f&Lt)!==0&&(e.f&Rt)!==0;Xo(i,t,o?r:!1),i=s}}}function Ki(e){Wo(e,!0)}function Wo(e,t){if(e.f&Fe){e.f^=Fe,e.f&Te||(be(e,Be),$t(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Er)!==0||(r.f&Lt)!==0;Wo(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function qo(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:at(r);t.append(r),r=i}}let ir=!1;function wn(e){ir=e}let Yt=!1;function Es(e){Yt=e}let L=null,ot=!1;function Ce(e){L=e}let Y=null;function Je(e){Y=e}let He=null;function Jo(e){L!==null&&(He===null?He=[e]:He.push(e))}let Re=null,De=0,Ye=null;function vl(e){Ye=e}let Qo=1,qt=0,sr=qt;function Ss(e){sr=e}function Ko(){return++Qo}function nn(e){var t=e.f;if(t&Be)return!0;if(t&we&&(e.f&=~ar),t&It){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(nn(s)&&Ho(s),s.wv>e.wv)return!0}t&qe&&xe===null&&be(e,Te)}return!1}function ea(e,t,r=!0){var n=e.reactions;if(n!==null&&!(He!=null&&He.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&we?ea(s,t,!1):t===s&&(r?be(s,Be):s.f&Te&&be(s,It),$t(s))}}function ta(e){var _,x;var t=Re,r=De,n=Ye,i=L,s=He,o=Ie,u=ot,a=sr,l=e.f;Re=null,De=0,Ye=null,L=l&(Lt|zt)?null:e,He=null,Cr(e.ctx),ot=!1,sr=++qt,e.ac!==null&&(Do(()=>{e.ac.abort(vr)}),e.ac=null);try{e.f|=pi;var f=e.fn,d=f(),c=e.deps;if(Re!==null){var v;if(En(e,De),c!==null&&De>0)for(c.length=De+Re.length,v=0;v<Re.length;v++)c[De+v]=Re[v];else e.deps=c=Re;if(qi()&&e.f&qe)for(v=De;v<c.length;v++)((x=(_=c[v]).reactions)!=null?x:_.reactions=[]).push(e)}else c!==null&&De<c.length&&(En(e,De),c.length=De);if(go()&&Ye!==null&&!ot&&c!==null&&!(e.f&(we|It|Be)))for(v=0;v<Ye.length;v++)ea(Ye[v],e);if(i!==null&&i!==e){if(qt++,i.deps!==null)for(let h=0;h<r;h+=1)i.deps[h].rv=qt;if(t!==null)for(const h of t)h.rv=qt;Ye!==null&&(n===null?n=Ye:n.push(...Ye))}return e.f&jt&&(e.f^=jt),d}catch(h){return bo(h)}finally{e.f^=pi,Re=t,De=r,Ye=n,L=i,He=s,Cr(o),ot=u,sr=a}}function ml(e,t){let r=t.reactions;if(r!==null){var n=Bu.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&we&&(Re===null||!Re.includes(t))){var s=t;s.f&qe&&(s.f^=qe,s.f&=~ar),Zi(s),Ao(s),En(s,0)}}function En(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ml(e,r[n])}function Xr(e){var t=e.f;if(!(t&Ht)){be(e,Te);var r=Y,n=ir;Y=e,ir=!0;try{t&(Rt|ao)?pl(e):Yo(e),Vo(e);var i=ta(e);e.teardown=typeof i=="function"?i:null,e.wv=Qo;var s;di&&Xu&&e.f&Be&&e.deps}finally{ir=n,Y=r}}}function E(e){var f;var t=e.f,r=(t&we)!==0;if(L!==null&&!ot){var n=Y!==null&&(Y.f&Ht)!==0;if(!n&&!(He!=null&&He.includes(e))){var i=L.deps;if(L.f&pi)e.rv<qt&&(e.rv=qt,Re===null&&i!==null&&i[De]===e?De++:Re===null?Re=[e]:Re.push(e));else{((f=L.deps)!=null?f:L.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[L]:s.includes(L)||s.push(L)}}}if(Yt&&Vt.has(e))return Vt.get(e);if(r){var o=e;if(Yt){var u=o.v;return(!(o.f&Te)&&o.reactions!==null||na(o))&&(u=Xi(o)),Vt.set(o,u),u}var a=(o.f&qe)===0&&!ot&&L!==null&&(ir||(L.f&qe)!==0),l=o.deps===null;nn(o)&&(a&&(o.f|=qe),Ho(o)),a&&!l&&ra(o)}if(xe!=null&&xe.has(e))return xe.get(e);if(e.f&jt)throw e.v;return e.v}function ra(e){var t;if(e.deps!==null){e.f|=qe;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&we&&!(r.f&qe)&&ra(r)}}function na(e){if(e.v===_e)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Vt.has(t)||t.f&we&&na(t))return!0;return!1}function Nn(e){var t=ot;try{return ot=!0,e()}finally{ot=t}}const ia=new Set,wi=new Set;function sa(e){for(var t=0;t<e.length;t++)ia.add(e[t]);for(var r of wi)r(e)}let Cs=null;function ln(e){var h;var t=this,r=t.ownerDocument,n=e.type,i=((h=e.composedPath)==null?void 0:h.call(e))||[],s=i[0]||e.target;Cs=e;var o=0,u=Cs===e&&e.__root;if(u){var a=i.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;a<=l&&(o=a)}if(s=i[o]||e.target,s!==t){Zr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=L,d=Y;Ce(null),Je(null);try{for(var c,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+n];x!=null&&(!s.disabled||e.target===s)&&x.call(s,e)}catch(g){c?v.push(g):c=g}if(e.cancelBubble||_===t||_===null)break;s=_}if(c){for(let g of v)queueMicrotask(()=>{throw g});throw c}}finally{e.__root=t,delete e.currentTarget,Ce(f),Je(d)}}}function oa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function xt(e,t){var r=Y;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function wt(e,t){var r=(t&Ou)!==0,n=(t&Au)!==0,i,s=!e.startsWith("<!>");return()=>{if(U)return xt(N,null),N;i===void 0&&(i=oa(s?e:"<!>"+e),r||(i=st(i)));var o=n||Po?document.importNode(i,!0):i.cloneNode(!0);if(r){var u=st(o),a=o.lastChild;xt(u,a)}else xt(o,o);return o}}function gl(e=""){if(!U){var t=Le(e+"");return xt(t,t),t}var r=N;return r.nodeType!==Pn&&(r.before(r=Le()),Me(r)),xt(r,r),r}function Xt(){if(U)return xt(N,null),N;var e=document.createDocumentFragment(),t=document.createComment(""),r=Le();return e.append(t,r),xt(t,r),e}function ye(e,t){if(U){var r=Y;(!(r.f&$n)||r.nodes.end===null)&&(r.nodes.end=N),Sr();return}e!==null&&e.before(t)}const yl=["touchstart","touchmove"];function bl(e){return yl.includes(e)}function Gr(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function aa(e,t){return ua(e,t)}function _l(e,t){var o;xi(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=U,i=N;try{for(var s=st(r);s&&(s.nodeType!==fr||s.data!==ro);)s=at(s);if(!s)throw or;it(!0),Me(s);const u=ua(e,an(on({},t),{anchor:s}));return it(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw u;return u!==or&&console.warn("Failed to hydrate: ",u),t.recover===!1&&Gu(),xi(),Io(r),it(!1),aa(e,t)}finally{it(n),Me(i)}}const cr=new Map;function ua(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){xi();var u=new Set,a=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!u.has(v)){u.add(v);var _=bl(v);t.addEventListener(v,ln,{passive:_});var x=cr.get(v);x===void 0?(document.addEventListener(v,ln,{passive:_}),cr.set(v,1)):cr.set(v,x+1)}}};a(Bn(ia)),wi.add(a);var l=void 0,f=hl(()=>{var d=r!=null?r:t.appendChild(Le());return el(d,{pending:()=>{}},c=>{if(s){Yi({});var v=Ie;v.c=s}if(i&&(n.$$events=i),U&&xt(c,null),l=e(c,n)||{},U&&(Y.nodes.end=N,N===null||N.nodeType!==fr||N.data!==Gi))throw rn(),or;s&&zi()}),()=>{var _;for(var c of u){t.removeEventListener(c,ln);var v=cr.get(c);--v===0?(document.removeEventListener(c,ln),cr.delete(c)):cr.set(c,v)}wi.delete(a),d!==r&&((_=d.parentNode)==null||_.removeChild(d))}});return Ei.set(l,f),l}let Ei=new WeakMap;function xl(e,t){const r=Ei.get(e);return r?(Ei.delete(e),r(t)):Promise.resolve()}var nt,yt,Ue,rr,Kr,en,An;class wl{constructor(t,r=!0){ce(this,"anchor");k(this,nt,new Map);k(this,yt,new Map);k(this,Ue,new Map);k(this,rr,new Set);k(this,Kr,!0);k(this,en,()=>{var t=ee;if(p(this,nt).has(t)){var r=p(this,nt).get(t),n=p(this,yt).get(r);if(n)Ki(n),p(this,rr).delete(r);else{var i=p(this,Ue).get(r);i&&(p(this,yt).set(r,i.effect),p(this,Ue).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of p(this,nt)){if(p(this,nt).delete(s),s===t)break;const u=p(this,Ue).get(o);u&&(Ae(u.effect),p(this,Ue).delete(o))}for(const[s,o]of p(this,yt)){if(s===r||p(this,rr).has(s))continue;const u=()=>{if(Array.from(p(this,nt).values()).includes(s)){var l=document.createDocumentFragment();qo(o,l),l.append(Le()),p(this,Ue).set(s,{effect:o,fragment:l})}else Ae(o);p(this,rr).delete(s),p(this,yt).delete(s)};p(this,Kr)||!n?(p(this,rr).add(s),nr(o,u,!1)):u()}}});k(this,An,t=>{p(this,nt).delete(t);const r=Array.from(p(this,nt).values());for(const[n,i]of p(this,Ue))r.includes(n)||(Ae(i.effect),p(this,Ue).delete(n))});this.anchor=t,R(this,Kr,r)}ensure(t,r){var n=ee,i=No();if(r&&!p(this,yt).has(t)&&!p(this,Ue).has(t))if(i){var s=document.createDocumentFragment(),o=Le();s.append(o),p(this,Ue).set(t,{effect:We(()=>r(o)),fragment:s})}else p(this,yt).set(t,We(()=>r(this.anchor)));if(p(this,nt).set(n,t),i){for(const[u,a]of p(this,yt))u===t?n.skipped_effects.delete(a):n.skipped_effects.add(a);for(const[u,a]of p(this,Ue))u===t?n.skipped_effects.delete(a.effect):n.skipped_effects.add(a.effect);n.oncommit(p(this,en)),n.ondiscard(p(this,An))}else U&&(this.anchor=N),p(this,en).call(this)}}nt=new WeakMap,yt=new WeakMap,Ue=new WeakMap,rr=new WeakMap,Kr=new WeakMap,en=new WeakMap,An=new WeakMap;function es(e){Ie===null&&fo(),Ji(()=>{const t=Nn(e);if(typeof t=="function")return t})}function El(e){Ie===null&&fo(),es(()=>()=>Nn(e))}function $e(e,t,r=!1){U&&Sr();var n=new wl(e),i=r?Er:0;function s(o,u){if(U){const l=co(e)===Hn;if(o===l){var a=_n();Me(a),n.anchor=a,it(!1),n.ensure(o,u),it(!0);return}}n.ensure(o,u)}Qi(()=>{var o=!1;t((u,a=!0)=>{o=!0,s(a,u)}),o||s(!1,null)},i)}function la(e,t){return t}function Sl(e,t,r){var d;for(var n=[],i=t.length,s,o=t.length,u=0;u<i;u++){let c=t[u];nr(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var v=e.outrogroups;Si(Bn(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=n.length===0&&r!==null;if(a){var l=r,f=l.parentNode;Io(f),f.append(l),e.items.clear()}Si(t,!a)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function Si(e,t=!0){for(var r=0;r<e.length;r++)Ae(e[r],t)}var dr;function fa(e,t,r,n,i,s=null){var o=e,u=new Map,a=(t&to)!==0;if(a){var l=e;o=U?Me(st(l)):l.appendChild(Le())}U&&Sr();var f=null,d=ol(()=>{var g=r();return no(g)?g:g==null?[]:Bn(g)}),c,v=!0;function _(){h.fallback=f,Cl(h,c,o,t,n),f!==null&&(c.length===0?f.f&Ot?(f.f^=Ot,jr(f,null,o)):Ki(f):nr(f,()=>{f=null}))}var x=Qi(()=>{c=E(d);var g=c.length;let A=!1;if(U){var M=co(o)===Hn;M!==(g===0)&&(o=_n(),Me(o),it(!1),A=!0)}for(var G=new Set,I=ee,D=No(),V=0;V<g;V+=1){U&&N.nodeType===fr&&N.data===Gi&&(o=N,A=!0,it(!1));var te=c[V],W=n(te,V),B=v?null:u.get(W);B?(B.v&&Mr(B.v,te),B.i&&Mr(B.i,V),D&&I.skipped_effects.delete(B.e)):(B=Tl(u,v?o:dr!=null?dr:dr=Le(),te,W,V,i,t,r),v||(B.e.f|=Ot),u.set(W,B)),G.add(W)}if(g===0&&s&&!f&&(v?f=We(()=>s(o)):(f=We(()=>s(dr!=null?dr:dr=Le())),f.f|=Ot)),U&&g>0&&Me(_n()),!v)if(D){for(const[H,ne]of u)G.has(H)||I.skipped_effects.add(ne.e);I.oncommit(_),I.ondiscard(()=>{})}else _();A&&it(!0),E(d)}),h={effect:x,items:u,outrogroups:null,fallback:f};v=!1,U&&(o=N)}function Cl(e,t,r,n,i){var B,H,ne,ie,S,y,m,w,b;var s=(n&Tu)!==0,o=t.length,u=e.items,a=e.effect.first,l,f=null,d,c=[],v=[],_,x,h,g;if(s)for(g=0;g<o;g+=1)_=t[g],x=i(_,g),h=u.get(x).e,h.f&Ot||((H=(B=h.nodes)==null?void 0:B.a)==null||H.measure(),(d!=null?d:d=new Set).add(h));for(g=0;g<o;g+=1){if(_=t[g],x=i(_,g),h=u.get(x).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(h),C.done.delete(h);if(h.f&Ot)if(h.f^=Ot,h===a)jr(h,null,r);else{var A=f?f.next:a;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),Nt(e,f,h),Nt(e,h,A),jr(h,A,r),f=h,c=[],v=[],a=f.next;continue}if(h.f&Fe&&(Ki(h),s&&((ie=(ne=h.nodes)==null?void 0:ne.a)==null||ie.unfix(),(d!=null?d:d=new Set).delete(h))),h!==a){if(l!==void 0&&l.has(h)){if(c.length<v.length){var M=v[0],G;f=M.prev;var I=c[0],D=c[c.length-1];for(G=0;G<c.length;G+=1)jr(c[G],M,r);for(G=0;G<v.length;G+=1)l.delete(v[G]);Nt(e,I.prev,D.next),Nt(e,f,I),Nt(e,D,M),a=M,f=D,g-=1,c=[],v=[]}else l.delete(h),jr(h,a,r),Nt(e,h.prev,h.next),Nt(e,h,f===null?e.effect.first:f.next),Nt(e,f,h),f=h;continue}for(c=[],v=[];a!==null&&a!==h;)(l!=null?l:l=new Set).add(a),v.push(a),a=a.next;if(a===null)continue}h.f&Ot||c.push(h),f=h,a=h.next}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Si(Bn(C.done)),(S=e.outrogroups)==null||S.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||l!==void 0){var V=[];if(l!==void 0)for(h of l)h.f&Fe||V.push(h);for(;a!==null;)!(a.f&Fe)&&a!==e.fallback&&V.push(a),a=a.next;var te=V.length;if(te>0){var W=n&to&&o===0?r:null;if(s){for(g=0;g<te;g+=1)(m=(y=V[g].nodes)==null?void 0:y.a)==null||m.measure();for(g=0;g<te;g+=1)(b=(w=V[g].nodes)==null?void 0:w.a)==null||b.fix()}Sl(e,V,W)}}s&&Rn(()=>{var C,O;if(d!==void 0)for(h of d)(O=(C=h.nodes)==null?void 0:C.a)==null||O.apply()})}function Tl(e,t,r,n,i,s,o,u){var a=o&Su?o&Mu?ur(r):Wi(r,!1,!1):null,l=o&Cu?ur(i):null;return{v:a,i:l,e:We(()=>(s(t,a!=null?a:r,l!=null?l:i,u),()=>{e.delete(n)}))}}function jr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ot)?t.nodes.start:r;n!==null;){var o=at(n);if(s.before(n),n===i)return;n=o}}function Nt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function tt(e,t,r=!1,n=!1,i=!1){var s=e,o="";K(()=>{var c;var u=Y;if(o===(o=(c=t())!=null?c:"")){U&&Sr();return}if(u.nodes!==null&&(zo(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(U){N.data;for(var a=Sr(),l=a;a!==null&&(a.nodeType!==fr||a.data!=="");)l=a,a=at(a);if(a===null)throw rn(),or;xt(N,l),s=Me(a);return}var f=o+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var d=oa(f);if((r||n)&&(d=st(d)),xt(st(d),d.lastChild),r||n)for(;st(d);)s.before(st(d));else s.before(d)}})}function ha(e,t){cl(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function ca(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ca(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ml(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ca(e))&&(n&&(n+=" "),n+=t);return n}function Ol(e){return typeof e=="object"?Ml(e):e!=null?e:""}const Ts=[...`
3
+ \r\f \v\uFEFF`];function Al(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,o=0;(o=n.indexOf(i,o))>=0;){var u=o+s;(o===0||Ts.includes(n[o-1]))&&(u===n.length||Ts.includes(n[u]))?n=(o===0?"":n.substring(0,o))+n.substring(u+1):o=u}}return n===""?null:n}function Hl(e,t){return e==null?null:String(e)}function Vr(e,t,r,n,i,s){var o=e.__className;if(U||o!==r||o===void 0){var u=Al(r,n,s);(!U||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):e.className=u),e.__className=r}else if(s&&i!==s)for(var a in s){var l=!!s[a];(i==null||l!==!!i[a])&&e.classList.toggle(a,l)}return s}function Bl(e,t,r,n){var i=e.__style;if(U||i!==t){var s=Hl(t);(!U||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const $l=Symbol("is custom element"),Pl=Symbol("is html");function pt(e,t,r,n){var i=Rl(e);U&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Iu]=r),r==null?e.removeAttribute(t):typeof r!="string"&&da(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function pe(e,t,r){var n=L,i=Y;let s=U;U&&it(!1),Ce(null),Je(null);try{t!=="style"&&(Ci.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?da(e).includes(t):r&&typeof r=="object")?e[t]=r:pt(e,t,r==null?r:String(r))}finally{Ce(n),Je(i),s&&it(!0)}}function Rl(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[$l]:e.nodeName.includes("-"),[Pl]:e.namespaceURI===Hu}}var Ci=new Map;function da(e){var t=e.getAttribute("is")||e.nodeName,r=Ci.get(t);if(r)return r;Ci.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=$u(i);for(var o in n)n[o].set&&r.push(o);i=io(i)}return r}function ts(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Gt;const n=Nn(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const pr=[];function Ll(e,t){return{subscribe:Dn(e,t).subscribe}}function Dn(e,t=Gt){let r=null;const n=new Set;function i(u){if(vo(e,u)&&(e=u,r)){const a=!pr.length;for(const l of n)l[1](),pr.push(l,e);if(a){for(let l=0;l<pr.length;l+=2)pr[l][0](pr[l+1]);pr.length=0}}}function s(u){i(u(e))}function o(u,a=Gt){const l=[u,a];return n.add(l),n.size===1&&(r=t(i,s)||Gt),u(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function $r(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Ll(r,(o,u)=>{let a=!1;const l=[];let f=0,d=Gt;const c=()=>{if(f)return;d();const _=t(n?l[0]:l,o,u);s?o(_):d=typeof _=="function"?_:Gt},v=i.map((_,x)=>ts(_,h=>{l[x]=h,f&=~(1<<x),a&&c()},()=>{f|=1<<x}));return a=!0,c(),function(){so(v),d(),a=!1}})}function Il(e){let t;return ts(e,r=>t=r)(),t}let Ti=Symbol();function pa(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Wi(void 0),unsubscribe:Gt};if(n.store!==e&&!(Ti in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=Gt;else{var i=!0;n.unsubscribe=ts(e,o=>{i?n.source.v=o:J(n.source,o)}),i=!1}return e&&Ti in r?Il(e):E(n.source)}function va(){const e={};function t(){Uo(()=>{for(var r in e)e[r].unsubscribe();Zr(e,Ti,{enumerable:!1,value:!0})})}return[e,t]}function St(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),u;u=e[t],u===void 0&&n!==void 0&&(u=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var l=!1,f=In(()=>(l=!1,a())),d=Y;return function(c,v){if(arguments.length>0){const _=v?E(f):c;return J(f,_),l=!0,i!==void 0&&(i=_),c}return Yt&&l||d.f&Ht?f.v:E(f)}}function Nl(e){return new Dl(e)}var Mt,Ze;class Dl{constructor(t){k(this,Mt);k(this,Ze);var s,o;var r=new Map,n=(u,a)=>{var l=Wi(a,!1,!1);return r.set(u,l),l};const i=new Proxy(an(on({},t.props||{}),{$$events:{}}),{get(u,a){var l;return E((l=r.get(a))!=null?l:n(a,Reflect.get(u,a)))},has(u,a){var l;return a===Lu?!0:(E((l=r.get(a))!=null?l:n(a,Reflect.get(u,a))),Reflect.has(u,a))},set(u,a,l){var f;return J((f=r.get(a))!=null?f:n(a,l),l),Reflect.set(u,a,l)}});R(this,Ze,(t.hydrate?_l:aa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&dt(),R(this,Mt,i.$$events);for(const u of Object.keys(p(this,Ze)))u==="$set"||u==="$destroy"||u==="$on"||Zr(this,u,{get(){return p(this,Ze)[u]},set(a){p(this,Ze)[u]=a},enumerable:!0});p(this,Ze).$set=u=>{Object.assign(i,u)},p(this,Ze).$destroy=()=>{xl(p(this,Ze))}}$set(t){p(this,Ze).$set(t)}$on(t,r){p(this,Mt)[t]=p(this,Mt)[t]||[];const n=(...i)=>r.call(this,...i);return p(this,Mt)[t].push(n),()=>{p(this,Mt)[t]=p(this,Mt)[t].filter(i=>i!==n)}}$destroy(){p(this,Ze).$destroy()}}Mt=new WeakMap,Ze=new WeakMap;let ma;typeof HTMLElement=="function"&&(ma=class extends HTMLElement{constructor(t,r,n){super();ce(this,"$$ctor");ce(this,"$$s");ce(this,"$$c");ce(this,"$$cn",!1);ce(this,"$$d",{});ce(this,"$$r",!1);ce(this,"$$p_d",{});ce(this,"$$l",{});ce(this,"$$l_u",new Map);ce(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return ii(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),ye(s,o)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=kl(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=pn(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Nl({component:this.$$ctor,target:this.shadowRoot||this,props:an(on({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=fl(()=>{jo(()=>{var i;this.$$r=!0;for(const s of yn(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const o=pn(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=pn(t,n,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.$$me(),this.$$c=void 0)})}$$g_p(t){return yn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function pn(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 kl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ga(e,t,r,n,i,s){let o=class extends ma{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return yn(t).map(u=>(t[u].attribute||u).toLowerCase())}};return yn(t).forEach(u=>{Zr(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var d;a=pn(u,a,t),this.$$d[u]=a;var l=this.$$c;if(l){var f=(d=mr(l,u))==null?void 0:d.get;f?l[u]=a:l.$set({[u]:a})}}})}),n.forEach(u=>{Zr(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),e.element=o,o}var rs=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ul=function(t){return Fl(t)&&!Gl(t)};function Fl(e){return!!e&&typeof e=="object"}function Gl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Yl(e)}var jl=typeof Symbol=="function"&&Symbol.for,Vl=jl?Symbol.for("react.element"):60103;function Yl(e){return e.$$typeof===Vl}function zl(e){return Array.isArray(e)?[]:{}}function Wr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Or(zl(e),e,t):e}function Zl(e,t,r){return e.concat(t).map(function(n){return Wr(n,r)})}function Xl(e,t){if(!t.customMerge)return Or;var r=t.customMerge(e);return typeof r=="function"?r:Or}function Wl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ms(e){return Object.keys(e).concat(Wl(e))}function ya(e,t){try{return t in e}catch(r){return!1}}function ql(e,t){return ya(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Jl(e,t,r){var n={};return r.isMergeableObject(e)&&Ms(e).forEach(function(i){n[i]=Wr(e[i],r)}),Ms(t).forEach(function(i){ql(e,i)||(ya(e,i)&&r.isMergeableObject(t[i])?n[i]=Xl(i,r)(e[i],t[i],r):n[i]=Wr(t[i],r))}),n}function Or(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Zl,r.isMergeableObject=r.isMergeableObject||Ul,r.cloneUnlessOtherwiseSpecified=Wr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Jl(e,t,r):Wr(t,r)}Or.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Or(n,i,r)},{})};var Ql=Or,Kl=Ql;const e0=kn(Kl);var Mi=function(e,t){return Mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Mi(e,t)};function Un(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mi(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bt=function(){return bt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},bt.apply(this,arguments)};function t0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function oi(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function ai(e,t){var r=t&&t.cache?t.cache:u0,n=t&&t.serializer?t.serializer:o0,i=t&&t.strategy?t.strategy:i0;return i(e,{cache:r,serializer:n})}function r0(e){return e==null||typeof e=="number"||typeof e=="boolean"}function n0(e,t,r,n){var i=r0(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function ba(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function _a(e,t,r,n,i){return r.bind(t,e,n,i)}function i0(e,t){var r=e.length===1?n0:ba;return _a(e,this,r,t.cache.create(),t.serializer)}function s0(e,t){return _a(e,this,ba,t.cache.create(),t.serializer)}var o0=function(){return JSON.stringify(arguments)},a0=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),u0={create:function(){return new a0}},ui={variadic:s0},Sn=function(){return Sn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Sn.apply(this,arguments)};var F;(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"})(F||(F={}));var ue;(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"})(ue||(ue={}));var Ar;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ar||(Ar={}));function Os(e){return e.type===ue.literal}function l0(e){return e.type===ue.argument}function xa(e){return e.type===ue.number}function wa(e){return e.type===ue.date}function Ea(e){return e.type===ue.time}function Sa(e){return e.type===ue.select}function Ca(e){return e.type===ue.plural}function f0(e){return e.type===ue.pound}function Ta(e){return e.type===ue.tag}function Ma(e){return!!(e&&typeof e=="object"&&e.type===Ar.number)}function Oi(e){return!!(e&&typeof e=="object"&&e.type===Ar.dateTime)}var Oa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,h0=/(?:[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 c0(e){var t={};return e.replace(h0,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 he=function(){return he=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},he.apply(this,arguments)};var d0=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function p0(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(d0).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var u=o[0],a=o.slice(1),l=0,f=a;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:u,options:a})}return r}function v0(e){return e.replace(/^(.*?)-/,"")}var As=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Aa=/^(@+)?(\+|#+)?[rs]?$/g,m0=/(\*)(0+)|(#+)(0+)|(0+)/g,Ha=/^(0+)$/;function Hs(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Aa,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Ba(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 g0(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ha.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Bs(e){var t={},r=Ba(e);return r||t}function y0(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=v0(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=he(he(he({},t),{notation:"scientific"}),i.options.reduce(function(a,l){return he(he({},a),Bs(l))},{}));continue;case"engineering":t=he(he(he({},t),{notation:"engineering"}),i.options.reduce(function(a,l){return he(he({},a),Bs(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(m0,function(a,l,f,d,c,v){if(l)t.minimumIntegerDigits=f.length;else{if(d&&c)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ha.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(As.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(As,function(a,l,f,d,c,v){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:c&&v?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=he(he({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=he(he({},t),Hs(s)));continue}if(Aa.test(i.stem)){t=he(he({},t),Hs(i.stem));continue}var o=Ba(i.stem);o&&(t=he(he({},t),o));var u=g0(i.stem);u&&(t=he(he({},t),u))}return t}var fn={"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 b0(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),u=s<2?1:3+(s>>1),a="a",l=_0(t);for((l=="H"||l=="k")&&(u=0);u-- >0;)r+=a;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function _0(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=fn[n||""]||fn[r||""]||fn["".concat(r,"-001")]||fn["001"];return i[0]}var li,x0=new RegExp("^".concat(Oa.source,"*")),w0=new RegExp("".concat(Oa.source,"*$"));function j(e,t){return{start:e,end:t}}var E0=!!String.prototype.startsWith&&"_a".startsWith("a",1),S0=!!String.fromCodePoint,C0=!!Object.fromEntries,T0=!!String.prototype.codePointAt,M0=!!String.prototype.trimStart,O0=!!String.prototype.trimEnd,A0=!!Number.isSafeInteger,H0=A0?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ai=!0;try{var B0=Pa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ai=((li=B0.exec("a"))===null||li===void 0?void 0:li[0])==="a"}catch(e){Ai=!1}var $s=E0?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Hi=S0?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Ps=C0?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],u=s[1];r[o]=u}return r},$a=T0?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},$0=M0?function(t){return t.trimStart()}:function(t){return t.replace(x0,"")},P0=O0?function(t){return t.trimEnd()}:function(t){return t.replace(w0,"")};function Pa(e,t){return new RegExp(e,t)}var Bi;if(Ai){var Rs=Pa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bi=function(t,r){var n;Rs.lastIndex=r;var i=Rs.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Bi=function(t,r){for(var n=[];;){var i=$a(t,r);if(i===void 0||Ra(i)||N0(i))break;n.push(i),r+=i>=65536?2:1}return Hi.apply(void 0,n)};var R0=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var u=this.clonePosition();this.bump(),i.push({type:ue.pound,location:j(u,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(F.UNMATCHED_CLOSING_TAG,j(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$i(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ue.literal,value:"<".concat(i,"/>"),location:j(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$i(this.char()))return this.error(F.INVALID_TAG,j(u,this.clonePosition()));var a=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(F.UNMATCHED_CLOSING_TAG,j(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ue.tag,value:i,children:o,location:j(n,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,j(u,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,j(n,this.clonePosition()))}else return this.error(F.INVALID_TAG,j(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&I0(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var u=this.tryParseLeftAngleBracket();if(u){i+=u;continue}break}var a=j(n,this.clonePosition());return{val:{type:ue.literal,value:i,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!L0(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 r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Hi.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Hi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,j(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,j(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ue.argument,value:i,location:j(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(F.MALFORMED_ARGUMENT,j(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Bi(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=j(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(u){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,j(o,a));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var c=P0(d.val);if(c.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,j(this.clonePosition(),this.clonePosition()));var v=j(f,this.clonePosition());l={style:c,styleLocation:v}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var x=j(i,this.clonePosition());if(l&&$s(l==null?void 0:l.style,"::",0)){var h=$0(l.style.slice(2));if(u==="number"){var d=this.parseNumberSkeletonFromString(h,l.styleLocation);return d.err?d:{val:{type:ue.number,value:n,location:x,style:d.val},err:null}}else{if(h.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,x);var g=h;this.locale&&(g=b0(h,this.locale));var c={type:Ar.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?c0(g):{}},A=u==="date"?ue.date:ue.time;return{val:{type:A,value:n,location:x,style:c},err:null}}}return{val:{type:u==="number"?ue.number:u==="date"?ue.date:ue.time,value:n,location:x,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,j(M,Sn({},M)));this.bumpSpace();var G=this.parseIdentifierIfPossible(),I=0;if(u!=="select"&&G.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,j(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),G=this.parseIdentifierIfPossible(),I=d.val}var D=this.tryParsePluralOrSelectOptions(t,u,r,G);if(D.err)return D;var _=this.tryParseArgumentClose(i);if(_.err)return _;var V=j(i,this.clonePosition());return u==="select"?{val:{type:ue.select,value:n,options:Ps(D.val),location:V},err:null}:{val:{type:ue.plural,value:n,options:Ps(D.val),offset:I,pluralType:u==="plural"?"cardinal":"ordinal",location:V},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,j(o,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,j(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,j(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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=p0(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ar.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?y0(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,u=[],a=new Set,l=i.value,f=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=j(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(a.has(l))return this.error(r==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,j(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var x=this.tryParseArgumentClose(v);if(x.err)return x;u.push([l,{value:_.val,location:j(v,this.clonePosition())}]),a.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return u.length===0?this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,j(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(F.MISSING_OTHER_CLAUSE,j(this.clonePosition(),this.clonePosition())):{val:u,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var u=this.char();if(u>=48&&u<=57)s=!0,o=o*10+(u-48),this.bump();else break}var a=j(i,this.clonePosition());return s?(o*=n,H0(o)?{val:o,err:null}:this.error(r,a)):this.error(t,a)},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 r=$a(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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($s(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&Ra(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function $i(e){return e>=97&&e<=122||e>=65&&e<=90}function L0(e){return $i(e)||e===47}function I0(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 Ra(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function N0(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 Pi(e){e.forEach(function(t){if(delete t.location,Sa(t)||Ca(t))for(var r in t.options)delete t.options[r].location,Pi(t.options[r].value);else xa(t)&&Ma(t.style)||(wa(t)||Ea(t))&&Oi(t.style)?delete t.style.location:Ta(t)&&Pi(t.children)})}function D0(e,t){t===void 0&&(t={}),t=Sn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new R0(e,t).parse();if(r.err){var n=SyntaxError(F[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Pi(r.val),r.val}var Hr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Hr||(Hr={}));var Fn=function(e){Un(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ls=function(e){Un(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Hr.INVALID_VALUE,s)||this}return t}(Fn),k0=function(e){Un(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Hr.INVALID_VALUE,i)||this}return t}(Fn),U0=function(e){Un(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Hr.MISSING_VALUE,n)||this}return t}(Fn),Oe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Oe||(Oe={}));function F0(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==Oe.literal||r.type!==Oe.literal?t.push(r):n.value+=r.value,t},[])}function G0(e){return typeof e=="function"}function vn(e,t,r,n,i,s,o){if(e.length===1&&Os(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var u=[],a=0,l=e;a<l.length;a++){var f=l[a];if(Os(f)){u.push({type:Oe.literal,value:f.value});continue}if(f0(f)){typeof s=="number"&&u.push({type:Oe.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new U0(d,o);var c=i[d];if(l0(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),u.push({type:typeof c=="string"?Oe.literal:Oe.object,value:c});continue}if(wa(f)){var v=typeof f.style=="string"?n.date[f.style]:Oi(f.style)?f.style.parsedOptions:void 0;u.push({type:Oe.literal,value:r.getDateTimeFormat(t,v).format(c)});continue}if(Ea(f)){var v=typeof f.style=="string"?n.time[f.style]:Oi(f.style)?f.style.parsedOptions:n.time.medium;u.push({type:Oe.literal,value:r.getDateTimeFormat(t,v).format(c)});continue}if(xa(f)){var v=typeof f.style=="string"?n.number[f.style]:Ma(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(c=c*(v.scale||1)),u.push({type:Oe.literal,value:r.getNumberFormat(t,v).format(c)});continue}if(Ta(f)){var _=f.children,x=f.value,h=i[x];if(!G0(h))throw new k0(x,"function",o);var g=vn(_,t,r,n,i,s),A=h(g.map(function(I){return I.value}));Array.isArray(A)||(A=[A]),u.push.apply(u,A.map(function(I){return{type:typeof I=="string"?Oe.literal:Oe.object,value:I}}))}if(Sa(f)){var M=f.options[c]||f.options.other;if(!M)throw new Ls(f.value,c,Object.keys(f.options),o);u.push.apply(u,vn(M.value,t,r,n,i));continue}if(Ca(f)){var M=f.options["=".concat(c)];if(!M){if(!Intl.PluralRules)throw new Fn(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,Hr.MISSING_INTL_API,o);var G=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));M=f.options[G]||f.options.other}if(!M)throw new Ls(f.value,c,Object.keys(f.options),o);u.push.apply(u,vn(M.value,t,r,n,i,c-(f.offset||0)));continue}}return F0(u)}function j0(e,t){return t?bt(bt(bt({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=bt(bt({},e[n]),t[n]||{}),r},{})):e}function V0(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=j0(e[n],t[n]),r},bt({},e)):e}function fi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Y0(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.number),strategy:ui.variadic}),getDateTimeFormat:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.dateTime),strategy:ui.variadic}),getPluralRules:ai(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,oi([void 0],r,!1)))},{cache:fi(e.pluralRules),strategy:ui.variadic})}}var z0=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(a){var l=s.formatToParts(a);if(l.length===1)return l[0].value;var f=l.reduce(function(d,c){return!d.length||c.type!==Oe.literal||typeof d[d.length-1]!="string"?d.push(c.value):d[d.length-1]+=c.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(a){return vn(s.ast,s.locales,s.formatters,s.formats,a,void 0,s.message)},this.resolvedOptions=function(){var a;return{locale:((a=s.resolvedLocale)===null||a===void 0?void 0:a.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),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 u=t0(o,["formatters"]);this.ast=e.__parse(t,bt(bt({},u),{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=V0(e.formats,n),this.formatters=i&&i.formatters||Y0(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 r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=D0,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 Z0(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Ft={},X0=(e,t,r)=>r&&(t in Ft||(Ft[t]={}),e in Ft[t]||(Ft[t][e]=r),r),La=(e,t)=>{if(t==null)return;if(t in Ft&&e in Ft[t])return Ft[t][e];const r=Gn(t);for(let n=0;n<r.length;n++){const i=r[n],s=q0(i,e);if(s)return X0(e,t,s)}};let ns;const Pr=Dn({});function W0(e){return ns[e]||null}function Ia(e){return e in ns}function q0(e,t){if(!Ia(e))return null;const r=W0(e);return Z0(r,t)}function J0(e){if(e==null)return;const t=Gn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ia(n))return n}}function is(e,...t){delete Ft[e],Pr.update(r=>(r[e]=e0.all([r[e]||{},...t]),r))}$r([Pr],([e])=>Object.keys(e));Pr.subscribe(e=>ns=e);const mn={};function Q0(e,t){mn[e].delete(t),mn[e].size===0&&delete mn[e]}function Na(e){return mn[e]}function K0(e){return Gn(e).map(t=>{const r=Na(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ri(e){return e==null?!1:Gn(e).some(t=>{var r;return(r=Na(t))==null?void 0:r.size})}function ef(e,t){return Promise.all(t.map(n=>(Q0(e,n),n().then(i=>i.default||i)))).then(n=>is(e,...n))}const Fr={};function Da(e){if(!Ri(e))return e in Fr?Fr[e]:Promise.resolve();const t=K0(e);return Fr[e]=Promise.all(t.map(([r,n])=>ef(r,n))).then(()=>{if(Ri(e))return Da(e);delete Fr[e]}),Fr[e]}const tf={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"}}},rf={fallbackLocale:null,loadingDelay:200,formats:tf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},nf=rf;function Br(){return nf}const hi=Dn(!1);var sf=Object.defineProperty,of=Object.defineProperties,af=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ff=(e,t)=>{for(var r in t||(t={}))uf.call(t,r)&&Ns(e,r,t[r]);if(Is)for(var r of Is(t))lf.call(t,r)&&Ns(e,r,t[r]);return e},hf=(e,t)=>of(e,af(t));let Li;const Cn=Dn(null);function Ds(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Gn(e,t=Br().fallbackLocale){const r=Ds(e);return t?[...new Set([...r,...Ds(t)])]:r}function hr(){return Li!=null?Li:void 0}Cn.subscribe(e=>{Li=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const cf=e=>{if(e&&J0(e)&&Ri(e)){const{loadingDelay:t}=Br();let r;return typeof window!="undefined"&&hr()!=null&&t?r=window.setTimeout(()=>hi.set(!0),t):hi.set(!0),Da(e).then(()=>{Cn.set(e)}).finally(()=>{clearTimeout(r),hi.set(!1)})}return Cn.set(e)},Pt=hf(ff({},Cn),{set:cf}),jn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var df=Object.defineProperty,Tn=Object.getOwnPropertySymbols,ka=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,ks=(e,t,r)=>t in e?df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ss=(e,t)=>{for(var r in t||(t={}))ka.call(t,r)&&ks(e,r,t[r]);if(Tn)for(var r of Tn(t))Ua.call(t,r)&&ks(e,r,t[r]);return e},Rr=(e,t)=>{var r={};for(var n in e)ka.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Tn)for(var n of Tn(e))t.indexOf(n)<0&&Ua.call(e,n)&&(r[n]=e[n]);return r};const qr=(e,t)=>{const{formats:r}=Br();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=qr("number",n)),new Intl.NumberFormat(r,i)}),vf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=qr("date",n):Object.keys(i).length===0&&(i=qr("date","short")),new Intl.DateTimeFormat(r,i)}),mf=jn(e=>{var t=e,{locale:r,format:n}=t,i=Rr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=qr("time",n):Object.keys(i).length===0&&(i=qr("time","short")),new Intl.DateTimeFormat(r,i)}),gf=(e={})=>{var t=e,{locale:r=hr()}=t,n=Rr(t,["locale"]);return pf(ss({locale:r},n))},yf=(e={})=>{var t=e,{locale:r=hr()}=t,n=Rr(t,["locale"]);return vf(ss({locale:r},n))},bf=(e={})=>{var t=e,{locale:r=hr()}=t,n=Rr(t,["locale"]);return mf(ss({locale:r},n))},_f=jn((e,t=hr())=>new z0(e,t,Br().formats,{ignoreTag:Br().ignoreTag})),xf=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:u,locale:a=hr(),default:l}=o;if(a==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=La(e,a);if(!f)f=(s=(i=(n=(r=Br()).handleMissingMessage)==null?void 0:n.call(r,{locale:a,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!u)return f;let d=f;try{d=_f(f,a).format(u)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},wf=(e,t)=>bf(t).format(e),Ef=(e,t)=>yf(t).format(e),Sf=(e,t)=>gf(t).format(e),Cf=(e,t=hr())=>La(e,t),Fa=$r([Pt,Pr],()=>xf);$r([Pt],()=>wf);$r([Pt],()=>Ef);$r([Pt],()=>Sf);$r([Pt,Pr],()=>Cf);function Tf({withLocale:e,translations:t}){Pt.subscribe(r=>{r==null&&(Pr.set(t),Pt.set(e))})}function Us(e,t){is(e,t)}function Fs(e){Pt.set(e)}const Gs={en:{totalPrizes:"Total prizes",viewPrizes:"View Prizes",moreGames:"More Games",play:"Play",joinButton:"Join",rules:"Rules",scoreCriteriaType:{stake:"The score criteria for this tournament is <b>Turnover</b>. For each X generated (X= amount wagered in player currency or equivalent in base currency) player will get 1 point. The player who will have the largest turnover will have the highest score and rank.",mostRounds:"The score criteria for this tournament is <b>Most Rounds</b>. For every played round player will get 1 point. The player who will have the biggest number of played rounds / placed bets will have the highest score and rank.",winStakeRatio:`The score criteria for this tournament is <b>Win/Stake Ratio</b>. The score will be calculated
6
+ as a sum of win/stake ratios for qualified rounds and bets.
7
+ The player who got the highest score will win the tournament.`,winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
8
+ <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
9
+ minimum score value.</span>
10
+ </li></ul>`,maxWinStakeRatio:"The score criteria for this tournament is <b>Max Win/Stake Ratio</b>. The player who got the biggest win by placing the smallest bet will win the tournament (bet = 10 EUR, win = 5000 EUR, the score will be 500). Only higher ratio will update the player's score.",win:`The score criteria for this tournament is <b>Winnings</b>. The score will be calculated based on the sum of all bet winnings with the qualifying rounds/bets.
11
+ For example, a player has two qualifying rounds. he won €1 in one round and €3 in another. In this case.
12
+ the score will be calculated as 1+3=4.`,winBetCount:`The score criteria for this tournament is <b>Winnings and Number of Rounds</b>. The score will be calculated based on the sum of all bet winnings and rounds number with the qualifying
13
+ rounds/bets. For example, a player has two qualifying rounds. he won €1 in one round and €3 in another.
14
+ In this case. the score will be calculated as 1+3+2=6.`},miniBetCount:"Minimum bet count: <b>{betCount}</b>. To be qualified for prizes, the player has to play at least <b>{betCount} rounds</b>, otherwise the prize won’t be granted.",timePeriod:"The tournament starts at <b>{startTime}</b> and ends at <b>{endTime}</b>",terms:'See <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Terms & Conditions.</a>',productNoLimitsBet:"For {productName}, there are no minimum and maximum bet limits set.",casinoRuleMinMaxBet:"Min bet{minBet}, Max bet{maxBet}",unlimited:"Unlimited",forCasino:"For Casino Games",forSportsbook:"For Sportsbook",sportsRuleMinMaxBet:"Min bet{sportMinBet}, Max bet{sportMaxBet}",sportsRuleMinMaxOdds:"Min Odds{sportMinOdds}, Max Odds{sportMaxOdds}",matchTyppePre:"Prelive Sports bets",matchTypeLive:"Live Sports bets",matchTypePreAndLive:"Prelive and Live Sport bets",betTypeSingle:"Single bet",betTypeMultiple:"Multiple bet",betTypeSystem:"System bet",typeOfSelection:"Type of selection",numberOfSelection:"Number of selections",oddsPerSelection:"Odds per selections",betBuilderOnly:"Bet Builder Only",bankerOnly:"Banker Only",typeOfSelectionAny:"Any",notBuilderOnly:"Not Bet Builder Only",nonBankerOnly:"Non Banker Only"},tr:{totalPrizes:"Toplam Ödüller",viewPrizes:"Ödülleri Görüntüle",moreGames:"Daha Fazla Oyun",play:"Oyna",joinButton:"Katıl",scoreCriteriaType:{stake:"Bu turnuvanın puan kriteri <b>Ciro</b>'dur. Oluşturulan her X için (X= oyuncunun para biriminde veya temel para birimindeki eşdeğerinde oynanan bahis miktarı) oyuncu 1 puan alacaktır. En fazla ciroya sahip olan oyuncu en yüksek puana ve sıralamaya sahip olacaktır.",mostRounds:"Bu turnuvanın puan kriteri <b>En Çok Tur</b>'dur. Oynanan her tur için oyuncu 1 puan alacaktır. En fazla oynanan tur/bahis sayısına sahip olan oyuncu, en yüksek puana ve sıralamaya sahip olacaktır.",winStakeRatio:"Bu turnuvanın puan kriteri <b>Galibiyet/Durum Oranı</b>'dır. Puan, nitelikli turlar ve bahisler için kazanma/bahis oranlarının toplamı olarak hesaplanacaktır. En yüksek puanı alan oyuncu turnuvayı kazanacak.",winStakeRatioWinMinScore:`<ul class="ScoreTypeUL"><li class="ScoreTypeLI">Minimum Score: {minScore} <br/>
15
+ <span class="Desc">Player will not get score if Win/Stake Ratio in each rounds are lower than defined
16
+ minimum score value.</span>
17
+ </li></ul>`,maxWinStakeRatio:"Bu turnuvanın puan kriteri <b>Maksimum Galibiyet/Durum Oranı</b>'dır. En küçük bahsi koyarak en büyük kazancı elde eden oyuncu turnuvayı kazanacaktır (bahis = 10 EUR, galibiyet = 5000 EUR, skor 500 olacaktır). Yalnızca daha yüksek oran oyuncunun puanını güncelleyecektir."},miniBetCount:"Minimum bahis sayısı: <b>{betCount}</b>. Ödüllere hak kazanmak için oyuncunun en az <b>{betCount} tur</b> oynaması gerekir, aksi takdirde ödül verilmeyecektir.",timePeriod:"Turnuva <b>{startTime}</b> tarihinde başlar ve <b>{endTime}</b> tarihinde sona erer",terms:'Bkz. <a href="{tcUrl}" target="_blank" style="color: var(--emw-color-primary, #FF1D4E); font-weight: 500;">Şartlar ve Koşullar.</a>',productNoLimitsBet:"{productName} için minimum ve maksimum bahis limiti belirlenmemiştir.",casinoRuleMinMaxBet:"Min bahis{minBet}, Maks bahis{maxBet}",unlimited:"Sınırsız",forCasino:"Casino Oyunları İçin",forSportsbook:"Spor Bahisleri İçin",sportsRuleMinMaxBet:"Min bahis{sportMinBet}, Maks bahis{sportMaxBet}",sportsRuleMinMaxOdds:"Min Oran{sportMinOdds}, Maks Oran{sportMaxOdds}",matchTyppePre:"Maç Öncesi Spor bahisleri",matchTypeLive:"Canlı Spor bahisleri",matchTypePreAndLive:"Maç Öncesi ve Canlı Spor bahisleri",betTypeSingle:"Tekli bahis",betTypeMultiple:"Kombine bahis",betTypeSystem:"Sistem bahis",typeOfSelection:"Seçim türü",numberOfSelection:"Seçim sayısı",oddsPerSelection:"Seçim başına oranlar",betBuilderOnly:"Yalnızca Bahis Oluşturucu",bankerOnly:"Yalnızca Banker",typeOfSelectionAny:"Herhangi",notBuilderOnly:"Bahis Oluşturucu Hariç",nonBankerOnly:"Banker Hariç"}};/*! *****************************************************************************
18
+ Copyright (c) Microsoft Corporation.
19
+
20
+ Permission to use, copy, modify, and/or distribute this software for any
21
+ purpose with or without fee is hereby granted.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
+ PERFORMANCE OF THIS SOFTWARE.
30
+ ***************************************************************************** */var Ii=function(e,t){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ii(e,t)};function sn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ii(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ni(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Di(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function ki(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||t)}function Bt(e){return typeof e=="function"}function Ga(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ci=Ga(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
31
+ `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
32
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Ui(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Vn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var u=Ni(o),a=u.next();!a.done;a=u.next()){var l=a.value;l.remove(this)}}catch(x){t={error:x}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(Bt(f))try{f()}catch(x){s=x instanceof ci?x.errors:[x]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var c=Ni(d),v=c.next();!v.done;v=c.next()){var _=v.value;try{js(_)}catch(x){s=s!=null?s:[],x instanceof ci?s=ki(ki([],Di(s)),Di(x.errors)):s.push(x)}}}catch(x){n={error:x}}finally{try{v&&!v.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(s)throw new ci(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)js(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Ui(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Ui(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ja=Vn.EMPTY;function Va(e){return e instanceof Vn||e&&"closed"in e&&Bt(e.remove)&&Bt(e.add)&&Bt(e.unsubscribe)}function js(e){Bt(e)?e():e.unsubscribe()}var Mf={Promise:void 0},Of={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ki([e,t],Di(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Af(e){Of.setTimeout(function(){throw e})}function Vs(){}function gn(e){e()}var Ya=function(e){sn(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Va(r)&&r.add(n)):n.destination=$f,n}return t.create=function(r,n,i){return new Fi(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},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(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vn),Hf=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){hn(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){hn(n)}else hn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){hn(r)}},e}(),Fi=function(e){sn(t,e);function t(r,n,i){var s=e.call(this)||this,o;return Bt(r)||!r?o={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:o=r,s.destination=new Hf(o),s}return t}(Ya);function hn(e){Af(e)}function Bf(e){throw e}var $f={closed:!0,next:Vs,error:Bf,complete:Vs},Pf=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rf(e){return e}function Lf(e){return e.length===0?Rf:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Ys=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=Nf(t)?t:new Fi(t,r,n);return gn(function(){var o=i,u=o.operator,a=o.source;s.add(u?u.call(s,a):a?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=zs(r),new r(function(i,s){var o=new Fi({next:function(u){try{t(u)}catch(a){s(a),o.unsubscribe()}},error:s,complete:i});n.subscribe(o)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Pf]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Lf(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=zs(t),new t(function(n,i){var s;r.subscribe(function(o){return s=o},function(o){return i(o)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function zs(e){var t;return(t=e!=null?e:Mf.Promise)!==null&&t!==void 0?t:Promise}function If(e){return e&&Bt(e.next)&&Bt(e.error)&&Bt(e.complete)}function Nf(e){return e&&e instanceof Ya||If(e)&&Va(e)}var Df=Ga(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),za=function(e){sn(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Zs(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Df},t.prototype.next=function(r){var n=this;gn(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=Ni(n.currentObservers),u=o.next();!u.done;u=o.next()){var a=u.value;a.next(r)}}catch(l){i={error:l}}finally{try{u&&!u.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;gn(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;gn(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,o=i.isStopped,u=i.observers;return s||o?ja:(this.currentObservers=null,u.push(r),new Vn(function(){n.currentObservers=null,Ui(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,o=n.isStopped;i?r.error(s):o&&r.complete()},t.prototype.asObservable=function(){var r=new Ys;return r.source=this,r},t.create=function(r,n){return new Zs(r,n)},t}(Ys),Zs=function(e){sn(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:ja},t}(za),Za={now:function(){return(Za.delegate||Date).now()},delegate:void 0},kf=function(e){sn(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Za);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return t.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,u=n._timestampProvider,a=n._windowTime;i||(s.push(r),!o&&s.push(u.now()+a)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,o=i._buffer,u=o.slice(),a=0;a<u.length&&!r.closed;a+=s?1:2)r.next(u[a]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,u=(o?1:2)*n;if(n<1/0&&u<s.length&&s.splice(0,s.length-u),!o){for(var a=i.now(),l=0,f=1;f<s.length&&s[f]<=a;f+=2)l=f;l&&s.splice(0,l+1)}},t}(za);const Xs=[],Ws={},Uf=(e,t=0)=>{if(Xs.indexOf(e)==-1){const r=new kf(t);Ws[e]=r,Xs.push(e)}return Ws[e]};window.emWidgets={topic:Uf};const Xa=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;var Wa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rs,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",u="minute",a="hour",l="day",f="week",d="month",c="quarter",v="year",_="date",x="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var y=["th","st","nd","rd"],m=S%100;return"["+S+(y[(m-20)%10]||y[m]||y[0])+"]"}},M=function(S,y,m){var w=String(S);return!w||w.length>=y?S:""+Array(y+1-w.length).join(m)+S},G={s:M,z:function(S){var y=-S.utcOffset(),m=Math.abs(y),w=Math.floor(m/60),b=m%60;return(y<=0?"+":"-")+M(w,2,"0")+":"+M(b,2,"0")},m:function S(y,m){if(y.date()<m.date())return-S(m,y);var w=12*(m.year()-y.year())+(m.month()-y.month()),b=y.clone().add(w,d),C=m-b<0,O=y.clone().add(w+(C?-1:1),d);return+(-(w+(m-b)/(C?b-O:O-b))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:v,w:f,d:l,D:_,h:a,m:u,s:o,ms:s,Q:c}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},I="en",D={};D[I]=A;var V="$isDayjsObject",te=function(S){return S instanceof ne||!(!S||!S[V])},W=function S(y,m,w){var b;if(!y)return I;if(typeof y=="string"){var C=y.toLowerCase();D[C]&&(b=C),m&&(D[C]=m,b=C);var O=y.split("-");if(!b&&O.length>1)return S(O[0])}else{var P=y.name;D[P]=y,b=P}return!w&&b&&(I=b),b||!w&&I},B=function(S,y){if(te(S))return S.clone();var m=typeof y=="object"?y:{};return m.date=S,m.args=arguments,new ne(m)},H=G;H.l=W,H.i=te,H.w=function(S,y){return B(S,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var ne=function(){function S(m){this.$L=W(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[V]=!0}var y=S.prototype;return y.parse=function(m){this.$d=function(w){var b=w.date,C=w.utc;if(b===null)return new Date(NaN);if(H.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var O=b.match(h);if(O){var P=O[2]-1||0,re=(O[7]||"0").substring(0,3);return C?new Date(Date.UTC(O[1],P,O[3]||1,O[4]||0,O[5]||0,O[6]||0,re)):new Date(O[1],P,O[3]||1,O[4]||0,O[5]||0,O[6]||0,re)}}return new Date(b)}(m),this.init()},y.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},y.$utils=function(){return H},y.isValid=function(){return this.$d.toString()!==x},y.isSame=function(m,w){var b=B(m);return this.startOf(w)<=b&&b<=this.endOf(w)},y.isAfter=function(m,w){return B(m)<this.startOf(w)},y.isBefore=function(m,w){return this.endOf(w)<B(m)},y.$g=function(m,w,b){return H.u(m)?this[w]:this.set(b,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,w){var b=this,C=!!H.u(w)||w,O=H.p(m),P=function(z,Q){var $=H.w(b.$u?Date.UTC(b.$y,Q,z):new Date(b.$y,Q,z),b);return C?$:$.endOf(l)},re=function(z,Q){return H.w(b.toDate()[z].apply(b.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(Q)),b)},oe=this.$W,de=this.$M,Ee=this.$D,Ke="set"+(this.$u?"UTC":"");switch(O){case v:return C?P(1,0):P(31,11);case d:return C?P(1,de):P(0,de+1);case f:var Ge=this.$locale().weekStart||0,T=(oe<Ge?oe+7:oe)-Ge;return P(C?Ee-T:Ee+(6-T),de);case l:case _:return re(Ke+"Hours",0);case a:return re(Ke+"Minutes",1);case u:return re(Ke+"Seconds",2);case o:return re(Ke+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,w){var b,C=H.p(m),O="set"+(this.$u?"UTC":""),P=(b={},b[l]=O+"Date",b[_]=O+"Date",b[d]=O+"Month",b[v]=O+"FullYear",b[a]=O+"Hours",b[u]=O+"Minutes",b[o]=O+"Seconds",b[s]=O+"Milliseconds",b)[C],re=C===l?this.$D+(w-this.$W):w;if(C===d||C===v){var oe=this.clone().set(_,1);oe.$d[P](re),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else P&&this.$d[P](re);return this.init(),this},y.set=function(m,w){return this.clone().$set(m,w)},y.get=function(m){return this[H.p(m)]()},y.add=function(m,w){var b,C=this;m=Number(m);var O=H.p(w),P=function(de){var Ee=B(C);return H.w(Ee.date(Ee.date()+Math.round(de*m)),C)};if(O===d)return this.set(d,this.$M+m);if(O===v)return this.set(v,this.$y+m);if(O===l)return P(1);if(O===f)return P(7);var re=(b={},b[u]=n,b[a]=i,b[o]=r,b)[O]||1,oe=this.$d.getTime()+m*re;return H.w(oe,this)},y.subtract=function(m,w){return this.add(-1*m,w)},y.format=function(m){var w=this,b=this.$locale();if(!this.isValid())return b.invalidDate||x;var C=m||"YYYY-MM-DDTHH:mm:ssZ",O=H.z(this),P=this.$H,re=this.$m,oe=this.$M,de=b.weekdays,Ee=b.months,Ke=b.meridiem,Ge=function(Q,$,le,Ne){return Q&&(Q[$]||Q(w,C))||le[$].slice(0,Ne)},T=function(Q){return H.s(P%12||12,Q,"0")},z=Ke||function(Q,$,le){var Ne=Q<12?"AM":"PM";return le?Ne.toLowerCase():Ne};return C.replace(g,function(Q,$){return $||function(le){switch(le){case"YY":return String(w.$y).slice(-2);case"YYYY":return H.s(w.$y,4,"0");case"M":return oe+1;case"MM":return H.s(oe+1,2,"0");case"MMM":return Ge(b.monthsShort,oe,Ee,3);case"MMMM":return Ge(Ee,oe);case"D":return w.$D;case"DD":return H.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return Ge(b.weekdaysMin,w.$W,de,2);case"ddd":return Ge(b.weekdaysShort,w.$W,de,3);case"dddd":return de[w.$W];case"H":return String(P);case"HH":return H.s(P,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return z(P,re,!0);case"A":return z(P,re,!1);case"m":return String(re);case"mm":return H.s(re,2,"0");case"s":return String(w.$s);case"ss":return H.s(w.$s,2,"0");case"SSS":return H.s(w.$ms,3,"0");case"Z":return O}return null}(Q)||O.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,w,b){var C,O=this,P=H.p(w),re=B(m),oe=(re.utcOffset()-this.utcOffset())*n,de=this-re,Ee=function(){return H.m(O,re)};switch(P){case v:C=Ee()/12;break;case d:C=Ee();break;case c:C=Ee()/3;break;case f:C=(de-oe)/6048e5;break;case l:C=(de-oe)/864e5;break;case a:C=de/i;break;case u:C=de/n;break;case o:C=de/r;break;default:C=de}return b?C:H.a(C)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return D[this.$L]},y.locale=function(m,w){if(!m)return this.$L;var b=this.clone(),C=W(m,w,!0);return C&&(b.$L=C),b},y.clone=function(){return H.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},S}(),ie=ne.prototype;return B.prototype=ie,[["$ms",s],["$s",o],["$m",u],["$H",a],["$W",l],["$M",d],["$y",v],["$D",_]].forEach(function(S){ie[S[1]]=function(y){return this.$g(y,S[0],S[1])}}),B.extend=function(S,y){return S.$i||(S(y,ne,B),S.$i=!0),B},B.locale=W,B.isDayjs=te,B.unix=function(S){return B(1e3*S)},B.en=D[I],B.Ls=D,B.p={},B})})(Wa);var Ff=Wa.exports;const os=kn(Ff);var qa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rs,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,o=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,a={},l=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(g){this[h]=+g}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var A=g.match(/([+-]|\d\d)/g),M=60*A[1]+(+A[2]||0);return M===0?0:A[0]==="+"?-M:M}(h)}],c=function(h){var g=a[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var A,M=a.meridiem;if(M){for(var G=1;G<=24;G+=1)if(h.indexOf(M(G,0,g))>-1){A=G>12;break}}else A=h===(g?"pm":"PM");return A},_={A:[u,function(h){this.afternoon=v(h,!1)}],a:[u,function(h){this.afternoon=v(h,!0)}],Q:[i,function(h){this.month=3*(h-1)+1}],S:[i,function(h){this.milliseconds=100*+h}],SS:[s,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[s,f("day")],Do:[u,function(h){var g=a.ordinal,A=h.match(/\d+/);if(this.day=A[0],g)for(var M=1;M<=31;M+=1)g(M).replace(/\[|\]/g,"")===h&&(this.day=M)}],w:[o,f("week")],ww:[s,f("week")],M:[o,f("month")],MM:[s,f("month")],MMM:[u,function(h){var g=c("months"),A=(c("monthsShort")||g.map(function(M){return M.slice(0,3)})).indexOf(h)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[u,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[s,function(h){this.year=l(h)}],YYYY:[/\d{4}/,f("year")],Z:d,ZZ:d};function x(h){var g,A;g=h,A=a&&a.formats;for(var M=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,H,ne){var ie=ne&&ne.toUpperCase();return H||A[ne]||r[ne]||A[ie].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,y,m){return y||m.slice(1)})})).match(n),G=M.length,I=0;I<G;I+=1){var D=M[I],V=_[D],te=V&&V[0],W=V&&V[1];M[I]=W?{regex:te,parser:W}:D.replace(/^\[|\]$/g,"")}return function(B){for(var H={},ne=0,ie=0;ne<G;ne+=1){var S=M[ne];if(typeof S=="string")ie+=S.length;else{var y=S.regex,m=S.parser,w=B.slice(ie),b=y.exec(w)[0];m.call(H,b),B=B.replace(b,"")}}return function(C){var O=C.afternoon;if(O!==void 0){var P=C.hours;O?P<12&&(C.hours+=12):P===12&&(C.hours=0),delete C.afternoon}}(H),H}}return function(h,g,A){A.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(l=h.parseTwoDigitYear);var M=g.prototype,G=M.parse;M.parse=function(I){var D=I.date,V=I.utc,te=I.args;this.$u=V;var W=te[1];if(typeof W=="string"){var B=te[2]===!0,H=te[3]===!0,ne=B||H,ie=te[2];H&&(ie=te[2]),a=this.$locale(),!B&&ie&&(a=A.Ls[ie]),this.$d=function(w,b,C,O){try{if(["x","X"].indexOf(b)>-1)return new Date((b==="X"?1e3:1)*w);var P=x(b)(w),re=P.year,oe=P.month,de=P.day,Ee=P.hours,Ke=P.minutes,Ge=P.seconds,T=P.milliseconds,z=P.zone,Q=P.week,$=new Date,le=de||(re||oe?1:$.getDate()),Ne=re||$.getFullYear(),et=0;re&&!oe||(et=oe>0?oe-1:$.getMonth());var Se,lt=Ee||0,je=Ke||0,ft=Ge||0,Lr=T||0;return z?new Date(Date.UTC(Ne,et,le,lt,je,ft,Lr+60*z.offset*1e3)):C?new Date(Date.UTC(Ne,et,le,lt,je,ft,Lr)):(Se=new Date(Ne,et,le,lt,je,ft,Lr),Q&&(Se=O(Se).week(Q).toDate()),Se)}catch(as){return new Date("")}}(D,W,V,A),this.init(),ie&&ie!==!0&&(this.$L=this.locale(ie).$L),ne&&D!=this.format(W)&&(this.$d=new Date("")),a={}}else if(W instanceof Array)for(var S=W.length,y=1;y<=S;y+=1){te[1]=W[y-1];var m=A.apply(this,te);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}y===S&&(this.$d=new Date(""))}else G.call(this,I)}}})})(qa);var Gf=qa.exports;const Ja=kn(Gf);os.extend(Ja);const qs=e=>os(e).format("MMMM D, HH:mm"),jf=()=>typeof window=="undefined";class Js{constructor(){}static processMinMax(t,r){return{minValue:t?`: ${t}`:null,maxValue:r?`: ${r}`:null}}static generateCasinoRule(t,r){var u,a;const n=` ~ ${t("unlimited")}`,i=r.currency||"EUR",s=(u=r.minStake)!=null&&u.amount[i]?`: ${r.minStake.amount[i]} ${i}`:n,o=(a=r.maxStake)!=null&&a.amount[i]?`: ${r.maxStake.amount[i]} ${i}`:n;return t("casinoRuleMinMaxBet",{values:{minBet:s,maxBet:o}})}static generateSportsRule(t,r){var D,V,te,W,B,H,ne,ie,S,y;const n=[],i=` ~ ${t("unlimited")}`,s=r.currency||"EUR",o=(D=r.minStake)!=null&&D.amount[s]?`: ${r.minStake.amount[s]} ${s}`:i,u=(V=r.maxStake)!=null&&V.amount[s]?`: ${r.maxStake.amount[s]} ${s}`:i;n.push(t("sportsRuleMinMaxBet",{values:{sportMinBet:o,sportMaxBet:u}}));const a=r.config.liveMatch==="true",l=r.config.preLiveMatch==="true";a&&l?n.push(t("matchTypePreAndLive")):a?n.push(`${t("matchTypeLive")}`):l&&n.push(`${t("matchTyppePre")}`);const f=r.combination,d=[];f.single.isEligible&&d.push(t("betTypeSingle"));const v={null:t("typeOfSelectionAny"),true:t("bankerOnly"),false:t("nonBankerOnly")},_={unspecific:t("typeOfSelectionAny"),all:t("betBuilderOnly"),none:t("notBuilderOnly")};let x="",h="";const g=`${t("oddsPerSelection")}: ${r.config.minOdds||t("unlimited")} - ${r.config.maxOdds||t("unlimited")}`,A=f.system.isEligible,M=f.multiple.isEligible;A&&(x=` ${t("betTypeSystem")}
33
+ ( ${t("typeOfSelection")}: ${v[((W=(te=r.combination.system.banker)==null?void 0:te.include)==null?void 0:W.toString())||"null"]},
34
+ ${t("numberOfSelection")}:
35
+ ${((B=f.system.minSelection)==null?void 0:B.number)||t("unlimited")} - ${((H=f.system.maxSelection)==null?void 0:H.number)||t("unlimited")},
36
+ ${g} ) `),M&&(h=` ${t("betTypeMultiple")}
37
+ ( ${t("typeOfSelection")}: ${_[((ie=(ne=r.combination.multiple.betBuilder)==null?void 0:ne.mode)==null?void 0:ie.toString())||"unspecific"]},
38
+ ${t("numberOfSelection")}:
39
+ ${((S=f.multiple.minSelection)==null?void 0:S.number)||t("unlimited")} - ${((y=f.multiple.maxSelection)==null?void 0:y.number)||t("unlimited")},
40
+ ${g} ) `),A&&M?d.push(h+t("and")+x):A?d.push(x):M&&d.push(h),n.push(d.join(", "));const G=r.config.minTotalOdds?`: ${r.config.minTotalOdds}`:i,I=r.config.maxTotalOdds?`: ${r.config.maxTotalOdds}`:i;return n.push(`${t("sportsRuleMinMaxOdds",{values:{sportMinOdds:G,sportMaxOdds:I}})}`),n}}const Vf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%2013.4315C10.4965%2013.4315%2010.8065%2013.7415%2010.8065%2014.1238C10.8065%2014.353%2011.001%2014.7342%2011.708%2015.0993C12.3797%2015.4461%2013.3557%2015.6812%2014.4718%2015.6812C15.5879%2015.6812%2016.5642%2015.4461%2017.2361%2015.0993C17.9435%2014.7342%2018.138%2014.3528%2018.138%2014.1238C18.138%2013.7415%2018.448%2013.4315%2018.8303%2013.4315C19.2126%2013.4315%2019.5226%2013.7415%2019.5226%2014.1238C19.5226%2015.1368%2018.7414%2015.8804%2017.8712%2016.3296C16.9656%2016.7971%2015.7626%2017.0658%2014.4718%2017.0658C13.181%2017.0658%2011.9782%2016.7971%2011.0728%2016.3296C10.2027%2015.8803%209.42185%2015.1367%209.42185%2014.1238C9.42185%2013.7415%209.73182%2013.4315%2010.1142%2013.4315Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%209.1839C4.16841%209.1839%204.47836%209.49386%204.47836%209.8762C4.47836%2010.1058%204.67303%2010.487%205.38022%2010.852C6.05207%2011.1988%207.02836%2011.4337%208.14459%2011.4337C8.52693%2011.4337%208.83689%2011.7436%208.83689%2012.126C8.83689%2012.5083%208.52693%2012.8183%208.14459%2012.8183C6.85387%2012.8183%205.65089%2012.5498%204.74522%2012.0824C3.87488%2011.6333%203.09375%2010.8896%203.09375%209.8762C3.09375%209.49386%203.40371%209.1839%203.78606%209.1839Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.78606%205.25C4.16841%205.25%204.47836%205.55996%204.47836%205.94231V13.8114C4.47836%2014.041%204.67303%2014.4222%205.38022%2014.7872C6.05207%2015.1339%207.02836%2015.3689%208.14459%2015.3689C8.52693%2015.3689%208.83689%2015.6788%208.83689%2016.0612C8.83689%2016.4436%208.52693%2016.7535%208.14459%2016.7535C6.85387%2016.7535%205.65089%2016.485%204.74522%2016.0177C3.87488%2015.5685%203.09375%2014.8249%203.09375%2013.8114V5.94231C3.09375%205.55996%203.40371%205.25%203.78606%205.25Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.38029%204.96658C4.67291%205.33175%204.47836%205.71303%204.47836%205.94207C4.47836%206.17164%204.67303%206.5529%205.38022%206.91786C6.05207%207.2646%207.02836%207.49953%208.14459%207.49953C8.52693%207.49953%208.83689%207.80949%208.83689%208.19184C8.83689%208.57418%208.52693%208.88414%208.14459%208.88414C6.85387%208.88414%205.65089%208.61569%204.74522%208.14829C3.87488%207.69912%203.09375%206.95549%203.09375%205.94207C3.09375%204.92903%203.87499%204.18542%204.74515%203.73624C5.65079%203.26872%206.85377%203%208.14459%203C9.43542%203%2010.6384%203.26872%2011.544%203.73624C12.4142%204.18542%2013.1954%204.92903%2013.1954%205.94207C13.1954%206.32442%2012.8854%206.63438%2012.5031%206.63438C12.1207%206.63438%2011.8108%206.32442%2011.8108%205.94207C11.8108%205.71303%2011.6163%205.33175%2010.9089%204.96658C10.237%204.61973%209.26068%204.38462%208.14459%204.38462C7.02847%204.38462%206.05218%204.61973%205.38029%204.96658Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1142%209.49759C10.4965%209.49759%2010.8065%209.80755%2010.8065%2010.1899V18.0591C10.8065%2018.2887%2011.0011%2018.67%2011.7079%2019.0349C12.3796%2019.3816%2013.3556%2019.6165%2014.4718%2019.6165C15.588%2019.6165%2016.5643%2019.3816%2017.2362%2019.0349C17.9433%2018.6699%2018.138%2018.2886%2018.138%2018.0591V10.1899C18.138%209.80755%2018.448%209.49759%2018.8303%209.49759C19.2126%209.49759%2019.5226%209.80755%2019.5226%2010.1899V18.0591C19.5226%2019.0724%2018.7415%2019.8161%2017.8711%2020.2652C16.9655%2020.7327%2015.7626%2021.0011%2014.4718%2021.0011C13.1811%2021.0011%2011.9783%2020.7327%2011.0729%2020.2652C10.2026%2019.816%209.42185%2019.0723%209.42185%2018.0591V10.1899C9.42185%209.80755%209.73182%209.49759%2010.1142%209.49759Z'%20fill='%23999999'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.708%209.21414C11.001%209.57923%2010.8065%209.96048%2010.8065%2010.1897C10.8065%2010.4189%2011.001%2010.8001%2011.708%2011.1652C12.3797%2011.512%2013.3557%2011.7472%2014.4718%2011.7472C15.5879%2011.7472%2016.5642%2011.512%2017.2361%2011.1652C17.9435%2010.8%2018.138%2010.4187%2018.138%2010.1897C18.138%209.96063%2017.9435%209.57934%2017.2361%209.21418C16.5642%208.86733%2015.5879%208.63221%2014.4718%208.63221C13.3557%208.63221%2012.3797%208.86733%2011.708%209.21414ZM11.0728%207.98387C11.9782%207.51632%2013.181%207.24759%2014.4718%207.24759C15.7626%207.24759%2016.9656%207.51632%2017.8712%207.98383C18.7414%208.43303%2019.5226%209.17662%2019.5226%2010.1897C19.5226%2011.2027%2018.7414%2011.9463%2017.8712%2012.3955C16.9656%2012.863%2015.7626%2013.1318%2014.4718%2013.1318C13.181%2013.1318%2011.9782%2012.863%2011.0728%2012.3954C10.2027%2011.9462%209.42185%2011.2026%209.42185%2010.1897C9.42185%209.17677%2010.2027%208.43314%2011.0728%207.98387Z'%20fill='%23999999'/%3e%3c/svg%3e",Yf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%206.47715%206.47715%202%2012%202ZM15.5361%2013.9111C14.7377%2014.2225%2013.47%2014.4267%2012.042%2014.4268C10.6135%2014.4268%209.34534%2014.2226%208.54688%2013.9111C7.99508%2014.1264%207.66726%2014.3932%207.66699%2014.6836C7.66713%2015.3942%209.62583%2015.9707%2012.042%2015.9707C14.4579%2015.9706%2016.4169%2015.3942%2016.417%2014.6836C16.4167%2014.3932%2016.0882%2014.1264%2015.5361%2013.9111ZM15.5361%2011.3389C14.7377%2011.6501%2013.4698%2011.8535%2012.042%2011.8535C10.6137%2011.8535%209.34537%2011.6503%208.54688%2011.3389C7.99513%2011.5542%207.66699%2011.8199%207.66699%2012.1104C7.66784%2012.8208%209.62627%2013.3975%2012.042%2013.3975C14.4575%2013.3974%2016.4161%2012.8208%2016.417%2012.1104C16.417%2011.8199%2016.0881%2011.5542%2015.5361%2011.3389ZM12.042%208.25C9.62575%208.25%207.66699%208.82645%207.66699%209.53711C7.66763%2010.2476%209.62614%2010.8232%2012.042%2010.8232C14.4576%2010.8232%2016.4164%2010.2476%2016.417%209.53711C16.417%208.8265%2014.458%208.25008%2012.042%208.25Z'%20fill='%23999999'/%3e%3c/svg%3e",zf="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.3098%207.23828L5.84025%202.76374L1.3727%207.23828L0%205.8605L5.84025%200.000186443L11.6825%205.8605L10.3098%207.23828Z'%20fill='white'/%3e%3c/svg%3e",Zf="data:image/svg+xml,%3csvg%20width='12'%20height='8'%20viewBox='0%200%2012%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.37278%200L5.84236%204.47454L10.3099%200L11.6826%201.37778L5.84236%207.23809L7.72476e-05%201.37778L1.37278%200Z'%20fill='white'/%3e%3c/svg%3e",Xf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.55556%204C6.32986%204%205.33333%204.96094%205.33333%206.14286V13.6429C5.33333%2014.8248%206.32986%2015.7857%207.55556%2015.7857H19.7778C21.0035%2015.7857%2022%2014.8248%2022%2013.6429V6.14286C22%204.96094%2021.0035%204%2019.7778%204H7.55556ZM13.6667%207.21429C15.2014%207.21429%2016.4444%208.41295%2016.4444%209.89286C16.4444%2011.3728%2015.2014%2012.5714%2013.6667%2012.5714C12.1319%2012.5714%2010.8889%2011.3728%2010.8889%209.89286C10.8889%208.41295%2012.1319%207.21429%2013.6667%207.21429ZM7.55556%208.01786V6.41071C7.55556%206.26339%207.68056%206.14286%207.83333%206.14286H9.5C9.65278%206.14286%209.78125%206.26339%209.76042%206.41071C9.63542%207.3817%208.83681%208.14844%207.83333%208.26897C7.68056%208.28571%207.55556%208.16518%207.55556%208.01786ZM7.55556%2011.7679C7.55556%2011.6205%207.68056%2011.4967%207.83333%2011.5167C8.84028%2011.6373%209.63542%2012.4074%209.76042%2013.375C9.77778%2013.5223%209.65278%2013.6429%209.5%2013.6429H7.83333C7.68056%2013.6429%207.55556%2013.5223%207.55556%2013.375V11.7679ZM19.5%208.26897C18.4931%208.14844%2017.6979%207.37835%2017.5729%206.41071C17.5556%206.26339%2017.6806%206.14286%2017.8333%206.14286H19.5C19.6528%206.14286%2019.7778%206.26339%2019.7778%206.41071V8.01786C19.7778%208.16518%2019.6528%208.28906%2019.5%208.26897ZM19.7778%2011.7679V13.375C19.7778%2013.5223%2019.6528%2013.6429%2019.5%2013.6429H17.8333C17.6806%2013.6429%2017.5521%2013.5223%2017.5729%2013.375C17.6979%2012.404%2018.4965%2011.6373%2019.5%2011.5167C19.6528%2011.5%2019.7778%2011.6205%2019.7778%2011.7679ZM3.66667%208.01786C3.66667%207.57254%203.29514%207.21429%202.83333%207.21429C2.37153%207.21429%202%207.57254%202%208.01786V16.8571C2%2018.0391%202.99653%2019%204.22222%2019H17.8333C18.2951%2019%2018.6667%2018.6417%2018.6667%2018.1964C18.6667%2017.7511%2018.2951%2017.3929%2017.8333%2017.3929H4.22222C3.91667%2017.3929%203.66667%2017.1518%203.66667%2016.8571V8.01786Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Wf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%208.16216V8.23516C22%209.09516%2022%209.52616%2021.793%209.87816C21.586%2010.2302%2021.209%2010.4392%2020.457%2010.8582L19.664%2011.2982C20.21%209.45016%2020.393%207.46416%2020.46%205.76616L20.47%205.54516L20.472%205.49316C21.123%205.71916%2021.489%205.88816%2021.717%206.20416C22%206.59716%2022%207.11916%2022%208.16216ZM2%208.16216V8.23516C2%209.09516%202%209.52616%202.207%209.87816C2.414%2010.2302%202.791%2010.4392%203.543%2010.8582L4.337%2011.2982C3.79%209.45016%203.607%207.46416%203.54%205.76616L3.53%205.54516L3.529%205.49316C2.877%205.71916%202.511%205.88816%202.283%206.20416C2%206.59716%202%207.12016%202%208.16216Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3774%202.34723C14.9305%202.11022%2013.4665%201.99415%2012.0004%202.00023C10.2174%202.00023%208.74737%202.15723%207.62337%202.34723C6.48437%202.53923%205.91537%202.63523%205.43937%203.22123C4.96437%203.80723%204.98937%204.44023%205.03937%205.70623C5.21237%2010.0542%206.15037%2015.4862%2011.2504%2015.9662V19.5002H9.82037C9.58928%2019.5004%209.36537%2019.5805%209.18671%2019.7271C9.00805%2019.8737%208.88567%2020.0776%208.84037%2020.3042L8.65037%2021.2502H6.00037C5.80146%2021.2502%205.61069%2021.3292%205.47004%2021.4699C5.32939%2021.6105%205.25037%2021.8013%205.25037%2022.0002C5.25037%2022.1991%205.32939%2022.3899%205.47004%2022.5306C5.61069%2022.6712%205.80146%2022.7502%206.00037%2022.7502H18.0004C18.1993%2022.7502%2018.3901%2022.6712%2018.5307%2022.5306C18.6714%2022.3899%2018.7504%2022.1991%2018.7504%2022.0002C18.7504%2021.8013%2018.6714%2021.6105%2018.5307%2021.4699C18.3901%2021.3292%2018.1993%2021.2502%2018.0004%2021.2502H15.3504L15.1604%2020.3042C15.1151%2020.0776%2014.9927%2019.8737%2014.814%2019.7271C14.6354%2019.5805%2014.4115%2019.5004%2014.1804%2019.5002H12.7504V15.9662C17.8504%2015.4862%2018.7894%2010.0552%2018.9614%205.70623C19.0114%204.44023%2019.0374%203.80623%2018.5614%203.22123C18.0854%202.63523%2017.5164%202.53923%2016.3774%202.34723ZM12.7874%205.80723C12.9244%205.864%2013.0416%205.96014%2013.124%206.08349C13.2064%206.20685%2013.2504%206.35187%2013.2504%206.50023V10.5002C13.2504%2010.6991%2013.1714%2010.8899%2013.0307%2011.0306C12.89%2011.1712%2012.6993%2011.2502%2012.5004%2011.2502C12.3015%2011.2502%2012.1107%2011.1712%2011.97%2011.0306C11.8294%2010.8899%2011.7504%2010.6991%2011.7504%2010.5002V8.31023L11.5304%208.53023C11.4617%208.60391%2011.3789%208.66302%2011.2869%208.70401C11.1949%208.745%2011.0956%208.76704%2010.9949%208.76882C10.8942%208.7706%2010.7942%208.75207%2010.7008%208.71435C10.6074%208.67663%2010.5226%208.62048%2010.4513%208.54926C10.3801%208.47805%2010.324%208.39321%2010.2862%208.29982C10.2485%208.20644%2010.23%208.10641%2010.2318%208.0057C10.2336%207.905%2010.2556%207.80569%2010.2966%207.71369C10.3376%207.62169%2010.3967%207.53889%2010.4704%207.47023L11.9704%205.97023C12.0752%205.86533%2012.2087%205.79387%2012.3542%205.76485C12.4996%205.73584%2012.6503%205.75059%2012.7874%205.80723Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",qf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.3226%202.25641C14.3226%202.18841%2014.2954%202.12319%2014.247%202.0751C14.1986%202.02701%2014.133%202%2014.0645%202H6.83871C6.08584%202%205.3638%202.29716%204.83144%202.82611C4.29908%203.35506%204%204.07247%204%204.82051V19.1795C4%2019.9275%204.29908%2020.6449%204.83144%2021.1739C5.3638%2021.7028%206.08584%2022%206.83871%2022H17.1613C17.9142%2022%2018.6362%2021.7028%2019.1686%2021.1739C19.7009%2020.6449%2020%2019.9275%2020%2019.1795V9.07385C20%209.00584%2019.9728%208.94062%2019.9244%208.89254C19.876%208.84445%2019.8104%208.81744%2019.7419%208.81744H15.0968C14.8914%208.81744%2014.6945%208.73639%2014.5493%208.59213C14.4041%208.44787%2014.3226%208.25222%2014.3226%208.04821V2.25641ZM15.0968%2012.2564C15.3021%2012.2564%2015.499%2012.3375%2015.6442%2012.4817C15.7894%2012.626%2015.871%2012.8216%2015.871%2013.0256C15.871%2013.2297%2015.7894%2013.4253%2015.6442%2013.5696C15.499%2013.7138%2015.3021%2013.7949%2015.0968%2013.7949H8.90323C8.6979%2013.7949%208.50098%2013.7138%208.35579%2013.5696C8.2106%2013.4253%208.12903%2013.2297%208.12903%2013.0256C8.12903%2012.8216%208.2106%2012.626%208.35579%2012.4817C8.50098%2012.3375%208.6979%2012.2564%208.90323%2012.2564H15.0968ZM15.0968%2016.359C15.3021%2016.359%2015.499%2016.44%2015.6442%2016.5843C15.7894%2016.7285%2015.871%2016.9242%2015.871%2017.1282C15.871%2017.3322%2015.7894%2017.5279%2015.6442%2017.6721C15.499%2017.8164%2015.3021%2017.8974%2015.0968%2017.8974H8.90323C8.6979%2017.8974%208.50098%2017.8164%208.35579%2017.6721C8.2106%2017.5279%208.12903%2017.3322%208.12903%2017.1282C8.12903%2016.9242%208.2106%2016.7285%208.35579%2016.5843C8.50098%2016.44%208.6979%2016.359%208.90323%2016.359H15.0968Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20d='M15.75%202.82396C15.75%202.63996%2015.943%202.52296%2016.086%202.63796C16.2073%202.73596%2016.315%202.84996%2016.409%202.97996L19.422%207.17696C19.49%207.27296%2019.416%207.39696%2019.298%207.39696H16C15.9337%207.39696%2015.8701%207.37062%2015.8232%207.32373C15.7763%207.27685%2015.75%207.21326%2015.75%207.14696V2.82396Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e",Jf="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.8421%2015.8636L17.5516%2017.4L16.8411%2018.5091L13.4211%2016.5455V12H14.8421V15.8636ZM21%2015.6364C21%2019.1545%2018.0347%2022%2014.3684%2022C12.5589%2022%2010.9295%2021.3091%209.73579%2020.1818H4.89474C3.84316%2020.1818%203%2019.3727%203%2018.3636V3.81818C3%203.33597%203.19962%202.87351%203.55496%202.53253C3.91029%202.19156%204.39222%202%204.89474%202H5.84211V8.36364L8.21053%207L10.5789%208.36364V2H16.2632C16.7657%202%2017.2476%202.19156%2017.6029%202.53253C17.9583%202.87351%2018.1579%203.33597%2018.1579%203.81818V10.4182C19.8726%2011.5727%2021%2013.4727%2021%2015.6364ZM19.1053%2015.6364C19.1053%2013.1273%2016.9832%2011.0909%2014.3684%2011.0909C11.7537%2011.0909%209.63158%2013.1273%209.63158%2015.6364C9.63158%2018.1455%2011.7537%2020.1818%2014.3684%2020.1818C16.9832%2020.1818%2019.1053%2018.1455%2019.1053%2015.6364Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/svg%3e";if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./TournamentLeaderboard-Q44uv2lQ.cjs")).then(({default:t})=>{!customElements.get("tournament-leaderboard")&&customElements.define("tournament-leaderboard",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./TournamentDetails--114uLDg.cjs")).then(({default:t})=>{!customElements.get("tournament-details")&&customElements.define("tournament-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./TournamentGames--p8n0yMO.cjs")).then(({default:t})=>{!customElements.get("tournament-games")&&customElements.define("tournament-games",t.element)})}var Qf=wt('<span class="Spinner svelte-gxy8gu"></span>'),Kf=wt("<button><!></button>"),e2=wt('<div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!>: <span class="RuleContent svelte-gxy8gu"> </span></div></div>'),t2=wt('<li class="RuleTxt svelte-gxy8gu"> </li>'),r2=wt('<div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!>: <ul class="SportsRules svelte-gxy8gu"></ul></div></div>'),n2=wt('<div class="TournamemntRulesContent svelte-gxy8gu"><div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="svelte-gxy8gu"><!> <!> <!> <!> <!> <!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <div class="TournamentRuleRow svelte-gxy8gu"><div class="RuleIcon svelte-gxy8gu"><img alt="Icon" class="svelte-gxy8gu"/></div> <div class="RuleText svelte-gxy8gu"><!></div></div> <!> <!></div>'),i2=wt('<div class="DetailsWrapper svelte-gxy8gu"><tournament-details></tournament-details> <!></div> <div class="LeaderboardWrapper svelte-gxy8gu"><tournament-leaderboard></tournament-leaderboard></div> <div class="TournamentRulesWrapper svelte-gxy8gu"><button class="TournamentRulesHeader svelte-gxy8gu"><span class="TournamemntRulesTitle svelte-gxy8gu"> </span> <img alt="Icon" class="Icon svelte-gxy8gu"/></button> <!></div> <div class="GamesWrapper svelte-gxy8gu"><tournament-games></tournament-games></div>',3),s2=wt('<div class="SkeletonWrapper svelte-gxy8gu"><div class="Skeleton Details svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Leaderboard svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Rules svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div> <div class="Skeleton Games svelte-gxy8gu"><div class="SkeletonShimmer svelte-gxy8gu"></div></div></div>'),o2=wt('<div class="TournamentDetailsPageWrapper svelte-gxy8gu"><!> <!></div>');const a2={hash:"svelte-gxy8gu",code:`.svelte-gxy8gu,
41
+ .svelte-gxy8gu::before,
42
+ .svelte-gxy8gu::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.SkeletonWrapper.svelte-gxy8gu {display:flex;flex-direction:column;justify-content:space-between;gap:10px;}.Skeleton.svelte-gxy8gu {width:100%;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
43
+ animation: svelte-gxy8gu-pulse 1.5s infinite;&.Details {height:400px;}&.Leaderboard {height:500px;}&.Rules {height:150px;}&.Games {height:300px;}}
44
+
45
+ @keyframes svelte-gxy8gu-pulse {
46
+ 0% {
47
+ opacity: 0;
48
+ }
49
+ 50% {
50
+ opacity: 1;
51
+ }
52
+ 100% {
53
+ opacity: 0;
54
+ }
55
+ }.TournamentDetailsPageWrapper.svelte-gxy8gu {max-width:1300px;margin:auto;background-color:#2C2B2B;padding:10px;border-radius:6px;display:flex;flex-direction:column;gap:10px;.LeaderboardWrapper:where(.svelte-gxy8gu) {min-height:500px;}.GamesWrapper:where(.svelte-gxy8gu) {min-height:200px;}}.DetailsWrapper.svelte-gxy8gu {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding-bottom:16px;min-height:400px;.ViewPrizesContainer:where(.svelte-gxy8gu) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:calc(100% - 32px);margin:auto;padding:10px;}}.ButtonPrimary.svelte-gxy8gu {display:block;width:calc(100% - 32px);margin:auto;background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;text-align:center;text-decoration:none;cursor:pointer;transition:background-color 0.2s ease, transform 0.15s ease;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}&.Enrolled {pointer-events:none;filter:saturate(50%);}}.Spinner.svelte-gxy8gu {display:inline-block;width:16px;height:16px;border:2px solid rgba(255, 255, 255, 0.3);border-top-color:var(--emw-color-typography, #ffffff);border-radius:50%;
56
+ animation: svelte-gxy8gu-spin 0.6s linear infinite;}
57
+
58
+ @keyframes svelte-gxy8gu-spin {
59
+ to { transform: rotate(360deg); }
60
+ }
61
+
62
+ @media (min-width: 1000px) {.ButtonPrimary.svelte-gxy8gu {display:block;width:300px;margin:auto;}
63
+ }.TournamentRulesWrapper.svelte-gxy8gu {border:1px solid var(--emw-color-bg-secondary, #333232);border-radius:4px;overflow:hidden;min-height:40px;.TournamentRulesHeader:where(.svelte-gxy8gu) {width:100%;padding:10px;background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-weight:500;font-size:14px;border:none;text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:1rem;transition:background 0.2s;}.TournamentRulesHeader:where(.svelte-gxy8gu):hover {background:var(--emw-color-bg-elements, #4A4A4A);}.TournamentRulesHeader:where(.svelte-gxy8gu):active {background-color:var(--emw-color-bg-secondary, #333232);}.Icon:where(.svelte-gxy8gu) {width:15px;height:15px;}.TournamemntRulesContent:where(.svelte-gxy8gu) {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography, #ffffff);font-size:12px;font-weight:200;padding:10px;.TournamentRuleRow:where(.svelte-gxy8gu) {display:flex;gap:10px;margin:6px;.RuleText:where(.svelte-gxy8gu) {align-self:center;}.RuleIcon:where(.svelte-gxy8gu) {min-width:24px;min-height:24px;}}}}`};function Qa(e,t){var Ke,Ge;Yi(t,!0),ha(e,a2);const r=()=>pa(Fa,"$_",n),[n,i]=va(),s=St(t,"initialState"),o=St(t,"endpoint"),u=St(t,"language",7,"en"),a=St(t,"session"),l=St(t,"tournamentid"),f=St(t,"gamesLimit",7,6),d=St(t,"platformProp",7,null),c=St(t,"translationurl");Tf({withLocale:"en",translations:{}});const v=()=>{let T=new URL(c());fetch(T.href).then(z=>z.json()).then(z=>{Object.keys(z).forEach(Q=>{Us(Q,z[Q])})}).catch(z=>{console.log(z)})};Object.keys(Gs).forEach(T=>{Us(T,Gs[T])}),Fs(u());const _=()=>{Fs(u())};Ji(()=>{_()}),Go(()=>{c()&&v()});const x=jf()?(Ke=d())!=null?Ke:"dk":Xa(window.navigator.userAgent);let h=fe(At(((Ge=s())==null?void 0:Ge.tournament)||null)),g=fe(!1),A=fe(At([])),M=fe(void 0),G=fe(void 0),I=fe(!1),D=fe(!1),V=fe(!1),te=fe(""),W=fe(void 0),B=fe(void 0),H=fe(At([])),ne=fe(""),ie=fe(!1);const S=()=>{J(ne,E(B)?Js.generateCasinoRule(r(),E(B)):"",!0),J(H,E(W)?Js.generateSportsRule(r(),E(W)):[],!0)},y=()=>ii(this,null,function*(){J(g,!0);const T=new URL(`${o()}/v1/tournaments/${l()}`),z=new Headers;a()&&z.append("X-SessionId",a());const Q={method:"GET",headers:z};T.searchParams.append("language",u()),T.searchParams.append("expand","games"),T.searchParams.append("pagination",`games(limit=${f()},offset=0)`),T.searchParams.append("platform",x),fetch(T,Q).then($=>$.json()).then($=>{var le,Ne,et,Se,lt,je,ft;J(h,$==null?void 0:$.item,!0),J(A,(Ne=(le=$==null?void 0:$.item)==null?void 0:le.games)==null?void 0:Ne.items,!0),J(M,(Se=(et=$==null?void 0:$.item)==null?void 0:et.games)==null?void 0:Se.total,!0),J(G,(lt=$==null?void 0:$.item)==null?void 0:lt.metadata,!0),J(B,(je=$==null?void 0:$.item)==null?void 0:je.wallet.casino,!0),J(W,(ft=$==null?void 0:$.item)==null?void 0:ft.wallet.sports,!0),(E(W)||E(B))&&S()}).catch($=>console.log($)).finally(()=>{J(g,!1)})}),m=()=>{fetch(`${o()}/tournaments/${E(h).id}`,{headers:{"X-SessionID":a()}}).then(T=>T.json()).then(T=>{var z;(z=T==null?void 0:T.item)!=null&&z.playerEnrolled?J(D,!0):(J(V,!0),J(te,T.errorMessage,!0))}).catch(T=>console.log(T))},w=()=>{J(I,!0);const T=new URL(`${o()}/v1/bonus/claim`);T.searchParams.append("language",u()),T.searchParams.append("platform",x);const z=new Headers;z.append("Content-Type","application/json"),z.append("X-SessionID",a());let Q={};E(h).wallets&&E(h).wallets.length>0&&(Q={language:u(),bonusCode:E(h).wallets[0].code,currency:E(h).baseCurrency,type:"tournament"});const $={method:"PUT",headers:z,body:JSON.stringify(Q)};fetch(T,$).then(le=>le.json()).then(le=>{le&&(le.success==!0?J(D,!0):le.errorMessage.match("VersionMismatchException")&&m())}).catch(le=>{console.log(le),J(V,!0),J(te,le.errorMessage,!0)}).finally(()=>J(I,!1))},b=()=>{J(ie,!E(ie))};es(()=>{s()||a()&&l()&&o()&&y()});var C={get initialState(){return s()},set initialState(T){s(T),dt()},get endpoint(){return o()},set endpoint(T){o(T),dt()},get language(){return u()},set language(T="en"){u(T),dt()},get session(){return a()},set session(T){a(T),dt()},get tournamentid(){return l()},set tournamentid(T){l(T),dt()},get gamesLimit(){return f()},set gamesLimit(T=6){f(T),dt()},get platformProp(){return d()},set platformProp(T=null){d(T),dt()},get translationurl(){return c()},set translationurl(T){c(T),dt()}},O=o2(),P=q(O);{var re=T=>{var z=i2(),Q=Dt(z),$=q(Q);K(()=>pe($,"tournament",E(h))),K(()=>pe($,"language",u())),K(()=>{var Ve;return pe($,"enrolled",((Ve=E(h))==null?void 0:Ve.playerEnrolled)||E(D))}),K(()=>pe($,"translationurl",c())),Vr($,1,"svelte-gxy8gu");var le=se($,2);{var Ne=Ve=>{var ct=Kf();ct.__click=w;var Ir=q(ct);{var Nr=Et=>{var Zt=Qf();ye(Et,Zt)},Yn=Et=>{var Zt=gl();K(zn=>Gr(Zt,zn),[()=>r()("joinButton")]),ye(Et,Zt)};$e(Ir,Et=>{E(I)?Et(Nr):Et(Yn,!1)})}X(ct),K(()=>{Vr(ct,1,`ButtonPrimary ${E(h).playerEnrolled||E(D)?"Enrolled":""}`,"svelte-gxy8gu"),ct.disabled=E(h).playerEnrolled||E(D)}),ye(Ve,ct)};$e(le,Ve=>{!E(h).playerEnrolled&&E(h).state!=="Closed"&&!E(D)&&Ve(Ne)})}X(Q);var et=se(Q,2),Se=q(et);K(()=>pe(Se,"endpoint",o())),K(()=>pe(Se,"language",u())),K(()=>pe(Se,"session",a())),K(()=>pe(Se,"tournamentid",l())),K(()=>pe(Se,"newlyEnrolled",E(D))),K(()=>pe(Se,"platform",x)),K(()=>pe(Se,"translationurl",c())),Vr(Se,1,"svelte-gxy8gu"),X(et);var lt=se(et,2),je=q(lt);je.__click=b;var ft=q(je),Lr=q(ft,!0);X(ft);var as=se(ft,2);X(je);var Ka=se(je,2);{var eu=Ve=>{var ct=n2(),Ir=q(ct),Nr=q(Ir),Yn=q(Nr);X(Nr);var Et=se(Nr,2),Zt=q(Et);{var zn=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.mostRounds")),ye(Z,ae)};$e(Zt,Z=>{E(h).scoreCriteria=="BetCount"&&Z(zn)})}var ls=se(Zt,2);{var tu=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.winStakeRatio")),ye(Z,ae)};$e(ls,Z=>{E(h).scoreCriteria=="WinStakeRatio"&&Z(tu)})}var fs=se(ls,2);{var ru=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.maxWinStakeRatio")),ye(Z,ae)};$e(fs,Z=>{E(h).scoreCriteria=="MaxWinStakeRatio"&&Z(ru)})}var hs=se(fs,2);{var nu=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.stake")),ye(Z,ae)};$e(hs,Z=>{E(h).scoreCriteria=="Stake"&&Z(nu)})}var cs=se(hs,2);{var iu=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.win")),ye(Z,ae)};$e(cs,Z=>{E(h).scoreCriteria=="Win"&&Z(iu)})}var su=se(cs,2);{var ou=Z=>{var ae=Xt(),me=Dt(ae);tt(me,()=>r()("scoreCriteriaType.winBetCount")),ye(Z,ae)};$e(su,Z=>{E(h).scoreCriteria=="WinBetCount"&&Z(ou)})}X(Et),X(Ir);var Zn=se(Ir,2),Xn=q(Zn),au=q(Xn);X(Xn);var ds=se(Xn,2),uu=q(ds);tt(uu,()=>r()("miniBetCount",{values:{betCount:E(h).minBetCount}})),X(ds),X(Zn);var Wn=se(Zn,2),qn=q(Wn),lu=q(qn);X(qn);var ps=se(qn,2),fu=q(ps);tt(fu,()=>r()("timePeriod",{values:{startTime:qs(E(h).startTime),endTime:qs(E(h).endTime)}})),X(ps),X(Wn);var Jn=se(Wn,2),Qn=q(Jn),hu=q(Qn);X(Qn);var vs=se(Qn,2),cu=q(vs);tt(cu,()=>r()("terms",{values:{tcUrl:E(h).termsUrl||"#"}})),X(vs),X(Jn);var ms=se(Jn,2);{var du=Z=>{var ae=e2(),me=q(ae),Kn=q(me);X(me);var Dr=se(me,2),kr=q(Dr);tt(kr,()=>r()("forCasino"));var Ur=se(kr,2),ei=q(Ur,!0);X(Ur),X(Dr),X(ae),K(()=>{pt(Kn,"src",Vf),Gr(ei,E(ne))}),ye(Z,ae)};$e(ms,Z=>{E(B)&&Z(du)})}var pu=se(ms,2);{var vu=Z=>{var ae=r2(),me=q(ae),Kn=q(me);X(me);var Dr=se(me,2),kr=q(Dr);tt(kr,()=>r()("forSportsbook"));var Ur=se(kr,2);fa(Ur,21,()=>E(H),la,(ei,mu)=>{var ti=t2(),gu=q(ti,!0);X(ti),K(()=>Gr(gu,E(mu))),ye(ei,ti)}),X(Ur),X(Dr),X(ae),K(()=>pt(Kn,"src",Yf)),ye(Z,ae)};$e(pu,Z=>{E(W)&&E(H).length&&Z(vu)})}X(ct),K(()=>{pt(Yn,"src",Wf),pt(au,"src",Xf),pt(lu,"src",Jf),pt(hu,"src",qf)}),ye(Ve,ct)};$e(Ka,Ve=>{E(ie)&&Ve(eu)})}X(lt);var us=se(lt,2),ht=q(us);K(()=>pe(ht,"endpoint",o())),K(()=>pe(ht,"language",u())),K(()=>pe(ht,"session",a())),K(()=>pe(ht,"tournamentid",l())),K(()=>pe(ht,"platform",x)),K(()=>pe(ht,"initialGames",E(A))),K(()=>pe(ht,"totalGames",E(M))),K(()=>pe(ht,"tournamentMetadata",E(G)||{})),K(()=>pe(ht,"translationurl",c())),Vr(ht,1,"svelte-gxy8gu"),X(us),K(Ve=>{pt(je,"aria-expanded",E(ie)),Gr(Lr,Ve),pt(as,"src",E(ie)?zf:Zf)},[()=>r()("rules")]),ye(T,z)};$e(P,T=>{E(h)&&T(re)})}var oe=se(P,2);{var de=T=>{var z=s2();ye(T,z)};$e(oe,T=>{E(g)&&T(de)})}X(O),ye(e,O);var Ee=zi(C);return i(),Ee}sa(["click"]);customElements.define("tournament-details-page",ga(Qa,{initialState:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},platformProp:{},translationurl:{}},[],[],!1));const u2=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"}));exports.$format=Fa;exports.$locale=Pt;exports.TournamentDetailsPage_ce=u2;exports.addMessages=is;exports.append=ye;exports.append_styles=ha;exports.child=q;exports.clsx=Ol;exports.comment=Xt;exports.commonjsGlobal=rs;exports.create_custom_element=ga;exports.customParseFormat=Ja;exports.dayjs=os;exports.delegate=sa;exports.each=fa;exports.first_child=Dt;exports.flushSync=dt;exports.from_html=wt;exports.get=E;exports.getDefaultExportFromCjs=kn;exports.getDevice=Xa;exports.if_block=$e;exports.index=la;exports.next=ho;exports.onDestroy=El;exports.onMount=es;exports.pop=zi;exports.prop=St;exports.proxy=At;exports.push=Yi;exports.reset=X;exports.set=J;exports.set_attribute=pt;exports.set_class=Vr;exports.set_style=Bl;exports.set_text=Gr;exports.setup_stores=va;exports.sibling=se;exports.state=fe;exports.store_get=pa;exports.template_effect=K;exports.user_derived=sl;exports.user_effect=Ji;exports.user_pre_effect=Go;
@@ -0,0 +1,27 @@
1
+ "use strict";var Z=(_,l,i)=>new Promise((W,A)=>{var k=d=>{try{g(i.next(d))}catch(x){A(x)}},S=d=>{try{g(i.throw(d))}catch(x){A(x)}},g=d=>d.done?W(d.value):Promise.resolve(d.value).then(k,S);g((i=i.apply(_,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TournamentDetailsPage-DBFnctSf.cjs");function $(_,l){e.addMessages(_,l)}function ee(_){e.$locale.set(_)}const te={en:{previousButton:"Previous",nextButton:"Next",casinoTab:"Casino",sportsbookTab:"Sportsbook",gamesDescriptionTitle:"Participating games",gamesDescriptionSubtitle:"Discover the games",sportsRulesParseError:"Error parsing tournament rules",noAvailableGames:"No games have been configured yet!"},tr:{previousButton:"Önceki",nextButton:"Sonraki",casinoTab:"Casino",sportsbookTab:"Spor Bahisleri",gamesDescriptionTitle:"Katılımcı oyunlar",gamesDescriptionSubtitle:"Oyunları keşfedin",sportsRulesParseError:"Turnuva kuralları ayrıştırma hatası",noAvailableGames:"Henüz oyun yapılandırılmamış!"}},Ge=()=>typeof window=="undefined";var Ae=e.from_html('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'),Be=e.from_html('<p class="svelte-p7mf8l"> </p>'),Ne=e.from_html("<div></div>"),De=e.from_html('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'),je=e.from_html("<p> </p>"),Me=e.from_html('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'),Ee=e.from_html('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'),Le=e.from_html("<button> </button>"),Oe=e.from_html('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'),Re=e.from_html('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'),We=e.from_html('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');const ze={hash:"svelte-p7mf8l",code:`.svelte-p7mf8l,
2
+ .svelte-p7mf8l::before,
3
+ .svelte-p7mf8l::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-p7mf8l {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-p7mf8l {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-p7mf8l) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;min-height:150px;}.TournamentGamesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-p7mf8l {display:grid;gap:12px;grid-template-columns:repeat(auto-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
4
+ to top,
5
+ var(--emw-color-primary, #FF1D4E),
6
+ transparent
7
+ );background-size:100% 200%;
8
+ animation: svelte-p7mf8l-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
9
+ animation: svelte-p7mf8l-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
10
+ animation: svelte-p7mf8l-pulse 1s infinite;}}
11
+
12
+ @keyframes svelte-p7mf8l-pulse {
13
+ 0% {
14
+ opacity: 0;
15
+ }
16
+ 50% {
17
+ opacity: 1;
18
+ }
19
+ 100% {
20
+ opacity: 0;
21
+ }
22
+ }
23
+
24
+
25
+ @media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l, .PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {min-width:75px;}.PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:35px;}}
26
+
27
+ }.Hidden.svelte-p7mf8l {display:none;}`};function ae(_,l){var Y;e.push(l,!0),e.append_styles(_,ze);const i=()=>e.store_get(e.$format,"$_",W),[W,A]=e.setup_stores(),k=e.prop(l,"initialGames"),S=e.prop(l,"endpoint"),g=e.prop(l,"language",7,"en"),d=e.prop(l,"session"),x=e.prop(l,"tournamentid"),f=e.prop(l,"gamesLimit",7,6),P=e.prop(l,"totalGames"),z=e.prop(l,"platformProp",7,null),T=e.prop(l,"tournamentMetadata"),B=e.prop(l,"translationurl"),ne=()=>{let t=new URL(B());fetch(t.href).then(a=>a.json()).then(a=>{Object.keys(a).forEach(n=>{$(n,a[n])})}).catch(a=>{console.log(a)})};Object.keys(te).forEach(t=>{$(t,te[t])}),ee(g());const re=()=>{ee(g())};e.user_pre_effect(()=>{B()&&ne()}),e.user_effect(()=>{re()});let H=e.state(e.proxy(k()||[])),N=e.state(!1),u=e.state(0),D=e.state(void 0),j=e.state(!0);const se=Ge()?(Y=z())!=null?Y:"dk":e.getDevice(window.navigator.userAgent),C=()=>Z(this,null,function*(){if(I.has(e.get(M)))return;e.set(N,!0);const t=new URL(`${S()}/v1/tournaments/${x()}`),a=new Headers;d()&&a.append("X-SessionId",d());const n={method:"GET",headers:a};t.searchParams.append("filter",`id=${x()}`),t.searchParams.append("language",g()),t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=${f()},offset=${e.get(u)})`),t.searchParams.append("platform",se),fetch(t,n).then(r=>r.json()).then(r=>{var m,s;e.set(H,(s=(m=r==null?void 0:r.item)==null?void 0:m.games)==null?void 0:s.items,!0),I.set(e.get(M),e.get(H)),e.get(j)||e.set(j,!0)}).catch(r=>console.log(r)).finally(()=>e.set(N,!1))}),oe=()=>{const t=Math.ceil(P()/f()),a=Math.floor(e.get(u)/f())+1;if(t<=5)return Array.from({length:t},(r,m)=>m+1);const n=[];return n.push(1),a<=3?(n.push(2,3),n.push("..."),n.push(t)):a>=t-2?(n.push("..."),n.push(t-2,t-1,t)):(n.push("..."),n.push(a-1,a,a+1),n.push("..."),n.push(t)),n},le=()=>{e.get(u)<P()&&(e.set(u,e.get(u)+f()),C())},ie=()=>{e.get(u)!==0&&(e.set(u,e.get(u)-f()),C())},pe=t=>{e.set(u,(t-1)*f()),C()},ce=e.user_derived(oe),M=e.user_derived(()=>Math.floor(e.get(u)/f())+1);let I=new Map([[1,k()]]),me=e.user_derived(()=>{var t;return(t=I.get(e.get(M)))!=null?t:[]}),y=e.state("casino");const de=()=>{var n;if(!T())return;const t=(n=T().sports)==null?void 0:n.rules;let a;if(t)try{a=JSON.parse(t),e.set(D,a[g()]||a["*"],!0)}catch(r){console.log(r),e.set(D,`${i()("sportsRulesParseError")}`)}},fe=t=>{window.postMessage({type:"Tournaments:PlayGame",launchUrl:t.launchUrl,id:t.gameId,thumbnail:t.thumbnail,name:t.name},window.location.href)};e.user_effect(()=>{Object.keys(T()).length!==0&&de()});var ue={get initialGames(){return k()},set initialGames(t){k(t),e.flushSync()},get endpoint(){return S()},set endpoint(t){S(t),e.flushSync()},get language(){return g()},set language(t="en"){g(t),e.flushSync()},get session(){return d()},set session(t){d(t),e.flushSync()},get tournamentid(){return x()},set tournamentid(t){x(t),e.flushSync()},get gamesLimit(){return f()},set gamesLimit(t=6){f(t),e.flushSync()},get totalGames(){return P()},set totalGames(t){P(t),e.flushSync()},get platformProp(){return z()},set platformProp(t=null){z(t),e.flushSync()},get tournamentMetadata(){return T()},set tournamentMetadata(t){T(t),e.flushSync()},get translationurl(){return B()},set translationurl(t){B(t),e.flushSync()}},U=We(),F=e.child(U),q=e.child(F),ve=e.child(q,!0);e.reset(q);var J=e.sibling(q,2),ge=e.child(J,!0);e.reset(J),e.reset(F);var K=e.sibling(F,2);{var he=t=>{var a=Ae(),n=e.child(a);let r;n.__click=()=>e.set(y,"casino");var m=e.child(n,!0);e.reset(n);var s=e.sibling(n,2);let o;s.__click=()=>e.set(y,"sports");var p=e.child(s,!0);e.reset(s),e.reset(a),e.template_effect((v,c)=>{r=e.set_class(n,1,"Tab svelte-p7mf8l",null,r,{Active:e.get(y)==="casino"}),e.set_text(m,v),o=e.set_class(s,1,"Tab svelte-p7mf8l",null,o,{Active:e.get(y)==="sports"}),e.set_text(p,c)},[()=>i()("casinoTab"),()=>i()("sportsbookTab")]),e.append(t,a)};e.if_block(K,t=>{Object.keys(T()).length!==0&&t(he)})}var X=e.sibling(K,2);{var be=t=>{var a=Ne();let n;e.each(a,21,()=>e.get(D),e.index,(r,m)=>{var s=Be(),o=e.child(s);e.reset(s),e.template_effect(p=>{var v;return e.set_text(o,`${(v=e.get(m).rule)!=null?v:""} ${p!=null?p:""}`)},[()=>i()("contribution")]),e.append(r,s)}),e.reset(a),e.template_effect(()=>n=e.set_class(a,1,"TournamentRulesWrapper svelte-p7mf8l",null,n,{Hidden:e.get(y)==="casino"})),e.append(t,a)};e.if_block(X,t=>{e.get(D)&&t(be)})}var E=e.sibling(X,2);let Q;var _e=e.child(E);{var xe=t=>{var a=e.comment(),n=e.first_child(a);e.each(n,17,()=>Array(f()),e.index,(r,m,s,o)=>{var p=De();e.append(r,p)}),e.append(t,a)},ye=t=>{var a=e.comment(),n=e.first_child(a);{var r=s=>{var o=je();let p;var v=e.child(o,!0);e.reset(o),e.template_effect(c=>{p=e.set_class(o,1,"NoGamesAvailable svelte-p7mf8l",null,p,{Hidden:e.get(y)==="sports"}),e.set_text(v,c)},[()=>i()("noAvailableGames")]),e.append(s,o)},m=s=>{var o=e.comment(),p=e.first_child(o);e.each(p,17,()=>e.get(me),e.index,(v,c)=>{var w=Me();w.__click=()=>fe(e.get(c));var L=e.child(w),G=e.child(L),O=e.sibling(G,2),h=e.child(O),b=e.child(h,!0);e.reset(h),e.reset(O),e.reset(L),e.reset(w),e.template_effect(R=>{e.set_attribute(G,"src",`https:${e.get(c).thumbnail}`),e.set_attribute(G,"alt",e.get(c).name),e.set_text(b,R)},[()=>i()("play")]),e.append(v,w)}),e.append(s,o)};e.if_block(n,s=>{var o;!e.get(N)&&((o=e.get(H))==null?void 0:o.length)===0?s(r):s(m,!1)},!0)}e.append(t,a)};e.if_block(_e,t=>{e.get(N)?t(xe):t(ye,!1)})}e.reset(E);var V=e.sibling(E,2);{var we=t=>{var a=Oe();let n;var r=e.child(a);r.__click=ie;var m=e.child(r,!0);e.reset(r);var s=e.sibling(r,2);e.each(s,21,()=>e.get(ce),e.index,(v,c)=>{var w=e.comment(),L=e.first_child(w);{var G=h=>{var b=Ee();e.append(h,b)},O=h=>{var b=Le();let R;b.__click=()=>pe(e.get(c));var Se=e.child(b,!0);e.reset(b),e.template_effect(()=>{R=e.set_class(b,1,"PaginationButton Number svelte-p7mf8l",null,R,{Active:e.get(c)===e.get(M)}),e.set_text(Se,e.get(c))}),e.append(h,b)};e.if_block(L,h=>{typeof e.get(c)!="number"?h(G):h(O,!1)})}e.append(v,w)}),e.reset(s);var o=e.sibling(s,2);o.__click=le;var p=e.child(o,!0);e.reset(o),e.reset(a),e.template_effect((v,c)=>{n=e.set_class(a,1,"PaginationWrapper svelte-p7mf8l",null,n,{Hidden:e.get(y)==="sports"}),r.disabled=e.get(u)===0,e.set_text(m,v),o.disabled=e.get(u)>=P()-f(),e.set_text(p,c)},[()=>i()("previousButton"),()=>i()("nextButton")]),e.append(t,a)};e.if_block(V,t=>{e.get(j)&&P()>f()&&t(we)})}var ke=e.sibling(V,2);{var Pe=t=>{var a=Re();e.append(t,a)};e.if_block(ke,t=>{e.get(j)||t(Pe)})}e.reset(U),e.template_effect((t,a)=>{e.set_text(ve,t),e.set_text(ge,a),Q=e.set_class(E,1,"TournamentGamesContainer svelte-p7mf8l",null,Q,{Hidden:e.get(y)==="sports"})},[()=>i()("gamesDescriptionTitle"),()=>i()("gamesDescriptionSubtitle")]),e.append(_,U);var Te=e.pop(ue);return A(),Te}e.delegate(["click"]);customElements.define("tournament-games",e.create_custom_element(ae,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},gamesLimit:{},totalGames:{},platformProp:{},tournamentMetadata:{},translationurl:{}},[],[],!1));exports.default=ae;