@everymatrix/player-challenges 0.1.14 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{ArrowLeftIcon-DSn8hPkF.js → ArrowLeftIcon-DorWQbN-.js} +10 -10
- package/components/{ArrowLeftIcon-9z9pTews.cjs → ArrowLeftIcon-f3IOpYNO.cjs} +1 -1
- package/components/{Badge-B-XJxDGU.cjs → Badge-BDyFx08l.cjs} +4 -4
- package/components/{Badge-DvLEsRGI.js → Badge-t5ERZxvC.js} +36 -36
- package/components/{Button-LvbCkeeB.cjs → Button-CUICdAqJ.cjs} +2 -2
- package/components/{Button-D84vGE_N.js → Button-DgtpbC5z.js} +26 -28
- package/components/{ChallengeBanner-DzjEQdUp.js → ChallengeBanner-DSarDh3k.js} +31 -29
- package/components/{ChallengeBanner-_sqDm-xs.cjs → ChallengeBanner-uzrRUAwa.cjs} +2 -2
- package/components/{ChallengeBreadcrumbs-DDTCsSWY.js → ChallengeBreadcrumbs-DHNKXK43.js} +18 -20
- package/components/{ChallengeBreadcrumbs-CZxhI0_L.cjs → ChallengeBreadcrumbs-DwyCD4n7.cjs} +1 -1
- package/components/{ChallengeCard-DhT0EyKT.cjs → ChallengeCard-BuDYjnna.cjs} +1 -1
- package/components/{ChallengeCard-BhOpoROp.js → ChallengeCard-SkQ_xfqo.js} +13 -14
- package/components/{ChallengeClaimCode-DtN7_eaj.js → ChallengeClaimCode-DiJqww5t.js} +16 -17
- package/components/{ChallengeClaimCode-D4y9Ilgv.cjs → ChallengeClaimCode-zgBFr-2W.cjs} +1 -1
- package/components/{ChallengeDetails-C6knDcqb.cjs → ChallengeDetails-D1h6ITwb.cjs} +1 -1
- package/components/{ChallengeDetails-De--UkDS.js → ChallengeDetails-DMdkjCMC.js} +12 -13
- package/components/{ChallengeEvents-DSwYrQ1K.js → ChallengeEvents-B6l3iUIf.js} +12 -12
- package/components/{ChallengeEvents-5SdhGalP.cjs → ChallengeEvents-D5kenBIc.cjs} +1 -1
- package/components/ChallengeGames-CZu1MzPA.cjs +11 -0
- package/components/ChallengeGames-CjLLzYVy.js +134 -0
- package/components/{ChallengeHistory-CoTCstRV.js → ChallengeHistory-8LPDK1aA.js} +24 -25
- package/components/ChallengeHistory-CHK2Q13H.cjs +1 -0
- package/components/ChallengeLevels-CCZGLr9f.cjs +8 -0
- package/components/ChallengeLevels-s9abBMuq.js +292 -0
- package/components/ChallengeList-CK16hckg.cjs +20 -0
- package/components/{ChallengeList-BCtLU5A3.js → ChallengeList-D6_LjVsa.js} +511 -546
- package/components/{ChallengeProgress-Bz00FfdW.js → ChallengeProgress-BFAihSd8.js} +20 -21
- package/components/{ChallengeProgress-BJdwMjVx.cjs → ChallengeProgress-F4DvqxcC.cjs} +1 -1
- package/components/{ChallengeProgressItem-DMuqRQ94.js → ChallengeProgressItem-BHk-1FKU.js} +186 -186
- package/components/{ChallengeProgressItem-BijvIdWR.cjs → ChallengeProgressItem-DrMZEU3z.cjs} +3 -3
- package/components/{ChallengeRules-CDw9YAZb.js → ChallengeRules-CIINsSVb.js} +60 -62
- package/components/ChallengeRules-D5vuaTVl.cjs +1 -0
- package/components/ChallengeSummary-BhoNxD8d.cjs +1 -0
- package/components/ChallengeSummary-sGIfhmFq.js +213 -0
- package/components/ChallengeTabContent-CYsszYCj.js +795 -0
- package/components/ChallengeTabContent-CftvI5C6.cjs +12 -0
- package/components/ChallengeTabPanel-CdcGT_LI.js +137 -0
- package/components/ChallengeTabPanel-ChsZw13b.cjs +1 -0
- package/components/ChallengeTabSkeleton-CDYom40f.cjs +15 -0
- package/components/ChallengeTabSkeleton-CuRzH3G_.js +92 -0
- package/components/ChallengeTabs-Dcgam5G5.cjs +14 -0
- package/components/{ChallengeTabs-BQfHWZ-v.js → ChallengeTabs-TgwP2u9F.js} +3733 -3285
- package/components/{CheckIcon-7SG6lvDK.js → CheckIcon-B82NDFTL.js} +9 -9
- package/components/{CheckIcon-D9ebX3ko.cjs → CheckIcon-BqS1Tdfu.cjs} +1 -1
- package/components/{ChevronIcon-sZFDp9-r.js → ChevronIcon-C0yjiiug.js} +11 -11
- package/components/{ChevronIcon-C4sG0Iq7.cjs → ChevronIcon-zvGKIAT7.cjs} +1 -1
- package/components/{ExistIcon-Cjt2I_f3.cjs → ExistIcon-DifozqZH.cjs} +1 -1
- package/components/{ExistIcon-BFp2RzHm.js → ExistIcon-Y3lLvkAJ.js} +14 -14
- package/components/{GiftIcon-CowOBpN8.cjs → GiftIcon-Bd4y8-Fm.cjs} +1 -1
- package/components/{GiftIcon-BsTOo4xA.js → GiftIcon-CY_-XK0b.js} +13 -13
- package/components/{LinkIcon-DUiBycAa.cjs → LinkIcon-Bttg6ZAz.cjs} +1 -1
- package/components/{LinkIcon-DY8dMm_r.js → LinkIcon-CLHvOQ2s.js} +11 -11
- package/components/{LockIcon-B5-vtEo5.cjs → LockIcon-BgDxb03o.cjs} +1 -1
- package/components/{LockIcon-DaWR3qRf.js → LockIcon-gAFRYl52.js} +9 -9
- package/components/Pagination-4P-rWszf.cjs +12 -0
- package/components/{Pagination-DLaFwxon.js → Pagination-CbvI_9SC.js} +56 -68
- package/components/PlayerChallenges-CaUu7idr.js +417 -0
- package/components/PlayerChallenges-CtnY-k5K.cjs +1 -0
- package/components/{StarIcon-BvEyzxCo.js → StarIcon-CbfuCfUA.js} +10 -10
- package/components/{StarIcon-mrGEuOQF.cjs → StarIcon-DE0r6703.cjs} +1 -1
- package/components/{TargetIcon-H8pStACk.js → TargetIcon-BVhRYDcS.js} +13 -13
- package/components/{TargetIcon-D1VeNXPh.cjs → TargetIcon-DDclkkVP.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeGames-CWIYOuei.js +0 -135
- package/components/ChallengeGames-Rqb4EmEd.cjs +0 -11
- package/components/ChallengeHistory-DO7ysttD.cjs +0 -1
- package/components/ChallengeLevels-D0k6h-sn.cjs +0 -8
- package/components/ChallengeLevels-DE-zA5YQ.js +0 -306
- package/components/ChallengeList-k2WHGOdC.cjs +0 -20
- package/components/ChallengeRules-C-l7Nih5.cjs +0 -1
- package/components/ChallengeSummary-ClsiL0ew.js +0 -222
- package/components/ChallengeSummary-OlE0g3eP.cjs +0 -1
- package/components/ChallengeTabContent-DYhBMEuD.js +0 -837
- package/components/ChallengeTabContent-Y2CcHcab.cjs +0 -12
- package/components/ChallengeTabPanel-DaJ86d-M.js +0 -176
- package/components/ChallengeTabPanel-Vi9JKI9q.cjs +0 -1
- package/components/ChallengeTabSkeleton-Dj2rC92S.cjs +0 -15
- package/components/ChallengeTabSkeleton-nIWKRUtS.js +0 -117
- package/components/ChallengeTabs-BefOeRfL.cjs +0 -14
- package/components/Pagination-CVbrQbU7.cjs +0 -12
- package/components/PlayerChallenges-CU3Xg79K.cjs +0 -1
- package/components/PlayerChallenges-UD6kj-0Y.js +0 -396
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const so="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(so);const ao=1,oo=2,os=4,uo=8,lo=16,fo=1,co=4,ho=8,po=16,vo=1,go=2,us="[",nr="[!",Jr="]",en={},_e=Symbol(),mo="http://www.w3.org/1999/xhtml",Ir=!1;var ls=Array.isArray,_o=Array.prototype.indexOf,rr=Array.from,Vn=Object.keys,Cn=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,bo=Object.getOwnPropertyDescriptors,yo=Object.prototype,Eo=Array.prototype,fs=Object.getPrototypeOf,Mi=Object.isExtensible;const Tt=()=>{};function cs(e){for(var t=0;t<e.length;t++)e[t]()}function hs(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const ye=2,zn=4,$n=8,ds=1<<24,_t=16,bt=32,$t=64,Qr=128,ze=512,Ee=1024,Ie=2048,yt=4096,Ge=8192,pt=16384,ir=32768,tn=65536,Di=1<<17,ps=1<<18,Xt=1<<19,vs=1<<20,ct=1<<25,Vt=32768,Pr=1<<21,Kr=1<<22,Ct=1<<23,wn=Symbol("$state"),gs=Symbol("legacy props"),xo=Symbol(""),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ei=3,cn=8;function ms(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function wo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function So(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function To(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Co(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ao(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Io(){throw new Error("https://svelte.dev/e/hydration_failed")}function Po(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Oo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $o(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function No(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Mo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function sr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Do(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let J=!1;function ht(e){J=e}let K;function Ne(e){if(e===null)throw sr(),en;return K=e}function ar(){return Ne(rt(K))}function An(e){if(J){if(rt(K)!==null)throw sr(),en;K=e}}function _s(e=1){if(J){for(var t=e,n=K;t--;)n=rt(n);K=n}}function Xn(e=!0){for(var t=0,n=K;;){if(n.nodeType===cn){var r=n.data;if(r===Jr){if(t===0)return n;t-=1}else(r===us||r===nr)&&(t+=1)}var i=rt(n);e&&n.remove(),n=i}}function bs(e){if(!e||e.nodeType!==cn)throw sr(),en;return e.data}function ys(e){return e===this.v}function Es(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xs(e){return!Es(e,this.v)}let Ho=!1,Me=null;function nn(e){Me=e}function or(e,t=!1,n){Me={p:Me,i:!1,c:null,e:null,s:e,x:null,l:null}}function ur(e){var t=Me,n=t.e;if(n!==null){t.e=null;for(var r of n)Xs(r)}return e!==void 0&&(t.x=e),t.i=!0,Me=t.p,e??{}}function ws(){return!0}let Bt=[];function Ss(){var e=Bt;Bt=[],cs(e)}function hn(e){if(Bt.length===0&&!Sn){var t=Bt;queueMicrotask(()=>{t===Bt&&Ss()})}Bt.push(e)}function Bo(){for(;Bt.length>0;)Ss()}function Ts(e){var t=ee;if(t===null)return Y.f|=Ct,e;if(t.f&ir)rn(e,t);else{if(!(t.f&Qr))throw e;t.b.error(e)}}function rn(e,t){for(;t!==null;){if(t.f&Qr)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Lo=-7169;function ge(e,t){e.f=e.f&Lo|t}function ti(e){e.f&ze||e.deps===null?ge(e,Ee):ge(e,yt)}function Cs(e){if(e!==null)for(const t of e)!(t.f&ye)||!(t.f&Vt)||(t.f^=Vt,Cs(t.deps))}function As(e,t,n){e.f&Ie?t.add(e):e.f&yt&&n.add(e),Cs(e.deps),ge(e,Ee)}const Hn=new Set;let ue=null,qe=null,Ue=[],lr=null,Or=!1,Sn=!1;class Ze{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#i=0;#a=null;#s=new Set;#r=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){Ue=[],this.apply();var n=[],r=[];for(const i of t)this.#o(i,n,r);this.is_fork||this.#l(),this.is_deferred()?(this.#u(r),this.#u(n)):(ue=null,Hi(r),Hi(n),this.#a?.resolve()),qe=null}#o(t,n,r){t.f^=Ee;for(var i=t.first,s=null;i!==null;){var a=i.f,o=(a&(bt|$t))!==0,u=o&&(a&Ee)!==0,l=u||(a&Ge)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){o?i.f^=Ee:s!==null&&a&(zn|$n|ds)?s.b.defer_effect(i):a&zn?n.push(i):Nn(i)&&(a&_t&&this.#s.add(i),In(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}}#u(t){for(var n=0;n<t.length;n+=1)As(t[n],this.#s,this.#r)}capture(t,n){n!==_e&&!this.previous.has(t)&&this.previous.set(t,n),t.f&Ct||(this.current.set(t,t.v),qe?.set(t,t.v))}activate(){ue=this,this.apply()}deactivate(){ue===this&&(ue=null,qe=null)}flush(){if(this.activate(),Ue.length>0){if(Is(),ue!==null&&ue!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#l(){if(this.#i===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#f()}#f(){if(Hn.size>1){this.previous.clear();var t=qe,n=!0;for(const i of Hn){if(i===this){n=!1;continue}const s=[];for(const[o,u]of this.current){if(i.current.has(o))if(n&&u!==i.current.get(o))i.current.set(o,u);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var r=Ue;Ue=[];const o=new Set,u=new Map;for(const l of s)Ps(l,a,o,u);if(Ue.length>0){ue=i,i.apply();for(const l of Ue)i.#o(l,[],[]);i.deactivate()}Ue=r}}ue=null,qe=t}this.committed=!0,Hn.delete(this)}increment(t){this.#n+=1,t&&(this.#i+=1)}decrement(t){this.#n-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#s)this.#r.delete(t),ge(t,Ie),gt(t);for(const t of this.#r)ge(t,yt),gt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#a??=hs()).promise}static ensure(){if(ue===null){const t=ue=new Ze;Hn.add(ue),Sn||Ze.enqueue(()=>{ue===t&&t.flush()})}return ue}static enqueue(t){hn(t)}apply(){}}function dt(e){var t=Sn;Sn=!0;try{for(var n;;){if(Bo(),Ue.length===0&&(ue?.flush(),Ue.length===0))return lr=null,n;Is()}}finally{Sn=t}}function Is(){var e=Gt;Or=!0;var t=null;try{var n=0;for(Wn(!0);Ue.length>0;){var r=Ze.ensure();if(n++>1e3){var i,s;Ro()}r.process(Ue),At.clear()}}finally{Or=!1,Wn(e),lr=null}}function Ro(){try{Ao()}catch(e){rn(e,lr)}}let ft=null;function Hi(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(pt|Ge))&&Nn(r)&&(ft=new Set,In(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?qs(r):r.fn=null),ft?.size>0)){At.clear();for(const i of ft){if(i.f&(pt|Ge))continue;const s=[i];let a=i.parent;for(;a!==null;)ft.has(a)&&(ft.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(pt|Ge)||In(u)}}ft.clear()}}ft=null}}function Ps(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&ye?Ps(i,t,n,r):s&(Kr|_t)&&!(s&Ie)&&Os(i,t,r)&&(ge(i,Ie),gt(i))}}function Os(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&ye&&Os(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function gt(e){for(var t=lr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Or&&t===ee&&n&_t&&!(n&ps))return;if(n&($t|bt)){if(!(n&Ee))return;t.f^=Ee}}Ue.push(t)}function Fo(e){let t=0,n=zt(0),r;return()=>{ai()&&(B(n),ui(()=>(t===0&&(r=Nt(()=>e(()=>Tn(n)))),t+=1,()=>{hn(()=>{t-=1,t===0&&(r?.(),r=void 0,Tn(n))})})))}}var Go=tn|Xt|Qr;function ko(e,t,n){new Uo(e,t,n)}class Uo{parent;is_pending=!1;#e;#t=J?K:null;#n;#i;#a;#s=null;#r=null;#o=null;#u=null;#l=null;#f=0;#c=0;#d=!1;#p=new Set;#v=new Set;#h=null;#y=Fo(()=>(this.#h=zt(this.#f),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#n=n,this.#i=r,this.parent=ee.b,this.is_pending=!!this.#n.pending,this.#a=fi(()=>{if(ee.b=this,J){const s=this.#t;ar(),s.nodeType===cn&&s.data===nr?this.#x():(this.#E(),this.#c===0&&(this.is_pending=!1))}else{var i=this.#_();try{this.#s=je(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#m():this.is_pending=!1}return()=>{this.#l?.remove()}},Go),J&&(this.#e=K)}#E(){try{this.#s=je(()=>this.#i(this.#e))}catch(t){this.error(t)}}#x(){const t=this.#n.pending;t&&(this.#r=je(()=>t(this.#e)),Ze.enqueue(()=>{var n=this.#_();this.#s=this.#g(()=>(Ze.ensure(),je(()=>this.#i(n)))),this.#c>0?this.#m():(Ft(this.#r,()=>{this.#r=null}),this.is_pending=!1)}))}#_(){var t=this.#e;return this.is_pending&&(this.#l=Xe(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){As(t,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#g(t){var n=ee,r=Y,i=Me;nt(this.#a),$e(this.#a),nn(this.#a.ctx);try{return t()}catch(s){return Ts(s),null}finally{nt(n),$e(r),nn(i)}}#m(){const t=this.#n.pending;this.#s!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#l),Qs(this.#s,this.#u)),this.#r===null&&(this.#r=je(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const n of this.#p)ge(n,Ie),gt(n);for(const n of this.#v)ge(n,yt),gt(n);this.#p.clear(),this.#v.clear(),this.#r&&Ft(this.#r,()=>{this.#r=null}),this.#u&&(this.#e.before(this.#u),this.#u=null)}}update_pending_count(t){this.#b(t),this.#f+=t,this.#h&&sn(this.#h,this.#f)}get_effect_pending(){return this.#y(),B(this.#h)}error(t){var n=this.#n.onerror;let r=this.#n.failed;if(this.#d||!n&&!r)throw t;this.#s&&(Ae(this.#s),this.#s=null),this.#r&&(Ae(this.#r),this.#r=null),this.#o&&(Ae(this.#o),this.#o=null),J&&(Ne(this.#t),_s(),Ne(Xn()));var i=!1,s=!1;const a=()=>{if(i){Do();return}i=!0,s&&Mo(),Ze.ensure(),this.#f=0,this.#o!==null&&Ft(this.#o,()=>{this.#o=null}),this.is_pending=this.has_pending_snippet(),this.#s=this.#g(()=>(this.#d=!1,je(()=>this.#i(this.#e)))),this.#c>0?this.#m():this.is_pending=!1};var o=Y;try{$e(null),s=!0,n?.(t,a),s=!1}catch(u){rn(u,this.#a&&this.#a.parent)}finally{$e(o)}r&&hn(()=>{this.#o=this.#g(()=>{Ze.ensure(),this.#d=!0;try{return je(()=>{r(this.#e,()=>t,()=>a)})}catch(u){return rn(u,this.#a.parent),null}finally{this.#d=!1}})})}}function jo(e,t,n,r){const i=fr;if(n.length===0&&e.length===0){r(t.map(i));return}var s=ue,a=ee,o=Vo();function u(){Promise.all(n.map(l=>zo(l))).then(l=>{o();try{r([...t.map(i),...l])}catch(f){a.f&pt||rn(f,a)}s?.deactivate(),Yn()}).catch(l=>{rn(l,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return u()}finally{s?.deactivate(),Yn()}}):u()}function Vo(){var e=ee,t=Y,n=Me,r=ue;return function(s=!0){nt(e),$e(t),nn(n),s&&r?.activate()}}function Yn(){nt(null),$e(null),nn(null)}function fr(e){var t=ye|Ie,n=Y!==null&&Y.f&ye?Y:null;return ee!==null&&(ee.f|=Xt),{ctx:Me,deps:null,effects:null,equals:ys,f:t,fn:e,reactions:null,rv:0,v:_e,wv:0,parent:n??ee,ac:null}}function zo(e,t,n){let r=ee;r===null&&wo();var i=r.b,s=void 0,a=zt(_e),o=!Y,u=new Map;return eu(()=>{var l=hs();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===ue&&f.committed&&f.deactivate(),Yn()})}catch(c){l.reject(c),Yn()}var f=ue;if(o){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),u.get(f)?.reject(Kt),u.delete(f),u.set(f,l)}const h=(c,m=void 0)=>{if(f.activate(),m)m!==Kt&&(a.f|=Ct,sn(a,m));else{a.f&Ct&&(a.f^=Ct),sn(a,c);for(const[P,g]of u){if(u.delete(P),P===f)break;g.reject(Kt)}}o&&(i.update_pending_count(-1),f.decrement(d))};l.promise.then(h,c=>h(null,c||"unknown"))}),Vs(()=>{for(const l of u.values())l.reject(Kt)}),new Promise(l=>{function f(d){function h(){d===s?l(a):f(s)}d.then(h,h)}f(s)})}function ni(e){const t=fr(e);return Ks(t),t}function $s(e){const t=fr(e);return t.equals=xs,t}function Ns(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Ae(t[n])}}function Xo(e){for(var t=e.parent;t!==null;){if(!(t.f&ye))return t.f&pt?null:t;t=t.parent}return null}function ri(e){var t,n=ee;nt(Xo(e));try{e.f&=~Vt,Ns(e),t=ra(e)}finally{nt(n)}return t}function Ms(e){var t=ri(e);if(!e.equals(t)&&(e.wv=ta(),(!ue?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){ge(e,Ee);return}Pt||(qe!==null?(ai()||ue?.is_fork)&&qe.set(e,t):ti(e))}let $r=new Set;const At=new Map;let Ds=!1;function zt(e,t){var n={f:0,v:e,reactions:null,equals:ys,rv:0,wv:0};return n}function Ce(e,t){const n=zt(e);return Ks(n),n}function ii(e,t=!1,n=!0){const r=zt(e);return t||(r.equals=xs),r}function re(e,t,n=!1){Y!==null&&(!Je||Y.f&Di)&&ws()&&Y.f&(ye|_t|Kr|Di)&&!vt?.includes(e)&&No();let r=n?Fe(t):t;return sn(e,r)}function sn(e,t){if(!e.equals(t)){var n=e.v;Pt?At.set(e,t):At.set(e,n),e.v=t;var r=Ze.ensure();if(r.capture(e,n),e.f&ye){const i=e;e.f&Ie&&ri(i),ti(i)}e.wv=ta(),Hs(e,Ie),ee!==null&&ee.f&Ee&&!(ee.f&(bt|$t))&&(ke===null?ru([e]):ke.push(e)),!r.is_fork&&$r.size>0&&!Ds&&Yo()}return t}function Yo(){Ds=!1;var e=Gt;Wn(!0);const t=Array.from($r);try{for(const n of t)n.f&Ee&&ge(n,yt),Nn(n)&&In(n)}finally{Wn(e)}$r.clear()}function Tn(e){re(e,e.v+1)}function Hs(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,o=(a&Ie)===0;if(o&&ge(s,t),a&ye){var u=s;qe?.delete(u),a&Vt||(a&ze&&(s.f|=Vt),Hs(u,yt))}else o&&(a&_t&&ft!==null&&ft.add(s),gt(s))}}function Fe(e){if(typeof e!="object"||e===null||wn in e)return e;const t=fs(e);if(t!==yo&&t!==Eo)return e;var n=new Map,r=ls(e),i=Ce(0),s=kt,a=o=>{if(kt===s)return o();var u=Y,l=kt;$e(null),Fi(s);var f=o();return $e(u),Fi(l),f};return r&&n.set("length",Ce(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Oo();var f=n.get(u);return f===void 0?f=a(()=>{var d=Ce(l.value);return n.set(u,d),d}):re(f,l.value,!0),!0},deleteProperty(o,u){var l=n.get(u);if(l===void 0){if(u in o){const f=a(()=>Ce(_e));n.set(u,f),Tn(i)}}else re(l,_e),Tn(i);return!0},get(o,u,l){if(u===wn)return e;var f=n.get(u),d=u in o;if(f===void 0&&(!d||Rt(o,u)?.writable)&&(f=a(()=>{var c=Fe(d?o[u]:_e),m=Ce(c);return m}),n.set(u,f)),f!==void 0){var h=B(f);return h===_e?void 0:h}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=n.get(u);f&&(l.value=B(f))}else if(l===void 0){var d=n.get(u),h=d?.v;if(d!==void 0&&h!==_e)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(o,u){if(u===wn)return!0;var l=n.get(u),f=l!==void 0&&l.v!==_e||Reflect.has(o,u);if(l!==void 0||ee!==null&&(!f||Rt(o,u)?.writable)){l===void 0&&(l=a(()=>{var h=f?Fe(o[u]):_e,c=Ce(h);return c}),n.set(u,l));var d=B(l);if(d===_e)return!1}return f},set(o,u,l,f){var d=n.get(u),h=u in o;if(r&&u==="length")for(var c=l;c<d.v;c+=1){var m=n.get(c+"");m!==void 0?re(m,_e):c in o&&(m=a(()=>Ce(_e)),n.set(c+"",m))}if(d===void 0)(!h||Rt(o,u)?.writable)&&(d=a(()=>Ce(void 0)),re(d,Fe(l)),n.set(u,d));else{h=d.v!==_e;var P=a(()=>Fe(l));re(d,P)}var g=Reflect.getOwnPropertyDescriptor(o,u);if(g?.set&&g.set.call(f,l),!h){if(r&&typeof u=="string"){var O=n.get("length"),k=Number(u);Number.isInteger(k)&&k>=O.v&&re(O,k+1)}Tn(i)}return!0},ownKeys(o){B(i);var u=Reflect.ownKeys(o).filter(d=>{var h=n.get(d);return h===void 0||h.v!==_e});for(var[l,f]of n)f.v!==_e&&!(l in o)&&u.push(l);return u},setPrototypeOf(){$o()}})}var Bi,Bs,Ls,Rs;function Nr(){if(Bi===void 0){Bi=window,Bs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ls=Rt(t,"firstChild").get,Rs=Rt(t,"nextSibling").get,Mi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mi(n)&&(n.__t=void 0)}}function Xe(e=""){return document.createTextNode(e)}function mt(e){return Ls.call(e)}function rt(e){return Rs.call(e)}function si(e,t){if(!J)return mt(e);var n=mt(K);if(n===null)n=K.appendChild(Xe());else if(t&&n.nodeType!==ei){var r=Xe();return n?.before(r),Ne(r),r}return Ne(n),n}function Wo(e,t=!1){if(!J){var n=mt(e);return n instanceof Comment&&n.data===""?rt(n):n}if(t&&K?.nodeType!==ei){var r=Xe();return K?.before(r),Ne(r),r}return K}function Fs(e,t=1,n=!1){let r=J?K:e;for(var i;t--;)i=r,r=rt(r);if(!J)return r;if(n&&r?.nodeType!==ei){var s=Xe();return r===null?i?.after(s):r.before(s),Ne(s),s}return Ne(r),r}function Gs(e){e.textContent=""}function ks(){return!1}let Li=!1;function qo(){Li||(Li=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Us(e){var t=Y,n=ee;$e(null),nt(null);try{return e()}finally{$e(t),nt(n)}}function js(e){ee===null&&(Y===null&&Co(),To()),Pt&&So()}function Zo(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Qe(e,t,n){var r=ee;r!==null&&r.f&Ge&&(e|=Ge);var i={ctx:Me,deps:null,nodes:null,f:e|Ie|ze,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{In(i),i.f|=ir}catch(o){throw Ae(i),o}else t!==null&>(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Xt)&&(s=s.first,e&_t&&e&tn&&s!==null&&(s.f|=tn)),s!==null&&(s.parent=r,r!==null&&Zo(s,r),Y!==null&&Y.f&ye&&!(e&$t))){var a=Y;(a.effects??=[]).push(s)}return i}function ai(){return Y!==null&&!Je}function Vs(e){const t=Qe($n,null,!1);return ge(t,Ee),t.teardown=e,t}function zs(e){js();var t=ee.f,n=!Y&&(t&bt)!==0&&(t&ir)===0;if(n){var r=Me;(r.e??=[]).push(e)}else return Xs(e)}function Xs(e){return Qe(zn|vs,e,!1)}function Jo(e){return js(),Qe($n|vs,e,!0)}function Qo(e){Ze.ensure();const t=Qe($t|Xt,e,!0);return()=>{Ae(t)}}function Ko(e){Ze.ensure();const t=Qe($t|Xt,e,!0);return(n={})=>new Promise(r=>{n.outro?Ft(t,()=>{Ae(t),r(void 0)}):(Ae(t),r(void 0))})}function oi(e){return Qe(zn,e,!1)}function eu(e){return Qe(Kr|Xt,e,!0)}function ui(e,t=0){return Qe($n|t,e,!0)}function li(e,t=[],n=[],r=[]){jo(r,t,n,i=>{Qe($n,()=>e(...i.map(B)),!0)})}function fi(e,t=0){var n=Qe(_t|t,e,!0);return n}function je(e){return Qe(bt|Xt,e,!0)}function Ys(e){var t=e.teardown;if(t!==null){const n=Pt,r=Y;Ri(!0),$e(null);try{t.call(null)}finally{Ri(n),$e(r)}}}function Ws(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Us(()=>{i.abort(Kt)});var r=n.next;n.f&$t?n.parent=null:Ae(n,t),n=r}}function tu(e){for(var t=e.first;t!==null;){var n=t.next;t.f&bt||Ae(t),t=n}}function Ae(e,t=!0){var n=!1;(t||e.f&ps)&&e.nodes!==null&&e.nodes.end!==null&&(nu(e.nodes.start,e.nodes.end),n=!0),Ws(e,t&&!n),qn(e,0),ge(e,pt);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Ys(e);var i=e.parent;i!==null&&i.first!==null&&qs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function nu(e,t){for(;e!==null;){var n=e===t?null:rt(e);e.remove(),e=n}}function qs(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ft(e,t,n=!0){var r=[];Zs(e,r,!0);var i=()=>{n&&Ae(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function Zs(e,t,n){if(!(e.f&Ge)){e.f^=Ge;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&tn)!==0||(i.f&bt)!==0&&(e.f&_t)!==0;Zs(i,t,a?n:!1),i=s}}}function ci(e){Js(e,!0)}function Js(e,t){if(e.f&Ge){e.f^=Ge,e.f&Ee||(ge(e,Ie),gt(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&tn)!==0||(n.f&bt)!==0;Js(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Qs(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:rt(n);t.append(n),n=i}}let Gt=!1;function Wn(e){Gt=e}let Pt=!1;function Ri(e){Pt=e}let Y=null,Je=!1;function $e(e){Y=e}let ee=null;function nt(e){ee=e}let vt=null;function Ks(e){Y!==null&&(vt===null?vt=[e]:vt.push(e))}let Oe=null,Re=0,ke=null;function ru(e){ke=e}let ea=1,Lt=0,kt=Lt;function Fi(e){kt=e}function ta(){return++ea}function Nn(e){var t=e.f;if(t&Ie)return!0;if(t&ye&&(e.f&=~Vt),t&yt){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Nn(s)&&Ms(s),s.wv>e.wv)return!0}t&ze&&qe===null&&ge(e,Ee)}return!1}function na(e,t,n=!0){var r=e.reactions;if(r!==null&&!vt?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];s.f&ye?na(s,t,!1):t===s&&(n?ge(s,Ie):s.f&Ee&&ge(s,yt),gt(s))}}function ra(e){var t=Oe,n=Re,r=ke,i=Y,s=vt,a=Me,o=Je,u=kt,l=e.f;Oe=null,Re=0,ke=null,Y=l&(bt|$t)?null:e,vt=null,nn(e.ctx),Je=!1,kt=++Lt,e.ac!==null&&(Us(()=>{e.ac.abort(Kt)}),e.ac=null);try{e.f|=Pr;var f=e.fn,d=f(),h=e.deps;if(Oe!==null){var c;if(qn(e,Re),h!==null&&Re>0)for(h.length=Re+Oe.length,c=0;c<Oe.length;c++)h[Re+c]=Oe[c];else e.deps=h=Oe;if(ai()&&e.f&ze)for(c=Re;c<h.length;c++)(h[c].reactions??=[]).push(e)}else h!==null&&Re<h.length&&(qn(e,Re),h.length=Re);if(ws()&&ke!==null&&!Je&&h!==null&&!(e.f&(ye|yt|Ie)))for(c=0;c<ke.length;c++)na(ke[c],e);if(i!==null&&i!==e){if(Lt++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=Lt;if(t!==null)for(const m of t)m.rv=Lt;ke!==null&&(r===null?r=ke:r.push(...ke))}return e.f&Ct&&(e.f^=Ct),d}catch(m){return Ts(m)}finally{e.f^=Pr,Oe=t,Re=n,ke=r,Y=i,vt=s,nn(a),Je=o,kt=u}}function iu(e,t){let n=t.reactions;if(n!==null){var r=_o.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&ye&&(Oe===null||!Oe.includes(t))){var s=t;s.f&ze&&(s.f^=ze,s.f&=~Vt),ti(s),Ns(s),qn(s,0)}}function qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)iu(e,n[r])}function In(e){var t=e.f;if(!(t&pt)){ge(e,Ee);var n=ee,r=Gt;ee=e,Gt=!0;try{t&(_t|ds)?tu(e):Ws(e),Ys(e);var i=ra(e);e.teardown=typeof i=="function"?i:null,e.wv=ea;var s;Ir&&Ho&&e.f&Ie&&e.deps}finally{Gt=r,ee=n}}}function B(e){var t=e.f,n=(t&ye)!==0;if(Y!==null&&!Je){var r=ee!==null&&(ee.f&pt)!==0;if(!r&&!vt?.includes(e)){var i=Y.deps;if(Y.f&Pr)e.rv<Lt&&(e.rv=Lt,Oe===null&&i!==null&&i[Re]===e?Re++:Oe===null?Oe=[e]:Oe.push(e));else{(Y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[Y]:s.includes(Y)||s.push(Y)}}}if(Pt&&At.has(e))return At.get(e);if(n){var a=e;if(Pt){var o=a.v;return(!(a.f&Ee)&&a.reactions!==null||sa(a))&&(o=ri(a)),At.set(a,o),o}var u=(a.f&ze)===0&&!Je&&Y!==null&&(Gt||(Y.f&ze)!==0),l=a.deps===null;Nn(a)&&(u&&(a.f|=ze),Ms(a)),u&&!l&&ia(a)}if(qe?.has(e))return qe.get(e);if(e.f&Ct)throw e.v;return e.v}function ia(e){if(e.deps!==null){e.f|=ze;for(const t of e.deps)(t.reactions??=[]).push(e),t.f&ye&&!(t.f&ze)&&ia(t)}}function sa(e){if(e.v===_e)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(At.has(t)||t.f&ye&&sa(t))return!0;return!1}function Nt(e){var t=Je;try{return Je=!0,e()}finally{Je=t}}const aa=new Set,Mr=new Set;function hi(e){for(var t=0;t<e.length;t++)aa.add(e[t]);for(var n of Mr)n(e)}let Gi=null;function Bn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Gi=e;var a=0,o=Gi===e&&e.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){Cn(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=Y,d=ee;$e(null),nt(null);try{for(var h,c=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var P=s["__"+r];P!=null&&(!s.disabled||e.target===s)&&P.call(s,e)}catch(g){h?c.push(g):h=g}if(e.cancelBubble||m===t||m===null)break;s=m}if(h){for(let g of c)queueMicrotask(()=>{throw g});throw h}}finally{e.__root=t,delete e.currentTarget,$e(f),nt(d)}}}function oa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function It(e,t){var n=ee;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function dn(e,t){var n=(t&vo)!==0,r=(t&go)!==0,i,s=!e.startsWith("<!>");return()=>{if(J)return It(K,null),K;i===void 0&&(i=oa(s?e:"<!>"+e),n||(i=mt(i)));var a=r||Bs?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=mt(a),u=a.lastChild;It(o,u)}else It(a,a);return a}}function su(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(J)return It(K,null),K;if(!s){var a=oa(i),o=mt(a);s=mt(o)}var u=s.cloneNode(!0);return It(u,u),u}}function au(e,t){return su(e,t,"svg")}function ou(){if(J)return It(K,null),K;var e=document.createDocumentFragment(),t=document.createComment(""),n=Xe();return e.append(t,n),It(t,n),e}function Ut(e,t){if(J){var n=ee;(!(n.f&ir)||n.nodes.end===null)&&(n.nodes.end=K),ar();return}e!==null&&e.before(t)}const uu=["touchstart","touchmove"];function lu(e){return uu.includes(e)}function di(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function ua(e,t){return la(e,t)}function fu(e,t){Nr(),t.intro=t.intro??!1;const n=t.target,r=J,i=K;try{for(var s=mt(n);s&&(s.nodeType!==cn||s.data!==us);)s=rt(s);if(!s)throw en;ht(!0),Ne(s);const a=la(e,{...t,anchor:s});return ht(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==en&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Io(),Nr(),Gs(n),ht(!1),ua(e,t)}finally{ht(r),Ne(i)}}const Jt=new Map;function la(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){Nr();var o=new Set,u=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!o.has(c)){o.add(c);var m=lu(c);t.addEventListener(c,Bn,{passive:m});var P=Jt.get(c);P===void 0?(document.addEventListener(c,Bn,{passive:m}),Jt.set(c,1)):Jt.set(c,P+1)}}};u(rr(aa)),Mr.add(u);var l=void 0,f=Ko(()=>{var d=n??t.appendChild(Xe());return ko(d,{pending:()=>{}},h=>{if(s){or({});var c=Me;c.c=s}if(i&&(r.$$events=i),J&&It(h,null),l=e(h,r)||{},J&&(ee.nodes.end=K,K===null||K.nodeType!==cn||K.data!==Jr))throw sr(),en;s&&ur()}),()=>{for(var h of o){t.removeEventListener(h,Bn);var c=Jt.get(h);--c===0?(document.removeEventListener(h,Bn),Jt.delete(h)):Jt.set(h,c)}Mr.delete(u),d!==n&&d.parentNode?.removeChild(d)}});return Dr.set(l,f),l}let Dr=new WeakMap;function cu(e,t){const n=Dr.get(e);return n?(Dr.delete(e),n(t)):Promise.resolve()}class hu{anchor;#e=new Map;#t=new Map;#n=new Map;#i=new Set;#a=!0;constructor(t,n=!0){this.anchor=t,this.#a=n}#s=()=>{var t=ue;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)ci(r),this.#i.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#n.get(a);o&&(Ae(o.effect),this.#n.delete(a))}for(const[s,a]of this.#t){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var l=document.createDocumentFragment();Qs(a,l),l.append(Xe()),this.#n.set(s,{effect:a,fragment:l})}else Ae(a);this.#i.delete(s),this.#t.delete(s)};this.#a||!r?(this.#i.add(s),Ft(a,o,!1)):o()}}};#r=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(Ae(i.effect),this.#n.delete(r))};ensure(t,n){var r=ue,i=ks();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),a=Xe();s.append(a),this.#n.set(t,{effect:je(()=>n(a)),fragment:s})}else this.#t.set(t,je(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,u]of this.#t)o===t?r.skipped_effects.delete(u):r.skipped_effects.add(u);for(const[o,u]of this.#n)o===t?r.skipped_effects.delete(u.effect):r.skipped_effects.add(u.effect);r.oncommit(this.#s),r.ondiscard(this.#r)}else J&&(this.anchor=K),this.#s()}}function du(e){Me===null&&ms(),zs(()=>{const t=Nt(e);if(typeof t=="function")return t})}function pu(e){Me===null&&ms(),du(()=>()=>Nt(e))}function fa(e,t,n=!1){J&&ar();var r=new hu(e),i=n?tn:0;function s(a,o){if(J){const l=bs(e)===nr;if(a===l){var u=Xn();Ne(u),r.anchor=u,ht(!1),r.ensure(a,o),ht(!0);return}}r.ensure(a,o)}fi(()=>{var a=!1;t((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function ca(e,t){return t}function vu(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let d=t[o];Ft(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var h=e.outrogroups;Hr(rr(s.done)),h.delete(s),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=r.length===0&&n!==null;if(u){var l=n,f=l.parentNode;Gs(f),f.append(l),e.items.clear()}Hr(t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Hr(e,t=!0){for(var n=0;n<e.length;n++)Ae(e[n],t)}var ki;function pi(e,t,n,r,i,s=null){var a=e,o=new Map,u=(t&os)!==0;if(u){var l=e;a=J?Ne(mt(l)):l.appendChild(Xe())}J&&ar();var f=null,d=$s(()=>{var O=n();return ls(O)?O:O==null?[]:rr(O)}),h,c=!0;function m(){g.fallback=f,gu(g,h,a,t,r),f!==null&&(h.length===0?f.f&ct?(f.f^=ct,yn(f,null,a)):ci(f):Ft(f,()=>{f=null}))}var P=fi(()=>{h=B(d);var O=h.length;let k=!1;if(J){var D=bs(a)===nr;D!==(O===0)&&(a=Xn(),Ne(a),ht(!1),k=!0)}for(var j=new Set,Q=ue,H=ks(),S=0;S<O;S+=1){J&&K.nodeType===cn&&K.data===Jr&&(a=K,k=!0,ht(!1));var p=h[S],C=r(p,S),_=c?null:o.get(C);_?(_.v&&sn(_.v,p),_.i&&sn(_.i,S),H&&Q.skipped_effects.delete(_.e)):(_=mu(o,c?a:ki??=Xe(),p,C,S,i,t,n),c||(_.e.f|=ct),o.set(C,_)),j.add(C)}if(O===0&&s&&!f&&(c?f=je(()=>s(a)):(f=je(()=>s(ki??=Xe())),f.f|=ct)),J&&O>0&&Ne(Xn()),!c)if(H){for(const[y,M]of o)j.has(y)||Q.skipped_effects.add(M.e);Q.oncommit(m),Q.ondiscard(()=>{})}else m();k&&ht(!0),B(d)}),g={effect:P,items:o,outrogroups:null,fallback:f};c=!1,J&&(a=K)}function gu(e,t,n,r,i){var s=(r&uo)!==0,a=t.length,o=e.items,u=e.effect.first,l,f=null,d,h=[],c=[],m,P,g,O;if(s)for(O=0;O<a;O+=1)m=t[O],P=i(m,O),g=o.get(P).e,g.f&ct||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(O=0;O<a;O+=1){if(m=t[O],P=i(m,O),g=o.get(P).e,e.outrogroups!==null)for(const _ of e.outrogroups)_.pending.delete(g),_.done.delete(g);if(g.f&ct)if(g.f^=ct,g===u)yn(g,null,n);else{var k=f?f.next:u;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),xt(e,f,g),xt(e,g,k),yn(g,k,n),f=g,h=[],c=[],u=f.next;continue}if(g.f&Ge&&(ci(g),s&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g!==u){if(l!==void 0&&l.has(g)){if(h.length<c.length){var D=c[0],j;f=D.prev;var Q=h[0],H=h[h.length-1];for(j=0;j<h.length;j+=1)yn(h[j],D,n);for(j=0;j<c.length;j+=1)l.delete(c[j]);xt(e,Q.prev,H.next),xt(e,f,Q),xt(e,H,D),u=D,f=H,O-=1,h=[],c=[]}else l.delete(g),yn(g,u,n),xt(e,g.prev,g.next),xt(e,g,f===null?e.effect.first:f.next),xt(e,f,g),f=g;continue}for(h=[],c=[];u!==null&&u!==g;)(l??=new Set).add(u),c.push(u),u=u.next;if(u===null)continue}g.f&ct||h.push(g),f=g,u=g.next}if(e.outrogroups!==null){for(const _ of e.outrogroups)_.pending.size===0&&(Hr(rr(_.done)),e.outrogroups?.delete(_));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var S=[];if(l!==void 0)for(g of l)g.f&Ge||S.push(g);for(;u!==null;)!(u.f&Ge)&&u!==e.fallback&&S.push(u),u=u.next;var p=S.length;if(p>0){var C=r&os&&a===0?n:null;if(s){for(O=0;O<p;O+=1)S[O].nodes?.a?.measure();for(O=0;O<p;O+=1)S[O].nodes?.a?.fix()}vu(e,S,C)}}s&&hn(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function mu(e,t,n,r,i,s,a,o){var u=a&ao?a&lo?zt(n):ii(n,!1,!1):null,l=a&oo?zt(i):null;return{v:u,i:l,e:je(()=>(s(t,u??n,l??i,o),()=>{e.delete(r)}))}}function yn(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&ct)?t.nodes.start:n;r!==null;){var a=rt(r);if(s.before(r),r===i)return;r=a}}function xt(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function vi(e,t){oi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ha(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ha(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _u(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ha(e))&&(r&&(r+=" "),r+=t);return r}function bu(e){return typeof e=="object"?_u(e):e??""}const Ui=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function yu(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,a=0;(a=r.indexOf(i,a))>=0;){var o=a+s;(a===0||Ui.includes(r[a-1]))&&(o===r.length||Ui.includes(r[o]))?r=(a===0?"":r.substring(0,a))+r.substring(o+1):a=o}}return r===""?null:r}function Eu(e,t){return e==null?null:String(e)}function gi(e,t,n,r,i,s){var a=e.__className;if(J||a!==n||a===void 0){var o=yu(n,r,s);(!J||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}function xu(e,t,n,r){var i=e.__style;if(J||i!==t){var s=Eu(t);(!J||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const wu=Symbol("is custom element"),Su=Symbol("is html");function Tu(e){if(J){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;Zn(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;Zn(e,"checked",null),e.checked=i}}};e.__on_r=n,hn(n),qo()}}function Cu(e,t){var n=da(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function Zn(e,t,n,r){var i=da(e);J&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[xo]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Au(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function da(e){return e.__attributes??={[wu]:e.nodeName.includes("-"),[Su]:e.namespaceURI===mo}}var ji=new Map;function Au(e){var t=e.getAttribute("is")||e.nodeName,n=ji.get(t);if(n)return n;ji.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=bo(i);for(var a in r)r[a].set&&n.push(a);i=fs(i)}return n}class mi{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=t}observe(t,n){var r=this.#e.get(t)||new Set;return r.add(n),this.#e.set(t,r),this.#i().observe(t,this.#n),()=>{var i=this.#e.get(t);i.delete(n),i.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#i(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var n of t){mi.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}}))}}var Iu=new mi({box:"border-box"});function Pu(e,t,n){var r=Iu.observe(e,()=>n(e[t]));oi(()=>(Nt(()=>n(e[t])),r))}function Vi(e,t){return e===t||e?.[wn]===t}function Ou(e={},t,n,r){return oi(()=>{var i,s;return ui(()=>{i=s,s=r?.()||[],Nt(()=>{e!==n(...s)&&(t(e,...s),i&&Vi(n(...i),e)&&t(null,...i))})}),()=>{hn(()=>{s&&Vi(n(...s),e)&&t(null,...s)})}}),e}function _i(e,t,n){if(e==null)return t(void 0),n&&n(void 0),Tt;const r=Nt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Qt=[];function $u(e,t){return{subscribe:cr(e,t).subscribe}}function cr(e,t=Tt){let n=null;const r=new Set;function i(o){if(Es(e,o)&&(e=o,n)){const u=!Qt.length;for(const l of r)l[1](),Qt.push(l,e);if(u){for(let l=0;l<Qt.length;l+=2)Qt[l][0](Qt[l+1]);Qt.length=0}}}function s(o){i(o(e))}function a(o,u=Tt){const l=[o,u];return r.add(l),r.size===1&&(n=t(i,s)||Tt),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:a}}function pn(e,t,n){const r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return $u(n,(a,o)=>{let u=!1;const l=[];let f=0,d=Tt;const h=()=>{if(f)return;d();const m=t(r?l[0]:l,a,o);s?a(m):d=typeof m=="function"?m:Tt},c=i.map((m,P)=>_i(m,g=>{l[P]=g,f&=~(1<<P),u&&h()},()=>{f|=1<<P}));return u=!0,h(),function(){cs(c),d(),u=!1}})}function Nu(e){let t;return _i(e,n=>t=n)(),t}let Ln=!1,Br=Symbol();function bi(e,t,n){const r=n[t]??={store:null,source:ii(void 0),unsubscribe:Tt};if(r.store!==e&&!(Br in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=Tt;else{var i=!0;r.unsubscribe=_i(e,s=>{i?r.source.v=s:re(r.source,s)}),i=!1}return e&&Br in n?Nu(e):B(r.source)}function yi(){const e={};function t(){Vs(()=>{for(var n in e)e[n].unsubscribe();Cn(e,Br,{enumerable:!1,value:!0})})}return[e,t]}function Mu(e){var t=Ln;try{return Ln=!1,[e(),Ln]}finally{Ln=t}}function wt(e,t,n,r){var i=(n&ho)!==0,s=(n&po)!==0,a=r,o=!0,u=()=>(o&&(o=!1,a=s?Nt(r):r),a),l;if(i){var f=wn in e||gs in e;l=Rt(e,t)?.set??(f&&t in e?k=>e[t]=k:void 0)}var d,h=!1;i?[d,h]=Mu(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=u(),l&&(Po(),l(d)));var c;if(c=()=>{var k=e[t];return k===void 0?u():(o=!0,k)},!(n&co))return c;if(l){var m=e.$$legacy;return function(k,D){return arguments.length>0?((!D||m||h)&&l(D?c():k),k):c()}}var P=!1,g=(n&fo?fr:$s)(()=>(P=!1,c()));i&&B(g);var O=ee;return function(k,D){if(arguments.length>0){const j=D?B(g):i?Fe(k):k;return re(g,j),P=!0,a!==void 0&&(a=j),k}return Pt&&P||O.f&pt?g.v:B(g)}}function Du(e){return new Hu(e)}class Hu{#e;#t;constructor(t){var n=new Map,r=(s,a)=>{var o=ii(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return B(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===gs?!0:(B(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return re(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?fu:ua)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&dt(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Cn(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{cu(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let pa;typeof HTMLElement=="function"&&(pa=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),Ut(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Bu(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),n.default=!0):n[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=Gn(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=Du({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=Qo(()=>{ui(()=>{this.$$r=!0;for(const i of Vn(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=Gn(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gn(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Vn(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Gn(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;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 Bu(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ei(e,t,n,r,i,s){let a=class extends pa{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Vn(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Vn(t).forEach(o=>{Cn(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=Gn(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=Rt(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),r.forEach(o=>{Cn(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const De=(e,t)=>{window.postMessage({...t,type:`Challenges:${e}`},window.location.href)},Lu=e=>{De("TabClicked",{tabName:e})},Ru=(e,t,n)=>{De("OptInClicked",{id:e,name:t,status:n})},Fu=(e,t,n)=>{De("OptOutClicked",{id:e,name:t,status:n})},Gu=(e,t,n)=>{De("ViewDetailClicked",{id:e,name:t,status:n})},ku=(e,t,n,r)=>{De("DetailTabClicked",{id:e,name:t,status:n,tabName:r})},Uu=e=>{De("DetailPageOpen",{isOpen:e})},ju=(e,t,n)=>{De("PauseClicked",{id:e,name:t,status:n})},Vu=(e,t,n)=>{De("ResumeClicked",{id:e,name:t,status:n})},Lr=e=>{De("ActionSuccess",{action:e})},Rr=(e,t,n)=>{De("ActionFail",{action:e,errorMessage:t,errorCode:n})},zu=(e,t,n,r)=>{De("GameLaunch",{gameId:e.CasinoGameId,ClientCompatibility:e.ClientCompatibility,GameId:e.GameId,GameName:e.GameName,GameLaunchUrl:e.GameLaunchUrl,RestrictedCountries:e.RestrictedCountries,Vendor:e.Vendor,challengeId:t,challengeName:n,challengeStatus:r})},Xu=(e,t,n)=>{De("GoToDeposit",{id:e,name:t,status:n})},va=()=>{De("LoginClicked")},Yu=e=>{De("PromoClicked",{promoType:e})},Wu="Challenges:OptoutConfirmed";var En=(e=>(e[e.Accumulative=0]="Accumulative",e[e.SingleBet=1]="SingleBet",e[e.MultipleOneBetSize=2]="MultipleOneBetSize",e[e.BetMultiplier=3]="BetMultiplier",e))(En||{}),xn=(e=>(e[e.Single=0]="Single",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e))(xn||{}),Fr=(e=>(e[e.Draft=0]="Draft",e[e.Enabled=1]="Enabled",e[e.Paused=2]="Paused",e[e.Closed=3]="Closed",e[e.Deleted=4]="Deleted",e))(Fr||{}),U=(e=>(e[e.Started=0]="Started",e[e.InProgress=1]="InProgress",e[e.PendingLevelReward=2]="PendingLevelReward",e[e.Completed=3]="Completed",e[e.Expired=4]="Expired",e[e.Forfeited=5]="Forfeited",e[e.Awaiting=6]="Awaiting",e[e.Paused=7]="Paused",e))(U||{}),ga=(e=>(e[e.Completed=0]="Completed",e[e.Expired=1]="Expired",e[e.Forfeited=2]="Forfeited",e))(ga||{}),tt=(e=>(e[e.Closed=0]="Closed",e[e.InProgress=1]="InProgress",e[e.Fillup=2]="Fillup",e[e.Completed=3]="Completed",e))(tt||{}),kn=(e=>(e[e.RealCash=0]="RealCash",e[e.BonusMoney=1]="BonusMoney",e[e.Mixed=2]="Mixed",e))(kn||{}),hr=(e=>(e[e.GameLaunch=0]="GameLaunch",e[e.Reward=1]="Reward",e[e.Manual=2]="Manual",e[e.Claim=3]="Claim",e[e.Event=4]="Event",e[e.Deposit=5]="Deposit",e[e.ClaimByButton=6]="ClaimByButton",e))(hr||{}),Jn=(e=>(e[e.Casino=0]="Casino",e[e.Any=1]="Any",e[e.Sportsbook=2]="Sportsbook",e))(Jn||{}),Ht=(e=>(e.OptIn="optIn",e.OptOut="optOut",e.Pause="pause",e.Resume="resume",e.Claim="claim",e))(Ht||{});const an=0,dr=20,qu=10,Zu=7,Ju=4;class ma extends Error{constructor(t,n){super(n??"Challenge API Error"),this.errorCode=t,this.name="ChallengeApiError"}}const Qu=(e,t)=>new URL(`${e}/challenge/${t}`),Ke=async(e,t,n,r=i=>i?.ErrorMessage??null)=>{const s=await(await fetch(Qu(e,t).href,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).json();if(!s?.Success)throw new ma(s?.ErrorCode??null,r(s));return s},xi=({domainId:e,locale:t="en",pageNumber:n=an,pageSize:r=dr,sessionId:i,isFutureAvailable:s=!1})=>({DomainId:String(e),PlayerLanguage:t,PageNumber:n,PageSize:r,...i&&{PlayerSession:i,IsFutureAvailable:s}}),_a=({domainId:e,locale:t="en",pageNumber:n=an,pageSize:r=dr,challengeId:i,sessionId:s})=>({DomainId:String(e),PlayerLanguage:t,PageNumber:n,PageSize:r,ChallengeId:i,...s&&{PlayerSession:s}}),yr=e=>Ke(e.endpoint,"GetChallengesInfo",xi(e)),Ku=async({challengeId:e,...t})=>{const n={..._a({...t,challengeId:e})};return(await Ke(t.endpoint,"GetChallengesInfo",n)).Data?.[0]},el=e=>Ke(e.endpoint,"DisplayableWidgetChallenges",xi({...e,isFutureAvailable:e.isFutureAvailable??!0})),tl=async({challengeId:e,...t})=>{const n={..._a({...t,challengeId:e})};return(await Ke(t.endpoint,"DisplayableWidgetChallenges",n)).Data?.[0]},ba=({userId:e,...t})=>{const n={...xi(t),...e&&{UserId:String(e)}};return Ke(t.endpoint,"PlayerHistory",n)},nl=({domainId:e,code:t,sessionId:n,endpoint:r})=>{const i={DomainId:String(e),ActivationCode:t,PlayerSession:n};return Ke(r,"GrantChallengeByCode",i)},rl=async({challengeId:e,sessionId:t,endpoint:n})=>{const r={ChallengeId:e,...t&&{PlayerSession:t}};return(await Ke(n,"GetChallengeGames",r)).ChallengeGames},il=({endpoint:e,domainId:t,sessionId:n,userId:r,progressTo:i,isPause:s=!1})=>{const a={DomainId:String(t),...n&&{PlayerSession:n},...r&&{InternalUserId:String(r)},...s?{ProgressToDeactivate:i}:{ProgressToActivate:i}};return Ke(e,"ChangeProgressStatus",a)},sl=({endpoint:e,domainId:t,challengeProgressId:n})=>{const r={DomainId:String(t),ChallengeProgressId:n};return Ke(e,"ChangeProgressIsNewStatus",r)},al=({endpoint:e,domainId:t,sessionId:n,userId:r,challengeId:i})=>{const s={DomainId:String(t),...n&&{PlayerSession:n},ChallengeId:i,OperatorUserId:String(r)};return Ke(e,"ChallengeForfeit",s,a=>a?.Message??a?.ErrorMessage??null)},ol=({endpoint:e,domainId:t,sessionId:n,challengeId:r})=>{const i={DomainId:String(t),...n&&{PlayerSession:n},ChallengeId:r};return Ke(e,"ChallengePlayerClaimByButtonGrant",i)};var wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gr={exports:{}};/** @license
|
|
4
|
-
* eventsource.js
|
|
5
|
-
* Available under MIT License (MIT)
|
|
6
|
-
* https://github.com/Yaffle/EventSource/
|
|
7
|
-
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,s=n.XMLHttpRequest,a=n.XDomainRequest,o=n.ActiveXObject,u=n.EventSource,l=n.document,f=n.Promise,d=n.fetch,h=n.Response,c=n.TextDecoder,m=n.TextEncoder,P=n.AbortController;if(typeof window<"u"&&typeof l<"u"&&!("readyState"in l)&&l.body==null&&(l.readyState="loading",window.addEventListener("load",function(v){l.readyState="complete"},!1)),s==null&&o!=null&&(s=function(){return new o("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(v){function T(){}return T.prototype=v,new T}),Date.now||(Date.now=function(){return new Date().getTime()}),P==null){var g=d;d=function(v,T){var $=T.signal;return g(v,{headers:T.headers,credentials:T.credentials,cache:T.cache}).then(function(w){var F=w.body.getReader();return $._reader=F,$._aborted&&$._reader.cancel(),{status:w.status,statusText:w.statusText,headers:w.headers,body:{getReader:function(){return F}}}})},P=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(v){function T(te,ne,G){if(G===1)return te>=128>>ne&&te<<ne<=2047;if(G===2)return te>=2048>>ne&&te<<ne<=55295||te>=57344>>ne&&te<<ne<=65535;if(G===3)return te>=65536>>ne&&te<<ne<=1114111;throw new Error}function $(te,ne){if(te===6*1)return ne>>6>15?3:ne>31?2:1;if(te===6*2)return ne>15?3:2;if(te===6*3)return 3;throw new Error}for(var w=65533,F="",N=this.bitsNeeded,V=this.codePoint,ae=0;ae<v.length;ae+=1){var W=v[ae];N!==0&&(W<128||W>191||!T(V<<6|W&63,N-6,$(N,V)))&&(N=0,V=w,F+=String.fromCharCode(V)),N===0?(W>=0&&W<=127?(N=0,V=W):W>=192&&W<=223?(N=6*1,V=W&31):W>=224&&W<=239?(N=6*2,V=W&15):W>=240&&W<=247?(N=6*3,V=W&7):(N=0,V=w),N!==0&&!T(V,N,$(N,V))&&(N=0,V=w)):(N-=6,V=V<<6|W&63),N===0&&(V<=65535?F+=String.fromCharCode(V):(F+=String.fromCharCode(55296+(V-65535-1>>10)),F+=String.fromCharCode(56320+(V-65535-1&1023))))}return this.bitsNeeded=N,this.codePoint=V,F};var k=function(){try{return new c().decode(new m().encode("test"),{stream:!0})==="test"}catch(v){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+v)}return!1};(c==null||m==null||!k())&&(c=O);var D=function(){};function j(v){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=D,this.onload=D,this.onerror=D,this.onreadystatechange=D,this._contentType="",this._xhr=v,this._sendTimeout=0,this._abort=D}j.prototype.open=function(v,T){this._abort(!0);var $=this,w=this._xhr,F=1,N=0;this._abort=function(G){$._sendTimeout!==0&&(i($._sendTimeout),$._sendTimeout=0),(F===1||F===2||F===3)&&(F=4,w.onload=D,w.onerror=D,w.onabort=D,w.onprogress=D,w.onreadystatechange=D,w.abort(),N!==0&&(i(N),N=0),G||($.readyState=4,$.onabort(null),$.onreadystatechange())),F=0};var V=function(){if(F===1){var G=0,oe="",at=void 0;if("contentType"in w)G=200,oe="OK",at=w.contentType;else try{G=w.status,oe=w.statusText,at=w.getResponseHeader("Content-Type")}catch{G=0,oe="",at=void 0}G!==0&&(F=2,$.readyState=2,$.status=G,$.statusText=oe,$._contentType=at,$.onreadystatechange())}},ae=function(){if(V(),F===2||F===3){F=3;var G="";try{G=w.responseText}catch{}$.readyState=3,$.responseText=G,$.onprogress()}},W=function(G,oe){if((oe==null||oe.preventDefault==null)&&(oe={preventDefault:D}),ae(),F===1||F===2||F===3){if(F=4,N!==0&&(i(N),N=0),$.readyState=4,G==="load")$.onload(oe);else if(G==="error")$.onerror(oe);else if(G==="abort")$.onabort(oe);else throw new TypeError;$.onreadystatechange()}},te=function(G){w!=null&&(w.readyState===4?(!("onload"in w)||!("onerror"in w)||!("onabort"in w))&&W(w.responseText===""?"error":"load",G):w.readyState===3?"onprogress"in w||ae():w.readyState===2&&V())},ne=function(){N=r(function(){ne()},500),w.readyState===3&&ae()};"onload"in w&&(w.onload=function(G){W("load",G)}),"onerror"in w&&(w.onerror=function(G){W("error",G)}),"onabort"in w&&(w.onabort=function(G){W("abort",G)}),"onprogress"in w&&(w.onprogress=ae),"onreadystatechange"in w&&(w.onreadystatechange=function(G){te(G)}),("contentType"in w||!("ontimeout"in s.prototype))&&(T+=(T.indexOf("?")===-1?"?":"&")+"padding=true"),w.open(v,T,!0),"readyState"in w&&(N=r(function(){ne()},0))},j.prototype.abort=function(){this._abort(!1)},j.prototype.getResponseHeader=function(v){return this._contentType},j.prototype.setRequestHeader=function(v,T){var $=this._xhr;"setRequestHeader"in $&&$.setRequestHeader(v,T)},j.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},j.prototype.send=function(){if((!("ontimeout"in s.prototype)||!("sendAsBinary"in s.prototype)&&!("mozAnon"in s.prototype))&&l!=null&&l.readyState!=null&&l.readyState!=="complete"){var v=this;v._sendTimeout=r(function(){v._sendTimeout=0,v.send()},4);return}var T=this._xhr;"withCredentials"in T&&(T.withCredentials=this.withCredentials);try{T.send(void 0)}catch($){throw $}};function Q(v){return v.replace(/[A-Z]/g,function(T){return String.fromCharCode(T.charCodeAt(0)+32)})}function H(v){for(var T=Object.create(null),$=v.split(`\r
|
|
8
|
-
`),w=0;w<$.length;w+=1){var F=$[w],N=F.split(": "),V=N.shift(),ae=N.join(": ");T[Q(V)]=ae}this._map=T}H.prototype.get=function(v){return this._map[Q(v)]},s!=null&&s.HEADERS_RECEIVED==null&&(s.HEADERS_RECEIVED=2);function S(){}S.prototype.open=function(v,T,$,w,F,N,V){v.open("GET",F);var ae=0;v.onprogress=function(){var te=v.responseText,ne=te.slice(ae);ae+=ne.length,$(ne)},v.onerror=function(te){te.preventDefault(),w(new Error("NetworkError"))},v.onload=function(){w(null)},v.onabort=function(){w(null)},v.onreadystatechange=function(){if(v.readyState===s.HEADERS_RECEIVED){var te=v.status,ne=v.statusText,G=v.getResponseHeader("Content-Type"),oe=v.getAllResponseHeaders();T(te,ne,G,new H(oe))}},v.withCredentials=N;for(var W in V)Object.prototype.hasOwnProperty.call(V,W)&&v.setRequestHeader(W,V[W]);return v.send(),v};function p(v){this._headers=v}p.prototype.get=function(v){return this._headers.get(v)};function C(){}C.prototype.open=function(v,T,$,w,F,N,V){var ae=null,W=new P,te=W.signal,ne=new c;return d(F,{headers:V,credentials:N?"include":"same-origin",signal:te,cache:"no-store"}).then(function(G){return ae=G.body.getReader(),T(G.status,G.statusText,G.headers.get("Content-Type"),new p(G.headers)),new f(function(oe,at){var mn=function(){ae.read().then(function(He){if(He.done)oe(void 0);else{var xe=ne.decode(He.value,{stream:!0});$(xe),mn()}}).catch(function(He){at(He)})};mn()})}).catch(function(G){if(G.name!=="AbortError")return G}).then(function(G){w(G)}),{abort:function(){ae?.cancel(),W.abort()}}};function _(){this._listeners=Object.create(null)}function y(v){r(function(){throw v},0)}_.prototype.dispatchEvent=function(v){v.target=this;var T=this._listeners[v.type];if(T!=null)for(var $=T.length,w=0;w<$;w+=1){var F=T[w];try{typeof F.handleEvent=="function"?F.handleEvent(v):F.call(this,v)}catch(N){y(N)}}},_.prototype.addEventListener=function(v,T){v=String(v);var $=this._listeners,w=$[v];w==null&&(w=[],$[v]=w);for(var F=!1,N=0;N<w.length;N+=1)w[N]===T&&(F=!0);F||w.push(T)},_.prototype.removeEventListener=function(v,T){v=String(v);var $=this._listeners,w=$[v];if(w!=null){for(var F=[],N=0;N<w.length;N+=1)w[N]!==T&&F.push(w[N]);F.length===0?delete $[v]:$[v]=F}};function M(v){this.type=v,this.target=void 0}function Z(v,T){M.call(this,v),this.data=T.data,this.lastEventId=T.lastEventId}Z.prototype=Object.create(M.prototype);function I(v,T){M.call(this,v),this.status=T.status,this.statusText=T.statusText,this.headers=T.headers}I.prototype=Object.create(M.prototype);function x(v,T){M.call(this,v),this.error=T.error}x.prototype=Object.create(M.prototype);var b=-1,A=0,E=1,L=2,R=-1,z=0,ie=1,fe=2,pe=3,Pe=/^text\/event\-stream(;.*)?$/i,Et=1e3,it=18e6,st=function(v,T){var $=v==null?T:parseInt(v,10);return $!==$&&($=T),Ye($)},Ye=function(v){return Math.min(Math.max(v,Et),it)},ce=function(v,T,$){try{typeof T=="function"&&T.call(v,$)}catch(w){y(w)}};function he(v,T){_.call(this),T=T||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,no(this,v,T)}function Mt(){return s!=null&&"withCredentials"in s.prototype||a==null?new s:new a}var Wt=d!=null&&h!=null&&"body"in h.prototype;function no(v,T,$){T=String(T);var w=!!$.withCredentials,F=$.lastEventIdQueryParameterName||"lastEventId",N=Ye(1e3),V=st($.heartbeatTimeout,45e3),ae="",W=N,te=!1,ne=0,G=$.headers||{},oe=$.Transport,at=Wt&&oe==null?void 0:new j(oe!=null?new oe:Mt()),mn=oe!=null&&typeof oe!="string"?new oe:at==null?new C:new S,He=void 0,xe=0,We=b,qt="",Mn="",ot="",Dn="",we=z,_r=0,Dt=0,ro=function(ve,de,Be,Le){if(We===A)if(ve===200&&Be!=null&&Pe.test(Be)){We=E,te=Date.now(),W=N,v.readyState=E;var Se=new I("open",{status:ve,statusText:de,headers:Le});v.dispatchEvent(Se),ce(v,v.onopen,Se)}else{var me="";ve!==200?(de&&(de=de.replace(/\s+/g," ")),me="EventSource's response has a status "+ve+" "+de+" that is not 200. Aborting the connection."):me="EventSource's response has a Content-Type specifying an unsupported type: "+(Be==null?"-":Be.replace(/\s+/g," "))+". Aborting the connection.",br();var Se=new I("error",{status:ve,statusText:de,headers:Le});v.dispatchEvent(Se),ce(v,v.onerror,Se),console.error(me)}},io=function(ve){if(We===E){for(var de=-1,Be=0;Be<ve.length;Be+=1){var Le=ve.charCodeAt(Be);(Le===10||Le===13)&&(de=Be)}var Se=(de!==-1?Dn:"")+ve.slice(0,de+1);Dn=(de===-1?Dn:"")+ve.slice(de+1),ve!==""&&(te=Date.now(),ne+=ve.length);for(var me=0;me<Se.length;me+=1){var Le=Se.charCodeAt(me);if(we===R&&Le===10)we=z;else if(we===R&&(we=z),Le===13||Le===10){if(we!==z){we===ie&&(Dt=me+1);var ut=Se.slice(_r,Dt-1),lt=Se.slice(Dt+(Dt<me&&Se.charCodeAt(Dt)===32?1:0),me);ut==="data"?(qt+=`
|
|
9
|
-
`,qt+=lt):ut==="id"?Mn=lt:ut==="event"?ot=lt:ut==="retry"?(N=st(lt,N),W=N):ut==="heartbeatTimeout"&&(V=st(lt,V),xe!==0&&(i(xe),xe=r(function(){_n()},V)))}if(we===z){if(qt!==""){ae=Mn,ot===""&&(ot="message");var Zt=new Z(ot,{data:qt.slice(1),lastEventId:Mn});if(v.dispatchEvent(Zt),ot==="open"?ce(v,v.onopen,Zt):ot==="message"?ce(v,v.onmessage,Zt):ot==="error"&&ce(v,v.onerror,Zt),We===L)return}qt="",ot=""}we=Le===13?R:z}else we===z&&(_r=me,we=ie),we===ie?Le===58&&(Dt=me+1,we=fe):we===fe&&(we=pe)}}},Ni=function(ve){if(We===E||We===A){We=b,xe!==0&&(i(xe),xe=0),xe=r(function(){_n()},W),W=Ye(Math.min(N*16,W*2)),v.readyState=A;var de=new x("error",{error:ve});v.dispatchEvent(de),ce(v,v.onerror,de),ve!=null&&console.error(ve)}},br=function(){We=L,He!=null&&(He.abort(),He=void 0),xe!==0&&(i(xe),xe=0),v.readyState=L},_n=function(){if(xe=0,We!==b){if(!te&&He!=null)Ni(new Error("No activity within "+V+" milliseconds. "+(We===A?"No response received.":ne+" chars received.")+" Reconnecting.")),He!=null&&(He.abort(),He=void 0);else{var ve=Math.max((te||Date.now())+V-Date.now(),1);te=!1,xe=r(function(){_n()},ve)}return}te=!1,ne=0,xe=r(function(){_n()},V),We=A,qt="",ot="",Mn=ae,Dn="",_r=0,Dt=0,we=z;var de=T;if(T.slice(0,5)!=="data:"&&T.slice(0,5)!=="blob:"&&ae!==""){var Be=T.indexOf("?");de=Be===-1?T:T.slice(0,Be+1)+T.slice(Be+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(lt,Zt){return Zt===F?"":lt}),de+=(T.indexOf("?")===-1?"?":"&")+F+"="+encodeURIComponent(ae)}var Le=v.withCredentials,Se={};Se.Accept="text/event-stream";var me=v.headers;if(me!=null)for(var ut in me)Object.prototype.hasOwnProperty.call(me,ut)&&(Se[ut]=me[ut]);try{He=mn.open(at,ro,io,Ni,de,Le,Se)}catch(lt){throw br(),lt}};v.url=T,v.readyState=A,v.withCredentials=w,v.headers=G,v._close=br,_n()}he.prototype=Object.create(_.prototype),he.prototype.CONNECTING=A,he.prototype.OPEN=E,he.prototype.CLOSED=L,he.prototype.close=function(){this._close()},he.CONNECTING=A,he.OPEN=E,he.CLOSED=L,he.prototype.withCredentials=void 0;var $i=u;s!=null&&(u==null||!("withCredentials"in u.prototype))&&($i=he),function(v){{var T=v(t);T!==void 0&&(e.exports=T)}}(function(v){v.EventSourcePolyfill=he,v.NativeEventSource=u,v.EventSource=$i})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:wi:globalThis)})(Gr,Gr.exports);var zi=Gr.exports;const Xi=(e,t)=>{try{return JSON.parse(e?.data)}catch(n){console.error(`Exception when parsing challenges ${t} live update`,n);return}},ul=e=>{const{endpoint:t,userId:n,sessionId:r,onNewProgress:i,onSessionExpired:s,onChallengeEnabledChange:a,onProgressForfeited:o}=e;let u,l;const f=()=>{u?.close(),l?.close(),u=void 0,l=void 0};return typeof EventSource>"u"||!t?{close:f}:(n&&r&&(u=new zi.EventSourcePolyfill(`${t}/v2/player/${n}/information/updates`,{headers:{"X-SessionId":r}}),u.addEventListener("message",d=>{const h=Xi(d,"player");if(!h)return;if(h.type==="SESSION_EXPIRATION"){f(),s?.();return}const c=h.body;if(c?.messageType==="newProgressNotification"){const m=c.challengeProgress;m&&String(m.InternalUserId)===String(n)&&i?.(m)}})),l=new zi.EventSourcePolyfill(`${t}/v1/encoder/challenges/*/update`),l.addEventListener("message",d=>{const c=Xi(d,"status")?.data;if(c)switch(c.messageType){case"disabledChallengeNotification":a?.(String(c.challengeId),!1);break;case"enabledChallengeNotification":a?.(String(c.challengeId),!0);break;case"forfeitedChallengeProgressNotification":o?.(String(c.challengeProgressId));break}}),{close:f})},ll=(e,t=!1)=>{if(typeof e=="boolean")return e;if(e==null)return t;if(typeof e=="number")return e!==0;const n=String(e).trim().toLowerCase();return n===""?!0:n!=="false"&&n!=="0"},fl=(e,t)=>{if(e==null||e==="")return t;const n=Number(e);return Number.isFinite(n)?n:t};var ya={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wi,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",d="month",h="quarter",c="year",m="date",P="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={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(I){var x=["th","st","nd","rd"],b=I%100;return"["+I+(x[(b-20)%10]||x[b]||x[0])+"]"}},D=function(I,x,b){var A=String(I);return!A||A.length>=x?I:""+Array(x+1-A.length).join(b)+I},j={s:D,z:function(I){var x=-I.utcOffset(),b=Math.abs(x),A=Math.floor(b/60),E=b%60;return(x<=0?"+":"-")+D(A,2,"0")+":"+D(E,2,"0")},m:function I(x,b){if(x.date()<b.date())return-I(b,x);var A=12*(b.year()-x.year())+(b.month()-x.month()),E=x.clone().add(A,d),L=b-E<0,R=x.clone().add(A+(L?-1:1),d);return+(-(A+(b-E)/(L?E-R:R-E))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:c,w:f,d:l,D:m,h:u,m:o,s:a,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},Q="en",H={};H[Q]=k;var S="$isDayjsObject",p=function(I){return I instanceof M||!(!I||!I[S])},C=function I(x,b,A){var E;if(!x)return Q;if(typeof x=="string"){var L=x.toLowerCase();H[L]&&(E=L),b&&(H[L]=b,E=L);var R=x.split("-");if(!E&&R.length>1)return I(R[0])}else{var z=x.name;H[z]=x,E=z}return!A&&E&&(Q=E),E||!A&&Q},_=function(I,x){if(p(I))return I.clone();var b=typeof x=="object"?x:{};return b.date=I,b.args=arguments,new M(b)},y=j;y.l=C,y.i=p,y.w=function(I,x){return _(I,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var M=function(){function I(b){this.$L=C(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[S]=!0}var x=I.prototype;return x.parse=function(b){this.$d=function(A){var E=A.date,L=A.utc;if(E===null)return new Date(NaN);if(y.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var R=E.match(g);if(R){var z=R[2]-1||0,ie=(R[7]||"0").substring(0,3);return L?new Date(Date.UTC(R[1],z,R[3]||1,R[4]||0,R[5]||0,R[6]||0,ie)):new Date(R[1],z,R[3]||1,R[4]||0,R[5]||0,R[6]||0,ie)}}return new Date(E)}(b),this.init()},x.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},x.$utils=function(){return y},x.isValid=function(){return this.$d.toString()!==P},x.isSame=function(b,A){var E=_(b);return this.startOf(A)<=E&&E<=this.endOf(A)},x.isAfter=function(b,A){return _(b)<this.startOf(A)},x.isBefore=function(b,A){return this.endOf(A)<_(b)},x.$g=function(b,A,E){return y.u(b)?this[A]:this.set(E,b)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(b,A){var E=this,L=!!y.u(A)||A,R=y.p(b),z=function(Ye,ce){var he=y.w(E.$u?Date.UTC(E.$y,ce,Ye):new Date(E.$y,ce,Ye),E);return L?he:he.endOf(l)},ie=function(Ye,ce){return y.w(E.toDate()[Ye].apply(E.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ce)),E)},fe=this.$W,pe=this.$M,Pe=this.$D,Et="set"+(this.$u?"UTC":"");switch(R){case c:return L?z(1,0):z(31,11);case d:return L?z(1,pe):z(0,pe+1);case f:var it=this.$locale().weekStart||0,st=(fe<it?fe+7:fe)-it;return z(L?Pe-st:Pe+(6-st),pe);case l:case m:return ie(Et+"Hours",0);case u:return ie(Et+"Minutes",1);case o:return ie(Et+"Seconds",2);case a:return ie(Et+"Milliseconds",3);default:return this.clone()}},x.endOf=function(b){return this.startOf(b,!1)},x.$set=function(b,A){var E,L=y.p(b),R="set"+(this.$u?"UTC":""),z=(E={},E[l]=R+"Date",E[m]=R+"Date",E[d]=R+"Month",E[c]=R+"FullYear",E[u]=R+"Hours",E[o]=R+"Minutes",E[a]=R+"Seconds",E[s]=R+"Milliseconds",E)[L],ie=L===l?this.$D+(A-this.$W):A;if(L===d||L===c){var fe=this.clone().set(m,1);fe.$d[z](ie),fe.init(),this.$d=fe.set(m,Math.min(this.$D,fe.daysInMonth())).$d}else z&&this.$d[z](ie);return this.init(),this},x.set=function(b,A){return this.clone().$set(b,A)},x.get=function(b){return this[y.p(b)]()},x.add=function(b,A){var E,L=this;b=Number(b);var R=y.p(A),z=function(pe){var Pe=_(L);return y.w(Pe.date(Pe.date()+Math.round(pe*b)),L)};if(R===d)return this.set(d,this.$M+b);if(R===c)return this.set(c,this.$y+b);if(R===l)return z(1);if(R===f)return z(7);var ie=(E={},E[o]=r,E[u]=i,E[a]=n,E)[R]||1,fe=this.$d.getTime()+b*ie;return y.w(fe,this)},x.subtract=function(b,A){return this.add(-1*b,A)},x.format=function(b){var A=this,E=this.$locale();if(!this.isValid())return E.invalidDate||P;var L=b||"YYYY-MM-DDTHH:mm:ssZ",R=y.z(this),z=this.$H,ie=this.$m,fe=this.$M,pe=E.weekdays,Pe=E.months,Et=E.meridiem,it=function(ce,he,Mt,Wt){return ce&&(ce[he]||ce(A,L))||Mt[he].slice(0,Wt)},st=function(ce){return y.s(z%12||12,ce,"0")},Ye=Et||function(ce,he,Mt){var Wt=ce<12?"AM":"PM";return Mt?Wt.toLowerCase():Wt};return L.replace(O,function(ce,he){return he||function(Mt){switch(Mt){case"YY":return String(A.$y).slice(-2);case"YYYY":return y.s(A.$y,4,"0");case"M":return fe+1;case"MM":return y.s(fe+1,2,"0");case"MMM":return it(E.monthsShort,fe,Pe,3);case"MMMM":return it(Pe,fe);case"D":return A.$D;case"DD":return y.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return it(E.weekdaysMin,A.$W,pe,2);case"ddd":return it(E.weekdaysShort,A.$W,pe,3);case"dddd":return pe[A.$W];case"H":return String(z);case"HH":return y.s(z,2,"0");case"h":return st(1);case"hh":return st(2);case"a":return Ye(z,ie,!0);case"A":return Ye(z,ie,!1);case"m":return String(ie);case"mm":return y.s(ie,2,"0");case"s":return String(A.$s);case"ss":return y.s(A.$s,2,"0");case"SSS":return y.s(A.$ms,3,"0");case"Z":return R}return null}(ce)||R.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(b,A,E){var L,R=this,z=y.p(A),ie=_(b),fe=(ie.utcOffset()-this.utcOffset())*r,pe=this-ie,Pe=function(){return y.m(R,ie)};switch(z){case c:L=Pe()/12;break;case d:L=Pe();break;case h:L=Pe()/3;break;case f:L=(pe-fe)/6048e5;break;case l:L=(pe-fe)/864e5;break;case u:L=pe/i;break;case o:L=pe/r;break;case a:L=pe/n;break;default:L=pe}return E?L:y.a(L)},x.daysInMonth=function(){return this.endOf(d).$D},x.$locale=function(){return H[this.$L]},x.locale=function(b,A){if(!b)return this.$L;var E=this.clone(),L=C(b,A,!0);return L&&(E.$L=L),E},x.clone=function(){return y.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},I}(),Z=M.prototype;return _.prototype=Z,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",d],["$y",c],["$D",m]].forEach(function(I){Z[I[1]]=function(x){return this.$g(x,I[0],I[1])}}),_.extend=function(I,x){return I.$i||(I(x,M,_),I.$i=!0),_},_.locale=C,_.isDayjs=p,_.unix=function(I){return _(1e3*I)},_.en=H[Q],_.Ls=H,_.p={},_})})(ya);var cl=ya.exports;const jt=Si(cl);var Ea={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wi,function(){var n,r,i=1e3,s=6e4,a=36e5,o=864e5,u=/\[([^\]]+)]|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,l=31536e6,f=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:l,months:f,days:o,hours:a,minutes:s,seconds:i,milliseconds:1,weeks:6048e5},c=function(H){return H instanceof j},m=function(H,S,p){return new j(H,p,S.$l)},P=function(H){return r.p(H)+"s"},g=function(H){return H<0},O=function(H){return g(H)?Math.ceil(H):Math.floor(H)},k=function(H){return Math.abs(H)},D=function(H,S){return H?g(H)?{negative:!0,format:""+k(H)+S}:{negative:!1,format:""+H+S}:{negative:!1,format:""}},j=function(){function H(p,C,_){var y=this;if(this.$d={},this.$l=_,p===void 0&&(this.$ms=0,this.parseFromMilliseconds()),C)return m(p*h[P(C)],this);if(typeof p=="number")return this.$ms=p,this.parseFromMilliseconds(),this;if(typeof p=="object")return Object.keys(p).forEach(function(I){y.$d[P(I)]=p[I]}),this.calMilliseconds(),this;if(typeof p=="string"){var M=p.match(d);if(M){var Z=M.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=Z[0],this.$d.months=Z[1],this.$d.weeks=Z[2],this.$d.days=Z[3],this.$d.hours=Z[4],this.$d.minutes=Z[5],this.$d.seconds=Z[6],this.calMilliseconds(),this}}return this}var S=H.prototype;return S.calMilliseconds=function(){var p=this;this.$ms=Object.keys(this.$d).reduce(function(C,_){return C+(p.$d[_]||0)*h[_]},0)},S.parseFromMilliseconds=function(){var p=this.$ms;this.$d.years=O(p/l),p%=l,this.$d.months=O(p/f),p%=f,this.$d.days=O(p/o),p%=o,this.$d.hours=O(p/a),p%=a,this.$d.minutes=O(p/s),p%=s,this.$d.seconds=O(p/i),p%=i,this.$d.milliseconds=p},S.toISOString=function(){var p=D(this.$d.years,"Y"),C=D(this.$d.months,"M"),_=+this.$d.days||0;this.$d.weeks&&(_+=7*this.$d.weeks);var y=D(_,"D"),M=D(this.$d.hours,"H"),Z=D(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1e3,I=Math.round(1e3*I)/1e3);var x=D(I,"S"),b=p.negative||C.negative||y.negative||M.negative||Z.negative||x.negative,A=M.format||Z.format||x.format?"T":"",E=(b?"-":"")+"P"+p.format+C.format+y.format+A+M.format+Z.format+x.format;return E==="P"||E==="-P"?"P0D":E},S.toJSON=function(){return this.toISOString()},S.format=function(p){var C=p||"YYYY-MM-DDTHH:mm:ss",_={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return C.replace(u,function(y,M){return M||String(_[y])})},S.as=function(p){return this.$ms/h[P(p)]},S.get=function(p){var C=this.$ms,_=P(p);return _==="milliseconds"?C%=1e3:C=_==="weeks"?O(C/h[_]):this.$d[_],C||0},S.add=function(p,C,_){var y;return y=C?p*h[P(C)]:c(p)?p.$ms:m(p,this).$ms,m(this.$ms+y*(_?-1:1),this)},S.subtract=function(p,C){return this.add(p,C,!0)},S.locale=function(p){var C=this.clone();return C.$l=p,C},S.clone=function(){return m(this.$ms,this)},S.humanize=function(p){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!p)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},H}(),Q=function(H,S,p){return H.add(S.years()*p,"y").add(S.months()*p,"M").add(S.days()*p,"d").add(S.hours()*p,"h").add(S.minutes()*p,"m").add(S.seconds()*p,"s").add(S.milliseconds()*p,"ms")};return function(H,S,p){n=p,r=p().$utils(),p.duration=function(y,M){var Z=p.locale();return m(y,{$l:Z},M)},p.isDuration=c;var C=S.prototype.add,_=S.prototype.subtract;S.prototype.add=function(y,M){return c(y)?Q(this,y,1):C.bind(this)(y,M)},S.prototype.subtract=function(y,M){return c(y)?Q(this,y,-1):_.bind(this)(y,M)}}})})(Ea);var hl=Ea.exports;const dl=Si(hl);jt.extend(dl);const pl=e=>e.toString().padStart(2,"0"),Yi=(e,t=jt().valueOf())=>{const n=jt(e).valueOf()-t;if(n<=0)return null;const r=jt.duration(n);return[Math.floor(r.asDays()),r.hours(),r.minutes(),r.seconds()].map(pl).join(" : ")},xa=(e,t="DD/MM/YYYY")=>jt(e).format(t),vl=(e,t,n=jt().valueOf())=>{if(!t)return null;switch(e){case U.Expired:case U.Forfeited:case U.Completed:return{date:xa(t)};case U.Started:return{label:"startsIn",countdownTime:Yi(t,n)};default:return{label:"endsIn",countdownTime:Yi(t,n)}}},gl=(e,t=!1)=>{if(t)return"new";switch(e){case U.Started:case U.Awaiting:return"scheduled";case U.InProgress:case U.PendingLevelReward:return"ongoing";case U.Paused:return"paused";case U.Completed:return"completed";case U.Expired:return"expired";case U.Forfeited:return"rejected";default:return e}},wa=-1,Sa=(e,t=[])=>e.Status===U.Started&&(e.LevelProgresses?.[0]?.ProgressPercentage??0)>0||t.includes(e.ChallengeId),ml=(e,t=[])=>{if(e.Status===U.Completed)return 100;if(!(Sa(e,t)||e.Status===U.PendingLevelReward||e.Status===U.InProgress))return wa;const r=e.LevelProgresses??[],i=r.find(a=>a.ProgressStatus===tt.InProgress);return i?i.ProgressPercentage:r.filter(a=>a.ProgressStatus===tt.Fillup||a.ProgressStatus===tt.Completed).at(-1)?.ProgressPercentage??0},Ta=e=>U[e.Status]??"",Ti=(e,t)=>!!e.Triggers?.includes(t),Ci=e=>Ti(e,hr.Deposit),Ca=e=>!Ci(e)&&Ti(e,hr.ClaimByButton),_l=e=>!Ci(e)&&!Ca(e)&&Ti(e,hr.GameLaunch),Er={kind:"viewDetails",labelKey:"viewDetails",variant:"secondary"},bl={kind:"login",labelKey:"login",variant:"primary"},yl=(e,t={})=>{const{isPromo:n=!1,isPaused:r=!1,isAuthorized:i=!1}=t;if(!i)return bl;if(r||Sa(e,[])||e.Status===U.Expired)return Er;if(n)return Ci(e)?{kind:"deposit",labelKey:"deposit",variant:"primary"}:Ca(e)?{kind:"claim",labelKey:"claim",variant:"primary"}:_l(e)?{kind:"launchGame",labelKey:"launchGame",variant:"primary"}:Er;switch(e.Status){case U.Started:return{kind:"optIn",labelKey:"optIn",variant:"primary"};case U.Paused:return{kind:"resume",labelKey:"resume",variant:"accent"};case U.InProgress:case U.PendingLevelReward:return{kind:"pause",labelKey:"pause",variant:"secondary"};default:return Er}};var El=function(t){return xl(t)&&!wl(t)};function xl(e){return!!e&&typeof e=="object"}function wl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Cl(e)}var Sl=typeof Symbol=="function"&&Symbol.for,Tl=Sl?Symbol.for("react.element"):60103;function Cl(e){return e.$$typeof===Tl}function Al(e){return Array.isArray(e)?[]:{}}function Pn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?on(Al(e),e,t):e}function Il(e,t,n){return e.concat(t).map(function(r){return Pn(r,n)})}function Pl(e,t){if(!t.customMerge)return on;var n=t.customMerge(e);return typeof n=="function"?n:on}function Ol(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wi(e){return Object.keys(e).concat(Ol(e))}function Aa(e,t){try{return t in e}catch{return!1}}function $l(e,t){return Aa(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Nl(e,t,n){var r={};return n.isMergeableObject(e)&&Wi(e).forEach(function(i){r[i]=Pn(e[i],n)}),Wi(t).forEach(function(i){$l(e,i)||(Aa(e,i)&&n.isMergeableObject(t[i])?r[i]=Pl(i,n)(e[i],t[i],n):r[i]=Pn(t[i],n))}),r}function on(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Il,n.isMergeableObject=n.isMergeableObject||El,n.cloneUnlessOtherwiseSpecified=Pn;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):Nl(e,t,n):Pn(t,n)}on.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return on(r,i,n)},{})};var Ml=on,Dl=Ml;const Hl=Si(Dl);var kr=function(e,t){return kr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},kr(e,t)};function pr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var et=function(){return et=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},et.apply(this,arguments)};function Bl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function xr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function wr(e,t){var n=t&&t.cache?t.cache:jl,r=t&&t.serializer?t.serializer:kl,i=t&&t.strategy?t.strategy:Fl;return i(e,{cache:n,serializer:r})}function Ll(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rl(e,t,n,r){var i=Ll(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function Ia(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function Pa(e,t,n,r,i){return n.bind(t,e,r,i)}function Fl(e,t){var n=e.length===1?Rl:Ia;return Pa(e,this,n,t.cache.create(),t.serializer)}function Gl(e,t){return Pa(e,this,Ia,t.cache.create(),t.serializer)}var kl=function(){return JSON.stringify(arguments)},Ul=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,n){this.cache[t]=n},e}(),jl={create:function(){return new Ul}},Sr={variadic:Gl},Qn=function(){return Qn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Qn.apply(this,arguments)};var X;(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"})(X||(X={}));var se;(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"})(se||(se={}));var un;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(un||(un={}));function qi(e){return e.type===se.literal}function Vl(e){return e.type===se.argument}function Oa(e){return e.type===se.number}function $a(e){return e.type===se.date}function Na(e){return e.type===se.time}function Ma(e){return e.type===se.select}function Da(e){return e.type===se.plural}function zl(e){return e.type===se.pound}function Ha(e){return e.type===se.tag}function Ba(e){return!!(e&&typeof e=="object"&&e.type===un.number)}function Ur(e){return!!(e&&typeof e=="object"&&e.type===un.dateTime)}var La=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Xl=/(?:[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 Yl(e){var t={};return e.replace(Xl,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var le=function(){return le=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},le.apply(this,arguments)};var Wl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ql(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Wl).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var s=i[r],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:u})}return n}function Zl(e){return e.replace(/^(.*?)-/,"")}var Zi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ra=/^(@+)?(\+|#+)?[rs]?$/g,Jl=/(\*)(0+)|(#+)(0+)|(0+)/g,Fa=/^(0+)$/;function Ji(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ra,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function Ga(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 Ql(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fa.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Qi(e){var t={},n=Ga(e);return n||t}function Kl(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Zl(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=le(le(le({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return le(le({},u),Qi(l))},{}));continue;case"engineering":t=le(le(le({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return le(le({},u),Qi(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(Jl,function(u,l,f,d,h,c){if(l)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(c)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Zi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Zi,function(u,l,f,d,h,c){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&c?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+c.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=le(le({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=le(le({},t),Ji(s)));continue}if(Ra.test(i.stem)){t=le(le({},t),Ji(i.stem));continue}var a=Ga(i.stem);a&&(t=le(le({},t),a));var o=Ql(i.stem);o&&(t=le(le({},t),o))}return t}var Rn={"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 ef(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var s=0;r+1<e.length&&e.charAt(r+1)===i;)s++,r++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=tf(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)n+=u;for(;a-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function tf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Rn[r||""]||Rn[n||""]||Rn["".concat(n,"-001")]||Rn["001"];return i[0]}var Tr,nf=new RegExp("^".concat(La.source,"*")),rf=new RegExp("".concat(La.source,"*$"));function q(e,t){return{start:e,end:t}}var sf=!!String.prototype.startsWith&&"_a".startsWith("a",1),af=!!String.fromCodePoint,of=!!Object.fromEntries,uf=!!String.prototype.codePointAt,lf=!!String.prototype.trimStart,ff=!!String.prototype.trimEnd,cf=!!Number.isSafeInteger,hf=cf?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},jr=!0;try{var df=Ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");jr=((Tr=df.exec("a"))===null||Tr===void 0?void 0:Tr[0])==="a"}catch{jr=!1}var Ki=sf?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Vr=af?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},es=of?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var s=i[r],a=s[0],o=s[1];n[a]=o}return n},ka=uf?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},pf=lf?function(t){return t.trimStart()}:function(t){return t.replace(nf,"")},vf=ff?function(t){return t.trimEnd()}:function(t){return t.replace(rf,"")};function Ua(e,t){return new RegExp(e,t)}var zr;if(jr){var ts=Ua("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");zr=function(t,n){var r;ts.lastIndex=n;var i=ts.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else zr=function(t,n){for(var r=[];;){var i=ka(t,n);if(i===void 0||ja(i)||bf(i))break;r.push(i),n+=i>=65536?2:1}return Vr.apply(void 0,r)};var gf=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:se.pound,location:q(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(X.UNMATCHED_CLOSING_TAG,q(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Xr(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:se.literal,value:"<".concat(i,"/>"),location:q(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Xr(this.char()))return this.error(X.INVALID_TAG,q(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(X.UNMATCHED_CLOSING_TAG,q(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:i,children:a,location:q(r,this.clonePosition())},err:null}:this.error(X.INVALID_TAG,q(o,this.clonePosition())))}else return this.error(X.UNCLOSED_TAG,q(r,this.clonePosition()))}else return this.error(X.INVALID_TAG,q(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&_f(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=q(r,this.clonePosition());return{val:{type:se.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!mf(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Vr.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Vr(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,q(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(X.EMPTY_ARGUMENT,q(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(X.MALFORMED_ARGUMENT,q(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,q(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:se.argument,value:i,location:q(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,q(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(X.MALFORMED_ARGUMENT,q(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=zr(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),a=q(t,s);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(X.EXPECT_ARGUMENT_TYPE,q(a,u));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 h=vf(d.val);if(h.length===0)return this.error(X.EXPECT_ARGUMENT_STYLE,q(this.clonePosition(),this.clonePosition()));var c=q(f,this.clonePosition());l={style:h,styleLocation:c}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var P=q(i,this.clonePosition());if(l&&Ki(l?.style,"::",0)){var g=pf(l.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(g,l.styleLocation);return d.err?d:{val:{type:se.number,value:r,location:P,style:d.val},err:null}}else{if(g.length===0)return this.error(X.EXPECT_DATE_TIME_SKELETON,P);var O=g;this.locale&&(O=ef(g,this.locale));var h={type:un.dateTime,pattern:O,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Yl(O):{}},k=o==="date"?se.date:se.time;return{val:{type:k,value:r,location:P,style:h},err:null}}}return{val:{type:o==="number"?se.number:o==="date"?se.date:se.time,value:r,location:P,style:(s=l?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var D=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,q(D,Qn({},D)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),Q=0;if(o!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,q(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),j=this.parseIdentifierIfPossible(),Q=d.val}var H=this.tryParsePluralOrSelectOptions(t,o,n,j);if(H.err)return H;var m=this.tryParseArgumentClose(i);if(m.err)return m;var S=q(i,this.clonePosition());return o==="select"?{val:{type:se.select,value:r,options:es(H.val),location:S},err:null}:{val:{type:se.plural,value:r,options:es(H.val),offset:Q,pluralType:o==="plural"?"cardinal":"ordinal",location:S},err:null}}default:return this.error(X.INVALID_ARGUMENT_TYPE,q(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,q(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(X.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,q(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=ql(t)}catch{return this.error(X.INVALID_NUMBER_SKELETON,n)}return{val:{type:un.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Kl(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_SELECTOR,X.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=q(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:X.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var c=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,q(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var P=this.tryParseArgumentClose(c);if(P.err)return P;o.push([l,{value:m.val,location:q(c,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(n==="select"?X.EXPECT_SELECT_ARGUMENT_SELECTOR:X.EXPECT_PLURAL_ARGUMENT_SELECTOR,q(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(X.MISSING_OTHER_CLAUSE,q(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=q(i,this.clonePosition());return s?(a*=r,hf(a)?{val:a,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ka(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ki(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ja(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Xr(e){return e>=97&&e<=122||e>=65&&e<=90}function mf(e){return Xr(e)||e===47}function _f(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 ja(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bf(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 Yr(e){e.forEach(function(t){if(delete t.location,Ma(t)||Da(t))for(var n in t.options)delete t.options[n].location,Yr(t.options[n].value);else Oa(t)&&Ba(t.style)||($a(t)||Na(t))&&Ur(t.style)?delete t.style.location:Ha(t)&&Yr(t.children)})}function yf(e,t){t===void 0&&(t={}),t=Qn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new gf(e,t).parse();if(n.err){var r=SyntaxError(X[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||Yr(n.val),n.val}var ln;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ln||(ln={}));var vr=function(e){pr(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),ns=function(e){pr(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),ln.INVALID_VALUE,s)||this}return t}(vr),Ef=function(e){pr(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ln.INVALID_VALUE,i)||this}return t}(vr),xf=function(e){pr(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ln.MISSING_VALUE,r)||this}return t}(vr),Te;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Te||(Te={}));function wf(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Te.literal||n.type!==Te.literal?t.push(n):r.value+=n.value,t},[])}function Sf(e){return typeof e=="function"}function Un(e,t,n,r,i,s,a){if(e.length===1&&qi(e[0]))return[{type:Te.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(qi(f)){o.push({type:Te.literal,value:f.value});continue}if(zl(f)){typeof s=="number"&&o.push({type:Te.literal,value:n.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new xf(d,a);var h=i[d];if(Vl(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?Te.literal:Te.object,value:h});continue}if($a(f)){var c=typeof f.style=="string"?r.date[f.style]:Ur(f.style)?f.style.parsedOptions:void 0;o.push({type:Te.literal,value:n.getDateTimeFormat(t,c).format(h)});continue}if(Na(f)){var c=typeof f.style=="string"?r.time[f.style]:Ur(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:Te.literal,value:n.getDateTimeFormat(t,c).format(h)});continue}if(Oa(f)){var c=typeof f.style=="string"?r.number[f.style]:Ba(f.style)?f.style.parsedOptions:void 0;c&&c.scale&&(h=h*(c.scale||1)),o.push({type:Te.literal,value:n.getNumberFormat(t,c).format(h)});continue}if(Ha(f)){var m=f.children,P=f.value,g=i[P];if(!Sf(g))throw new Ef(P,"function",a);var O=Un(m,t,n,r,i,s),k=g(O.map(function(Q){return Q.value}));Array.isArray(k)||(k=[k]),o.push.apply(o,k.map(function(Q){return{type:typeof Q=="string"?Te.literal:Te.object,value:Q}}))}if(Ma(f)){var D=f.options[h]||f.options.other;if(!D)throw new ns(f.value,h,Object.keys(f.options),a);o.push.apply(o,Un(D.value,t,n,r,i));continue}if(Da(f)){var D=f.options["=".concat(h)];if(!D){if(!Intl.PluralRules)throw new vr(`Intl.PluralRules is not available in this environment.
|
|
10
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
11
|
-
`,ln.MISSING_INTL_API,a);var j=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));D=f.options[j]||f.options.other}if(!D)throw new ns(f.value,h,Object.keys(f.options),a);o.push.apply(o,Un(D.value,t,n,r,i,h-(f.offset||0)));continue}}return wf(o)}function Tf(e,t){return t?et(et(et({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=et(et({},e[r]),t[r]||{}),n},{})):e}function Cf(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Tf(e[r],t[r]),n},et({},e)):e}function Cr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Af(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,xr([void 0],n,!1)))},{cache:Cr(e.number),strategy:Sr.variadic}),getDateTimeFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,xr([void 0],n,!1)))},{cache:Cr(e.dateTime),strategy:Sr.variadic}),getPluralRules:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,xr([void 0],n,!1)))},{cache:Cr(e.pluralRules),strategy:Sr.variadic})}}var If=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,h){return!d.length||h.type!==Te.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Un(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Bl(a,["formatters"]);this.ast=e.__parse(t,et(et({},o),{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=Cf(e.formats,r),this.formatters=i&&i.formatters||Af(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>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=yf,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 Pf(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let i=0;i<n.length;i++)if(typeof r=="object"){if(i>0){const s=n.slice(i,n.length).join(".");if(s in r){r=r[s];break}}r=r[n[i]]}else r=void 0;return r}const St={},Of=(e,t,n)=>n&&(t in St||(St[t]={}),e in St[t]||(St[t][e]=n),n),Va=(e,t)=>{if(t==null)return;if(t in St&&e in St[t])return St[t][e];const n=gr(t);for(let r=0;r<n.length;r++){const i=n[r],s=Nf(i,e);if(s)return Of(e,t,s)}};let Ai;const vn=cr({});function $f(e){return Ai[e]||null}function za(e){return e in Ai}function Nf(e,t){if(!za(e))return null;const n=$f(e);return Pf(n,t)}function Mf(e){if(e==null)return;const t=gr(e);for(let n=0;n<t.length;n++){const r=t[n];if(za(r))return r}}function Xa(e,...t){delete St[e],vn.update(n=>(n[e]=Hl.all([n[e]||{},...t]),n))}pn([vn],([e])=>Object.keys(e));vn.subscribe(e=>Ai=e);const jn={};function Df(e,t){jn[e].delete(t),jn[e].size===0&&delete jn[e]}function Ya(e){return jn[e]}function Hf(e){return gr(e).map(t=>{const n=Ya(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Wr(e){return e==null?!1:gr(e).some(t=>{var n;return(n=Ya(t))==null?void 0:n.size})}function Bf(e,t){return Promise.all(t.map(r=>(Df(e,r),r().then(i=>i.default||i)))).then(r=>Xa(e,...r))}const bn={};function Wa(e){if(!Wr(e))return e in bn?bn[e]:Promise.resolve();const t=Hf(e);return bn[e]=Promise.all(t.map(([n,r])=>Bf(n,r))).then(()=>{if(Wr(e))return Wa(e);delete bn[e]}),bn[e]}const Lf={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:Lf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ff=Rf;function fn(){return Ff}const Ar=cr(!1);var Gf=Object.defineProperty,kf=Object.defineProperties,Uf=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,Vf=Object.prototype.propertyIsEnumerable,is=(e,t,n)=>t in e?Gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zf=(e,t)=>{for(var n in t||(t={}))jf.call(t,n)&&is(e,n,t[n]);if(rs)for(var n of rs(t))Vf.call(t,n)&&is(e,n,t[n]);return e},Xf=(e,t)=>kf(e,Uf(t));let qr;const Kn=cr(null);function ss(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function gr(e,t=fn().fallbackLocale){const n=ss(e);return t?[...new Set([...n,...ss(t)])]:n}function Yt(){return qr??void 0}Kn.subscribe(e=>{qr=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Yf=e=>{if(e&&Mf(e)&&Wr(e)){const{loadingDelay:t}=fn();let n;return typeof window<"u"&&Yt()!=null&&t?n=window.setTimeout(()=>Ar.set(!0),t):Ar.set(!0),Wa(e).then(()=>{Kn.set(e)}).finally(()=>{clearTimeout(n),Ar.set(!1)})}return Kn.set(e)},Ot=Xf(zf({},Kn),{set:Yf}),mr=e=>{const t=Object.create(null);return r=>{const i=JSON.stringify(r);return i in t?t[i]:t[i]=e(r)}};var Wf=Object.defineProperty,er=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,as=(e,t,n)=>t in e?Wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ii=(e,t)=>{for(var n in t||(t={}))qa.call(t,n)&&as(e,n,t[n]);if(er)for(var n of er(t))Za.call(t,n)&&as(e,n,t[n]);return e},gn=(e,t)=>{var n={};for(var r in e)qa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&er)for(var r of er(e))t.indexOf(r)<0&&Za.call(e,r)&&(n[r]=e[r]);return n};const On=(e,t)=>{const{formats:n}=fn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},qf=mr(e=>{var t=e,{locale:n,format:r}=t,i=gn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=On("number",r)),new Intl.NumberFormat(n,i)}),Zf=mr(e=>{var t=e,{locale:n,format:r}=t,i=gn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=On("date",r):Object.keys(i).length===0&&(i=On("date","short")),new Intl.DateTimeFormat(n,i)}),Jf=mr(e=>{var t=e,{locale:n,format:r}=t,i=gn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=On("time",r):Object.keys(i).length===0&&(i=On("time","short")),new Intl.DateTimeFormat(n,i)}),Qf=(e={})=>{var t=e,{locale:n=Yt()}=t,r=gn(t,["locale"]);return qf(Ii({locale:n},r))},Kf=(e={})=>{var t=e,{locale:n=Yt()}=t,r=gn(t,["locale"]);return Zf(Ii({locale:n},r))},ec=(e={})=>{var t=e,{locale:n=Yt()}=t,r=gn(t,["locale"]);return Jf(Ii({locale:n},r))},tc=mr((e,t=Yt())=>new If(e,t,fn().formats,{ignoreTag:fn().ignoreTag})),nc=(e,t={})=>{var n,r,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Yt(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Va(e,u);if(!f)f=(s=(i=(r=(n=fn()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,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(!o)return f;let d=f;try{d=tc(f,u).format(o)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},rc=(e,t)=>ec(t).format(e),ic=(e,t)=>Kf(t).format(e),sc=(e,t)=>Qf(t).format(e),ac=(e,t=Yt())=>Va(e,t),Pi=pn([Ot,vn],()=>nc);pn([Ot],()=>rc);pn([Ot],()=>ic);pn([Ot],()=>sc);pn([Ot,vn],()=>ac);const oc={en:{new:"New",scheduled:"Scheduled",onGoing:"Ongoing",paused:"Paused",completed:"Completed",expired:"Expired",rejected:"Rejected",failed:"Failed",forfeited:"Forfeited",endsIn:"Ends in",startsIn:"Starts in",promo:"Promo",active:"Active",claim:"Claim",pending:"Pending",finished:"Finished",optIn:"Opt In",login:"Login",resume:"Resume",pause:"Pause",levels:"Levels",level:"Level",events:"Events",rules:"Rules",games:"Games",status:"Status",time:"Time",viewDetails:"View Details",details:"Details",get:"Get",Condition:"Condition",termsAndConditions:"Terms & Conditions",allChallenges:"All Challenges",all:"All",placeBetsOf:"Place bets of",place:"Place",bet:"bet",bets:"bets",betTime:"time",betTimes:"times",minBet:"min bet",winStakeRatio:"Win/stake ratio"},tr:{new:"Yeni",scheduled:"Planlandı",onGoing:"Devam Ediyor",paused:"Duraklatıldı",completed:"Tamamlandı",expired:"Süresi Doldu",rejected:"Reddedildi",failed:"Başarısız",forfeited:"Vazgeçildi",endsIn:"Bitiş",startsIn:"Başlangıç",promo:"Promosyon",active:"Aktif",claim:"Al",pending:"Beklemede",finished:"Bitti",optIn:"Katıl",login:"Giriş Yap",resume:"Devam Et",pause:"Duraklat",levels:"Seviyeler",level:"Seviye",events:"Etkinlikler",rules:"Kurallar",games:"Oyunlar",viewDetails:"Detayları Gör",details:"Detayları",get:"Al",Condition:"Koşul",termsAndConditions:"Şartlar ve Koşullar",allChallenges:"Tüm Meydan Okumalar",all:"Tümü"},da:{new:"Ny",scheduled:"Planlagt",onGoing:"I gang",paused:"Sat på pause",completed:"Gennemført",expired:"Udløbet",rejected:"Afvist",failed:"Mislykket",forfeited:"Opgivet",endsIn:"Slutter om",startsIn:"Starter om",promo:"Promo",active:"Aktiv",claim:"Hent",pending:"Afventer",finished:"Færdig",optIn:"Tilmeld",login:"Log ind",resume:"Fortsæt",pause:"Pause",levels:"Niveauer",level:"Niveau",events:"Begivenheder",rules:"Regler",games:"Spil",viewDetails:"Se detaljer",details:"Detaljer",get:"Få",Condition:"Betingelse",termsAndConditions:"Vilkår og betingelser",allChallenges:"Alle udfordringer",all:"Alle"},de:{new:"Neu",scheduled:"Geplant",onGoing:"Läuft",paused:"Pausiert",completed:"Abgeschlossen",expired:"Abgelaufen",rejected:"Abgelehnt",failed:"Fehlgeschlagen",forfeited:"Aufgegeben",endsIn:"Endet in",startsIn:"Startet in",promo:"Promo",active:"Aktiv",claim:"Abholen",pending:"Ausstehend",finished:"Beendet",optIn:"Teilnehmen",login:"Anmelden",resume:"Fortsetzen",pause:"Pausieren",levels:"Stufen",level:"Stufe",events:"Events",rules:"Regeln",games:"Spiele",viewDetails:"Details anzeigen",details:"Details",get:"Erhalten",Condition:"Bedingung",termsAndConditions:"Allgemeine Geschäftsbedingungen",allChallenges:"Alle Challenges",all:"Alle"},nl:{new:"Nieuw",scheduled:"Gepland",onGoing:"Bezig",paused:"Gepauzeerd",completed:"Voltooid",expired:"Verlopen",rejected:"Afgewezen",failed:"Mislukt",forfeited:"Opgegeven",endsIn:"Eindigt over",startsIn:"Begint over",promo:"Promo",active:"Actief",claim:"Ophalen",pending:"In afwachting",finished:"Voltooid",optIn:"Deelnemen",login:"Inloggen",resume:"Hervatten",pause:"Pauzeren",levels:"Niveaus",level:"Niveau",events:"Evenementen",rules:"Regels",games:"Spellen",viewDetails:"Details bekijken",details:"Details",get:"Ontvang",Condition:"Voorwaarde",termsAndConditions:"Algemene voorwaarden",allChallenges:"Alle Challenges",all:"Alle"},fr:{new:"Nouveau",scheduled:"Planifié",onGoing:"En cours",paused:"En pause",completed:"Terminé",expired:"Expiré",rejected:"Rejeté",failed:"Échoué",forfeited:"Abandonné",endsIn:"Se termine dans",startsIn:"Commence dans",promo:"Promo",active:"Actif",claim:"Réclamer",pending:"En attente",finished:"Terminé",optIn:"Participer",login:"Connexion",resume:"Reprendre",pause:"Pause",levels:"Niveaux",level:"Niveau",events:"Événements",rules:"Règles",games:"Jeux",viewDetails:"Voir les détails",details:"Détails",get:"Obtenir",Condition:"Condition",termsAndConditions:"Conditions générales",allChallenges:"Tous les challenges",all:"Tous"},hu:{new:"Új",scheduled:"Ütemezett",onGoing:"Folyamatban",paused:"Szüneteltetve",completed:"Befejezve",expired:"Lejárt",rejected:"Elutasítva",failed:"Sikertelen",forfeited:"Feladva",endsIn:"Vége:",startsIn:"Kezdés:",promo:"Promóció",active:"Aktív",claim:"Átvétel",pending:"Függőben",finished:"Befejezve",optIn:"Csatlakozás",login:"Bejelentkezés",resume:"Folytatás",pause:"Szünet",levels:"Szintek",level:"Szint",events:"Események",rules:"Szabályok",games:"Játékok",viewDetails:"Részletek megtekintése",details:"Részletek",get:"Megszerez",Condition:"Feltétel",termsAndConditions:"Felhasználási feltételek",allChallenges:"Összes kihívás",all:"Összes"}},uc=({withLocale:e,translations:t})=>{Ot.subscribe(n=>{n==null&&(vn.set(t),Ot.set(e))})},lc=(e,t)=>{Xa(e,t)},fc=e=>{Ot.set(e)},Zr=e=>{Object.entries(e).forEach(([t,n])=>{lc(t,n)})},cc=(e,...t)=>{uc({withLocale:e,translations:{}}),Zr(oc),t.forEach(Zr)},hc=(e,t)=>{const n=new URL(e,window.location.href);fetch(n.href).then(r=>r.json()).then(r=>Zr(r)).catch(r=>{console.log(`${t} translation url err:`,r)})},dc=[U.Started,U.InProgress,U.PendingLevelReward,U.Completed],tr=e=>dc.includes(e),Oi=e=>e.ProgressStatus===tt.Completed,pc=(e,t)=>Oi(e)?!1:e.ProgressStatus===tt.InProgress&&tr(t),vc=(e,t)=>Oi(e)&&tr(t)?"completed":pc(e,t)?"current":e.ProgressStatus===tt.InProgress&&!tr(t)?"locked-in-progress":"locked",gc=e=>e?e.CustomRewardMessage?e.CustomRewardMessage:(e.Rewards??[]).map(t=>t?.RewardDescription).filter(t=>!!t).join(" + "):"",mc=(e,t,n)=>{if(!e)return"";const r=s=>`${t}${s}`,i=s=>s?`, ${n("minBet")} ${r(s)}`:"";switch(e.LevelTargetType){case En.Accumulative:return`${n("placeBetsOf")} ${r(e.DisplayCurrencyTargetTurnover)}${i(e.BetRange?.MinBet)}`;case En.SingleBet:return`${n("place")} ${r(e.DisplayCurrencyTargetTurnover)} ${n("bet")}`;case En.MultipleOneBetSize:return`${n("place")} ${e.TargetBetCount} ${n("bets")}${i(e.DisplayCurrencyTargetTurnover)}`;case En.BetMultiplier:{const s=`${e.TargetBetCount} ${n(e.TargetBetCount===1?"betTime":"betTimes")}`;return`${n("winStakeRatio")} x${e.Multiplier} ${s}${i(e.BetRange?.MinBet)}`}default:return""}},_c=[U.InProgress,U.PendingLevelReward,U.Paused,U.Completed,U.Expired,U.Forfeited,U.Paused],Ja=e=>_c.includes(e.Status),bc=e=>e.ProgressStatus===tt.Fillup||e.ProgressStatus===tt.Completed,Qa=e=>{if(!e.length)return 0;const t=e.findIndex(n=>n.ProgressStatus===tt.InProgress);return t>=0?t+1:Math.min(e.filter(bc).length+1,e.length)},yc=e=>{const t=e.LevelProgresses??[];if(t.length)return Ja(e)?t[Qa(t)-1]:t[0]},Ec=e=>e!=="history",Fn=()=>({loading:!1,error:void 0,pageNumber:an,hasMore:!1,totalCount:0}),xc=e=>{let t=Ce(Fe([])),n=Ce(Fe([])),r=Ce(Fe([])),i=Ce(Fe([])),s=Ce(Fe([]));const a=Fe({promo:Fn(),active:Fn(),pending:Fn(),history:Fn()}),o=p=>a[p];let u;const l=p=>{switch(p){case"promo":return B(t);case"pending":return B(r);default:return B(n)}},f=(p,C)=>{re(p==="promo"?t:p==="pending"?r:n,C,!0)},d=p=>{re(t,p(B(t)),!0),re(n,p(B(n)),!0),re(r,p(B(r)),!0)},h=(p,C)=>{d(_=>_.map(y=>y.Id===p?{...y,...C}:y))},c=(p,C)=>{d(_=>_.map(y=>y.ChallengeId===p?{...y,...C}:y))},m=p=>{if(p)return[...B(n),...B(r),...B(t)].find(C=>C.ChallengeId===p)},P=p=>{d(C=>C.filter(_=>_.Id!==p))},g=async(p,C,_)=>{const{endpoint:y,domainId:M,userSession:Z,userId:I,locale:x,pageSize:b=dr}=e();if(!y)throw new Error("challenges: endpoint is missing. Please provide a valid endpoint URL.");const A={endpoint:y,domainId:M,sessionId:Z,locale:x,pageNumber:_,pageSize:b};if(C)return yr({endpoint:y,domainId:M,locale:x,pageNumber:_,pageSize:b});switch(p){case"promo":return el(A);case"pending":return yr({...A,isFutureAvailable:!0});case"history":return ba({...A,userId:I??"",isFutureAvailable:!0});default:return yr({...A,isFutureAvailable:!1})}},O=(p,C,_)=>{const y=a[p];if(y.pageNumber=C.PageNumber??an,!Ec(p)){const I=C.Data??[];re(i,_?[...B(i),...I]:I,!0),y.totalCount=C.TotalItem??B(i).length,y.hasMore=B(i).length<y.totalCount;return}const M=C.Data??[],Z=_?[...l(p),...M]:M;f(p,Z),y.totalCount=C.TotalCount??Z.length,y.hasMore=Z.length<y.totalCount},k=async(p,C,{append:_=!1,page:y}={})=>{const M=a[p];M.loading=!0,M.error=void 0;try{const Z=y??(_?M.pageNumber+1:an),I=await g(p,C,Z);O(p,I,_)}catch(Z){M.error=Z,e().onError?.(Z)}finally{M.loading=!1}},D=(p,C)=>{const _=a[p];return _.hasMore&&!_.loading?k(p,C,{append:!0}):Promise.resolve()},j=(p,C,_)=>a[p].loading?Promise.resolve():k(p,C,{page:_}),Q=(p,C)=>{const _=B(s).includes(p);C&&!_?re(s,[...B(s),p],!0):!C&&_&&re(s,B(s).filter(y=>y!==p),!0)},H=()=>{const{endpoint:p,userId:C,userSession:_,liveUpdates:y=!0}=e();!y||u||(u=ul({endpoint:p,userId:C,sessionId:_,onNewProgress:M=>{M.Status===U.Started?re(n,[M,...B(n)],!0):M.Status===U.Awaiting&&re(r,[M,...B(r)],!0)},onSessionExpired:()=>S(),onChallengeEnabledChange:(M,Z)=>{Q(M,!Z),c(M,{ChallengeStatus:Z?Fr.Enabled:Fr.Paused})},onProgressForfeited:M=>{h(M,{Status:U.Forfeited})}}))},S=()=>{u?.close(),u=void 0};return{get promoChallenges(){return B(t)},get activeChallenges(){return B(n)},get pendingChallenges(){return B(r)},get playerHistory(){return B(i)},get pausedChallengeIds(){return B(s)},getState:o,getList:l,findChallenge:m,load:k,loadMore:D,loadPage:j,setPaused:Q,patchProgress:h,patchChallenge:c,removeProgress:P,connect:H,disconnect:S}},wc=e=>{let t=Ce(!1);const n=async(s,a,o)=>{const{endpoint:u,domainId:l,userSession:f,userId:d,onStatusChange:h}=e();re(t,!0);try{await il({endpoint:u,domainId:l,sessionId:f,userId:d??"",progressTo:s.Id,isPause:a}),h?.(s.Id,a?U.Paused:U.InProgress),Lr(o)}catch(c){Rr(o,c instanceof Error?c.message:String(c))}finally{re(t,!1)}},r=async s=>{const{endpoint:a,domainId:o,userSession:u,onClaimed:l}=e();re(t,!0);try{await ol({endpoint:a,domainId:o,sessionId:u,challengeId:s.Id}),l?.(s.ChallengeId),Lr(Ht.Claim)}catch(f){Rr(Ht.Claim,f instanceof Error?f.message:String(f))}finally{re(t,!1)}};return{get loading(){return B(t)},run:(s,a)=>{const o=a.ChallengeId,u=a.ChallengePresentation?.PresentationName??"",l=Ta(a);switch(s){case"login":va();break;case"deposit":Xu(o,u,l);break;case"claim":r(a);break;case"optIn":Ru(o,u,l),n(a,!1,Ht.OptIn);break;case"resume":Vu(o,u,l),n(a,!1,Ht.Resume);break;case"pause":ju(o,u,l),n(a,!0,Ht.Pause);break}}}},be={Promo:0,Active:1,Pending:2,Finished:3,Code:4},Sc=e=>{const t=Number(e);return Object.values(be).includes(t)?t:void 0},Tc={[be.Promo]:"promo",[be.Active]:"active",[be.Pending]:"pending",[be.Finished]:"finished",[be.Code]:"claim"},Cc={[be.Promo]:"promo",[be.Active]:"active",[be.Pending]:"pending",[be.Finished]:"history",[be.Code]:void 0};var Ac=dn('<span class="player-challenges__tab-dot svelte-1jf237k" aria-hidden="true"></span>'),Ic=dn('<button type="button" role="tab"> <!></button>'),Pc=dn('<div class="player-challenges__tabs svelte-1jf237k" role="tablist"></div>');const Oc={hash:"svelte-1jf237k",code:`.player-challenges__tabs.svelte-1jf237k {box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px 8px;gap:4px;background:var(--bg-overlay-neutral-level-2, rgba(251, 251, 251, 0.1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:100px;width:fit-content;max-width:100%;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar {display:none;}}.player-challenges__tab.svelte-1jf237k {box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:6px 47px;border:0;border-radius:36px;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:10px;font-weight:500;white-space:nowrap;cursor:pointer;line-height:145%;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;&:focus-visible {outline:none;}&.active {background:var(--tabs-bg-selected, rgba(251, 251, 251, 0.2));color:var(--text-default, rgba(223, 227, 232, 1));}&:hover:not(.active) {background:var(--bg-tabs-hover, rgba(251, 251, 251, 0.1));}}.player-challenges__tab-dot.svelte-1jf237k {width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--semantic-success-400, rgba(45, 223, 0, 1));}
|
|
12
|
-
|
|
13
|
-
@media (max-width: 767px) {.player-challenges__tabs.svelte-1jf237k {width:100%;justify-content:flex-start;gap:2px;padding:6px 8px;}.player-challenges__tab.svelte-1jf237k {flex:1 0 auto;justify-content:center;padding:6px 12px;}
|
|
14
|
-
}`};function Ka(e,t){or(t,!0),vi(e,Oc);const n=()=>bi(Pi,"$_",r),[r,i]=yi(),s=wt(t,"activeTab",7),a=wt(t,"onTabChange",7),o=wt(t,"notifyTabs",23,()=>[]),u=wt(t,"showTabDot",7,!1),l=ni(()=>[{id:be.Promo,label:n()("promo")},{id:be.Active,label:n()("active")},{id:be.Code,label:n()("claim")},{id:be.Pending,label:n()("pending")},{id:be.Finished,label:n()("finished")}]);var f={get activeTab(){return s()},set activeTab(c){s(c),dt()},get onTabChange(){return a()},set onTabChange(c){a(c),dt()},get notifyTabs(){return o()},set notifyTabs(c=[]){o(c),dt()},get showTabDot(){return u()},set showTabDot(c=!1){u(c),dt()}},d=Pc();pi(d,21,()=>B(l),c=>c.id,(c,m)=>{var P=Ic();let g;P.__click=()=>a()?.(B(m).id);var O=si(P),k=Fs(O);{var D=j=>{var Q=Ac();Ut(j,Q)};fa(k,j=>{u()&&o().includes(B(m).id)&&j(D)})}An(P),li(()=>{g=gi(P,1,"player-challenges__tab svelte-1jf237k",null,g,{active:s()===B(m).id}),Zn(P,"aria-selected",s()===B(m).id),di(O,`${B(m).label??""} `)}),Ut(c,P)}),An(d),Ut(e,d);var h=ur(f);return i(),h}hi(["click"]);Ei(Ka,{activeTab:{},onTabChange:{},notifyTabs:{},showTabDot:{}},[],[],!0);const Ve={Levels:"levels",Games:"games",Events:"events",Rules:"rules"},$c=e=>{const t=String(e??"").toLowerCase();return Object.values(Ve).includes(t)?t:void 0},eo=e=>{switch(e){case Jn.Casino:return[Ve.Levels,Ve.Games,Ve.Rules];case Jn.Sportsbook:return[Ve.Levels,Ve.Events,Ve.Rules];default:return[]}},Nc=e=>[e.Discipline?.Name,e.Location?.Name,e.Template?.Name,e.Tournament?.Name,e.Event?.Name].filter(Boolean).join(", "),Mc=e=>[...e??[]].sort((t,n)=>t.OrderNumber-n.OrderNumber),Dc=e=>{switch(e){case kn.RealCash:return"contributionTypeRealMoney";case kn.BonusMoney:return"contributionTypeBonusMoney";case kn.Mixed:return"contributionTypeMixed";default:return}},Hc=e=>e?"contributeToOne":"contributeToAll",Bc=e=>{switch(e){case xn.Single:return"recurrenceSingle";case xn.Daily:return"recurrenceDaily";case xn.Weekly:return"recurrenceWeekly";case xn.Monthly:return"recurrenceMonthly";default:return}};var Lc=dn('<button type="button"> </button>'),Rc=dn('<div class="challenge-details__tabs svelte-lloeg4"></div>');const Fc={hash:"svelte-lloeg4",code:".challenge-details__tabs.svelte-lloeg4 {border:none;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:transparent;}.challenge-details__tab.svelte-lloeg4 {border:none;padding:12px 10px;gap:10px;height:36px;position:relative;flex:none;order:1;flex-grow:1;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:12px;font-weight:700;background-color:transparent;text-transform:uppercase;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));&::after {content:'';position:absolute;left:0;right:0;bottom:-3px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}"};function to(e,t){or(t,!0),vi(e,Fc);const n=()=>bi(Pi,"$_",r),[r,i]=yi(),s=wt(t,"challengeItem",7),a=wt(t,"activeTab",15),o=wt(t,"onTabChange",7),u={[Ve.Levels]:"levels",[Ve.Games]:"games",[Ve.Events]:"events",[Ve.Rules]:"rules"},l=ni(()=>eo(s().ContributedFrom).map(c=>({id:c,label:n()(u[c])})));var f={get challengeItem(){return s()},set challengeItem(c){s(c),dt()},get activeTab(){return a()},set activeTab(c){a(c),dt()},get onTabChange(){return o()},set onTabChange(c){o(c),dt()}},d=Rc();pi(d,21,()=>B(l),ca,(c,m)=>{var P=Lc();let g;P.__click=()=>o()?.(B(m).id);var O=si(P,!0);An(P),li(()=>{g=gi(P,1,"challenge-details__tab svelte-lloeg4",null,g,{active:a()===B(m).id}),di(O,B(m).label)}),Ut(c,P)}),An(d),Ut(e,d);var h=ur(f);return i(),h}hi(["click"]);Ei(to,{challengeItem:{},activeTab:{},onTabChange:{}},[],[],!0);exports.$format=Pi;exports.CHALLENGES_TAB_LIST_KIND=Cc;exports.CHALLENGES_TAB_NAMES=Tc;exports.ChallengeAction=Ht;exports.ChallengeApiError=ma;exports.ChallengeDetailsTab=Ve;exports.ChallengeHistoryLevelStatus=ga;exports.ChallengeProgressStatus=U;exports.ChallengeTabs=to;exports.ChallengeTabs$1=Ka;exports.ChallengesTab=be;exports.ContributedFrom=Jn;exports.LIMIT_DEFAULT=dr;exports.LIMIT_ITEMS_DEFAULT=qu;exports.NO_PROGRESS=wa;exports.OPT_OUT_CONFIRMED_MESSAGE=Wu;exports.PAGE_NUMBER_DEFAULT=an;exports.PAGINATION_VISIBLE_PAGE=Zu;exports.PAGINATION_VISIBLE_PAGE_MOBILE=Ju;exports.append=Ut;exports.append_styles=vi;exports.bind_element_size=Pu;exports.bind_this=Ou;exports.child=si;exports.clsx=bu;exports.comment=ou;exports.createChallengeActions=wc;exports.createChallengesData=xc;exports.create_custom_element=Ei;exports.dayjs=jt;exports.delegate=hi;exports.each=pi;exports.first_child=Wo;exports.flushSync=dt;exports.formatDisplayDate=xa;exports.from_html=dn;exports.from_svg=au;exports.get=B;exports.getAvailableTabs=eo;exports.getBadgeContent=vl;exports.getChallengeAction=yl;exports.getChallengeById=Ku;exports.getChallengeGames=rl;exports.getChallengeHistory=ba;exports.getChallengeProgress=ml;exports.getChallengeStatusName=Ta;exports.getContributeToKey=Hc;exports.getContributionTypeKey=Dc;exports.getCurrentLevelNumber=Qa;exports.getDisplayLevel=yc;exports.getEventRuleName=Nc;exports.getLevelCondition=mc;exports.getLevelDisplayStatus=vc;exports.getLevelRewardText=gc;exports.getPromoChallengeById=tl;exports.getRecurrenceKey=Bc;exports.grantChallengeByCode=nl;exports.if_block=fa;exports.index=ca;exports.initI18n=cc;exports.isChallengeActive=tr;exports.isLevelCompleted=Oi;exports.isOptedIn=Ja;exports.loadTranslationUrl=hc;exports.mapChallengeStatus=gl;exports.next=_s;exports.onDestroy=pu;exports.optOutChallenge=al;exports.pop=ur;exports.prop=wt;exports.proxy=Fe;exports.push=or;exports.remove_input_defaults=Tu;exports.reset=An;exports.sendChallengeActionFail=Rr;exports.sendChallengeActionSuccess=Lr;exports.sendChallengeDetailPageOpen=Uu;exports.sendChallengeDetailTabClicked=ku;exports.sendChallengeLoginClicked=va;exports.sendChallengeTabClicked=Lu;exports.sendChallengeViewDetailClicked=Gu;exports.sendGameClicked=zu;exports.sendOptOutClicked=Fu;exports.sendPromoChallengeClicked=Yu;exports.set=re;exports.setLocale=fc;exports.set_attribute=Zn;exports.set_class=gi;exports.set_style=xu;exports.set_text=di;exports.set_value=Cu;exports.setup_stores=yi;exports.sibling=Fs;exports.sortEventRules=Mc;exports.state=Ce;exports.store_get=bi;exports.template_effect=li;exports.toBoolean=ll;exports.toChallengeDetailsTab=$c;exports.toChallengesTab=Sc;exports.toNumber=fl;exports.untrack=Nt;exports.updateChallengeIsNewStatus=sl;exports.user_derived=ni;exports.user_effect=zs;exports.user_pre_effect=Jo;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs");var J=e.from_html('<span class="challenge-pagination__ellipsis svelte-n87wfa" aria-hidden="true">...</span>'),K=e.from_html('<button type="button"> </button>'),Q=e.from_html('<div class="challenge-pagination__pages svelte-n87wfa"><button class="challenge-pagination__btn challenge-pagination__btn--prev svelte-n87wfa" type="button"> </button> <!> <button class="challenge-pagination__btn challenge-pagination__btn--next svelte-n87wfa" type="button"> </button></div>'),R=e.from_html('<div class="challenge-pagination svelte-n87wfa"><!></div>');const W={hash:"svelte-n87wfa",code:`
|
|
2
|
-
@layer challenge-pagination-component {.challenge-pagination.svelte-n87wfa {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
|
|
3
|
-
|
|
4
|
-
@media (min-width: 768px) {.challenge-pagination.svelte-n87wfa {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.challenge-pagination__pages.svelte-n87wfa {justify-content:flex-end;}
|
|
5
|
-
}.challenge-pagination__pages.svelte-n87wfa {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.challenge-pagination__ellipsis.svelte-n87wfa {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.challenge-pagination__btn.svelte-n87wfa {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.challenge-pagination__btn--active.svelte-n87wfa {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.challenge-pagination__btn.svelte-n87wfa:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.challenge-pagination__btn--prev.svelte-n87wfa,
|
|
6
|
-
.challenge-pagination__btn--next.svelte-n87wfa {width:95px;}
|
|
7
|
-
|
|
8
|
-
@media (max-width: 767px) {.challenge-pagination__btn--prev.svelte-n87wfa,
|
|
9
|
-
.challenge-pagination__btn--next.svelte-n87wfa {width:90px;}
|
|
10
|
-
}.challenge-pagination__btn--prev.svelte-n87wfa:not(:disabled),
|
|
11
|
-
.challenge-pagination__btn--next.svelte-n87wfa:not(:disabled) {color:var(--text-default, #dfe3e8);}
|
|
12
|
-
}`};function P(y,a){e.push(a,!0),e.append_styles(y,W);const I=()=>e.store_get(e.$format,"$_",L),[L,N]=e.setup_stores(),u=e.prop(a,"offset",7,0),v=e.prop(a,"limit",7,e.LIMIT_ITEMS_DEFAULT),b=e.prop(a,"total",7,0),c=e.prop(a,"onPageChange",7,t=>{}),f=e.prop(a,"locale",7,"en"),m=e.prop(a,"isMobile",7,!0);e.untrack(()=>e.initI18n(f())),e.user_effect(()=>{e.setLocale(f()??"en")});const S=e.user_derived(()=>Number(u())||0),s=e.user_derived(()=>Number(v())||e.LIMIT_ITEMS_DEFAULT),k=e.user_derived(()=>Number(b())||0),d=e.user_derived(()=>Math.max(1,Math.ceil(e.get(k)/Math.max(1,e.get(s))))),o=e.user_derived(()=>e.get(s)>0?Math.floor(e.get(S)/e.get(s)):0),A=(t,n,l)=>{const w=e.PAGINATION_VISIBLE_PAGE_MOBILE,h=e.PAGINATION_VISIBLE_PAGE;return t<=(l?w:h)?Array.from({length:t},(M,p)=>p):n<=1||n>=t-2?[0,1,"ellipsis",t-2,t-1]:[0,"ellipsis",n,"ellipsis",t-1]},C=e.user_derived(()=>A(e.get(d),e.get(o),m())),j=t=>c()(t*e.get(s)),D=()=>c()(Math.max(0,e.get(o)-1)*e.get(s)),G=()=>c()(Math.min(e.get(d)-1,e.get(o)+1)*e.get(s));var z={get offset(){return u()},set offset(t=0){u(t),e.flushSync()},get limit(){return v()},set limit(t=e.LIMIT_ITEMS_DEFAULT){v(t),e.flushSync()},get total(){return b()},set total(t=0){b(t),e.flushSync()},get onPageChange(){return c()},set onPageChange(t=n=>{}){c(t),e.flushSync()},get locale(){return f()},set locale(t="en"){f(t),e.flushSync()},get isMobile(){return m()},set isMobile(t=!0){m(t),e.flushSync()}},x=R(),B=e.child(x);{var F=t=>{var n=Q(),l=e.child(n);l.__click=D;var w=e.child(l,!0);e.reset(l);var h=e.sibling(l,2);e.each(h,17,()=>e.get(C),e.index,(p,r)=>{var T=e.comment(),U=e.first_child(T);{var H=g=>{var i=J();e.append(g,i)},V=g=>{var i=K();let E;i.__click=()=>j(e.get(r));var q=e.child(i,!0);e.reset(i),e.template_effect(()=>{E=e.set_class(i,1,"challenge-pagination__btn svelte-n87wfa",null,E,{"challenge-pagination__btn--active":e.get(r)===e.get(o)}),e.set_text(q,e.get(r)+1)}),e.append(g,i)};e.if_block(U,g=>{e.get(r)==="ellipsis"?g(H):g(V,!1)})}e.append(p,T)});var _=e.sibling(h,2);_.__click=G;var M=e.child(_,!0);e.reset(_),e.reset(n),e.template_effect((p,r)=>{l.disabled=e.get(o)<=0,e.set_text(w,p),_.disabled=e.get(o)>=e.get(d)-1,e.set_text(M,r)},[()=>I()("prev"),()=>I()("next")]),e.append(t,n)};e.if_block(B,t=>{e.get(d)>1&&t(F)})}e.reset(x),e.append(y,x);var O=e.pop(z);return N(),O}e.delegate(["click"]);e.create_custom_element(P,{offset:{},limit:{},total:{},onPageChange:{},locale:{},isMobile:{}},[],[],!0);exports.Pagination=P;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs"),x=require("./ChallengeList-k2WHGOdC.cjs"),B=require("./ChallengeBreadcrumbs-CZxhI0_L.cjs"),H=require("./ChallengeTabContent-Y2CcHcab.cjs"),O={en:{noChallenges:"No challenges at the moment. Try exploring events or keep playing to unlock new ones.",loadMore:"Load more",challengesAnonymous:"Login to see your challenges and progress."},tr:{noChallenges:"Şu anda görev yok. Etkinliklere göz atabilir veya oynamaya devam ederek yenilerinin kilidini açabilirsin.",loadMore:"Daha fazla yükle",challengesAnonymous:"Görevlerinizi ve ilerlemenizi görmek için giriş yapın."},da:{noChallenges:"Ingen udfordringer i øjeblikket. Prøv at udforske events, eller bliv ved med at spille for at låse nye op.",loadMore:"Indlæs mere",challengesAnonymous:"Log ind for at se dine udfordringer og fremskridt."},de:{noChallenges:"Aktuell keine Herausforderungen verfügbar. Entdecke Events oder spiele weiter, um neue freizuschalten.",loadMore:"Mehr laden",challengesAnonymous:"Melde dich an, um deine Herausforderungen und Fortschritte zu sehen."},nl:{noChallenges:"Op dit moment geen uitdagingen beschikbaar. Bekijk events of blijf spelen om nieuwe uitdagingen te ontgrendelen.",loadMore:"Meer laden",challengesAnonymous:"Log in om je uitdagingen en voortgang te zien."},fr:{noChallenges:"Aucun défi pour le moment. Découvrez les événements ou continuez à jouer pour en débloquer de nouveaux.",loadMore:"Charger plus",challengesAnonymous:"Connectez-vous pour voir vos défis et votre progression."},hu:{noChallenges:"Jelenleg nincs elérhető kihívás. Nézz szét az események között, vagy játssz tovább, hogy újakat oldj fel.",loadMore:"Több betöltése",challengesAnonymous:"Jelentkezzen be, hogy lássa a kihívásait és haladását."}};var q=e.from_html("<!> <!>",1),G=e.from_html("<!> <!>",1),F=e.from_html('<div class="player-challenges svelte-1edjcz1"><!></div>');const J={hash:"svelte-1edjcz1",code:".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"};function D(p,t){e.push(t,!0),e.append_styles(p,J);const l=e.prop(t,"endpoint",7,""),o=e.prop(t,"userSession",7,""),i=e.prop(t,"userId",7,""),d=e.prop(t,"domainId",7,""),s=e.prop(t,"locale",7,"en"),g=e.prop(t,"translationUrl",7),c=e.prop(t,"isMobile",7),b=e.prop(t,"activeTab",23,()=>e.ChallengesTab.Promo),v=e.prop(t,"activeDetailsTab",7),m=e.prop(t,"showTabDot",7,!1);e.untrack(()=>e.initI18n(s(),O)),e.user_pre_effect(()=>{g()&&e.loadTranslationUrl(g(),"challenge-card")}),e.user_effect(()=>{e.setLocale(s()||"en")});let h=e.state(e.proxy(e.untrack(()=>e.toChallengesTab(b()))??e.ChallengesTab.Promo));e.user_effect(()=>{const n=e.toChallengesTab(b());n!==void 0&&e.set(h,n,!0)});let T=e.state(void 0);const _=e.user_derived(()=>!o()&&!i()),r=e.createChallengesData(()=>({endpoint:l(),domainId:d(),userSession:o(),userId:i(),locale:s(),pageSize:e.LIMIT_DEFAULT})),y=e.user_derived(()=>r.findChallenge(e.get(T))),a=e.user_derived(()=>{const n=[];return r.activeChallenges.some(u=>u.IsNew)&&n.push(e.ChallengesTab.Active),r.pendingChallenges.some(u=>u.IsNew)&&n.push(e.ChallengesTab.Pending),n}),M=n=>{n!==e.get(h)&&(e.set(h,n,!0),e.sendChallengeTabClicked(e.CHALLENGES_TAB_NAMES[n]))},z=n=>{e.set(T,n,!0),c()||e.sendChallengeDetailPageOpen(!0)},w=()=>{c()||e.sendChallengeDetailPageOpen(!1),e.set(T,void 0)};e.user_pre_effect(()=>{g()&&e.loadTranslationUrl(g(),"player-challenges")}),e.user_effect(()=>{e.setLocale(s()||"en")}),e.user_effect(()=>{const n=e.get(h),u={endpoint:l(),domainId:d(),userSession:o(),userId:i(),locale:s()},f=e.CHALLENGES_TAB_LIST_KIND[n];!u.endpoint||!f||r.load(f,e.get(_))}),e.user_effect(()=>{if(l())return r.connect(),()=>r.disconnect()});var A={get endpoint(){return l()},set endpoint(n=""){l(n),e.flushSync()},get userSession(){return o()},set userSession(n=""){o(n),e.flushSync()},get userId(){return i()},set userId(n=""){i(n),e.flushSync()},get domainId(){return d()},set domainId(n=""){d(n),e.flushSync()},get locale(){return s()},set locale(n="en"){s(n),e.flushSync()},get translationUrl(){return g()},set translationUrl(n){g(n),e.flushSync()},get isMobile(){return c()},set isMobile(n){c(n),e.flushSync()},get activeTab(){return b()},set activeTab(n=e.ChallengesTab.Promo){b(n),e.flushSync()},get activeDetailsTab(){return v()},set activeDetailsTab(n){v(n),e.flushSync()},get showTabDot(){return m()},set showTabDot(n=!1){m(n),e.flushSync()}},C=F(),P=e.child(C);{var L=n=>{var u=q(),f=e.first_child(u);B.ChallengeBreadcrumbs(f,{onBack:w});var S=e.sibling(f,2);{let j=e.user_derived(()=>e.get(h)===e.ChallengesTab.Promo),E=e.user_derived(()=>!!e.get(y)&&r.pausedChallengeIds.includes(e.get(y).ChallengeId));x.ChallengeDetails(S,{get challengeId(){return e.get(T)},get endpoint(){return l()},get userSession(){return o()},get userId(){return i()},get domainId(){return d()},get locale(){return s()},get isPromo(){return e.get(j)},get isPaused(){return e.get(E)},onStatusChange:(I,N)=>r.patchProgress(I,{Status:N}),onViewed:I=>r.patchProgress(I,{IsNew:!1}),get activeTab(){return v()},get isMobile(){return c()}})}e.append(n,u)},U=n=>{var u=G(),f=e.first_child(u);e.ChallengeTabs$1(f,{get activeTab(){return e.get(h)},onTabChange:M,get notifyTabs(){return e.get(a)},get showTabDot(){return m()}});var S=e.sibling(f,2);H.ChallengeTabContent(S,{get endpoint(){return l()},get userSession(){return o()},get userId(){return i()},get domainId(){return d()},get locale(){return s()},get challenges(){return r},onViewDetails:z,get activeTab(){return e.get(h)},get isMobile(){return c()}}),e.append(n,u)};e.if_block(P,n=>{e.get(T)?n(L):n(U,!1)})}return e.reset(C),e.append(p,C),e.pop(A)}e.create_custom_element(D,{endpoint:{},userSession:{},userId:{},domainId:{},locale:{},translationUrl:{},isMobile:{},activeTab:{},activeDetailsTab:{},showTabDot:{}},[],[],!0);function k(p,t){e.push(t,!0);let l=e.prop(t,"endpoint",7,""),o=e.prop(t,"userSession",7,""),i=e.prop(t,"userId",7,""),d=e.prop(t,"domainId",7,""),s=e.prop(t,"locale",7,"en"),g=e.prop(t,"translationUrl",7,""),c=e.prop(t,"isMobile",7),b=e.prop(t,"activeTab",7),v=e.prop(t,"activeDetailsTab",7),m=e.prop(t,"showTabDot",7);const h=e.user_derived(()=>e.toBoolean(c(),!0)),T=e.user_derived(()=>e.toChallengesTab(b())??e.ChallengesTab.Promo),_=e.user_derived(()=>e.toChallengeDetailsTab(v())),r=e.user_derived(()=>e.toBoolean(m()));var y={get endpoint(){return l()},set endpoint(a=""){l(a),e.flushSync()},get userSession(){return o()},set userSession(a=""){o(a),e.flushSync()},get userId(){return i()},set userId(a=""){i(a),e.flushSync()},get domainId(){return d()},set domainId(a=""){d(a),e.flushSync()},get locale(){return s()},set locale(a="en"){s(a),e.flushSync()},get translationUrl(){return g()},set translationUrl(a=""){g(a),e.flushSync()},get isMobile(){return c()},set isMobile(a){c(a),e.flushSync()},get activeTab(){return b()},set activeTab(a){b(a),e.flushSync()},get activeDetailsTab(){return v()},set activeDetailsTab(a){v(a),e.flushSync()},get showTabDot(){return m()},set showTabDot(a){m(a),e.flushSync()}};return D(p,{get endpoint(){return l()},get userSession(){return o()},get userId(){return i()},get domainId(){return d()},get locale(){return s()},get translationUrl(){return g()},get isMobile(){return e.get(h)},get activeTab(){return e.get(T)},get activeDetailsTab(){return e.get(_)},get showTabDot(){return e.get(r)}}),e.pop(y)}customElements.define("player-challenges",e.create_custom_element(k,{endpoint:{},userSession:{},userId:{},domainId:{},locale:{},translationUrl:{},isMobile:{},activeTab:{},activeDetailsTab:{},showTabDot:{}},[],[],!1));const V=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));exports.PlayerChallenges=D;exports.PlayerChallenges_ce=V;
|